/* 워드비스트 — 따뜻한 판타지 자연 생물. 모바일 세로 우선(360px), 전투·10회 결과는 스크롤 없이. */
:root{
 --bg:#143a35;--bg2:#1f4f47;--panel:#fff8ec;--panel-2:#f3e7d1;--ink:#2b2420;--muted:#6e6259;--line:#e2d3b8;
 --accent:#f08a3c;--accent-2:#c95f22;--good:#3f9f5f;--bad:#d8503f;--gold:#e9b949;--water:#4e9ec9;--grass:#4f9a5a;--fire:#f08a3c;
 --common:#b3bdb7;--advanced:#5ccf84;--rare:#4f9fe6;--epic:#a977ff;--legend:#ffc53d;--mythic:#ff5fb8;
 --radius:16px;--shadow:0 10px 30px rgba(0,0,0,.25);
 --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}html,body{margin:0;height:100%}
body{font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;background:radial-gradient(120% 80% at 50% 0%,var(--bg2),var(--bg) 70%);color:var(--ink);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;line-height:1.4}
button{font:inherit;cursor:pointer}button:disabled{cursor:default}
#app{min-height:100dvh;display:flex;flex-direction:column}
#topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;padding:calc(var(--safe-t) + 8px) 12px 8px;background:rgba(20,58,53,.92);backdrop-filter:blur(6px);color:#fff}
#topbar[hidden],#tabbar[hidden]{display:none}
.brand{display:flex;flex-direction:column;line-height:1.1;margin-right:auto}.brand b{letter-spacing:.14em;font-size:13px}.brand span{font-size:10px;opacity:.75}
.wallet{display:flex;gap:6px}.chip{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.top-icons{display:flex;gap:4px}.icon-btn{width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff;font-size:17px}
#view{flex:1;display:flex;flex-direction:column;min-height:0}
#tabbar{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:6px 8px calc(var(--safe-b) + 6px);background:rgba(20,58,53,.96);border-top:1px solid rgba(255,255,255,.1)}
.tab{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 2px;border:0;border-radius:12px;background:transparent;color:rgba(255,255,255,.7);font-size:11px;font-weight:700;min-height:50px}
.tab.on{background:rgba(255,255,255,.14);color:#fff}.tab-icon{font-size:19px}
.screen{padding:14px 14px calc(var(--safe-b) + 18px);max-width:560px;width:100%;margin:0 auto;color:#fff}
.screen h2{margin:10px 0 4px;font-size:20px}.screen h3{margin:14px 0 6px;font-size:14px;opacity:.9}
.muted{color:rgba(255,255,255,.72);font-size:12.5px}.fine{font-size:11px;color:rgba(255,255,255,.6);line-height:1.5}
.card .muted,.card .fine,.modal-card .muted{color:var(--muted)}.modal-card .fine{color:#8a7f74}
.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;padding:24px;text-align:center}
.spinner{width:34px;height:34px;border-radius:50%;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:800;font-size:15px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:transform .1s,filter .1s}
.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.45;filter:grayscale(.3)}
.btn.primary{background:linear-gradient(180deg,#ffb15c,var(--accent) 60%,var(--accent-2));color:#2b1a0a;box-shadow:0 6px 16px rgba(240,138,60,.35),inset 0 1px 0 rgba(255,255,255,.5)}
.btn.ghost{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.25)}
.modal-card .btn.ghost,.learn-card .btn.ghost,.learn-feedback .btn.ghost,.learn-tools .btn.ghost{background:#efe3cc;color:var(--ink);border-color:var(--line)}
.btn.danger{background:#d8503f;color:#fff}.btn.big{width:100%;font-size:16px;min-height:52px}.btn.small{min-height:38px;padding:8px 12px;font-size:13px}.btn.tiny{min-height:36px;min-width:40px;padding:6px 10px;font-size:12px;border-radius:10px}
body.busy .btn.primary{filter:saturate(.7)}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:800;background:#ddd;color:#333;vertical-align:middle}
.badge.rarity-common{background:#e6eae7;color:#49544d}.badge.rarity-advanced{background:#d9f7e4;color:#15713f}.badge.rarity-mythic{background:#ffd9ef;color:#a3146b}.badge.rarity-rare{background:#d6eaff;color:#1f5fa8}.badge.rarity-epic{background:#e9dcff;color:#5d33b8}.badge.rarity-legendary{background:#fff0c2;color:#8a5d00}
.badge.temp{background:#ffe2e2;color:#9b2a2a;border:1px dashed #d88}
#toast{position:fixed;left:50%;bottom:calc(var(--safe-b) + 84px);transform:translate(-50%,20px);opacity:0;background:#2b2420;color:#fff;padding:10px 16px;border-radius:12px;font-size:13px;z-index:200;transition:.2s;pointer-events:none;max-width:88vw;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}#toast.bad{background:#8a2d22}

/* 모달 */
.modal-back{position:fixed;inset:0;z-index:150;background:rgba(6,20,18,.6);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .18s;padding:0}
.modal-back.show{opacity:1}
.modal-card{background:var(--panel);color:var(--ink);width:100%;max-width:560px;max-height:90dvh;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:22px 22px 0 0;padding:18px 16px calc(var(--safe-b) + 16px);box-shadow:var(--shadow);transform:translateY(16px);transition:transform .2s}
.modal-back.show .modal-card{transform:none}
.modal-title{margin:0 0 10px;font-size:18px}.modal-body p{margin:6px 0;font-size:14px}
.modal-actions{display:flex;gap:8px;margin-top:14px;position:sticky;bottom:calc(var(--safe-b) * -1 - 16px);background:linear-gradient(180deg,rgba(255,248,236,0),var(--panel) 28%);padding:10px 0 calc(var(--safe-b) + 6px)}.modal-actions .btn{flex:1}
@media(min-width:560px){.modal-back{align-items:center;padding:20px}.modal-card{border-radius:22px}}

/* 몬스터 SVG 상태 애니메이션 */
svg.beast{width:100%;height:100%;overflow:visible;display:block}
svg.beast .b-root{transform-box:view-box;transform-origin:100px 176px;animation:bIdle 2.6s ease-in-out infinite}
svg.beast .b-tail{transform-box:view-box;animation:bWag 1.9s ease-in-out infinite}
svg.beast .b-head{transform-box:view-box;animation:bHead 3.4s ease-in-out infinite}
svg.beast .b-fx{transform-box:view-box;animation:bFlicker 1s ease-in-out infinite alternate}
svg.beast .b-blink{transform-box:view-box;animation:bBlink 4.6s infinite}
svg.beast .b-arm{transform-box:view-box;animation:bArm 2.8s ease-in-out infinite}
@keyframes bIdle{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-3px) scale(1.01,.99)}}
@keyframes bWag{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(7deg)}}
@keyframes bHead{0%,100%{transform:rotate(0)}30%{transform:rotate(-2.5deg)}60%{transform:rotate(2deg)}}
@keyframes bFlicker{0%{transform:scale(1,1)}100%{transform:scale(1.08,.94)}}
@keyframes bArm{0%,100%{transform:rotate(0)}50%{transform:rotate(-7deg)}}
@keyframes bBlink{0%,92%,100%{transform:scaleY(0)}95%{transform:scaleY(1)}}
svg.beast .b-blink rect{fill:#2b2420}
svg.beast.is-attack .b-root{animation:bAttack .5s cubic-bezier(.3,.8,.3,1)}
@keyframes bAttack{0%{transform:translate(0,0)}30%{transform:translate(-6px,2px) scale(.96)}60%{transform:translate(22px,-10px) scale(1.06)}100%{transform:translate(0,0)}}
svg.beast.is-hit .b-root{animation:bHit .5s ease-out}
@keyframes bHit{0%{transform:translateX(0);filter:brightness(1)}20%{transform:translateX(-9px) rotate(-4deg);filter:brightness(1.8) sepia(.6) hue-rotate(-30deg) saturate(2)}50%{transform:translateX(6px)}100%{transform:none;filter:none}}
svg.beast.is-special .b-root{animation:bSpecial .9s ease-in-out}
@keyframes bSpecial{0%{transform:scale(1);filter:brightness(1)}25%{transform:scale(1.12) translateY(-10px);filter:brightness(1.5) drop-shadow(0 0 12px #ffd27a)}55%{transform:scale(1.08) translateY(-6px);filter:brightness(1.3) drop-shadow(0 0 18px #ffb13b)}100%{transform:scale(1);filter:none}}
svg.beast.is-win .b-root{animation:bWin .6s ease-in-out 2}
@keyframes bWin{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px) rotate(-4deg)}}
.unit.is-down svg.beast .b-root,.is-down svg.beast .b-root{animation:none;transform:rotate(-70deg) translate(10px,28px);filter:grayscale(1) brightness(.6);transition:transform .5s,filter .5s}
.unit.is-down{opacity:.55}
svg.beast.enemy .b-root{transform-origin:100px 182px}
@media(prefers-reduced-motion:reduce){svg.beast *{animation-duration:.01s!important}}

/* 시작 화면 */
.logo{text-align:center;padding:18px 0 4px}.logo b{display:block;font-size:30px;letter-spacing:.18em;background:linear-gradient(180deg,#fff4d6,#ffc46a 50%,#e2832f);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 0 rgba(0,0,0,.35))}
.logo span{display:block;margin:6px auto 0;max-width:34ch;font-size:12.5px;color:rgba(255,255,255,.8);line-height:1.5}
.logo.small b{font-size:22px}
.starter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.starter{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px 12px;border-radius:18px;border:2px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;text-align:center;transition:.15s}
.starter.on{border-color:var(--gold);background:rgba(255,255,255,.18);box-shadow:0 0 0 3px rgba(233,185,73,.25),0 10px 24px rgba(0,0,0,.3);transform:translateY(-3px)}
.starter-art{width:100%;aspect-ratio:1;max-width:120px}.starter b{font-size:14px}.starter-role{font-size:11px;color:#ffe6b3}.starter small{font-size:10.5px;line-height:1.35;color:rgba(255,255,255,.75);word-break:keep-all}
.start .btn.big{margin-top:6px}.start .fine{text-align:center;margin-top:10px}

/* 부화 */
.first-summon{align-items:center;text-align:center;display:flex;flex-direction:column;gap:10px}
.egg-pile{width:150px;margin:0 auto}.egg-pile.small{width:64px;margin:0}
.egg{width:100%;height:auto;display:block}
.hatch-back{position:fixed;inset:0;z-index:120;background:radial-gradient(80% 60% at 50% 40%,#2a5a50,#0e2320 80%);display:flex;align-items:center;justify-content:center;padding:14px}
.hatch-stage{width:100%;max-width:520px;text-align:center;color:#fff;display:flex;flex-direction:column;align-items:center;gap:10px;max-height:100dvh}
.hatch-count{font-size:12px;opacity:.7}.hatch-hint{font-size:12px;opacity:.6}
.egg-tier{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1.5px solid rgba(255,255,255,.3);font-size:14px}.egg-tier .tier-stars{font-size:14px}
.egg-tier.rarity-epic{border-color:var(--epic);background:rgba(155,110,240,.3)}.egg-tier.rarity-legendary{border-color:var(--legend);background:rgba(240,180,41,.3)}.egg-tier.rarity-mythic{border-color:var(--mythic);background:rgba(255,95,184,.35);animation:glow .7s ease-in-out infinite alternate}
.egg-wrap.rarity-legendary{filter:drop-shadow(0 0 14px rgba(240,180,41,.8))}.egg-wrap.rarity-mythic{filter:drop-shadow(0 0 18px rgba(255,95,184,.9))}.egg-wrap.rarity-epic{filter:drop-shadow(0 0 10px rgba(155,110,240,.7))}
.egg-wrap{width:150px}.egg-wrap.wobble .egg-body{transform-box:view-box;transform-origin:60px 130px;animation:wob .55s ease-in-out}
@keyframes wob{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg)}50%{transform:rotate(8deg)}75%{transform:rotate(-5deg)}}
.reveal{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;animation:pop .5s cubic-bezier(.2,.9,.3,1.3)}
@keyframes pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
.reveal-glow{position:absolute;inset:-30px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.35),transparent 60%);z-index:-1}
.reveal.rarity-mythic .reveal-glow{background:radial-gradient(circle,rgba(255,95,184,.85),transparent 65%);animation:glow .6s ease-in-out infinite alternate}.reveal.rarity-rare .reveal-glow{background:radial-gradient(circle,rgba(79,159,230,.6),transparent 60%)}.reveal.rarity-epic .reveal-glow{background:radial-gradient(circle,rgba(155,110,240,.7),transparent 60%);animation:glow 1.2s ease-in-out infinite alternate}.reveal.rarity-legendary .reveal-glow{background:radial-gradient(circle,rgba(240,180,41,.8),transparent 65%);animation:glow .8s ease-in-out infinite alternate}
@keyframes glow{from{transform:scale(.9)}to{transform:scale(1.15)}}
.reveal-art{width:190px}.reveal.big .reveal-art{width:240px}.reveal-text b{display:block;font-size:22px}.reveal-text span{font-size:13px;opacity:.85}
.reveal-tier{display:inline-flex;align-items:center;gap:8px;padding:6px 18px;border-radius:999px;font-size:16px;font-weight:900;border:2px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12)}.reveal-tier .tier-stars{font-size:16px}
.reveal.rarity-common .reveal-tier{border-color:#c6cfc9;background:rgba(179,189,183,.25)}.reveal.rarity-advanced .reveal-tier{border-color:var(--advanced);background:rgba(92,207,132,.32)}.reveal.rarity-rare .reveal-tier{border-color:var(--rare);background:rgba(79,159,230,.3)}
.reveal.rarity-epic .reveal-tier{border-color:#d7b6ff;background:rgba(155,110,240,.45);box-shadow:0 0 14px rgba(155,110,240,.6)}
.reveal.rarity-legendary .reveal-tier{border-color:#ffd96b;background:rgba(240,180,41,.5);color:#fff4c2;box-shadow:0 0 16px rgba(240,180,41,.7)}
.reveal.rarity-mythic .reveal-tier{border-color:#ffb1e0;background:linear-gradient(90deg,rgba(255,95,184,.6),rgba(127,168,255,.6));box-shadow:0 0 20px rgba(255,95,184,.8)}
.reveal-rays{position:absolute;inset:-60px;z-index:-2;border-radius:50%;opacity:0}
.reveal.rarity-legendary .reveal-rays,.reveal.rarity-mythic .reveal-rays{opacity:.55;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.35) 0 6deg,transparent 6deg 18deg);animation:spin 14s linear infinite;mask:radial-gradient(circle,#000 20%,transparent 70%);-webkit-mask:radial-gradient(circle,#000 20%,transparent 70%)}
.reveal.rarity-mythic .reveal-rays{opacity:.7;background:repeating-conic-gradient(from 0deg,rgba(255,170,220,.6) 0 6deg,rgba(150,200,255,.3) 6deg 12deg,transparent 12deg 20deg)}
.reveal.rarity-epic .reveal-rays{opacity:.3;background:repeating-conic-gradient(from 0deg,rgba(200,160,255,.5) 0 5deg,transparent 5deg 20deg);animation:spin 18s linear infinite;mask:radial-gradient(circle,#000 15%,transparent 65%);-webkit-mask:radial-gradient(circle,#000 15%,transparent 65%)}
.hatch-best{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:8px 12px;width:100%}
.hatch-best-art{width:72px;flex:none}.hatch-best-text{text-align:left;display:flex;flex-direction:column;gap:2px}.hatch-best-text b{font-size:16px}.hatch-best-text span{font-size:12px;opacity:.85}
.hatch-best.rarity-mythic{border-color:var(--mythic)}.hatch-best.rarity-legendary{border-color:var(--legend)}.hatch-best.rarity-epic{border-color:var(--epic)}.hatch-best.rarity-rare{border-color:var(--rare)}
.hatch-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:100%}
.hatch-cell{background:rgba(255,255,255,.1);border:2px solid rgba(255,255,255,.18);border-radius:12px;padding:4px 2px;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:10px;cursor:pointer}
.hatch-cell b{font-size:10px;line-height:1.15;max-width:100%;word-break:keep-all;overflow-wrap:anywhere}.hatch-cell small{opacity:.85;font-size:9.5px}
/* 등급별 카드 프레임: 색 + 두께 + 배경 + 등급 글자 + 별 개수로 구분 */
.hatch-cell{position:relative;overflow:hidden;padding-top:16px}
.cell-tier{position:absolute;top:0;left:0;right:0;font-size:9.5px;font-weight:800;letter-spacing:.04em;padding:1px 0;background:rgba(255,255,255,.12);color:#fff}
.hatch-cell.rarity-common{border-color:rgba(179,189,183,.55);background:rgba(179,189,183,.1)}.hatch-cell.rarity-common .cell-tier{background:rgba(179,189,183,.4)}
.hatch-cell.rarity-advanced{border-color:var(--advanced);background:linear-gradient(180deg,rgba(92,207,132,.32),rgba(92,207,132,.1))}.hatch-cell.rarity-advanced .cell-tier{background:var(--advanced);color:#07301a}
.hatch-cell.rarity-rare{border-color:var(--rare);background:linear-gradient(180deg,rgba(79,159,230,.35),rgba(79,159,230,.12))}.hatch-cell.rarity-rare .cell-tier{background:var(--rare)}
.hatch-cell.rarity-epic{border-color:#c48bff;border-width:3px;background:linear-gradient(180deg,rgba(155,110,240,.5),rgba(155,110,240,.18));box-shadow:0 0 12px rgba(155,110,240,.5)}.hatch-cell.rarity-epic .cell-tier{background:var(--epic)}
.hatch-cell.rarity-legendary{border-color:#ffd96b;border-width:3px;background:linear-gradient(180deg,rgba(240,180,41,.55),rgba(240,180,41,.2));box-shadow:0 0 16px rgba(240,180,41,.6)}.hatch-cell.rarity-legendary .cell-tier{background:var(--legend);color:#3a2600}
.hatch-cell.rarity-mythic{border-color:#ff9ad6;border-width:3px;background:linear-gradient(160deg,rgba(255,95,184,.55),rgba(120,160,255,.4),rgba(255,95,184,.25));box-shadow:0 0 18px rgba(255,95,184,.75)}.hatch-cell.rarity-mythic .cell-tier{background:linear-gradient(90deg,var(--mythic),#7fa8ff);color:#fff}
.tier-stars{font-size:9px;letter-spacing:-.5px;line-height:1;color:#cfd8d3}.tier-stars.rarity-common{color:#c6cfc9}.tier-stars.rarity-advanced{color:#7ce3a2}.tier-stars.rarity-rare{color:#8fc8ff}.tier-stars.rarity-epic{color:#d7b6ff}.tier-stars.rarity-legendary{color:#ffd96b}.tier-stars.rarity-mythic{color:#ffb1e0;text-shadow:0 0 6px rgba(255,95,184,.9)}
.hatch-tally{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.tally{display:inline-flex;align-items:center;gap:4px;font-size:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 9px}.tally b{font-size:12px}.tally i{font-style:normal;opacity:.8}.tally .tier-stars{font-size:11px}
.tally.rarity-advanced{border-color:var(--advanced)}.tally.rarity-rare{border-color:var(--rare)}.tally.rarity-epic{border-color:var(--epic)}.tally.rarity-legendary{border-color:var(--legend)}.tally.rarity-mythic{border-color:var(--mythic)}
.best-label{font-size:11px;opacity:.75}.best-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.hatch-best.rarity-common{border-color:rgba(179,189,183,.5)}.hatch-best.rarity-advanced{border-color:var(--advanced)}
.hatch-cell.new{box-shadow:0 0 0 2px rgba(255,255,255,.5) inset}.hatch-cell.new small{color:#ffe08a;font-weight:800;opacity:1}
.hatch-cell-art{width:100%;aspect-ratio:1}
.hatch-note{font-size:11.5px;opacity:.8;margin:0}.hatch-actions{display:flex;gap:8px;width:100%}.hatch-actions .btn{flex:1}
.hatch-head{display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.08);border-radius:16px;padding:10px}
.hatch-head b{display:block;font-size:18px}.hatch-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.pity{background:rgba(255,255,255,.08);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.pity-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:12.5px}.pity-row b{min-width:40px;text-align:right}
.bar{height:8px;border-radius:999px;background:rgba(0,0,0,.35);overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--rare),var(--epic));border-radius:inherit}.bar.legend i{background:linear-gradient(90deg,#ffd27a,var(--legend))}.bar.epic i{background:linear-gradient(90deg,#c9a6ff,var(--epic))}
.log{display:flex;flex-direction:column;gap:6px}.log-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;background:rgba(255,255,255,.06);border-radius:10px;padding:6px 10px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:3px;background:#cfd8d3}.dot.rarity-rare{background:var(--rare)}.dot.rarity-epic{background:var(--epic)}.dot.rarity-legendary{background:var(--legend)}.dot.rarity-mythic{background:var(--mythic)}.dot.rarity-advanced{background:var(--advanced)}.dot.rarity-common{background:var(--common)}
.odds table{width:100%;border-collapse:collapse;font-size:12.5px;margin:6px 0}.odds th,.odds td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--line)}

/* 편성 */
.section-head{display:flex;flex-direction:column}
.slots{display:flex;flex-direction:column;gap:8px;margin:8px 0}.row-front{display:flex;justify-content:center}.row-back{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.slot{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px;border-radius:16px;border:2px dashed rgba(255,255,255,.3);background:rgba(255,255,255,.07);color:#fff;min-height:132px;width:100%}
.slot.slot-front{max-width:200px}.slot.sel{border-style:solid;border-color:var(--gold);background:rgba(233,185,73,.14)}
.slot small{font-size:10.5px;opacity:.75}.slot b{font-size:13px}.slot-art{width:84px;height:84px}.slot-empty{width:84px;height:84px;display:flex;align-items:center;justify-content:center;font-size:30px;opacity:.6}
.owned{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.own{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:14px;border:2px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff}
.own.in{border-color:rgba(255,255,255,.5)}.own em{position:absolute;top:6px;right:6px;font-style:normal;font-size:9.5px;background:var(--gold);color:#3a2a00;padding:1px 6px;border-radius:999px;font-weight:800}
.own-art{width:70px;height:70px}.own b{font-size:12px}
.region-card{margin:14px 0 10px;background:rgba(255,255,255,.1);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:4px}.region-card b{font-size:15px}.region-card span{font-size:12.5px}.region-card em{font-style:normal;font-size:11px;color:#ffe6b3}

/* 탐험 · 전투 */
.exp{display:flex;flex-direction:column;height:100dvh;min-height:100dvh;color:#fff}
.exp-top{padding:calc(var(--safe-t) + 6px) 12px 4px;display:flex;flex-direction:column;gap:3px;background:rgba(0,0,0,.25)}
.route{display:flex;gap:4px}.route-node{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.12);display:inline-flex;align-items:center;justify-content:center;font-size:13px;opacity:.5}
.route-node.done{opacity:.9;background:rgba(63,159,95,.5)}.route-node.now{opacity:1;background:var(--gold);box-shadow:0 0 0 3px rgba(233,185,73,.3)}
.exp-title{display:flex;justify-content:space-between;align-items:baseline;font-size:12px}.exp-title b{font-size:14px}
.exp-field{position:relative;flex:0 0 40%;min-height:230px;overflow:hidden}
.exp-field.shake{animation:shake .32s}@keyframes shake{0%,100%{transform:translate(0)}25%{transform:translate(-6px,2px)}50%{transform:translate(5px,-3px)}75%{transform:translate(-4px,1px)}}
.exp-bg,.habitat-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.bg-sky{position:absolute;inset:0}.bg-far{position:absolute;left:0;right:0;top:34%;height:36%;width:100%}.bg-near{position:absolute;left:0;right:0;bottom:0;height:34%;width:100%}
.bg-mist{position:absolute;left:-20%;right:-20%;top:40%;height:30%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:mist 9s ease-in-out infinite alternate;filter:blur(8px)}
@keyframes mist{from{transform:translateX(-6%)}to{transform:translateX(6%)}}
.bg-fireflies i{position:absolute;bottom:20%;width:5px;height:5px;border-radius:50%;background:#fff6a8;box-shadow:0 0 8px 2px rgba(255,246,168,.8);animation:fly 6s ease-in-out infinite;opacity:0}
@keyframes fly{0%{transform:translate(0,0);opacity:0}20%{opacity:.9}50%{transform:translate(12px,-40px)}80%{opacity:.6}100%{transform:translate(-8px,-80px);opacity:0}}
.enemies{position:absolute;left:0;right:0;top:8%;display:flex;justify-content:center;gap:4px;padding:0 6px}
.allies{position:absolute;left:0;right:0;bottom:4px;display:flex;justify-content:center;align-items:flex-end;gap:6px;padding:0 6px}
.unit{position:relative;width:96px;display:flex;flex-direction:column;align-items:center;gap:1px;transition:opacity .4s}
.unit.enemy{width:100px}.unit.enemy.boss{width:150px}.unit.ally.slot-front{width:104px;margin-bottom:0}.unit.ally.slot-back{width:88px;margin-bottom:12px}
.unit-art{width:100%;aspect-ratio:1}.unit.enemy .unit-art{width:80%}.unit.enemy.boss .unit-art{width:90%}
.unit-name{display:flex;align-items:center;gap:3px;font-size:10.5px;white-space:nowrap;text-shadow:0 1px 2px #000}.unit-name b{font-size:11px}.unit-name .badge{font-size:8px;padding:0 4px}
.hp{width:92%;height:7px;border-radius:999px;background:rgba(0,0,0,.5);overflow:hidden;border:1px solid rgba(255,255,255,.3)}.hp i{display:block;height:100%;background:linear-gradient(90deg,#5fd37f,#2f9d4f);transition:width .45s}
.unit.enemy .hp i{background:linear-gradient(90deg,#ff8f6a,#d8503f)}
.unit-status{font-size:11px;height:14px}
.intent{min-height:16px;font-size:10px;padding:1px 6px;border-radius:999px;background:rgba(0,0,0,.45);color:#ffe;white-space:nowrap}.intent.danger{background:#b3121f;animation:blink 1s infinite}.intent:empty{visibility:hidden}
@keyframes blink{50%{opacity:.5}}
.fx-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.float{position:absolute;transform:translate(-50%,-50%);font-weight:900;font-size:18px;color:#fff;text-shadow:0 2px 4px #000,0 0 8px rgba(0,0,0,.6);animation:floatUp .9s ease-out forwards;white-space:nowrap}
.float.dmg{color:#ffd1c4}.float.dmg.adv{color:#ffb25c;font-size:21px}.float.dmg.dis{color:#cfd8d3;font-size:15px}.float.heal{color:#8ff0a4}.float.guard{color:#9fd8ff;font-size:13px}.float.skill{color:#ffe08a;font-size:14px;letter-spacing:.04em}.float.dim{color:rgba(255,255,255,.7);font-size:12px}
@keyframes floatUp{0%{opacity:0;transform:translate(-50%,-30%) scale(.7)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}100%{opacity:0;transform:translate(-50%,-150%)}}
.exp-banner{position:absolute;left:0;right:0;top:38%;text-align:center;padding:10px;background:linear-gradient(90deg,transparent,rgba(0,0,0,.65) 20%,rgba(0,0,0,.65) 80%,transparent);opacity:0;transition:opacity .25s;pointer-events:none}
.exp-banner.show{opacity:1}.exp-banner b{display:block;font-size:20px;letter-spacing:.08em}.exp-banner span{font-size:12px;opacity:.9}
.exp-panel{flex:1;min-height:0;background:var(--panel);color:var(--ink);border-radius:20px 20px 0 0;padding:10px 12px calc(var(--safe-b) + 10px);display:flex;flex-direction:column;overflow:auto;position:relative}
/* 특수기 선택: 한 줄에 하나씩 — 큰 글자(기술명 18px), 아이콘 28px, 효과는 오른쪽 칩 */
.cmd-head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}.cmd-head b{font-size:18px}.cmd-head span{font-size:13.5px;color:#5b4d43;font-weight:700}
.cmd-row{display:flex;flex-direction:column;gap:8px}
.cmd{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;border:2.5px solid var(--line);background:#fff;color:#1f1814;min-height:66px;text-align:left;box-shadow:0 1px 0 rgba(0,0,0,.05)}
.cmd-text{display:flex;flex-direction:column;gap:2px;min-width:0}.cmd b{font-size:18px;line-height:1.15;font-weight:900}.cmd small{font-size:13px;color:#5b4d43;font-weight:700}
.cmd em{font-style:normal;font-size:12.5px;font-weight:800;line-height:1.2;color:#5b4d43;background:var(--panel-2);border-radius:10px;padding:6px 8px;max-width:92px;text-align:center}
.cmd.attack{border-color:#ffb98a}.cmd.attack em{background:#fff0e3;color:#a8541c}.cmd.defend{border-color:#9fd8a3}.cmd.defend em{background:#eaf7e8;color:#2f6b3b}.cmd.heal{border-color:#a9d4f0}.cmd.heal em{background:#e8f3fb;color:#1f5fa8}
.cmd-icon{font-size:28px;text-align:center}
.cmd:disabled{opacity:.4}
/* 갈림길: 한 줄에 하나씩 — 큰 제목(19px)과 설명(14px), 오른쪽에 보상 칩 */
.fork-row{display:flex;flex-direction:column;gap:8px}
.fork{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:10px;padding:12px;border-radius:16px;border:2.5px solid var(--line);background:#fff;color:#1f1814;text-align:left;min-height:76px;box-shadow:0 1px 0 rgba(0,0,0,.05)}
.fork-icon{font-size:28px;text-align:center}
.fork-text{display:flex;flex-direction:column;gap:3px;min-width:0}.fork b{font-size:19px;font-weight:900;line-height:1.15}.fork small{font-size:14px;color:#5b4d43;line-height:1.35;font-weight:600}
.fork em{font-style:normal;font-size:12px;font-weight:800;line-height:1.3;border-radius:10px;padding:6px 8px;max-width:92px;text-align:center;word-break:keep-all}
.fork.gold{border-color:#ffb98a}.fork.gold em{background:#fff0e3;color:#a8541c}.fork.heal{border-color:#a9d4f0}.fork.heal em{background:#e8f3fb;color:#1f5fa8}
.panel-msg{display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:center;flex:1}.panel-msg p{margin:0;font-size:15px;font-weight:700;text-align:center}.panel-msg small{text-align:center;color:var(--muted)}.panel-msg.quiet p{font-weight:600;color:var(--muted)}

/* 학습 문제 — 가독성: 핵심 하나를 크게, 보조 정보는 한 줄, 선택지는 손가락 크기, 색+글자로 구분 */
.learn-kicker{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.01em;min-height:24px}
.kicker-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:var(--panel-2);color:#5b4d43;font-size:12px}.kicker-chip.new{background:#fff0d6;color:#a8541c}
.learn-meta{font-size:12px;color:#7a6d63}
.learn-card{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.learn-word{display:flex;align-items:center;gap:12px}.learn-word-text{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.lemma{font-size:34px;font-weight:900;letter-spacing:-.01em;color:#1f1814;overflow-wrap:anywhere}.ipa{font-size:14px;color:#7a6d63;margin-top:3px;font-family:"Segoe UI","Noto Sans",system-ui,sans-serif}
.speak-btn{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:linear-gradient(180deg,#ffe3bf,#f8cf96);color:#8a4b17;font-size:20px;box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(0,0,0,.12)}.speak-btn.big{width:60px;height:60px;font-size:26px}
.learn-ko{font-size:22px;font-weight:900;color:var(--accent-2);line-height:1.2}.learn-ko.big{font-size:30px;color:#1f1814}
.learn-example{margin:0;background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.learn-example p{margin:0}.ex-en{font-size:16px;line-height:1.4;font-weight:700;color:#1f1814}.ex-en mark{background:#ffe6a6;color:#8a4b17;border-radius:4px;padding:0 3px}.ex-ko{font-size:13.5px;line-height:1.4;color:#5b4d43}
.learn-example.small .ex-en{font-size:14.5px}.learn-example.small .ex-ko{font-size:12.5px}
.learn-row{display:flex;gap:8px;align-items:center;margin-top:auto}.learn-row .btn{flex:1}
.learn-q{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.learn-prompt{display:flex;flex-direction:column;gap:4px}.learn-instruction{font-size:13.5px;color:#5b4d43;font-weight:700}
.learn-sentence{margin:0;font-size:18px;line-height:1.45;font-weight:800;color:#1f1814;word-break:normal;overflow-wrap:anywhere}.blank{color:var(--accent-2);border-bottom:3px solid var(--accent);padding:0 4px;letter-spacing:.08em}
.learn-translation{margin:0;display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.4;color:#3f352f;background:var(--panel-2);border-radius:10px;padding:7px 10px}.tr-label{flex:none;font-size:11px;font-weight:800;color:#8a4b17;background:#ffe6a6;border-radius:6px;padding:2px 6px;margin-top:1px}
.learn-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.learn-options.long{grid-template-columns:1fr}
.opt{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px;border-radius:14px;border:2px solid var(--line);background:#fff;color:#1f1814;text-align:left;font-weight:800;font-size:17px;transition:.12s;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.opt-key{flex:none;width:24px;height:24px;border-radius:8px;background:var(--panel-2);display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:#5b4d43}
.opt-text{flex:1;overflow-wrap:anywhere;line-height:1.25}
.opt:disabled{opacity:.72}.opt.eliminated{opacity:.3;text-decoration:line-through}.opt.picked{border-color:#c9b690}
.opt.is-right{border-color:var(--good);background:#e6f6ea;opacity:1}.opt.is-right .opt-key{background:var(--good);color:#fff;font-size:0}.opt.is-right .opt-key::before{content:"✓";font-size:13px}
.opt.is-wrong{border-color:var(--bad);background:#fbe8e5;opacity:1}.opt.is-wrong .opt-key{background:var(--bad);color:#fff;font-size:0}.opt.is-wrong .opt-key::before{content:"✕";font-size:13px}
.learn-q.answered{flex:none;gap:6px}.learn-q.answered .learn-options{grid-template-columns:1fr;gap:5px}.learn-q.answered .opt{min-height:38px;padding:4px 10px;font-size:15px}.learn-q.answered .opt:not(.is-right):not(.is-wrong){display:none}
.learn-q.answered .learn-tools,.learn-q.answered .learn-instruction,.learn-q.answered .learn-translation,.learn-q.answered .speak-btn{display:none}.learn-q.answered .learn-sentence{font-size:15px}.learn-q.answered .lemma{font-size:22px}.learn-q.answered .learn-ko.big{font-size:20px}.learn-q.answered .learn-kicker{display:none}
.learn-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto}.learn-note{font-size:11px;color:var(--muted);margin-left:auto}
.learn-typing{display:flex;gap:6px;flex:1}.learn-input{flex:1;min-width:0;padding:10px 12px;border-radius:12px;border:2px solid var(--line);font-size:16px}
.learn-feedback{flex:none;margin-top:4px;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px;border:2px solid;animation:pop .25s ease-out}
.learn-feedback.good{background:#e9f7ec;border-color:#9fd8ad}.learn-feedback.bad{background:#fbeae7;border-color:#f1b1a8}
.fb-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.fb-head b{font-size:18px}.fb-head span{font-size:12.5px;color:#5b4d43;font-weight:700}
.fb-word{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fb-word .lemma{font-size:26px}.fb-ko{font-weight:900;color:var(--accent-2);font-size:20px;margin-left:auto}
.learn-feedback .btn{align-self:stretch}

/* 결과 · 진화 */
.result-head{text-align:center;padding:14px;border-radius:16px;background:rgba(255,255,255,.1)}.result-head b{display:block;font-size:24px}.result-head.win b{color:#ffe08a}.result-head span{font-size:12.5px;opacity:.85}
.team-row{display:flex;justify-content:center;gap:10px;margin:10px 0}.mini-unit{width:72px;display:flex;flex-direction:column;gap:3px;align-items:center}.mini-unit>div:first-child{width:72px;height:72px}
.rewards{background:rgba(255,255,255,.1);border-radius:14px;padding:4px 12px 10px}.reward-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:13.5px}.reward-row:last-child{border-bottom:0}
.words-two{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.word-chip{display:inline-flex;gap:6px;align-items:baseline;background:rgba(255,255,255,.12);border-radius:999px;padding:3px 10px;font-size:12px;margin:2px}.word-chip b{font-size:13px}.word-chip.new{background:rgba(63,159,95,.35)}.word-chip.bad{background:rgba(216,80,63,.35)}
.modal-card .word-chip{background:var(--panel-2);color:var(--ink)}
.daily-box{display:flex;flex-direction:column;gap:2px;background:rgba(255,255,255,.08);border-radius:12px;padding:8px 12px;font-size:12.5px;margin-bottom:10px}
.result .btn.big{margin-top:8px}
.evolve{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.evo-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;width:100%}.evo-card{background:rgba(255,255,255,.1);border-radius:16px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px}.evo-card.to{border:2px solid var(--gold)}.evo-card.revealed{box-shadow:0 0 30px rgba(233,185,73,.6)}
.evo-art{width:100%;max-width:150px;aspect-ratio:1;margin:0 auto}.evo-art.veiled svg{filter:brightness(0) opacity(.5)}.evo-arrow{font-size:28px;color:var(--gold)}
.evo-stats{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.evo-stats span{background:rgba(255,255,255,.12);border-radius:999px;padding:3px 10px;font-size:12px}

/* 서식지 */
.home{padding-top:0}
.habitat{position:relative;height:min(46dvh,340px);border-radius:0 0 22px 22px;overflow:hidden;margin:0 -14px 12px;box-shadow:var(--shadow)}
.habitat .bg-far{top:28%}.habitat .bg-near{height:42%}
.roamer{position:absolute;bottom:6%;width:110px;height:110px;border:0;background:transparent;padding:0;animation:roam 14s ease-in-out infinite alternate}
.roamer.r0{left:38%;width:124px;height:124px;bottom:4%;animation-duration:17s}.roamer.r1{left:6%;bottom:18%;animation-duration:13s;animation-delay:-4s}.roamer.r2{left:66%;bottom:14%;animation-duration:15s;animation-delay:-8s}
@keyframes roam{0%{transform:translateX(0)}50%{transform:translateX(26px) scaleX(1)}51%{transform:translateX(26px) scaleX(-1)}100%{transform:translateX(0) scaleX(-1)}}
.deco{position:absolute;font-size:28px;bottom:10%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}.deco-lantern{left:4%;bottom:40%}.deco-pond{right:6%;bottom:6%}
.home-cards{display:flex;flex-direction:column;gap:8px}
.card{background:var(--panel);color:var(--ink);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:2px;text-align:left;border:0;width:100%}
.card small{font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.04em}.card b{font-size:15px}
.card.todo{border-left:5px solid var(--accent)}.evo-card-home{border-left:5px solid var(--gold)}.evo-card-home.ready{background:linear-gradient(135deg,#fff6dc,#ffe7b0);box-shadow:0 0 0 2px var(--gold)}
.card.stats{flex-direction:row;gap:14px}.card.stats>div{flex:1;display:flex;flex-direction:column}.card.stats b{font-size:13px}

/* 시트 · 도감 */
.sheet{display:flex;flex-direction:column;gap:8px}.sheet-art{width:150px;height:150px;margin:0 auto}
.sheet-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sheet-head b{font-size:19px}.sheet-head span{font-size:12.5px;color:var(--muted)}
.sheet-skill{background:var(--panel-2);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;font-size:13px}.sheet-skill small{color:var(--muted)}
.sheet-stats{display:flex;flex-wrap:wrap;gap:6px}.sheet-stats span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 9px;font-size:12px}
.sheet-evo{background:#fff6dc;border:1px solid #f1d58a;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;font-size:13px}.sheet-evo span{color:var(--muted);font-size:12px}
.sheet-words small{color:var(--muted);font-size:11px}
.seg{display:flex;gap:6px;margin:6px 0 10px;flex-wrap:wrap}.seg-btn{flex:1;min-height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:13px;padding:6px 8px}.seg-btn.on{background:#fff;color:var(--ink)}.seg.small .seg-btn{min-height:32px;font-size:12px;flex:none}
.codex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.codex-cell{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border-radius:14px;border:2px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff}
.codex-grid.tier-common .codex-cell:not(.locked){border-color:rgba(179,189,183,.55)}.codex-grid.tier-advanced .codex-cell:not(.locked){border-color:rgba(92,207,132,.75);background:rgba(92,207,132,.14)}.codex-grid.tier-rare .codex-cell:not(.locked){border-color:rgba(79,159,230,.75);background:rgba(79,159,230,.14)}.codex-grid.tier-epic .codex-cell:not(.locked){border-color:rgba(196,139,255,.8);background:rgba(155,110,240,.18)}.codex-grid.tier-legendary .codex-cell:not(.locked){border-color:rgba(255,217,107,.85);background:rgba(240,180,41,.18)}.codex-grid.tier-mythic .codex-cell:not(.locked){border-color:rgba(255,154,214,.9);background:linear-gradient(160deg,rgba(255,95,184,.3),rgba(120,160,255,.22))}
.own .tier-stars,.codex-cell .tier-stars{font-size:10px}.codex-cell.locked .codex-art{filter:brightness(0) opacity(.45)}.codex-cell b{font-size:12px}.codex-cell small{font-size:10px;opacity:.8}
.codex-art{width:76px;height:76px}
.word-list{display:flex;flex-direction:column;gap:6px}
.word-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:#fff;color:var(--ink);border:0;border-radius:12px;padding:10px 12px;text-align:left}
.word-row b{font-size:15px}.word-row span{color:var(--muted);font-size:13px}.word-row .status{font-style:normal;font-size:11px;padding:2px 8px;border-radius:999px;background:#eee}
.word-row.status-due .status{background:#fbe8e5;color:#9b2a2a}.word-row.status-confirmed .status{background:#e6f6ea;color:#1f6a35}.word-row.status-familiar .status{background:#fff6dc;color:#8a5d00}
.settings{display:flex;flex-direction:column;gap:6px}.set-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.set-row b{display:block;font-size:14px}.set-row small{color:var(--muted);font-size:11.5px;display:block;line-height:1.35}
.set-row input[type=checkbox]{width:22px;height:22px;flex:none}.set-row input[type=range]{width:120px}
.danger-zone{margin-top:12px;display:flex;flex-direction:column;gap:6px;border:2px solid #f0b8ae;background:#fdf1ef;border-radius:14px;padding:12px}
.danger-zone b{font-size:15px;color:#9c2f1f}.danger-zone small{font-size:12.5px;color:#6e5a55;line-height:1.4}
.danger-zone .btn.danger{align-self:stretch}
.shop-list{padding-left:18px;font-size:13.5px}.shop-list li{margin:6px 0}.shop-list b{display:block}.shop-list span{color:var(--muted);font-size:12.5px}

@media(max-height:660px){
 /* 판정 후 단어·뜻은 피드백에서 다시 보여 준다. 중복 질문은 접어 작은 화면에서도 계속 버튼이 보이게 한다. */
 .learn-q.answered .learn-prompt{display:none}
 .learn-feedback{padding:8px;gap:6px}
 .fb-ko{max-width:100%;overflow-wrap:anywhere}
 .exp-field{flex-basis:36%;min-height:200px}.unit{width:84px}.unit.ally.slot-front{width:92px}.unit.enemy{width:88px}.unit.enemy.boss{width:130px}
  .fork{min-height:68px;padding:10px}.fork b{font-size:17px}.fork small{font-size:13px}
 .opt{min-height:46px;font-size:15px}.learn-options.n4 .opt{min-height:44px;font-size:15px}.learn-options.n2 .opt{min-height:54px;font-size:18px}.phrase-ko{font-size:21px}.phrase-en{font-size:23px}.learn-word .speak-btn{width:40px;height:40px;font-size:18px}.cmd{min-height:58px;padding:8px 10px}.cmd b{font-size:16px}.cmd em{font-size:11.5px;max-width:84px}.lemma{font-size:28px}.learn-sentence{font-size:16px}.learn-feedback .learn-example{display:none}.learn-ko{font-size:19px}.learn-example{padding:8px 10px}.ex-en{font-size:15px}
 .starter-art{max-width:96px}.habitat{height:min(40dvh,280px)}
}
@media(min-width:700px){
 .exp{max-width:560px;margin:0 auto;height:100dvh}.exp-panel{border-radius:20px}
}

/* 0.2: 30회 시작 부화 · 티켓 공급원 · 등급별 도감 · 상점 교환 */
.round-dots{display:flex;gap:8px;justify-content:center}.round-dots i{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.25);border:2px solid rgba(255,255,255,.5)}.round-dots i.on{background:var(--gold);border-color:#fff}
.bar.mythic i{background:linear-gradient(90deg,#ffb1e0,var(--mythic))}
.sources{display:flex;flex-direction:column;gap:6px}.src-row{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:8px 10px}.src-row b{display:block;font-size:13.5px}.src-row small{font-size:11.5px;color:rgba(255,255,255,.7);line-height:1.35}
.src-mark{flex:none;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.14);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}.src-row.ok .src-mark{background:var(--good);color:#fff}.src-row.ok{border-color:rgba(63,159,95,.6)}
.codex-tier{display:flex;align-items:center;gap:8px;margin:14px 0 6px}.codex-tier b{font-size:14px}.codex-tier .muted{font-size:12px}
.ticket-card{border-left:5px solid var(--mythic)}.ticket-card .muted{font-size:12px}
.odds-tiers{display:flex;flex-direction:column;gap:6px;margin:6px 0 8px}.odds-tier{display:flex;align-items:center;gap:8px}.odds-tier b{min-width:48px;font-size:15px}.odds-tier .muted{font-size:12px}
.odds details summary{cursor:pointer;font-size:13px;color:var(--accent-2);font-weight:700;margin:4px 0}
.shop-box{display:flex;flex-direction:column;gap:6px;background:var(--panel-2);border-radius:14px;padding:12px;margin-bottom:10px}.shop-box b{font-size:15px}.shop-box>span{font-size:13px;color:var(--muted)}.shop-box .muted{font-size:12px;margin:0}

/* 난이도 사다리: 짧은 표현(2지선다) · 3지선다 */
.phrase-ko{font-size:25px;font-weight:900;color:var(--accent-2);line-height:1.2}
.phrase-en{margin:4px 0 0;font-size:27px;font-weight:900;color:#1f1814;line-height:1.25}
.phrase-en .blank{letter-spacing:.06em}
.learn-options.n2{grid-template-columns:1fr 1fr}.learn-options.n2 .opt{min-height:62px;font-size:20px;justify-content:center}.learn-options.n2.long{grid-template-columns:1fr}.learn-options.n2.long .opt{justify-content:flex-start}
.learn-options.n3{grid-template-columns:1fr}.learn-options.n3 .opt{min-height:52px}
.learn-options.n4{grid-template-columns:1fr 1fr}.learn-options.n4 .opt{min-height:50px;font-size:16px;padding:6px 10px}.learn-options.n4 .opt-key{width:21px;height:21px;font-size:11px}
.learn-options.n4.long{grid-template-columns:1fr}.learn-options.n4.long .opt{min-height:44px;font-size:15px}
.learn-q.answered .phrase-ko{font-size:17px}.learn-q.answered .phrase-en{font-size:19px}
/* 등급 범례 · 상세의 등급 띠 */
.tier-legend{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.tl{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px 9px}
.tl i{width:10px;height:10px;border-radius:3px;background:var(--common)}.tl small{opacity:.75}
.tl.rarity-common i{background:var(--common)}.tl.rarity-advanced i{background:var(--advanced)}.tl.rarity-rare i{background:var(--rare)}.tl.rarity-epic i{background:var(--epic)}.tl.rarity-legendary i{background:var(--legend)}.tl.rarity-mythic i{background:var(--mythic)}
.tl.rarity-epic{border-color:var(--epic)}.tl.rarity-legendary{border-color:var(--legend)}.tl.rarity-mythic{border-color:var(--mythic)}
.sheet-tier{display:flex;flex-direction:column;gap:2px;border-radius:12px;padding:8px 10px;background:var(--panel-2);border-left:5px solid var(--common)}
.sheet-tier b{font-size:14px}.sheet-tier span{font-size:12px;color:var(--muted)}
.sheet-tier.rarity-advanced{border-left-color:var(--advanced)}.sheet-tier.rarity-rare{border-left-color:var(--rare)}.sheet-tier.rarity-epic{border-left-color:var(--epic)}.sheet-tier.rarity-legendary{border-left-color:var(--legend)}.sheet-tier.rarity-mythic{border-left-color:var(--mythic)}
.codex-tier.rarity-epic b{color:#d7b6ff}.codex-tier.rarity-legendary b{color:#ffd96b}.codex-tier.rarity-mythic b{color:#ffb1e0}
/* 0.5: 난이도 10단계 · 착용 등급 표시 · 합성 */
.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:4px 0}
.lv{min-height:48px;border-radius:12px;border:2px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;font-weight:900;font-size:17px}
.lv.on{background:linear-gradient(180deg,#ffb15c,var(--accent));color:#2b1a0a;border-color:#fff;box-shadow:0 4px 12px rgba(240,138,60,.4)}
.level-info{margin:2px 0 6px;font-size:13.5px;color:#ffe3bf;font-weight:700;text-align:center}
.level-sample{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin-bottom:6px}
.level-sample .word-chip{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff}
.lv-select{min-height:40px;border-radius:10px;border:2px solid var(--line);background:#fff;color:var(--ink);font-size:14px;font-weight:700;padding:0 8px}
/* 착용(편성)·전투 등급 */
.slot-tier,.unit-tier{display:flex;align-items:center;gap:3px;justify-content:center;font-size:10px;font-weight:800;color:rgba(255,255,255,.85)}
.unit-tier{margin-top:1px;font-size:9px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.slot.rarity-advanced{border-color:var(--advanced)}.slot.rarity-rare{border-color:var(--rare)}.slot.rarity-epic{border-color:var(--epic);box-shadow:0 0 12px rgba(169,119,255,.45)}.slot.rarity-legendary{border-color:var(--legend);box-shadow:0 0 14px rgba(255,197,61,.5)}.slot.rarity-mythic{border-color:var(--mythic);box-shadow:0 0 16px rgba(255,95,184,.55)}
.own.rarity-advanced{border-color:var(--advanced)}.own.rarity-rare{border-color:var(--rare)}.own.rarity-epic{border-color:var(--epic)}.own.rarity-legendary{border-color:var(--legend)}.own.rarity-mythic{border-color:var(--mythic)}
.unit.ally.rarity-rare .unit-art{filter:drop-shadow(0 0 6px rgba(79,159,230,.75))}.unit.ally.rarity-epic .unit-art{filter:drop-shadow(0 0 8px rgba(169,119,255,.85))}.unit.ally.rarity-legendary .unit-art{filter:drop-shadow(0 0 10px rgba(255,197,61,.9))}.unit.ally.rarity-mythic .unit-art{filter:drop-shadow(0 0 12px rgba(255,95,184,.95))}
.cmd.rarity-epic{box-shadow:0 0 0 2px rgba(169,119,255,.4)}.cmd.rarity-legendary{box-shadow:0 0 0 2px rgba(255,197,61,.45)}.cmd.rarity-mythic{box-shadow:0 0 0 2px rgba(255,95,184,.5)}
.cmd small .tier-stars{font-size:10px;margin-right:2px}
/* 합성 */
.fusion-list{display:flex;flex-direction:column;gap:7px}
.fuse-row{display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:8px;padding:10px;border-radius:14px;border:2px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;text-align:left}
.fuse-row:disabled{opacity:.55}
.fuse-row.ready{border-color:var(--gold);background:rgba(240,180,41,.16)}
.fuse-from,.fuse-to{display:flex;flex-direction:column;gap:1px;min-width:0}.fuse-row b{font-size:13.5px}.fuse-row i{font-style:normal;font-size:11px;opacity:.8}
.fuse-arrow{font-size:16px;opacity:.7}
.fuse-row em{font-style:normal;font-size:11.5px;font-weight:800;background:rgba(255,255,255,.14);border-radius:9px;padding:6px 8px;text-align:center;max-width:84px}
.fuse-row.ready em{background:var(--gold);color:#3a2600}
.fuse-row.rarity-legendary.ready{border-color:var(--legend);box-shadow:0 0 14px rgba(255,197,61,.45)}.fuse-row.rarity-mythic.ready{border-color:var(--mythic);box-shadow:0 0 16px rgba(255,95,184,.5)}
.fuse-back{position:fixed;inset:0;z-index:160;background:radial-gradient(70% 60% at 50% 45%,#2b2150,#0c1020 80%);display:flex;align-items:center;justify-content:center;padding:16px}
.fuse-stage{text-align:center;color:#fff;display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:520px}
.fuse-title{font-size:16px;font-weight:800;margin:0}
.fuse-orbs{display:flex;gap:14px;justify-content:center;transition:gap .6s cubic-bezier(.6,-0.3,.3,1.4)}
.orb{width:30px;height:30px;border-radius:50%;background:var(--common);box-shadow:0 0 16px currentColor;animation:orbFloat 1.1s ease-in-out infinite alternate}
.orb.rarity-common{background:var(--common);color:var(--common)}.orb.rarity-advanced{background:var(--advanced);color:var(--advanced)}.orb.rarity-rare{background:var(--rare);color:var(--rare)}.orb.rarity-epic{background:var(--epic);color:var(--epic)}.orb.rarity-legendary{background:var(--legend);color:var(--legend)}
@keyframes orbFloat{from{transform:translateY(4px) scale(.95)}to{transform:translateY(-6px) scale(1.08)}}
.fuse-stage.merging .fuse-orbs{gap:0;transform:scale(.6) rotate(360deg);transition:gap .6s,transform .7s cubic-bezier(.6,-0.3,.3,1.4);filter:brightness(2)}
.fuse-burst{position:absolute;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.9),transparent 62%);animation:burst .7s ease-out forwards}
@keyframes burst{0%{transform:scale(.2);opacity:1}100%{transform:scale(2.2);opacity:0}}
.fuse-burst.rarity-legendary{background:radial-gradient(circle,rgba(255,197,61,.95),transparent 62%)}.fuse-burst.rarity-mythic{background:radial-gradient(circle,rgba(255,95,184,.95),transparent 62%)}
/* 결과 화면 재화 */
.loot-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.loot{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:8px;text-align:center}
.loot small{display:block;font-size:10.5px;opacity:.75}.loot b{font-size:15px}


/* 0.5.3: 화면 고정 · 긴 목록은 높이에 맞춘 페이지 · 보조 메뉴는 탭 */
html,body{height:100%;overflow:hidden}
#app{height:100dvh;min-height:0;overflow:hidden}
#topbar,#tabbar{position:relative;flex:none}
#view{overflow:hidden}
.screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:10px 14px 10px;gap:8px}
body[data-screen="start"] .screen,body[data-screen="first-summon"] .screen,body[data-screen="first-team"] .screen,body[data-screen="result"] .screen,body[data-screen="evolve"] .screen{padding-top:calc(var(--safe-t) + 10px);padding-bottom:calc(var(--safe-b) + 10px)}
.screen>*,.pane-body>*,.page-content>*{flex-shrink:0}
.screen>p,.hatch-panel>p,.codex-body>p,.result-word-panel>p{margin:0}
.screen h2,.screen h3{margin:0}
.screen .logo{padding:8px 0 4px}
.start .level-sample{min-height:0}
.start .btn.big{margin-top:auto}
.start .fine{margin:0}
.first-summon{justify-content:center;gap:10px}
.first-summon p{margin:0}
.paged-list{display:flex;flex-direction:column;flex:1!important;min-height:0;gap:6px}
.page-content{flex:1!important;min-height:0;overflow:hidden;align-content:start}
.page-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:40px}
.page-nav .btn{min-height:40px;min-width:76px}
.page-count{font-size:12px;font-weight:700;white-space:nowrap}
.pane-deck{display:flex;flex-direction:column;flex:1!important;min-height:0;gap:8px}
.pane-tabs{flex:none;margin:0;flex-wrap:nowrap}
.pane-tabs .seg-btn{min-height:40px;padding:6px 4px}
.pane-body{display:flex;flex-direction:column;flex:1;min-height:0}
.hatch-panel,.codex-body,.result-word-panel{display:flex;flex-direction:column;flex:1!important;min-height:0;gap:8px}
.hatch-panel>*{flex-shrink:0}
.hatch-panel .hatch-btns,.hatch-panel .pity{margin:0}
.hatch-panel .fusion-list,.hatch-panel .sources,.hatch-panel .log{gap:6px}
.hatch-head{padding:8px}
.fuse-row{min-height:66px}
.team{gap:6px}
.team .section-head h2{font-size:19px}
.team .section-head .muted{font-size:11.5px}
.team .slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
.team .row-front,.team .row-back{display:contents}
.team .slot{min-height:110px;max-width:none;padding:5px 3px;gap:1px;min-width:0}
.team .slot-art,.team .slot-empty{width:44px;height:44px}
.team .slot b{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.team .slot>.muted{font-size:10px;line-height:1.15}
.team .slot small{font-size:9.5px}
.team .owned{gap:6px}
.team .own{min-height:94px;padding:5px 3px;gap:1px;min-width:0}
.team .own-art{width:48px;height:48px}
.team .own .muted{font-size:10px}
.team .own em{font-size:8px;padding:1px 4px}
.team .region-card{flex-direction:row;justify-content:space-between;align-items:center;margin:0;padding:6px 10px;min-height:40px;border:1px solid rgba(255,255,255,.18);color:#fff}
.team .region-card b{font-size:13px}
.team .btn.big{min-height:46px}
.codex>.seg{flex:none;margin:0}
.codex>.seg .seg-btn{min-height:40px}
.codex-tier{margin:0;flex:none;flex-wrap:wrap;gap:5px}
.codex-body>.muted{font-size:11.5px}
.codex-body .seg.small{display:grid;grid-template-columns:1fr 1fr;margin:0;flex:none}
.codex-body .seg.small .seg-btn{min-height:36px}
.codex-cell{min-width:0}
.word-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 6px;min-height:50px;padding:8px 10px}
.word-row b,.word-row span{overflow-wrap:anywhere}
.word-row span{grid-column:1}
.word-row .status{grid-column:2;grid-row:1 / span 2;align-self:center;max-width:90px;text-align:center}
.result-head{padding:8px}
.result-head b{font-size:22px}
.result .team-row{margin:0}
.result .mini-unit,.result .mini-unit>div:first-child{width:54px}
.result .mini-unit>div:first-child{height:54px}
.result .rewards{padding:0;background:transparent;gap:0;display:flex;flex-direction:column}
.result .reward-row{flex:none;min-height:38px;align-items:center;gap:8px}
.result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:none}
.result-actions .btn.big{margin:0;min-height:46px;padding:8px;font-size:14px}
.result-actions .home-action{grid-column:1 / -1}
.result .result-goals{width:100%}
.home{padding-top:0;gap:0}
.home .habitat{flex:1!important;min-height:85px;height:auto;max-height:46dvh;margin-bottom:8px}
.home-cards{flex:none;gap:6px}
.home-cards .card{padding:8px 10px}
.home-cards .btn.big{min-height:46px}
.home-cards .card b{font-size:14px}
.home-cards .card.stats b{font-size:12px}
.home .roamer{width:88px;height:88px}
.home .roamer.r0{width:100px;height:100px}
.modal-card{height:min(88dvh,740px);max-height:none;display:flex;flex-direction:column;overflow:hidden;padding:14px 16px calc(var(--safe-b) + 12px);gap:8px}
.modal-title{flex:none;margin:0}
.modal-actions{position:static;flex:none;margin:0;padding:0;background:transparent}
.modal-actions .btn{min-width:0;padding:10px 6px;overflow-wrap:anywhere}
.modal-card .page-content{display:flex;flex-direction:column;gap:8px}
.modal-card .page-content>*{flex:none}
.modal-card .pane-tabs .seg-btn{border-color:var(--line);background:var(--panel-2);color:var(--muted)}
.modal-card .pane-tabs .seg-btn.on{background:var(--accent);color:var(--ink);border-color:var(--accent-2)}
.modal-card .sheet-art{width:120px;height:120px;flex:none}
.modal-card .odds-tiers{gap:8px}
.modal-card .odds-list .odds-tier{min-height:36px;justify-content:space-between}
.modal-card .odds-list .odds-tier b{font-size:13px}
.modal-card .settings{gap:8px}
.modal-card .set-row{min-height:48px}
.modal-card .set-row>div{min-width:0}
.modal-card .set-row input[type=range]{width:96px;flex:none}
.modal-card .sheet-words .word-chip{border-radius:10px}
.exp{flex:1;min-height:0;height:100%;overflow:hidden}
.exp-top{flex:none}
.exp-field{flex-shrink:0;min-height:0}
.exp-panel{overflow:hidden;flex:1;min-height:0}
.learn-q.answered .learn-prompt{display:none}
.learn-q.answered .learn-options{flex:none}
.learn-feedback{min-height:0}
.learn-feedback .fb-word{flex-wrap:nowrap;min-width:0}
.learn-feedback .fb-ko{margin-left:0;overflow-wrap:anywhere;font-size:18px}
.learn-feedback .fb-word .lemma{font-size:24px}
.learn-feedback .fb-word .ipa{font-size:12px}
.learn-feedback .fb-word .speak-btn{width:40px;height:40px}
.exp.compact-field .enemies{top:2px}
.exp.compact-field .unit{width:64px}
.exp.compact-field .unit.ally.slot-front{width:70px}
.exp.compact-field .unit.ally.slot-back{width:62px;margin-bottom:6px}
.exp.compact-field .unit.enemy.boss{width:90px}
.exp.compact-field .unit-status{height:12px;font-size:10px}
@media(max-height:660px){
 .screen{gap:6px;padding-top:6px;padding-bottom:6px}
 .screen .logo b{font-size:25px}
 .screen .logo.small b{font-size:21px}
 .screen .logo{padding:4px 0}
 .home-cards .card{padding:6px 10px}
 .home-cards .card b{font-size:13px}
 .home-cards .card .muted{font-size:11.5px}
 .home-cards .card.stats b{font-size:11.5px}
 .learn-q,.learn-card{gap:6px}
 .learn-options{gap:6px}
 .learn-options.n2 .opt{min-height:54px;font-size:18px}
 .learn-options.n3 .opt,.learn-options.n4 .opt{min-height:44px;font-size:15px}
 .learn-tools{flex:none;margin-top:auto}
 .learn-feedback .learn-example{display:flex;padding:6px 8px}
 .learn-feedback .learn-example .ex-en{font-size:13px}
 .learn-feedback .learn-example .ex-ko{font-size:12px}
 .learn-feedback .btn.big{min-height:46px;padding:8px}
 .fb-head b{font-size:16px}
 .fb-head span{font-size:11.5px}
 .hatch-stage{gap:6px;max-height:calc(100dvh - 28px)}
 .hatch-best-art{width:54px}
 .hatch-note{font-size:10.5px}
 .hatch-cell-art{max-width:58px}
}
@media(max-width:350px){
 #topbar{gap:5px;padding-left:8px;padding-right:8px}
 .brand b{font-size:11px;letter-spacing:.08em}
 .wallet{gap:4px}.chip{padding:4px 6px;font-size:11px}
 .top-icons .icon-btn{width:34px;height:38px}
 .screen{padding-left:10px;padding-right:10px}
 .starter-grid{gap:5px}.starter{padding:8px 3px}
 .starter small{font-size:10px}
 .home .habitat{margin-left:-10px;margin-right:-10px}
 .team .slot small{font-size:9px}
}
.page-nav{gap:4px}
.page-nav .page-edge{min-width:36px;padding:6px;font-size:18px}
.first-summon .egg-pile{width:min(18dvh,120px)}
.first-summon>p{font-size:13px}
@media(max-height:600px){
 .start .logo span{font-size:11.5px}
 .start .muted{font-size:11.5px}
 .start .starter-art{max-width:76px}
 .start .level-sample .word-chip{font-size:11px;padding:2px 6px}
 .start .level-sample .word-chip b{font-size:12px}
 .home-cards .card{padding:5px 8px}
 .home-cards .card .muted{font-size:11px}
 .team .slot{min-height:100px}
 .team .slot-art,.team .slot-empty{width:36px;height:36px}
 .team .own-art{width:40px;height:40px}
 .team .own{min-height:86px}
 .screen.team{gap:4px}
}
.team h3{display:none}
.team .section-head h2{font-size:18px}
.team .section-head .muted{font-size:10.5px;line-height:1.2}
.team .slot{min-height:96px;padding:4px 3px;line-height:1.15}
.team .slot-art,.team .slot-empty{width:32px;height:32px}
.team .slot-tier{line-height:1.1}
.team .own{padding:4px 3px;line-height:1.2}
.team .own-art{width:40px;height:40px}
.team .own .tier-stars{line-height:1}
@media(max-height:600px){
 .team .slot{min-height:80px}
 .team .slot-art,.team .slot-empty{width:24px;height:24px}
 .team .slot>.muted{display:none}
}
.ipa{overflow-wrap:anywhere}
.home .habitat{container-type:size}
.home .roamer{width:min(88px,72cqh);height:min(88px,72cqh)}
.home .roamer.r0{width:min(100px,85cqh);height:min(100px,85cqh)}
.home .roamer.r1{bottom:12%}
.home .roamer.r2{left:auto;right:26px;bottom:8%}

/* 0.5.4: 현재 편성과 보유 목록을 서로 다른 패널로 구분 */
.team .active-team{flex:none;display:flex;flex-direction:column;gap:7px;padding:10px;border:2px solid var(--gold);border-radius:16px;background:linear-gradient(135deg,#4a3d27,#283c2e);box-shadow:0 4px 12px rgba(0,0,0,.2)}
.team .team-panel-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:20px;line-height:1.2}
.team .team-panel-head>b{font-size:14px}
.team .active-team .team-panel-head{color:#ffe7a2}
.team .team-count{font-size:11px;font-weight:700;background:#e9b949;color:#2c250f;border-radius:999px;padding:3px 8px;white-space:nowrap}
.team .slot{border-style:solid;background:rgba(0,0,0,.22);border-radius:10px}
.team .slot.sel{outline:3px solid #ffe7a2;outline-offset:-1px;background:rgba(233,185,73,.24);box-shadow:none}
.team .slot .slot-label{opacity:1;font-size:11px;font-weight:800;color:#e1e8e2}
.team .slot.sel .slot-label{color:#ffe7a2}
.team .team-selection-help{margin:0;color:#ffe7a2;font-size:11px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.team .team-collection{display:flex;flex-direction:column;flex:1;min-height:0;gap:6px;padding:8px;border:1px solid rgba(198,224,217,.35);border-radius:14px;background:rgba(3,28,25,.38)}
.team .team-collection .team-panel-head{flex:none;color:#ecf4ee}
.team .collection-count{color:#b7cfc6;font-size:11px;white-space:nowrap}
.team .team-collection .own{background:rgba(255,255,255,.045);min-height:105px;gap:2px}
.team .team-collection .own.in{background:#31534b}
.team .own-status{display:block;align-self:stretch;min-height:18px;border-radius:5px;padding:2px 1px;font-size:10px;font-weight:700;line-height:1.2;color:#afc6be}
.team .own-status.equipped{background:#f4d078;color:#2c280f}
.team .own-art{width:36px;height:36px}
.team .slot:focus-visible,.team .own:focus-visible{outline:3px solid #fff;outline-offset:-1px}
.growth-mini{display:block;align-self:stretch;border-radius:4px;padding:2px 1px;font-size:9px;font-weight:800;line-height:1.2;color:#f7efcf;background:linear-gradient(90deg,rgba(233,185,73,.38) var(--xp-fill),rgba(0,0,0,.3) var(--xp-fill));white-space:nowrap}
.growth-mini.ready{background:#f4d078;color:#302510}
.growth-meter{display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.3}
.growth-track{height:7px;border-radius:99px;background:rgba(128,128,128,.25);overflow:hidden}
.growth-track i{display:block;height:100%;background:linear-gradient(90deg,#d7a632,#f7d681);border-radius:inherit}
.growth-meter.ready .growth-track i{background:#58ba83}
.team .team-count{margin-left:auto}
.team .team-action-row{display:flex;gap:6px;min-height:40px}
.team .team-action-row .region-card{flex:1;min-width:0}
.team .team-transform-btn{min-height:40px;padding:3px 8px;border:0;border-radius:8px;font-size:11px;font-weight:800;background:#f4d078;color:#302510}
.team .team-transform-btn[hidden]{display:none}
.growth-results{display:flex;flex-direction:column;gap:6px}
.growth-result{display:flex;align-items:center;gap:8px;min-height:76px;padding:8px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.06)}
.growth-result-art{width:44px;height:44px;flex:none}
.growth-result-info{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
.growth-result-info b{font-size:13px}
.growth-gain{font-size:12px;color:#ffe397;font-weight:800}
.growth-result .btn{flex:none;min-height:36px;padding:4px 8px;font-size:12px}
.material-deck{gap:7px;color:#fff}
.modal-card.material-modal{background:#173f39;color:#fff}
.material-deck>p{margin:0}
.material-deck .fine{font-size:11px}
.fusion-tier-select{min-height:40px;width:100%;border-radius:8px;padding:5px 8px;font-size:14px}
.material-summary{font-size:12px;font-weight:800;color:#ffe09a}
.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.material-pick{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:104px;min-width:0;border:2px solid rgba(255,255,255,.2);border-radius:10px;padding:5px 2px;background:rgba(255,255,255,.06);color:#fff}
.material-pick.on{border-color:#f4d078;background:rgba(233,185,73,.2)}
.material-pick b{font-size:11px;overflow-wrap:anywhere}.material-pick small{font-size:10px}
.material-art{width:36px;height:36px}
.material-check{font-size:10px;font-weight:700;color:#f4d078}
.material-empty{grid-column:1/-1;font-size:12px}
.material-modal .modal-actions .btn{font-size:12px;padding:6px}
.achievement-list{display:flex;flex-direction:column;gap:5px}
.achievement-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:50px;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:6px 9px;font-size:12px}
.achievement-row>div{display:flex;flex-direction:column;gap:2px}.achievement-row.claimed{border-color:#56af82;background:rgba(86,175,130,.12)}
@media(max-height:600px){
 .team .active-team{padding:4px;gap:3px}
 .team .team-collection{padding:6px;gap:4px}
 .team .team-panel-head{min-height:16px}
 .team .team-panel-head>b{font-size:13px}
 .team .team-selection-help{font-size:9px;line-height:1.2}
 .team .slot{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto 22px auto;min-height:64px;padding:3px;column-gap:2px;row-gap:1px}
 .team .slot .slot-label{grid-column:1/-1;grid-row:1;font-size:10px}
 .team .slot-art,.team .slot-empty{grid-column:1;grid-row:2;width:22px;height:22px}
 .team .slot b{grid-column:2;grid-row:2;font-size:11px}
 .team .slot-tier{grid-column:1/-1;grid-row:3;font-size:9px}
 .team .growth-mini{grid-column:1/-1;grid-row:4;font-size:8px;padding:1px}
 .team .team-collection .own{min-height:94px}
 .team .own-art{width:24px;height:24px}
 .team .own-status{min-height:14px;padding:1px;font-size:9px}
}

