/* ASTA 아스타 — 화면 글·단추 (3D 위에 덮는 HTML). 밝은 파스텔 · 둥글게 */
:root {
  --ink: #4b3a5e; --dim: #8a7a9c; --card: rgba(255, 255, 255, .84); --line: rgba(75, 58, 94, .14);
  --pink: #ff7fa8; --mint: #5cc99a; --sky: #6cb8ff; --gold: #f2b233; --hp: #ff6f91; --xp: #7cc4ff; --life: #7bd08f;
  --shadow: 0 2px 10px rgba(75, 58, 94, .14);
  --ui: 1;   /* 넓은 PC 화면에서 ui.js 가 키움 (config ui) */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #fde3ea; color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; -webkit-user-select: none; user-select: none; }
#game { position: fixed; inset: 0; touch-action: none; }
#r3 { display: block; touch-action: none; }
#tags, #nums { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ── 머리 위 이름·막대 */
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); text-align: center; white-space: nowrap; font-size: 11px; font-weight: 700; color: #fff;
  text-shadow: 0 0 3px rgba(60, 40, 80, .9), 0 1px 2px rgba(60, 40, 80, .8); will-change: transform; }
.tag .lv { opacity: .85; font-weight: 600; margin-right: 2px; }
.tag .hpb { width: 38px; height: 5px; margin: 2px auto 0; border-radius: 3px; background: rgba(60, 40, 80, .45); overflow: hidden; }
.tag .hpb i { display: block; height: 100%; background: var(--hp); }
.tag.adv { color: #fff8e6; }
.tag.boss { font-size: 13px; color: #ffe9a8; }
.tag.boss .hpb { width: 96px; height: 7px; }
/* v0.8 정예 · 사냥터 우두머리 이름표 */
.tag b.elite { color: #ffe08a; text-shadow: 0 0 4px rgba(200, 140, 0, .8), 0 1px 0 #6a4a00; }
.tag b.chief { color: #ffb36b; font-size: 1.12em; text-shadow: 0 0 5px rgba(220, 90, 0, .85), 0 1px 0 #6a2a00; }
.tag b.elite ~ .hpb { width: 52px; }
.tag b.chief ~ .hpb { width: 86px; height: 7px; }
.tag .bub { font-size: 15px; display: block; }

/* ── 숫자 (겹치지 않게 칸을 나눠 올라감) */
.num { position: absolute; left: 0; top: 0; font-weight: 900; font-size: 15px; color: #fff; white-space: nowrap; will-change: transform, opacity;
  text-shadow: 0 0 2px #6a3f91, 0 0 2px #6a3f91, 0 1px 3px rgba(60, 30, 90, .9); }
.num.big { font-size: 19px; color: #ffd23a; }
.num.hurt { color: #ff5c7a; text-shadow: 0 0 2px #fff, 0 0 3px #fff; font-size: 14px; }
.num.gold { color: #ffd04a; font-size: 13px; }
.num.exp { color: #a7dcff; font-size: 12px; }
.num.herb { color: #8ef0a6; font-size: 13px; }
.num.heal { color: #7dffb0; font-size: 13px; }
.num.spend { color: #f3e2b0; font-size: 12px; }
.tag .jb { margin-right: 2px; font-size: 10px; }

/* ── HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud .panel, #hud .card, #hud .pill { pointer-events: auto; }
.hud-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 8px; right: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.pill { background: var(--card); border-radius: 14px; padding: 6px 10px; box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.clock { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.clock b { font-size: 15px; }
.dim { color: var(--dim); font-size: 12px; }
.bar { position: relative; height: 7px; border-radius: 4px; background: rgba(75, 58, 94, .13); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; transition: width .25s; }
.phbar { flex: 1 0 100%; height: 5px; }
.phbar i { background: linear-gradient(90deg, #ffb3c7, #ffd36b); }
.me { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 3px; }
.me .row { display: flex; gap: 6px; align-items: baseline; }
.me .hp { height: 11px; } .me .hp i { background: var(--hp); }
.me .hp span { position: absolute; inset: 0; font-size: 9px; line-height: 11px; text-align: center; color: #fff; font-weight: 800; text-shadow: 0 0 2px rgba(60, 40, 80, .8); }
.me .xp i { background: var(--xp); }
.res { display: flex; gap: 2px 9px; align-items: center; font-size: 13px; white-space: nowrap; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.res .mt { font-size: 12px; } .res .mt b { margin-left: 1px; }
#bonusWrap.on b { color: #e8901a; }
.me .life { margin-left: auto; letter-spacing: -.2px; }
.doing { position: absolute; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 112px); background: rgba(255, 255, 255, .72);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 16px); overflow: hidden; text-overflow: ellipsis; }
.feed { position: absolute; left: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 142px); max-width: min(78vw, 380px); display: flex; flex-direction: column; gap: 3px; }
.feed div { background: rgba(255, 255, 255, .7); border-radius: 9px; padding: 3px 8px; font-size: 12px; line-height: 1.35; box-shadow: 0 1px 4px rgba(75, 58, 94, .1); transition: opacity .6s; }
.feed div.big { background: rgba(255, 246, 214, .9); font-weight: 700; }
.hud-bottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; gap: 6px; }
.hud-bottom button { width: 54px; height: 60px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 22px; }
.hud-bottom button span { font-size: 11px; font-weight: 700; }
.hud-bottom button.on { background: #fff3c7; }
.hud-bottom button .dot { position: absolute; }

/* ── 패널 (아래에서 올라옴) */
.panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 82px); width: min(420px, calc(100vw - 16px));
  max-height: 55vh; overflow-y: auto; background: rgba(255, 255, 255, .95); border-radius: 18px; box-shadow: 0 6px 24px rgba(75, 58, 94, .22); padding: 14px 14px 12px; font-size: 13.5px; }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.panel .x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 18px; color: var(--dim); }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin: 6px 0; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.opt.cur { border-color: var(--pink); background: #fff2f6; }
.opt[disabled] { opacity: .55; cursor: default; }
.opt .big { font-size: 22px; }
.opt small { display: block; color: var(--dim); }
.btn { border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 800; background: var(--pink); color: #fff; box-shadow: 0 2px 6px rgba(255, 127, 168, .4); }
.btn.sub { background: #efe7f7; color: var(--ink); box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: default; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 10px; }
.kv b { font-weight: 700; }
.slot { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #faf6ff; margin: 5px 0; }
.slot .nm { font-weight: 800; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.sw { width: 46px; height: 26px; border-radius: 13px; border: 0; background: #d9cfe4; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sw.on { background: var(--mint); } .sw.on::after { left: 23px; }
.lifes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.life { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 6px; padding: 7px 9px; border-radius: 12px; background: #f4fbef; }
.life .ic { font-size: 18px; grid-row: span 2; } .life .bar { grid-column: 2 / -1; height: 5px; } .life .bar i { background: var(--life); }
.mats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 4px; font-size: 12.5px; }
.sec { margin: 12px 0 2px; font-weight: 800; }
.slot.cur { background: #fff3cc; }
.slot small { color: var(--dim); }
.lack { color: #e0577a; font-weight: 800; }
.newslist { margin: 0; padding: 0; list-style: none; }
.newslist li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.newslist li .when { color: var(--dim); font-size: 11px; margin-right: 4px; }

/* ── 밤 결산 카드 */
.card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(90, 80, 140, .25); padding: 16px; }
.card-in { width: min(360px, 100%); background: linear-gradient(#fffaf2, #fff); border-radius: 22px; box-shadow: 0 10px 40px rgba(60, 40, 100, .3); padding: 18px 18px 14px; text-align: center; animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.card-in h3 { margin: 0 0 4px; font-size: 19px; }
.card-in .sub { color: var(--dim); font-size: 12px; margin-bottom: 10px; }
.card-in .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.card-in .grid div { background: #f7f2ff; border-radius: 12px; padding: 7px 4px; font-size: 11px; color: var(--dim); }
.card-in .grid b { display: block; font-size: 16px; color: var(--ink); }
.card-in .lvl { font-size: 14px; margin: 8px 0; }
.card-in .bonus { background: #fff3cc; border-radius: 14px; padding: 9px; margin: 10px 0; font-weight: 800; color: #b46d00; }
.card-in .bonus small { display: block; font-weight: 600; color: #a0805a; font-size: 11px; margin-top: 2px; }
.card-in ul { text-align: left; margin: 6px 0 12px; padding-left: 18px; font-size: 12px; color: var(--dim); }
.card-in .grid b.sm { font-size: 12px; letter-spacing: -.3px; }
.card-in .grid small { font-size: 10px; color: #c0607a; }
.lifeRow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 12px; color: var(--dim); }
.lifeRow b { color: #3f9a5a; }
.card-in.jobs { width: min(400px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.opt.job small.st { font-size: 11px; color: #a08ab4; }
.modal .card-in.jobs { max-width: 400px; }
.jobgrid { display: grid; gap: 0 8px; margin-bottom: 8px; }
.jobgrid .opt { margin: 4px 0; }

/* ── 제목 */
#title { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 9vh);
  background: linear-gradient(rgba(255, 240, 246, 0) 30%, rgba(255, 240, 246, .8)); }
.t-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo { font-size: 64px; font-weight: 900; letter-spacing: 6px; color: var(--pink);
  text-shadow: 0 0 0 #fff, 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 6px 16px rgba(255, 127, 168, .5); }
.t-sub { font-size: 16px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 3px 14px; border-radius: 999px; margin-bottom: 8px; }
#title .btn { min-width: 210px; font-size: 17px; padding: 12px 18px; }
#title .btn small { display: block; font-size: 11px; font-weight: 600; opacity: .9; }
.ver { font-size: 11px; color: var(--dim); margin-top: 4px; }
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(90, 80, 140, .25); }
.modal .card-in { max-width: 320px; }
.botbadge { position: fixed; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); background: rgba(75, 58, 94, .75); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 8px; pointer-events: none; }

/* ── PC 가로 (넓은 화면): 위 막대 한 줄 */
/*    🐾 v0.2: --ui 비율로 키움 (v0.1.1 은 1260 넓이에서 HUD·단추가 작았음) */
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  .hud-top { grid-template-columns: auto minmax(220px, 300px) auto; justify-content: center; transform: scale(var(--ui)); transform-origin: top center; }
  .res { max-width: none; flex-wrap: nowrap; }
  .me { grid-column: auto; }
  .doing { transform: translateX(-50%) scale(var(--ui)); transform-origin: top center; }   /* top 은 ui.js 가 위 HUD 바로 밑으로 */
  .feed { bottom: 18px; transform: scale(var(--ui)); transform-origin: bottom left; }
  .hud-bottom { left: auto; right: 14px; transform: scale(var(--ui)); transform-origin: bottom right; bottom: 14px; }
  .panel { left: auto; right: 14px; bottom: calc(18px + 66px * var(--ui)); transform: scale(var(--ui)); transform-origin: bottom right; max-height: calc((100vh - 100px * var(--ui) - 120px) / var(--ui)); }
  .card-in, .modal .card-in { zoom: var(--ui); }
  .card-in.jobs { max-height: calc((100vh - 32px) / var(--ui)); width: min(700px, calc((100vw - 32px) / var(--ui))); }
  .jobgrid { grid-template-columns: 1fr 1fr; }
  .modal .card-in.jobs { max-width: none; }
  .tag { font-size: calc(11px * (1 + (var(--ui) - 1) * .5)); }
  .num { font-size: calc(15px * (1 + (var(--ui) - 1) * .5)); }
}

/* v0.3 — 소리 단추 · 경단 · 강화·도구·마을 */
.me .row .snd { margin-left: auto; border: 0; background: rgba(255,255,255,.55); border-radius: 8px; font-size: 13px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.me .row .snd.off { opacity: .55; }
.town .bar, .upbar { height: 7px; background: #f1e6f3; border-radius: 4px; overflow: hidden; margin: 3px 0 6px; }
.town .bar i, .upbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb3d0, #ffe066); }
.town .done { color: #3fa070; }
.bosslog { margin: 6px 0; padding-left: 0; list-style: none; font-size: 12px; }
.bosslog li { padding: 2px 0; border-bottom: 1px dashed #e8dcea; }
.card .spend { font-size: 12px; color: #7a6a88; margin-top: 4px; }

/* ── v0.5 생활 끈 판 · 얻은 장비 줄 · 창(캐릭터·가방·자세히) */
body.lifeoff .lifeonly { display: none !important; }
.loot { position: absolute; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 150px); display: flex; flex-direction: column; gap: 3px; align-items: flex-end; pointer-events: none; max-width: 70vw; }
.loot div { background: rgba(255, 255, 255, .82); border-left: 4px solid var(--gc); border-radius: 9px; padding: 3px 8px; font-size: 12px; box-shadow: 0 1px 4px rgba(75, 58, 94, .12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot div b { color: var(--gc); }
.loot div.g0 { opacity: .8; } .loot div.g0 b { color: #8a7f74; }
.loot div.g3 { background: linear-gradient(90deg, #fff4d0, #fff); box-shadow: 0 0 10px rgba(232, 162, 26, .55); }
.plus { color: #2fa36b; font-weight: 800; } .minus { color: #d0506a; font-weight: 800; }
.wins { position: absolute; left: 10px; top: calc(env(safe-area-inset-top, 0px) + 96px); display: flex; gap: 8px; align-items: flex-start; pointer-events: auto; max-height: calc(100vh - 120px); }
.win { width: 320px; background: rgba(255, 252, 248, .96); border-radius: 18px; box-shadow: 0 6px 24px rgba(60, 40, 100, .22); padding: 10px 12px 12px; position: relative; max-height: calc(100vh - 130px); overflow-y: auto; }
.win .wh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.win .x, .wtabs .x { border: 0; background: none; font-size: 17px; color: var(--dim); }
.win .tip { margin-top: 6px; font-size: 11px; }
.who { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.who .big { font-size: 30px; } .who .pow { font-weight: 800; color: #c0607a; }
.doll { display: grid; grid-template-columns: 64px 1fr 64px; gap: 6px; align-items: center; background: linear-gradient(#f6efff, #fff6ee); border-radius: 14px; padding: 8px; }
.doll .col { display: flex; flex-direction: column; gap: 6px; }
.doll .mid { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.doll .mid .big { font-size: 64px; filter: drop-shadow(0 4px 6px rgba(80, 50, 120, .25)); }
.cell { position: relative; width: 100%; aspect-ratio: 1; border: 2px solid var(--gc, #d9cfe4); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.cell .ic { font-size: 24px; line-height: 1; }
.cell .il { position: absolute; right: 3px; bottom: 1px; font-size: 9px; font-weight: 800; color: var(--dim); }
.cell .up { position: absolute; left: 3px; top: 1px; font-size: 10px; font-weight: 900; color: #e07a1a; }
.cell .upg { position: absolute; left: 3px; top: 0; font-size: 11px; font-weight: 900; color: #2fa36b; }
.cell .lk { position: absolute; right: 2px; top: 0; font-size: 9px; }
.cell .nm { position: absolute; bottom: 2px; font-size: 9px; color: var(--dim); }
.cell.g1 { background: #f2f8ff; } .cell.g2 { background: #f6f0ff; } .cell.g3 { background: #fff6e0; box-shadow: 0 0 8px rgba(232, 162, 26, .5); }
.cell.empty { border-style: dashed; } .cell .dimic { opacity: .35; }
.cell.sel { outline: 3px solid var(--pink); outline-offset: 1px; }
.cell.void { border: 2px dashed rgba(75, 58, 94, .1); background: rgba(255, 255, 255, .4); }
.cell.pot { --gc: #ff8fa3; background: #fff0f3; }
.stats { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 8px; font-size: 12px; margin-top: 8px; }
.stats span { color: var(--dim); } .stats b { text-align: right; }
.winv .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.money { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.wbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wbtns .btn { padding: 7px 10px; font-size: 12px; }
.wsws { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 12px; }
.wsw { display: flex; gap: 8px; align-items: center; }
.wsw .sw { transform: scale(.8); transform-origin: left center; }
.wmsg { margin-top: 6px; color: #c0607a; font-weight: 700; font-size: 12px; }
.wdet { width: 280px; }
.ilines { margin: 6px 0; padding-left: 16px; font-size: 13px; }
.ilines li.opt { color: #6f55c9; font-weight: 700; list-style: none; margin-left: -14px; }
.cmp { background: #f7f2ff; border-radius: 10px; padding: 6px 8px; font-size: 12px; }
.cmp div { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.uprow { margin-top: 8px; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.uprow .btn { padding: 6px 10px; font-size: 12px; }
.wtabs { display: flex; gap: 6px; align-items: center; }
.wtabs button:not(.x) { flex: 1; border: 0; border-radius: 12px; padding: 7px; background: #efe7f7; font-weight: 800; }
.wtabs button.on { background: #fff3c7; }
.wtabs .x { margin-left: auto; }
/* 폰 세로: 아래에서 올라오는 한 장 (탭) */
.wins.narrow { left: 6px; right: 6px; top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); flex-direction: column; gap: 6px; background: rgba(255, 252, 248, .97); border-radius: 18px; box-shadow: 0 6px 24px rgba(60, 40, 100, .25); padding: 8px; max-height: 72vh; overflow-y: auto; }
.wins.narrow .win { width: 100%; box-shadow: none; padding: 4px 2px; max-height: none; overflow: visible; background: none; }
.wins.narrow .wdet { background: #fff; border: 2px solid #f0e6f6; padding: 8px; order: -1; }
.wins.narrow .wtabs { order: -2; position: sticky; top: -8px; z-index: 2; background: rgba(255, 252, 248, .97); padding: 2px 0; }
.wtabs button:not(.x) { white-space: nowrap; }
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  .wins { transform: scale(var(--ui)); transform-origin: top left; max-height: calc((100vh - 120px) / var(--ui)); }
  .win { max-height: calc((100vh - 140px) / var(--ui)); }
  .loot { transform: scale(var(--ui)); transform-origin: top right; top: calc(110px * var(--ui)); }
}

/* ── v0.6 기술 줄 (아래 가운데 · 키 1~4 · 5 물약 · A 자동) */
.skillbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); display: flex; gap: 5px; align-items: flex-end; }
.skillbar .sk { position: relative; width: 50px; height: 50px; border: 2px solid #e6d8f2; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; }
.skillbar .sk .ic { font-size: 23px; line-height: 1; }
.skillbar .sk .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(75, 58, 94, .45); color: #fff; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.skillbar .sk .kb { position: absolute; right: 3px; top: 1px; font-size: 9px; font-weight: 900; color: var(--dim); }
.skillbar .sk .nm { position: absolute; left: 0; right: 0; bottom: 1px; font-size: 8px; font-weight: 700; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; }
.skillbar .sk.lock { opacity: .45; filter: grayscale(.8); }
.skillbar .sk.pot { border-color: #ffc0cc; }
.skillbar .sk.auto { margin-left: 6px; border-color: #c8e8d8; }
.skillbar .sk.auto.on { background: #e8fff2; border-color: var(--mint); }
.sbmsg { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); background: rgba(75, 58, 94, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 9px; white-space: nowrap; pointer-events: none; }
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  .skillbar { bottom: calc(18px + 70px * var(--ui)); transform: translateX(-50%) scale(var(--ui)); transform-origin: bottom center; }   /* 오른쪽 아래 메뉴 줄과 안 겹치게 한 줄 위 */
  .skillbar .sk { width: 56px; height: 56px; }
  .feed { max-width: min(380px, calc((50vw - 230px * var(--ui)) / var(--ui) - 8px)); }   /* 가운데 기술 줄 밑으로 안 들어가게 */
}

/* ── v0.7 미니지도 (오른쪽 위 · 누르면 큰 지도) · 큰 지도 (M) */
.minimap { position: absolute; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 150px); width: 104px; height: 104px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); background: #9fcf8e; overflow: visible; cursor: pointer; }
.minimap canvas { width: 100%; height: 100%; border-radius: 50%; display: block; }
.minimap .mmname { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: rgba(255, 255, 255, .9); border-radius: 8px; padding: 1px 7px; font-size: 10.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 1px 4px rgba(75, 58, 94, .15); }
.minimap .mmkey { position: absolute; right: 2px; top: 2px; background: rgba(75, 58, 94, .75); color: #fff; font-size: 9px; font-weight: 900; border-radius: 6px; padding: 0 4px; }
.loot { top: calc(env(safe-area-inset-top, 0px) + 266px); }
.bigmap { position: absolute; inset: 0; background: rgba(40, 30, 60, .45); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 10px; }
.bigmap .bm-in { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 12px 12px; width: min(96vw, 980px); max-height: 94vh; display: flex; flex-direction: column; gap: 6px; }
.bigmap .bm-head { display: flex; align-items: center; gap: 10px; }
.bigmap .bm-head .x { margin-left: auto; position: static; }
.bigmap .bm-cv { flex: none; display: flex; justify-content: center; align-items: center; height: min(70vh, 640px); width: 100%; }
.bigmap canvas { border-radius: 12px; cursor: crosshair; max-width: 100%; }
.bigmap .bm-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--dim); }
.bigmap .bm-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
@media (min-aspect-ratio: 1/1) and (min-width: 760px) {
  .minimap { top: 14px; right: 14px; width: 150px; height: 150px; transform: scale(var(--ui)); transform-origin: top right; }
  .loot { top: calc(190px * var(--ui)); }
}
/* v0.11 저녁 쉬기 선택 · 큰 지도 자동 이동 단추 (WO-ASTA-014) */
.restask { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 92px); transform: translateX(-50%); z-index: 30; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); backdrop-filter: blur(4px); }
.restask b { font-size: 13px; width: 100%; text-align: center; }
.restask .btn { display: flex; flex-direction: column; align-items: center; padding: 7px 14px; font-size: 14px; }
.restask .btn small { font-size: 10.5px; font-weight: 600; opacity: .85; }
.restask .btn.cur { outline: 3px solid #ffcf3a; }
.bigmap .bm-go { display: flex; flex-wrap: wrap; gap: 6px; }
.bigmap .bm-go button { border: 0; border-radius: 12px; padding: 6px 10px; background: #efe7f7; color: var(--ink); font-weight: 800; font-size: 13px; display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; }
.bigmap .bm-go button small { font-size: 10.5px; font-weight: 600; color: var(--dim); }
.bigmap .bm-go button.cur { background: #d8f5e6; outline: 2px solid #5cc99a; }
.bigmap .bm-go button[disabled] { opacity: .45; cursor: default; }
.bigmap .bm-go .stop { background: #ffe1e6; }
@media (max-width: 520px) { .bigmap .bm-go button { padding: 5px 8px; font-size: 12px; } .bigmap .bm-cv { height: min(52vh, 640px); } }