/* action.css — 3D 액션 전투 HUD (720×1280 무대 좌표) */
.ax { position: absolute; inset: 0; overflow: hidden; background: #1e1a42; touch-action: none; }
.ax-cv { position: absolute; left: 0; top: 0; width: 720px; height: 1280px; display: block; }
.ax-shake { animation: shake .3s; }
.ax-hud { position: absolute; inset: 0; pointer-events: none; }
.ax-hud > * { pointer-events: auto; }
.ax-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; align-items: center; justify-content: center; font-family: var(--disp); color: var(--paper2); background: radial-gradient(ellipse at 50% 60%, #3a2f55, #0d0a14 70%); z-index: 5; }
.ax-loading b { font-size: 52px; font-weight: 400; color: var(--paper); text-shadow: 0 5px 0 var(--ink); }
.ax-loading span { font-family: var(--body); font-size: 24px; color: #b9aed2; }
.ax-ldbar { width: 380px; height: 18px; border: 3px solid var(--ink); border-radius: 12px; background: #2a2238; overflow: hidden; }
.ax-ldbar i { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width .25s; }

/* 위 */
.ax-top { position: absolute; left: 0; right: 0; top: 0; height: 96px; padding: 10px 16px 0; display: flex; align-items: flex-start; gap: 12px; background: linear-gradient(rgba(12,9,20,.92), rgba(12,9,20,.55) 70%, rgba(12,9,20,0)); pointer-events: none; }
.ax-title { flex: 1; min-width: 0; text-shadow: 2px 2px 0 var(--ink); }
.ax-title b { display: block; font-family: var(--disp); font-size: 32px; font-weight: 400; color: var(--paper); line-height: 1.1; }
.ax-title span { display: block; font-size: 19px; color: var(--paper2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-clock { margin-right: 200px; text-align: center; font-family: var(--disp); color: var(--amber2); text-shadow: 2px 2px 0 var(--ink); }
.ax-clock small { display: block; font-size: 14px; color: var(--paper2); }
.ax-clock b { font-size: 30px; font-weight: 400; }
.ax-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; }
.ax-tools .btn.tool { font-size: 22px; padding: 10px 14px; }
.ax-oaths { position: absolute; left: 14px; right: 60px; top: 92px; display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; pointer-events: none; }
.ax-oaths > * { pointer-events: auto; }
.ax-otok { font-size: 18px; }
.ax-otok .ax-otime { font-family: var(--body); font-size: 15px; margin-left: 4px; color: #6a2f9a; }
.ax-otok.hurry { animation: warnPulse .6s ease-in-out infinite; }
.ax-oaths .bt-nooath { font-size: 17px; color: rgba(255,255,255,.55); text-shadow: 1px 1px 0 #000; }

/* 동료 얼굴(왼쪽 위) */
.ax-party { position: absolute; left: 12px; top: 142px; display: flex; flex-direction: column; gap: 8px; }
.ax-card { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 40px 12px 12px 40px; background: rgba(18,13,28,.72); border: 3px solid rgba(27,19,15,.9); width: 206px; text-align: left; }
.ax-card.ctrl { border-color: var(--gold); box-shadow: 0 0 14px rgba(240,197,72,.6); }
.ax-card.down { filter: grayscale(1) brightness(.6); }
.ax-face { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 3px solid var(--ink); background-color: #2c2440; background-size: 240% auto; background-position: 50% 4%; background-repeat: no-repeat; }
.ax-card.ctrl .ax-face { border-color: var(--gold); }
.ax-cinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ax-nm { font-family: var(--disp); font-size: 19px; color: var(--paper); line-height: 1; }
/* 역할 딱지·지금 하는 일(§18) */
.ax-nm { display: flex; align-items: center; gap: 6px; }
.ax-role { font-style: normal; font-family: var(--body); font-weight: 700; font-size: 14px; line-height: 1; padding: 3px 6px 2px; border-radius: 8px; color: #1b130f; background: #cfc6b4; white-space: nowrap; }
.ax-role.r-lead { background: #ff9d6a; } .ax-role.r-belay { background: #8ec5ff; } .ax-role.r-guide { background: #c9a6ff; } .ax-role.r-supply { background: #8fe39b; }
.ax-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 14px; }
.ax-doing { flex: 1; min-width: 0; text-align: right; font-size: 15px; line-height: 1.1; color: #b9aed2; white-space: nowrap; overflow: hidden; }
.ax-doing.hot { color: #ffe08a; }
.ax-card.ctrl .ax-doing { color: var(--gold); }
.ax-hp { height: 10px; border: 2px solid var(--ink); border-radius: 5px; background: #2a1e1e; overflow: hidden; }
.ax-hp i { display: block; height: 100%; background: linear-gradient(#7dff96, #3cbf5a); transition: width .15s; }
.ax-hp i.low { background: linear-gradient(#ff8b7a, #d64534); }
.ax-res { display: flex; gap: 4px; }
.ax-res i { width: 11px; height: 11px; transform: rotate(45deg); background: rgba(255,255,255,.15); border: 2px solid var(--ink); }
.ax-res i.on { background: #ffd24d; }

/* 등반 게이지(오른쪽 가장자리) */
.ax-gauge { position: absolute; right: 10px; top: 180px; width: 34px; height: 560px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ax-g-gate { font-family: var(--disp); font-size: 15px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 6px; padding: 2px 4px; margin-bottom: 4px; writing-mode: horizontal-tb; }
.ax-g-bar { position: relative; flex: 1; width: 18px; border: 3px solid var(--ink); border-radius: 10px; background: rgba(40,32,60,.7); overflow: visible; }
.ax-g-cloud { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0 0 7px 7px; background: linear-gradient(#efe6ff, #9d8fbf); }
.ax-gauge.warn .ax-g-cloud { background: linear-gradient(#ff9a8a, #b0456a); animation: blink .5s infinite; }
.ax-g-dots { position: absolute; inset: 0; }
.ax-g-seals { position: absolute; inset: 0; }
.ax-g-seals i { position: absolute; left: -9px; right: -9px; height: 6px; margin-bottom: -3px; background: #ff7a3a; border: 2px solid var(--ink); border-radius: 3px; box-shadow: 0 0 6px #ff7a3a; }
.ax-g-seals i.open { background: rgba(160,255,160,.5); box-shadow: none; height: 3px; margin-bottom: -1px; border-width: 1px; }
.ax-g-dots i { position: absolute; left: 50%; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; border: 2px solid var(--ink); }
.ax-g-dots i.ally { background: #ffe08a; }
.ax-g-dots i.ally.me { width: 16px; height: 16px; margin: 0 0 -8px -8px; background: var(--gold); z-index: 2; }
.ax-g-dots i.enemy { background: #e0503c; width: 8px; height: 8px; margin: 0 0 -4px -4px; }
.ax-g-dots i.npc { background: #7ad0f0; }
.ax-vign { --k: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 520px; pointer-events: none !important; opacity: 0; background: linear-gradient(to top, rgba(150,60,230,.85), rgba(120,50,200,.45) 35%, rgba(90,40,170,0)); transition: opacity .25s; }
.ax-vign.on { opacity: calc(.25 + var(--k) * .75); animation: cloudPulse 1.1s ease-in-out infinite; }
@keyframes cloudPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.5); } }
.ax-hurt { position: absolute; inset: 0; pointer-events: none !important; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(255,40,30,.7); }
.ax-hurt.on { animation: hurtFlash .35s ease-out; }
@keyframes hurtFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.ax-flash { position: absolute; inset: 0; pointer-events: none !important; opacity: 0; mix-blend-mode: screen; }
.ax-flash.on { animation: hurtFlash .4s ease-out; }
/* 봉인 알림(위쪽 가운데, 화면 안) */
.ax-seal { position: absolute; left: 232px; right: 62px; top: 148px; display: none; padding: 8px 14px 6px; border-radius: 18px; background: rgba(40,14,10,.86); border: 3px solid #ff7a3a; box-shadow: 0 0 14px rgba(255,120,60,.55); font-family: var(--disp); font-size: 24px; line-height: 1.25; color: var(--paper); text-align: center; pointer-events: none; z-index: 3; }
.ax-seal.on { display: block; }
.ax-seal b { font-family: var(--disp); font-weight: 400; color: #ffb070; margin-right: 6px; }
.ax-seal small { display: block; font-family: var(--body); font-size: 17px; color: var(--amber2); }
.ax-seal em { font-style: normal; font-family: var(--disp); color: #ff8b7a; font-size: 30px; }
.ax-seal i { font-style: normal; color: var(--amber2); }
/* 연속 처치·파 알림 */
.ax-combo { position: absolute; right: 70px; top: 520px; font-family: var(--disp); font-size: 46px; color: #ffe14d; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(255,200,60,.7); opacity: 0; pointer-events: none !important; transform: rotate(-8deg); }
.ax-combo.big { font-size: 60px; color: #ff9a3a; }
.ax-combo.go { animation: comboPop .9s ease-out forwards; }
@keyframes comboPop { 0% { opacity: 0; transform: rotate(-8deg) scale(2.2); } 15% { opacity: 1; transform: rotate(-8deg) scale(.95); } 25% { transform: rotate(-8deg) scale(1.05); } 75% { opacity: 1; } 100% { opacity: 0; transform: rotate(-8deg) translateY(-30px); } }
.ax-wave { position: absolute; left: 50%; top: 248px; transform: translateX(-50%); padding: 4px 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(120,20,20,0), rgba(120,20,20,.85) 20%, rgba(120,20,20,.85) 80%, rgba(120,20,20,0)); font-family: var(--disp); font-size: 26px; color: #ffb0a0; text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; opacity: 0; pointer-events: none !important; }
.ax-wave.on { animation: waveIn 1.4s ease-out forwards; }
@keyframes waveIn { 0% { opacity: 0; transform: translateX(-50%) scaleX(.3); } 12% { opacity: 1; transform: translateX(-50%) scaleX(1.05); } 20% { transform: translateX(-50%) scaleX(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* 보스 */
.ax-boss { position: absolute; left: 200px; right: 200px; top: 132px; display: none; text-align: center; font-family: var(--disp); color: #ffb0a0; text-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.ax-boss.on { display: block; }
.ax-boss b { font-size: 24px; font-weight: 400; }
.ax-bhp { height: 16px; border: 3px solid var(--ink); border-radius: 8px; background: #2a1e1e; overflow: hidden; }
.ax-bhp i { display: block; height: 100%; background: linear-gradient(#ff8b7a, #c03a2a); }

/* 조이스틱 */
.ax-joyzone { position: absolute; left: 0; bottom: 0; width: 432px; height: 640px; touch-action: none; }
.ax-joyhint { position: absolute; left: 70px; bottom: 120px; width: 250px; height: 250px; border-radius: 50%; border: 4px dashed rgba(255,240,210,.5); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--disp); font-size: 24px; color: rgba(255,240,210,.9); text-shadow: 0 2px 0 rgba(27,19,15,.8); padding: 30px; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.ax-joyzone.used .ax-joyhint { display: none; }
.ax-joy { position: absolute; width: 184px; height: 184px; margin: -92px 0 0 -92px; border-radius: 50%; background: radial-gradient(circle, rgba(20,14,30,.25), rgba(20,14,30,.55)); border: 4px solid rgba(255,240,210,.55); display: none; pointer-events: none; }
.ax-joy.on { display: block; }
.ax-knob { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff4d8, #d8b47a); border: 4px solid var(--ink); transform: translate(-50%,-50%); box-shadow: 0 4px 0 rgba(0,0,0,.4); }

/* 버튼(오른쪽 아래) */
.ax-btns { position: absolute; right: 0; bottom: 0; width: 330px; height: 420px; pointer-events: none; }
.ax-btns > * { pointer-events: auto; }
.ax-btn { position: absolute; border-radius: 50%; border: 4px solid var(--ink); padding: 0; font-family: var(--disp); color: var(--paper); touch-action: none; transition: transform .06s, filter .12s;
  /* 금테: 위는 밝고 아래는 어두운 놋쇠 띠 + 바닥으로 떨어지는 두께 */
  background: linear-gradient(165deg, #fff2bf 0%, #f0c04a 22%, #a86a1e 58%, #6b3f12 78%, #e9bf62 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(60,30,6,.55), 0 7px 0 var(--ink), 0 14px 18px rgba(0,0,0,.45); }
.ax-btn .ax-art { position: absolute; inset: var(--rim, 7px); border-radius: 50%; border: 3px solid var(--ink); background-color: var(--fill, #5b4433); background-size: 112%; background-position: 50% 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16), inset 0 -14px 20px rgba(20,8,4,.42); }
.ax-btn .ax-gloss { position: absolute; left: 20%; right: 20%; top: calc(var(--rim, 7px) + 6px); height: 26%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,0)); pointer-events: none; z-index: 2; }
/* 이름표: 아래 테두리에 걸친 나무 명패 */
.ax-btn .ax-lab { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); z-index: 3; white-space: nowrap; line-height: 1; padding: 5px 14px 3px; border-radius: 14px; border: 3px solid var(--ink); background: linear-gradient(#4b3627, #241812); color: var(--paper); text-shadow: 0 2px 0 var(--ink); box-shadow: inset 0 2px 0 rgba(255,220,170,.28), 0 4px 0 rgba(0,0,0,.45); }
.ax-btn.down { transform: translateY(5px) scale(.9); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(60,30,6,.55), 0 2px 0 var(--ink), 0 5px 8px rgba(0,0,0,.4); filter: brightness(1.22); }
.ax-btn.pop { animation: btnPop .22s ease-out; }
@keyframes btnPop { 0% { transform: scale(.9); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }
.ax-btn.atk { right: 30px; bottom: 62px; width: 190px; height: 190px; --rim: 9px; --fill: #c2452a; }
.ax-btn.atk .ax-lab { font-size: 32px; padding: 6px 22px 4px; bottom: -11px; background: linear-gradient(#a8321c, #5e160c); }
.ax-btn.dodge { right: 232px; bottom: 46px; width: 118px; height: 118px; --fill: #2f6aa6; }
.ax-btn.dodge .ax-lab { font-size: 22px; background: linear-gradient(#2b5c94, #142c4c); }
.ax-btn.skill { right: 50px; bottom: 268px; width: 128px; height: 128px; --fill: #6a3ab0; }
.ax-btn.skill .ax-lab { font-size: 20px; background: linear-gradient(#5d3aa0, #2a164e); }
.ax-btn.role { right: 222px; bottom: 206px; width: 108px; height: 108px; --fill: #2f8a4a; }
.ax-btn.role .ax-lab { font-size: 18px; background: linear-gradient(#2c7a44, #123a20); }
.ax-btn.role.carry { --fill: #c08a1a; }
.ax-btn.role.carry .ax-lab { background: linear-gradient(#a8741a, #4e3208); }
/* 못 쓰는 동안: 그림만 식고(테는 그대로) 이름표가 흐려진다 */
.ax-btn.skill.off .ax-art, .ax-btn.role.off .ax-art { filter: grayscale(.85) brightness(.78); }
.ax-btn.skill.off .ax-lab, .ax-btn.role.off .ax-lab { color: #9d93b3; }
.ax-btn.skill.off .ax-gloss, .ax-btn.role.off .ax-gloss { opacity: .35; }
/* 스킬이 찼다: 금빛 고동 */
.ax-btn.skill.ready { animation: axReady 1.3s ease-in-out infinite; }
.ax-btn.skill.ready.down, .ax-btn.skill.ready.pop { animation: none; }
.ax-btn.skill.ready.pop { animation: btnPop .22s ease-out; }
@keyframes axReady { 0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(60,30,6,.55), 0 7px 0 var(--ink), 0 14px 18px rgba(0,0,0,.45), 0 0 0 0 rgba(255,214,90,0); } 50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(60,30,6,.55), 0 7px 0 var(--ink), 0 14px 18px rgba(0,0,0,.45), 0 0 22px 7px rgba(255,214,90,.85); } }
/* 결의 칸: 스킬 버튼 위 테두리에 걸친 마름모 */
.ax-pips { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; pointer-events: none; }
.ax-pips i { width: 15px; height: 15px; transform: rotate(45deg); background: #2a2238; border: 3px solid var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.ax-pips i.on { background: linear-gradient(135deg, #fff3b0, #ffc21a); box-shadow: 0 0 9px rgba(255,200,40,.95), 0 2px 0 rgba(0,0,0,.4); }
.ax-cdring { position: absolute; inset: calc(var(--rim, 7px) + 3px); border-radius: 50%; background: conic-gradient(rgba(10,6,20,.52) var(--p, 0%), transparent 0); z-index: 1; pointer-events: none; }

/* 떠오르는 글자 */
/* 구름이 발밑에 왔을 때 머리 위 안내 */
.ax-upcue { position: absolute; transform: translate(-50%, -50%); display: none; padding: 6px 18px 4px; border-radius: 22px; border: 3px solid var(--ink); background: #ff5fb8; color: #fff; font-family: var(--disp); font-size: 30px; white-space: nowrap; text-shadow: 0 2px 0 var(--ink); box-shadow: 0 5px 0 var(--ink); pointer-events: none; z-index: 4; }
.ax-upcue.on { display: block; animation: cueBob .7s ease-in-out infinite; }
.ax-upcue:not(.arrow) { background: #6a3ab0; font-size: 24px; }
@keyframes cueBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.ax-floats { position: absolute; inset: 0; pointer-events: none !important; overflow: hidden; }
.ax-float { position: absolute; transform: translate(-50%, -50%); font-family: var(--disp); font-size: 40px; color: #fff; white-space: nowrap; -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink); animation: axFloat .9s ease-out forwards; }
.ax-float.dmg { font-size: 38px; }
.ax-float.dmg.minor { font-size: 26px; opacity: .8; -webkit-text-stroke: 1px var(--ink); }
.ax-float.dmg.big { font-size: 50px; color: #fff4c0; }
.ax-float.dmg.good { color: #ffb070; }
.ax-float.dmg.bad { color: #c8c8d8; font-size: 32px; }
.ax-float.dmg.high { color: #9ff0ff; }
.ax-float.ally { color: #ff8b7a; font-size: 34px; }
.ax-float.crit { color: #ffd24d; font-size: 56px; animation: axCrit .9s ease-out forwards; }
.ax-float.heal { color: #7dff96; font-size: 34px; }
.ax-float.label { font-size: 30px; }
.ax-float.shared { font-size: 24px; }
.ax-float.skillname { font-size: 30px; color: #fff; background: rgba(20,12,30,.75); border: 2px solid var(--gold); border-radius: 18px; padding: 0 14px; -webkit-text-stroke: 0; text-shadow: 2px 2px 0 var(--ink); animation: axSkill 1.3s ease-out forwards; }
@keyframes axCrit { 0% { transform: translate(-50%, -30%) scale(2.2) rotate(-6deg); opacity: 0; } 12% { transform: translate(-50%, -60%) scale(1) rotate(-6deg); opacity: 1; } 100% { transform: translate(-50%, -200%) rotate(-6deg); opacity: 0; } }
@keyframes axSkill { 0% { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 12% { transform: translate(-50%, -70%) scale(1.05); opacity: 1; } 75% { transform: translate(-50%, -110%); opacity: 1; } 100% { transform: translate(-50%, -140%); opacity: 0; } }
/* 동료 한마디(말풍선) */
.ax-float.say { font-family: var(--body); font-weight: 700; font-size: 25px; color: #1b130f; background: #fff8e6; border: 3px solid var(--ink); border-radius: 18px; padding: 4px 14px 3px; -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 4px 0 rgba(27,19,15,.55); animation: axSay 1.7s ease-out forwards; }
.ax-float.say::after { content: ''; position: absolute; left: 50%; bottom: -11px; width: 14px; height: 14px; background: #fff8e6; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.ax-float.say.r-belay { background: #e2f1ff; } .ax-float.say.r-belay::after { background: #e2f1ff; }
.ax-float.say.r-guide { background: #f1e6ff; } .ax-float.say.r-guide::after { background: #f1e6ff; }
.ax-float.say.r-supply { background: #e4f9e6; } .ax-float.say.r-supply::after { background: #e4f9e6; }
.ax-float.say.r-lead { background: #ffe9d9; } .ax-float.say.r-lead::after { background: #ffe9d9; }
@keyframes axSay { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 10% { opacity: 1; transform: translate(-50%, -62%) scale(1.08); } 18% { transform: translate(-50%, -60%) scale(1); } 82% { opacity: 1; transform: translate(-50%, -64%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.ax-float.gold { color: var(--gold); font-size: 34px; }
.ax-float.info { color: #d8c8ff; font-size: 30px; }
.ax-float.miss { color: #bfe8ff; font-size: 28px; }
@keyframes axFloat { 0% { transform: translate(-50%, -30%) scale(1.5); opacity: 0; } 15% { transform: translate(-50%, -60%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -190%); opacity: 0; } }

.ax-guide { bottom: 600px; z-index: 5; }
.ax .bt-banner { top: 330px; z-index: 4; }

/* ───────── 전투 화면 틀 통일(2026-11-14): 버튼과 같은 놋쇠 테·나무 명패 결 ───────── */
/* 위쪽: 맵 이름은 나무 현판, 시간은 놋쇠 테 시계판 */
.ax-top { height: 104px; padding: 10px 14px 0; background: linear-gradient(rgba(12,9,20,.9), rgba(12,9,20,.5) 72%, rgba(12,9,20,0)); }
.ax-title { flex: 0 1 auto; max-width: 330px; padding: 6px 16px 5px 14px; border: 3px solid var(--ink); border-radius: 6px 18px 18px 6px; background: linear-gradient(#4b3627, #241812); box-shadow: inset 0 2px 0 rgba(255,220,170,.28), inset 5px 0 0 #e2a93c, 0 4px 0 rgba(0,0,0,.45); text-shadow: 0 2px 0 var(--ink); }
.ax-title b { font-size: 28px; }
.ax-title span { font-size: 17px; color: var(--amber2); }
.ax-clock { margin: 2px 0 0 auto; margin-right: 196px; min-width: 92px; padding: 3px 12px 2px; border: 3px solid var(--ink); border-radius: 30px; background: linear-gradient(165deg, #fff2bf 0%, #f0c04a 24%, #a86a1e 62%, #6b3f12 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 rgba(0,0,0,.45); color: var(--ink); text-shadow: none; }
.ax-clock small { font-size: 12px; color: #4a2e0c; line-height: 1; }
.ax-clock b { font-size: 26px; line-height: 1; color: #1b130f; }
/* 자동·메뉴: 놋쇠 테 단추 */
.ax-tools .btn.tool { font-size: 22px; padding: 9px 14px 7px; border-radius: 14px; color: var(--paper); background: linear-gradient(#4b3627, #241812); border: 3px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,220,170,.28), 0 0 0 3px #c9963a, 0 0 0 6px var(--ink), 0 8px 0 rgba(0,0,0,.4); margin: 6px; }
.ax-tools .btn.tool.on { color: var(--ink); background: linear-gradient(#ffe08a, #e8a93d); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 0 0 3px #fff2bf, 0 0 0 6px var(--ink), 0 0 18px 6px rgba(255,214,90,.7); }
/* 동료 카드: 나무 판 + 놋쇠 얼굴 테 */
.ax-card { background: linear-gradient(#3d2c21, #1f1612); border: 3px solid var(--ink); border-radius: 40px 14px 14px 40px; box-shadow: inset 0 2px 0 rgba(255,220,170,.2), 0 4px 0 rgba(0,0,0,.4); }
.ax-card.ctrl { border-color: var(--ink); box-shadow: inset 0 2px 0 rgba(255,220,170,.3), 0 0 0 3px #f0c548, 0 0 0 6px var(--ink), 0 0 16px 4px rgba(240,197,72,.55); }
.ax-face { border: 3px solid var(--ink); box-shadow: 0 0 0 3px #c9963a, 0 0 0 5px var(--ink); margin: 5px; width: 52px; height: 52px; }
.ax-card.ctrl .ax-face { border-color: var(--ink); box-shadow: 0 0 0 3px #ffe08a, 0 0 0 5px var(--ink); }
.ax-hp { height: 12px; border: 2px solid var(--ink); border-radius: 6px; background: #120c0a; box-shadow: inset 0 2px 0 rgba(0,0,0,.5); }
.ax-hp i { box-shadow: inset 0 3px 0 rgba(255,255,255,.35); }
/* 등반 게이지: 놋쇠 틀 */
.ax-gauge { right: 8px; width: 38px; }
.ax-g-gate { font-size: 15px; padding: 3px 5px 2px; border: 3px solid var(--ink); border-radius: 8px; background: linear-gradient(#ffe08a, #e8a93d); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.ax-g-bar { width: 16px; border: 3px solid var(--ink); border-radius: 10px; background: rgba(20,14,30,.78); box-shadow: 0 0 0 3px #c9963a, 0 0 0 5px var(--ink); }
/* 조이스틱: 놋쇠 고리 + 손잡이 */
.ax-joy { background: radial-gradient(circle, rgba(20,14,30,.5) 58%, rgba(20,14,30,0) 60%); border: 5px solid #c9963a; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px var(--ink), 0 8px 14px rgba(0,0,0,.4); }
.ax-knob { background: radial-gradient(circle at 38% 32%, #fff2bf, #f0c04a 38%, #a86a1e 78%); border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(0,0,0,.45); }

/* 스킬이 찼을 때 버튼 위 한마디 */
.ax-skilltip { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); white-space: nowrap; padding: 5px 14px 3px; border-radius: 16px; border: 3px solid var(--ink); background: #ffd24d; color: var(--ink); font-family: var(--disp); font-size: 20px; box-shadow: 0 4px 0 rgba(0,0,0,.45); pointer-events: none; z-index: 4; animation: skilltip 2.2s ease-out forwards; }
@keyframes skilltip { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 16% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }

/* 도움말 동안 화면 어둡게(전투가 멈춰 있다는 표시) */
.ax-dim { position: absolute; inset: 0; background: rgba(8,6,14,.5); pointer-events: none; z-index: 4; }

/* 3층 「등불」 어둠 덮개 — 등불 둘레만 밝다 */
.ax-night{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s;
  background:radial-gradient(circle at var(--nx,360px) var(--ny,640px), rgba(4,10,20,0) 0, rgba(4,10,20,0) calc(var(--nr,220px) * .55), rgba(4,10,20,calc(var(--na,.85) * .7)) var(--nr,220px), rgba(3,7,16,var(--na,.85)) calc(var(--nr,220px) * 1.5))}
.ax-night.on{opacity:1}
.ax-oaths .ax-boon { font-size: 16px; padding: 4px 10px; border-radius: 10px; color: #2a1a4a; background: linear-gradient(#f3e6ff, #c9a8ff); border: 2px solid #1a1426; margin-right: 6px; font-weight: 700; }

/* 6층 「경주」: 등반 게이지 위 맞수 깃발 */
.ax-g-rival { position: absolute; left: 100%; margin: 0 0 -9px 4px; width: 0; height: 0; border-left: 14px solid #e0304a; border-top: 9px solid transparent; border-bottom: 9px solid transparent; filter: drop-shadow(0 0 2px #000); z-index: 3; transition: bottom .25s linear; }
.ax-g-rival b { position: absolute; left: -64px; top: -30px; width: 60px; text-align: right; font-size: 15px; color: #ffd0d6; text-shadow: 0 1px 2px #000, 0 0 3px #000; white-space: nowrap; }
.ax-g-rival.ahead { animation: axRival .7s ease-in-out infinite alternate; }
.ax-g-rival.stall { border-left-color: #6ad8d0; }
.ax-g-rival.stall b { color: #bff4ee; }
.ax-g-rival.lost { border-left-color: #777; opacity: .6; }
@keyframes axRival { from { transform: translateX(0); } to { transform: translateX(4px); } }
