:root { --ink: #e9e4d6; --dim: #8b90a3; --gold: #f2c35b; --gold2: #ffdf8a; --font: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif; --ui: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05060c; color: var(--ink); font-family: var(--ui); overflow: hidden; user-select: none; }
body { display: grid; place-items: center; }
#game { display: block; background: #000; outline: none; image-rendering: auto; }
#menu { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, #1b1f40cc, #05060ceb); backdrop-filter: blur(4px); z-index: 10; }
#menu.hidden { display: none; }
.box { width: min(560px, 92vw); max-height: 92vh; overflow-y: auto; text-align: center; padding: 28px 34px; }
.box.panel { background: linear-gradient(#1c2040, #12142a); border: 2px solid #55609f; border-radius: 16px; box-shadow: 0 20px 60px #000c; text-align: left; }
h1 { font-family: var(--font); font-size: 56px; margin: 0; letter-spacing: .1em; color: var(--gold2); text-shadow: 0 0 40px #f2c35b55, 0 6px 20px #000; }
h2 { font-family: var(--font); margin: 0 0 14px; color: var(--gold2); letter-spacing: .06em; }
.sub { color: var(--dim); margin: 6px 0 22px; }
.items { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.item { padding: 12px 18px; border-radius: 12px; background: #161a34; border: 2px solid #2d3566; font-size: 18px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.item.sel { border-color: var(--gold); background: #232a58; box-shadow: 0 0 22px #f2c35b44; transform: translateX(4px); }
.item.off { opacity: .45; }
.item small { color: var(--dim); font-size: 13px; display: block; margin-top: 2px; }
.item .cost { color: var(--gold2); font-weight: 800; white-space: nowrap; }
.lv { letter-spacing: 2px; color: var(--gold); font-size: 12px; }
.hint { color: var(--dim); font-size: 13px; margin-top: 18px; }
kbd { background: #20253f; border: 1px solid #3a4170; border-bottom-width: 2px; border-radius: 4px; padding: 1px 7px; font: 12px var(--ui); color: var(--ink); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin: 12px 0; font-size: 15px; }
.stats { display: flex; gap: 24px; justify-content: center; margin: 20px 0; } .stats div { display: flex; flex-direction: column; } .stats b { font-size: 30px; color: var(--gold2); } .stats span { color: var(--dim); font-size: 12px; }
.ups { font-size: 26px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.souls { color: #b7a6ff; font-weight: 800; }
.win h1 { color: var(--gold2); } .lose h1 { color: #ff7a6e; text-shadow: 0 0 40px #c0302055; }

.box.wide { width: min(1120px, 98vw); }
.chars { display: flex; gap: 16px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.char { width: 162px; padding: 18px 14px; border-radius: 16px; background: #161a34; border: 2px solid #2d3566; text-align: center; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.char.sel { border-color: var(--gold); background: #232a58; box-shadow: 0 0 28px #f2c35b55; transform: translateY(-6px); }
.char.locked { opacity: .4; cursor: default; }
.cico { font-size: 54px; filter: drop-shadow(0 4px 8px #000a); }
.cname { font-family: var(--font); font-size: 24px; color: var(--gold2); margin-top: 4px; }
.ctitle { color: var(--dim); font-size: 13px; margin-bottom: 8px; }
.ctraits { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.ctraits span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #0e1226; border: 1px solid #3a4170; color: #cfd6f0; }
.cskill { margin-top: 10px; padding: 8px; border-radius: 10px; background: #0e1226; text-align: left; }
.cskill b { color: #9ad4ff; font-size: 13px; display: block; } .cskill small { color: var(--dim); font-size: 12px; line-height: 1.5; }
.cblurb { font-size: 12px; color: #aab2d0; line-height: 1.6; margin: 10px 0 6px; min-height: 58px; }
.crec { font-size: 11px; color: var(--dim); }
.score { font-size: 44px; font-weight: 900; color: var(--gold2); margin: 6px 0 0; text-align: center; }
.score small { display: block; font-size: 13px; color: var(--dim); font-weight: 500; margin-top: 2px; }
.nb { font-size: 14px; color: #7aff9a; border: 1px solid #3a8a5a; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.rankline { text-align: center; color: var(--dim); font-size: 14px; margin: 4px 0 8px; } .rankline b { font-size: 18px; color: var(--gold2); }

.char.locked { opacity: .55; } .char.locked.sel { opacity: 1; border-color: #8a6a3a; box-shadow: 0 0 22px #8a6a3a55; }
.char.ghost { opacity: .3; cursor: default; }
.unlockhint { margin-top: 8px; padding: 8px; border-radius: 10px; background: #1a1424; border: 1px dashed #6a4a8a; font-size: 12px; color: #c8b0e8; line-height: 1.5; }
.unlockhint b { color: var(--gold2); font-size: 14px; } .unlockhint small { display: block; color: var(--dim); margin-top: 2px; }
.achlist { display: flex; flex-direction: column; gap: 8px; max-height: 66vh; overflow-y: auto; margin-top: 6px; }
.ach { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #161a34; border: 2px solid #2d3566; }
.ach.done { border-color: #3a8a5a; background: #14261c; }
.ach .aico { font-size: 26px; width: 34px; text-align: center; } .ach.done .aico { color: #7aff9a; font-weight: 900; }
.ach .atxt { flex: 1; display: flex; flex-direction: column; } .ach .atxt b { font-size: 16px; } .ach .atxt small { color: var(--dim); font-size: 12px; margin-top: 2px; } .ach .unl { color: #c8b0e8 !important; }
.ach .arw { color: var(--gold2); font-weight: 800; font-size: 13px; white-space: nowrap; } .ach.done .arw { color: #7aff9a; }
.achv-toast { position: fixed; right: 18px; bottom: 20px; z-index: 50; min-width: 280px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(#26204a, #151232); border: 2px solid var(--gold); box-shadow: 0 10px 30px #000c, 0 0 30px #f2c35b44; display: flex; flex-direction: column; gap: 3px; animation: toastin 4.2s both; pointer-events: none; }
.achv-toast b { color: var(--gold2); font-size: 14px; } .achv-toast span { font-size: 14px; } .achv-toast .unl { color: #d8b8ff; font-weight: 700; }
@keyframes toastin { 0% { opacity: 0; transform: translateX(40px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(20px); } }

.ascbox { margin: 14px auto 0; max-width: 760px; padding: 10px 16px; border-radius: 14px; background: #1a1220; border: 1px solid #5a2a3a; text-align: left; }
.asclv { font-size: 18px; font-weight: 800; color: #ff9a8e; } .asclv small { color: var(--dim); font-weight: 500; font-size: 12px; margin-left: 6px; }
.ascarr { float: right; color: var(--gold2); font-size: 14px; letter-spacing: 6px; }
.asclist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .asclist span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #2a1218; border: 1px solid #6a2a34; color: #ffc0b8; }
.ascnote { margin-top: 6px; font-size: 12px; color: var(--dim); } .unlockline { color: #7aff9a !important; font-weight: 700; }

.char .cblurb { min-height: 76px; font-size: 11.5px; } .char .ctraits span { font-size: 10px; padding: 2px 6px; } .char .cskill small { font-size: 11px; } .chars { gap: 12px; }

.box.wide2 { width: min(980px, 98vw); }
.mgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.mlist { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: grid; grid-template-columns: 30px 70px 54px 1fr 64px; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: #161a34; border: 2px solid #2d3566; font-size: 14px; cursor: pointer; }
.mrow.sel { border-color: var(--gold); background: #232a58; box-shadow: 0 0 18px #f2c35b33; }
.mico { font-size: 20px; text-align: center; } .mname { font-weight: 700; } .mlv { color: var(--gold2); font-weight: 800; font-size: 13px; }
.mbar { height: 8px; border-radius: 4px; background: #0b0e20; overflow: hidden; } .mbar i { display: block; height: 100%; background: linear-gradient(90deg, #4a8ad8, #9ad4ff); }
.mcnt { color: var(--dim); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.mdetail { padding: 14px 16px; border-radius: 14px; background: #12142a; border: 1px solid #3a4170; } .mdetail h3 { margin: 0 0 4px; font-size: 20px; color: var(--gold2); font-family: var(--font); }
.mdetail p { margin: 0 0 10px; color: #cfd6f0; font-size: 13px; } .mdetail ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mdetail li { padding: 6px 10px; border-radius: 8px; background: #1a1e3a; color: #8890b0; font-size: 13px; } .mdetail li b { margin-right: 6px; } .mdetail li.on { background: #14281c; color: #b8f0c8; border: 1px solid #3a8a5a; }
.mact { margin-top: 12px; text-align: center; color: var(--gold2); font-weight: 800; font-size: 14px; }
.mlvtag { color: var(--gold2); font-size: 11px; margin-left: 4px; }

.gp { color: #7aff9a; font-weight: 900; } .lv { color: var(--gold2); font-size: 14px; font-weight: 800; margin-left: 6px; }
.clv { color: var(--gold2); } .cpt { color: #7aff9a; font-size: 10px; }
.xpbar { position: relative; height: 18px; border-radius: 9px; background: #0b0e20; border: 1px solid #3a4170; overflow: hidden; margin: 2px 0 14px; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #4a8ad8, #9ad4ff); } .xpbar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 18px; color: #fff; font-weight: 700; }
.statlist { display: flex; flex-direction: column; gap: 7px; }
.strow { display: grid; grid-template-columns: 30px 50px 170px 24px 1fr; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: #161a34; border: 2px solid #2d3566; }
.strow.sel { border-color: var(--gold); background: #232a58; box-shadow: 0 0 18px #f2c35b33; }
.sico { font-size: 20px; text-align: center; } .sname { font-weight: 800; }
.spips { display: flex; gap: 4px; } .spips i { width: 14px; height: 14px; border-radius: 3px; background: #0b0e20; border: 1px solid #3a4170; } .spips i.on { background: linear-gradient(#ffe28a, #e0a02a); border-color: #ffe28a; box-shadow: 0 0 6px #f2c35b88; }
.sval { text-align: right; font-weight: 900; color: var(--gold2); } .sdesc { font-size: 12px; color: #aab2d0; white-space: nowrap; }
.box.panel:has(.statlist) { width: min(640px, 96vw); }
.mtype { font-size: 12px !important; color: #aab2d0 !important; margin: -4px 0 10px !important; } .ty { padding: 1px 8px; border-radius: 999px; background: #20253f; } .ty-fire { color: #ff8a4a; } .ty-cold { color: #8ad8ff; } .ty-lightning { color: #fff08a; } .ty-physical { color: #e0e0e8; }
.asclv2 { display: flex; align-items: center; gap: 12px; margin-top: 4px; } .asclv2 small { color: var(--dim); font-size: 12px; } .dtick { display: inline-flex; gap: 4px; } .dtick i { width: 18px; height: 8px; border-radius: 3px; background: #0b0e20; border: 1px solid #3a4170; } .dtick i.on { background: #a03a36; border-color: #ff9a8e; } .dtick i.cur { background: #ffe28a; border-color: #fff; box-shadow: 0 0 8px #ffe28a; }

.lootbox { margin: 8px auto 4px; padding: 8px 14px; max-width: 520px; border-radius: 12px; background: #12162e; border: 1px solid #3a4170; text-align: left; }
.loottitle { font-weight: 800; color: var(--gold2); font-size: 14px; } .loottitle small { color: var(--dim); font-weight: 500; font-size: 11px; margin-left: 6px; }
.lootlist { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; font-weight: 700; } .lootlist .more { color: var(--dim); font-weight: 500; }
.lootcats { margin-top: 3px; font-size: 12px; color: #aab2d0; }

/* ---- 장비 화면 ---- */
.gear { text-align: left; position: relative; }
.gear h2 { margin: 0 0 8px; display: flex; justify-content: space-between; }
.gsouls { font-size: 15px; color: #ffd86b; }
.gheroes { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.gheroes small, .ghint { color: #8890b8; font-size: 12px; }
.gchip, .gtab, .gact, .gbtn, .gdbtn { background: #1a1e3c; color: #d8dcf5; border: 1px solid #3a4170; border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; }
.gchip.on, .gtab.on, .gact.on, .gdbtn.on { background: #2e3a78; border-color: #9fb0ff; box-shadow: 0 0 0 1px #9fb0ff; }
.gtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.gtab small { margin-left: 5px; color: #8890b8; }
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 340px; }
.glist { max-height: 400px; overflow-y: auto; border: 1px solid #2c3260; border-radius: 10px; padding: 4px; }
.grow { display: flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.grow.sel { background: #2a3270; outline: 1px solid #9fb0ff; }
.grow.other { opacity: .5; }
.gr-name { flex: 1; } .gr-name em { color: #8890b8; font-style: normal; font-size: 12px; }
.gr-meta { color: #8890b8; font-size: 12px; } .gr-meta i { color: #ff9a9a; font-style: normal; margin-right: 4px; }
.gr-req.ok { color: #7cff9c; } .gr-req.no { color: #ff7070; }
.gr-lock { width: 18px; }
.gdetail { border: 1px solid #2c3260; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.gname { font-size: 18px; font-weight: 700; }
.gsub { color: #9aa2cc; font-size: 12px; margin-bottom: 6px; }
.greq { font-size: 13px; margin-bottom: 6px; } .greq.bad, .gl.bad { color: #ff7070; }
.gl { font-size: 14px; line-height: 1.5; } .gl.imp { color: #b8c0e8; } .gl.dim { color: #7880a8; }
.gl.up { color: #7cff9c; } .gl.down { color: #ff8a8a; }
.gtier { color: #7880a8; font-size: 11px; }
.gaff { margin: 6px 0; padding-top: 6px; border-top: 1px solid #2c3260; }
.gcmp { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #3a4170; } .gcmph { font-size: 12px; color: #9aa2cc; }
.gacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.gact.off, .gdbtn.off { opacity: .4; } .gact.danger, .gdbtn.danger { border-color: #a04040; color: #ffb0b0; }
.gbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.gmsg { flex: 1; text-align: center; color: #ffd86b; font-size: 13px; }
.gempty, .gnote { color: #7880a8; padding: 20px; text-align: center; }
.gmats { padding: 6px; } .gmat { display: grid; grid-template-columns: 30px 130px 50px 1fr; align-items: center; padding: 4px; } .gmat small { color: #8890b8; }
.gdlg { position: absolute; inset: 0; background: #000b; display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.gdlgbox { background: #181c3a; border: 2px solid #9fb0ff; border-radius: 14px; padding: 18px 24px; max-width: 520px; text-align: center; }
.gdlgbtns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.dwarn { color: #ff8a8a; }
.gflav { color:#ff9a3a; font-size:12px; font-style:italic; margin:4px 0; }
.genh { color:#7cff9c; } .gact { font-size: 13px; }
.gset { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #3a6a4a; } .gseth { color: #7cffb0; font-size: 13px; } .gseth small { color: #8890b8; }
.gsetl { font-size: 12px; color: #6a7298; } .gsetl.on { color: #7cffb0; } .gr-meta i.gsetb { color: #7cffb0; }
.ggrid { height: 480px; min-height: 0; } .gdetail { overflow-y: auto; min-height: 0; } .glist { max-height: none; }
.ggrid { grid-template-columns: 230px 1fr 1fr; }
.gslots { border: 1px solid #2c3260; border-radius: 10px; padding: 6px; overflow-y: auto; font-size: 13px; }
.gslh { color: #9aa2cc; font-size: 12px; padding: 2px 6px 6px; }
.gslot { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; padding: 5px 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.gslot:hover { background: #20265a; } .gslot.target { border-color: #9fb0ff; background: #232a62; }
.gs-n { width: 48px; color: #8890b8; font-size: 12px; } .gs-i { flex: 1; min-width: 80px; } .gs-i.dim, .gslot.empty { color: #5a628a; }
.gs-off { color: #ff7070; font-style: normal; } .gslot .gsetb { color: #7cffb0; font-size: 11px; font-style: normal; }
.gslset { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #3a6a4a; }
.gacts { position: sticky; bottom: -1px; background: #12152e; border-top: 1px solid #2c3260; margin-top: auto; padding-bottom: 4px; }
.chars { gap: 10px; } .char { width: 142px; padding: 16px 10px; }
.chars { gap: 8px; } .char { width: 136px; padding: 16px 8px; }
.gbtn.on { background: #2e3a78; border-color: #9fb0ff; }
.gstath { color: #ffd86b; font-size: 15px; margin-bottom: 6px; } .gstath small { color: #8890b8; margin-left: 6px; font-size: 11px; }
.gstattop { display: flex; gap: 14px; margin-bottom: 6px; font-size: 14px; } .gstattop b { color: #9aa2cc; font-weight: 600; margin-right: 3px; }
.gstatgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 18px; font-size: 13px; }
.gstatgrid > div { display: flex; justify-content: space-between; border-bottom: 1px solid #1d2248; padding: 2px 0; } .gstatgrid span { color: #9aa2cc; } .gstatgrid b { color: #e8ecff; }
.gstath2 { color: #9aa2cc; font-size: 12px; margin: 8px 0 3px; border-top: 1px dashed #3a4170; padding-top: 6px; }
.gstatlines { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: #cfd6f5; } .gstatsets { margin-top: 6px; color: #7cffb0; font-size: 13px; }
.gtrait { margin: 6px 0; padding: 5px 8px; border-left: 3px solid #ffb84a; background: #2a2210; color: #ffd98a; font-size: 13px; border-radius: 4px; }
.gtr { color: #ffb84a; font-size: 12px; }
.gstattraits { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12.5px; color: #ffd98a; } .gstattraits b { color: #ffb84a; }
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tcol h3 { margin: 0 0 8px; color: #ffd86b; font-size: 16px; text-align: center; }
.tnode { display: flex; gap: 10px; align-items: center; padding: 7px 10px; margin-bottom: 6px; border: 1px solid #2c3260; border-radius: 10px; background: #14183a; cursor: pointer; text-align: left; }
.tnode.sel { border-color: #9fb0ff; background: #232a62; }
.tnode.own { border-color: #4a8a5a; background: #14301f; } .tnode.can { border-color: #c8a84a; } .tnode.poor { opacity: .75; } .tnode.lock { opacity: .4; }
.tnode .tico { font-size: 20px; } .tnode .tn { flex: 1; display: flex; flex-direction: column; } .tnode .tn small { color: #9aa2cc; font-size: 11.5px; } .tnode .tc { color: #ffd86b; font-weight: 700; }
.web { width: 100%; height: min(66vh, 640px); display: block; }
.web .te { stroke: #2f3668; stroke-width: 3; } .web .te.hot { stroke: #6a5a2a; stroke-width: 3; stroke-dasharray: 6 6; } .web .te.on { stroke: #5bd48a; stroke-width: 4; filter: drop-shadow(0 0 4px #3fbf74); }
.web .tn2 circle { fill: #14183a; stroke: #3a4170; stroke-width: 3; cursor: pointer; }
.web .tn2.own circle { fill: #14301f; stroke: #4fcf80; } .web .tn2.can circle { stroke: #ffd24a; } .web .tn2.poor circle { stroke: #8a7a3a; opacity: .85; } .web .tn2.lock { opacity: .4; }
.web .tn2.keystone circle { stroke-width: 4; } .web .tn2.sel circle { stroke: #fff; stroke-width: 4.5; filter: drop-shadow(0 0 8px #9fb0ff); }
.web text.ti { font-size: 22px; text-anchor: middle; pointer-events: none; } .web .tc0 circle { fill: #232a62; stroke: #9fb0ff; stroke-width: 3; } .web .tl { fill: #9aa2cc; font-size: 20px; font-weight: 700; }
.tdesc { text-align: center; margin: 6px 0 2px; color: #e8ecff; font-size: 14px; }
.gmast { list-style: none; padding: 0; margin: 6px 0; font-size: 13px; color: #6a7298; } .gmast li.on { color: #7cffb0; } .gmast b { margin-right: 6px; }
.web .item { transform: none !important; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; display: inline; }
.gtags { display: flex; flex-direction: column; gap: 3px; } .gtag { font-size: 13px; padding: 3px 8px; border-left: 3px solid #5a628a; background: #151a3c; color: #cfd6f5; border-radius: 3px; } .gtag.on { border-left-color: #7cffb0; color: #aaf5c8; }
.gtagchip { display: inline-block; font-size: 12px; padding: 1px 8px; margin-right: 5px; border-radius: 10px; background: #26306a; color: #bfe0ff; }
.gtagrow { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
/* ---- 도술 Lv 성장 ---- */
.box.panel:has(.mbar) { width: min(680px, 96vw); }
.strow:has(.mbar) { grid-template-columns: 30px 80px 190px 40px 1fr; }
.mbar { position: relative; height: 18px; border-radius: 9px; background: #0b0e20; border: 1px solid #3a4170; overflow: hidden; }
.mbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #4a8ad8, #9ad4ff); }
.mbar em { position: relative; display: block; text-align: center; font-size: 11px; font-style: normal; line-height: 18px; color: #fff; font-weight: 700; }
.gmast li.open { color: #7aff9a; } .gmast li .dim { color: #6b739c; }
/* ---- 장비 화면 개선 (슬롯 중심) ---- */
.box.wide:has(.gear), .box.gear { width: min(1240px, 98vw); padding: 22px 28px; }
.ghead { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.ghead h2 { margin: 0; font-size: 24px; } .ghead .gheroes { flex: 1; margin: 0; } .gsouls b { color: #fff; font-size: 18px; }
.gchip { font-size: 15px; padding: 6px 12px; }
.gtabs { gap: 8px; margin-bottom: 12px; align-items: center; }
.gtabs .gtab { font-size: 16px; font-weight: 700; padding: 9px 18px; border-radius: 10px; }
.gtab small { font-weight: 400; font-size: 12px; margin-left: 8px; }
.gsubtabs { display: flex; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 2px solid #3a4170; }
.gsubtabs .gtab { font-size: 14px; padding: 6px 14px; }
.ggrid { grid-template-columns: 290px minmax(260px, 1fr) minmax(340px, 1.15fr); height: 560px; gap: 14px; }
.gslots { padding: 8px; font-size: 15px; } .gslh { font-size: 12.5px; padding: 2px 6px 8px; }
.gslot { border-left: 4px solid #2c3260; border-radius: 8px; padding: 5px 10px; margin-bottom: 3px; align-items: center; background: #141836; }
.gslot.empty { background: transparent; border-left-color: #232850; } .gslot.target { border-left-color: #9fb0ff; background: #26306a; }
.gs-n { width: 52px; font-size: 13px; } .gs-i { font-size: 15px; } .gs-c { margin-left: auto; font-size: 12px; color: #8890b8; background: #0d1030; border-radius: 9px; padding: 0 7px; }
.glistw { display: flex; flex-direction: column; min-height: 0; border: 1px solid #2c3260; border-radius: 10px; }
.glistw .glist { border: 0; flex: 1; padding: 6px; } .glh { padding: 9px 14px; font-size: 14px; font-weight: 700; color: #ffd86b; border-bottom: 1px solid #2c3260; background: #151a3c; border-radius: 10px 10px 0 0; }
.grow { border-left: 4px solid transparent; padding: 9px 10px; margin-bottom: 3px; font-size: 15px; background: #12163a; }
.grow.sel { background: #2a3270; } .gr-meta { font-size: 12.5px; } .gbadge { font-style: normal; font-size: 11px; background: #35407f; color: #cfe0ff; padding: 1px 7px; border-radius: 8px; margin-right: 4px; }
.gdetail { padding: 14px 16px; } .gname { font-size: 21px; margin-bottom: 2px; } .gl { font-size: 15px; } .gsub { font-size: 13px; } .greq { font-size: 14px; }
.gacts { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 2px; }
.gagrp .gagh { font-size: 11.5px; color: #8890b8; margin-bottom: 4px; letter-spacing: .5px; } .gabtns { display: flex; flex-wrap: wrap; gap: 6px; }
.gagrp.main .gact { font-size: 15px; font-weight: 700; padding: 9px 18px; background: #24366e; border-color: #7f95ee; } .gagrp.main .gact.on { background: #3a52a8; }
.gagrp.bag .gact { font-size: 13px; } .gagrp.craft .gact { font-size: 12.5px; padding: 5px 9px; }
.gbar .gbtn { font-size: 14px; padding: 8px 14px; }
.ghint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.9; } .ghint kbd { margin: 0 3px 0 8px; }
/* ---- 결과 화면 (요약 + 카드) ---- */
.box.result { width: min(1020px, 98vw); max-height: 96vh; padding: 22px 30px; }
.result h1 { margin: 0 0 2px; } .result .sub { margin: 0 0 4px; }
.kpis { display: flex; justify-content: center; gap: 14px; margin: 12px 0 14px; flex-wrap: wrap; }
.kpi { min-width: 120px; padding: 10px 18px; border-radius: 12px; background: #151a3c; border: 1px solid #2f3868; display: flex; flex-direction: column; } .kpi b { font-size: 28px; color: var(--gold2); } .kpi span { color: var(--dim); font-size: 12px; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.rcard { background: #12163a; border: 1px solid #2c3260; border-radius: 12px; padding: 12px 16px; min-height: 120px; } .rcard h3 { margin: 0 0 8px; font-size: 16px; color: #ffd86b; }
.rrow { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #1d2248; font-size: 14px; } .rrow span { color: #9aa2cc; } .rrow b { color: #e8ecff; } .rrow small { color: #8890b8; font-weight: 400; }
.rsub { font-size: 12px; color: #9aa2cc; margin: 8px 0 4px; } .rnone { color: #6b739c; font-size: 13px; margin: 6px 0; } .rhint { font-size: 12.5px; color: #7aff9a; margin: 8px 0 0; } .rhint.unl { color: #ffd86b; }
.sbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #0b0e20; } .sbar i { display: block; height: 100%; }
.slegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: #cfd6f5; } .slegend em { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.skrow { display: grid; grid-template-columns: 110px 46px 1fr 70px auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; } .skrow b { text-align: right; color: #bfe0ff; }
.skbar { height: 10px; border-radius: 5px; background: #0b0e20; overflow: hidden; } .skbar i { display: block; height: 100%; background: linear-gradient(90deg, #4a8ad8, #9ad4ff); }
.rcard .lootbox { margin: 0; border: 0; padding: 0; background: none; }
.box.result { padding: 14px 26px; } .result h1 { font-size: 40px; } .result .score { font-size: 38px; } .kpis { margin: 8px 0 10px; } .kpi { padding: 6px 16px; } .kpi b { font-size: 24px; } .rcard { min-height: 0; padding: 10px 14px; } .result .ups { margin: 6px 0 0; font-size: 18px; } .result .hint { margin-top: 8px; }
.gr-meta i.gfit { color: #ffd86b; font-style: normal; margin-right: 6px; }
.ctags { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 4px 0; } .ctags span { font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #3a2f12; color: #ffd86b; }
.box.panel.skillsel { width: min(760px, 96vw); } .skillsel .items .item small { display: block; margin-top: 2px; } .skillsel .ctags { display: inline-flex; margin-left: 6px; }
.gcraft h4 { margin: 10px 0 3px; font-size: 12.5px; color: #ffd86b; font-weight: 700; } .gcraft p { margin: 0; }
.gratetab { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } .gratetab span { background: #151a3c; border-radius: 6px; padding: 3px 4px; text-align: center; font-size: 14px; color: #7cffb0; font-weight: 700; } .gratetab span.risk { color: #ffd86b; } .gratetab em { display: block; font-style: normal; font-size: 10.5px; color: #8890b8; font-weight: 400; }

/* =====================================================================
   디자인 시스템 (마감 레이어): 간격 4/8/12/16/24 · 반경 8/12/16 · 글자 12/13/15/18/24/44 · 모든 화면이 같은 토큰을 쓴다
   ===================================================================== */
:root {
  --sp1: 4px; --sp2: 8px; --sp3: 12px; --sp4: 16px; --sp5: 24px;
  --r1: 8px; --r2: 12px; --r3: 16px;
  --line: #2d3566; --line-hi: #55609f; --bg-card: #161a34; --bg-card-hi: #232a58; --bg-inset: #0e1226;
  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 18px; --t-xl: 24px;
  --w-panel: 600px;
}
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a4170; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background: #55609f; background-clip: content-box; }
/* 제목: 한 줄, 화면 폭에 맞춰 */
#menu h1 { font-size: clamp(34px, 4.6vw, 46px); white-space: nowrap; letter-spacing: .08em; }
#menu h2 { font-size: var(--t-xl); line-height: 1.2; }
.sub { font-size: var(--t-md); line-height: 1.55; }
/* 패널 폭 통일 */
.box.panel { width: min(var(--w-panel), 94vw); padding: 28px 32px; }
/* 메뉴 줄: 아이콘 칸 + 글자 칸 + 오른쪽 값. 선택해도 위치가 움직이지 않는다(테두리·글로우만) */
.item { min-height: 52px; padding: 10px 18px; font-size: var(--t-lg); transition: border-color .12s, background .12s, box-shadow .12s; }
.item.sel { transform: none; box-shadow: 0 0 0 1px var(--gold) inset, 0 0 22px #f2c35b44; }
.item:hover:not(.sel) { border-color: var(--line-hi); background: #1a2040; }
.ilabel { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.iico { width: 1.7em; flex: none; text-align: center; font-style: normal; }
.item .souls, .item .cost { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.item small { font-size: var(--t-sm); line-height: 1.45; }
.hint { font-size: var(--t-sm); line-height: 1.6; margin-top: var(--sp4); text-align: center; }
.box.panel .hint { text-align: left; }
/* 조작법 */
.keys { align-items: start; gap: 10px 20px; line-height: 1.55; } .keys > span:nth-child(odd) { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 2px; color: #cfd6f0; font-weight: 600; font-size: var(--t-sm); } .keys > span:nth-child(even) { font-size: var(--t-sm); color: #d8dcef; }
/* 도전 과제 목록: 아래가 잘리지 않고 은은하게 사라진다 */
.achlist { padding: 2px 4px 22px 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
.ach { min-height: 62px; } .ach .atxt b { font-size: var(--t-md); }
/* 캐릭터 카드: 모든 카드가 같은 높이·같은 줄 위치 */
.chars { align-items: stretch; gap: 14px; }
.char { display: flex; flex-direction: column; align-items: stretch; width: 158px; min-height: 470px; padding: 18px 12px 14px; }
.char.sel { transform: translateY(-4px); }
.char .cico { height: 66px; display: grid; place-items: center; } .char .cname { margin-top: 2px; line-height: 1.2; } .char .ctitle { min-height: 20px; }
.char .ctraits { min-height: 52px; align-content: flex-start; } .char .ctags { min-height: 26px; margin: 4px 0 2px; }
.char .cskill { min-height: 92px; } .char .cblurb { flex: 1; min-height: 0; margin: 10px 0 8px; } .char .crec { margin-top: auto; padding-top: 6px; border-top: 1px solid #232a52; }
.char.locked .unlockhint { margin-top: auto; margin-bottom: 4px; }
/* 도술 선택/강화 목록 줄 */
.skillsel .items .item { align-items: flex-start; } .skillsel .items .item > span:first-child { flex: 1; }
.strow { min-height: 56px; }
.strow .sico { font-size: 22px; text-align: center; } .strow .sname { font-size: var(--t-lg); font-weight: 700; } .strow .sval { text-align: center; font-variant-numeric: tabular-nums; } .strow .sdesc { font-size: var(--t-sm); color: #cfd6f0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.strow:has(.mbar) { grid-template-columns: 34px 84px 190px 44px 1fr; }
.panel .gmast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; font-size: var(--t-sm); margin: 12px 0; } .panel .gmast li { display: flex; gap: 8px; padding: 4px 8px; border-radius: 8px; background: #12163a; border: 1px solid #232a52; } .panel .gmast li.on { border-color: #3a8a5a; background: #14261c; } .panel .gmast li.open { border-color: #5a8a3a; }
.xpbar { height: 20px; border-radius: 10px; margin: 6px 0 14px; } .xpbar span { line-height: 20px; font-size: 12px; }
/* 결과/일시정지 등 가운데 정렬 패널 */
.box:not(.panel) .items { max-width: 520px; margin-left: auto; margin-right: auto; }
.box.wide:has(.chars) { width: min(1280px, 98vw); } .chars { flex-wrap: nowrap; gap: 10px; } .char { flex: 1 1 0; width: auto; max-width: 162px; min-width: 132px; padding: 18px 10px 14px; }
.char .ctags span { padding: 2px 8px; line-height: 1.35; border-radius: 999px; } .char .ctags { align-items: center; gap: 4px; justify-content: center; }
.char .ctraits span { line-height: 1.35; }
.gtabs .gtab { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.gacts:empty { display: none; }
/* 결과 화면: 넓게 · 열 균등 · 한 줄 요약 · 줄바꿈 방지 */
.box.result { width: min(1480px, 98vw); padding: 18px 36px; }
.result .kpis { flex-wrap: nowrap; gap: 14px; } .result .kpi { flex: 1 1 0; min-width: 0; max-width: 260px; }
.rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rrow { gap: 14px; } .rrow span { white-space: nowrap; flex: none; } .rrow b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.rnote { font-size: 12px; color: #8890b8; text-align: right; margin: 2px 0 4px; }
.lootrune { display: inline-block; margin: 2px 12px 2px 0; white-space: nowrap; }
@media (min-width: 1500px) { .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rcard { min-height: 330px; } }
@media (max-width: 900px) { .rgrid { grid-template-columns: minmax(0, 1fr); } .result .kpis { flex-wrap: wrap; } }
/* 시작 도술 선택: 캐릭터 선택처럼 가로 카드 */
.box.wide:has(.scards) { width: min(1480px, 98vw); }
.scards { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; align-items: stretch; }
.scard { flex: 1 1 0; min-width: 120px; max-width: 160px; min-height: 380px; display: flex; flex-direction: column; padding: 16px 10px 12px; border-radius: 16px; background: #161a34; border: 2px solid #2d3566; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.scard.sel { border-color: var(--gold); background: #232a58; box-shadow: 0 0 28px #f2c35b55; transform: translateY(-4px); }
.scard .cico { height: 58px; display: grid; place-items: center; font-size: 46px; } .scard .cname { font-size: 22px; } .scard .ctitle { min-height: 20px; margin-bottom: 4px; }
.scard .ctags { min-height: 50px; align-content: flex-start; flex-wrap: wrap; gap: 4px; justify-content: center; } .scard .ctags span.hit { background: #4a3a10; color: #ffe28a; border: 1px solid #a8842a; }
.scard .cblurb { flex: 1; font-size: 12px; margin: 8px 0; min-height: 0; }
.scard .sfit { min-height: 76px; padding: 8px; border-radius: 10px; background: #0e1226; font-size: 12px; line-height: 1.5; text-align: left; display: flex; flex-direction: column; gap: 2px; } .scard .sfit b { color: #ffd86b; font-size: 13px; } .scard .sfit span { color: #ffe9a0; } .scard .sfit em { color: #6b739c; font-style: normal; }
.scard.fit { border-color: #6a5a2a; } .scard.fit.sel { border-color: var(--gold); }
@media (max-width: 1100px) { .scards { flex-wrap: wrap; } .scard { flex: 0 0 150px; } }
.result .hint { text-align: center; }
.web { height: min(72vh, 780px); } .box.wide:has(.web) { width: min(1180px, 98vw); }
.web .tl { font-size: 24px; }
/* 마우스·키보드 동등: 뒤로/키 안내 버튼 */
.box { position: relative; }
.backbtn { position: absolute; top: 14px; right: 16px; z-index: 2; background: #1a1e3c; color: #d8dcf5; border: 1px solid #3a4170; border-radius: 8px; padding: 6px 12px; font: 600 13px var(--ui); cursor: pointer; } .backbtn:hover { background: #2e3a78; border-color: #9fb0ff; } .backbtn kbd { margin-left: 6px; }
.mbtn { background: #1a1e3c; color: #d8dcf5; border: 1px solid #3a4170; border-radius: 10px; padding: 9px 16px; margin: 0 6px 0 0; font: 600 14px var(--ui); cursor: pointer; } .mbtn:hover { background: #2e3a78; border-color: #9fb0ff; } .mbtn.pri { background: #24366e; border-color: #7f95ee; } .mbtn kbd { margin-left: 6px; }
.hint.actions { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ascbtn { background: #1a1e3c; color: var(--gold2); border: 1px solid #3a4170; border-radius: 6px; width: 28px; height: 24px; cursor: pointer; font-size: 12px; margin-left: 4px; } .ascbtn:hover { background: #2e3a78; border-color: #9fb0ff; }
.char { cursor: pointer; } .char.locked.ghost { cursor: default; }
.zoombtns { margin-left: 18px; vertical-align: middle; } .zoombtns .mbtn { padding: 3px 12px; margin: 0 2px; font-size: 13px; }
.box:has(.backbtn) h2 { padding-right: 120px; }
/* 소울스톤 트리 (PoE 패시브 트리 풍): 큰 노드 등급 · 넉넉한 간격 · 설명 패널 */
.web { height: min(66vh, 720px); background: radial-gradient(60% 60% at 50% 50%, #151a3a 0%, #0b0e20 100%); border: 1px solid #232a58; border-radius: 12px; }
.web .tn2 circle, .web .tn2 polygon { fill: #14183a; stroke: #3a4170; stroke-width: 3; cursor: pointer; transition: stroke .12s; } .web .tn2 .ring2 { fill: none; stroke: #2b3366; stroke-width: 2; }
.web .tn2.own circle, .web .tn2.own polygon { fill: #14301f; stroke: #4fcf80; } .web .tn2.own .ring2 { stroke: #2f8a56; }
.web .tn2.can circle, .web .tn2.can polygon { stroke: #ffd24a; } .web .tn2.can .ring2 { stroke: #8a7a2a; }
.web .tn2.poor circle, .web .tn2.poor polygon { stroke: #8a7a3a; } .web .tn2.lock { opacity: .38; }
.web .tn2.keystone polygon { stroke-width: 5; fill: #1b1740; } .web .tn2.keystone.own polygon { fill: #1c3a2a; }
.web .tn2.sel circle, .web .tn2.sel polygon { stroke: #fff; stroke-width: 5; filter: drop-shadow(0 0 10px #9fb0ff); } .web .tn2.sel { opacity: 1; }
.web .tn2:hover circle, .web .tn2:hover polygon { stroke: #cfd8ff; }
.web .te { stroke-width: 4; } .web .te.on { stroke-width: 6; }
.web .tl { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.tpanel { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; margin-top: 10px; padding: 12px 18px; border-radius: 14px; background: #12163a; border: 2px solid #2d3566; } .tpanel.can { border-color: #a8842a; } .tpanel.own { border-color: #3a8a5a; }
.tp-ico { font-size: 40px; text-align: center; } .tp-main b { font-size: 20px; color: #ffe9a0; } .tp-tag { margin-left: 8px; font-size: 12px; color: #9aa2cc; background: #0e1226; border-radius: 999px; padding: 2px 10px; } .tp-desc { margin-top: 4px; font-size: 15px; color: #e8ecff; }
.tp-act { text-align: right; min-width: 170px; } .tp-cost { font-size: 18px; font-weight: 800; color: #b7a6ff; margin-bottom: 4px; } .tp-act small { display: block; color: #ff9a8e; font-size: 12px; margin-top: 4px; max-width: 220px; margin-left: auto; }
.mbtn.off { opacity: .45; } .zpct { display: inline-block; min-width: 46px; text-align: center; font-size: 13px; color: #9aa2cc; }
/* 장비 인형: 사람 몸 실루엣 위에 부위별 칸 (디아블로/POE 식) */
.ggrid { grid-template-columns: 330px minmax(240px, 1fr) minmax(320px, 1.1fr); }
.doll { position: relative; width: 300px; height: 404px; margin: 4px auto 6px; flex: none; }
.dollbody { position: absolute; inset: 0; width: 300px; height: 404px; pointer-events: none; }
.dslot { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: 10px; background: linear-gradient(#171c40, #101434); border: 2px solid #2c3468; cursor: pointer; overflow: hidden; text-align: center; transition: border-color .12s, box-shadow .12s, transform .12s; }
.dslot:hover { border-color: #7f95ee; transform: translateY(-1px); }
.dslot.has { border-color: var(--rc, #55609f); box-shadow: inset 0 0 14px color-mix(in srgb, var(--rc, #55609f) 30%, transparent); }
.dslot.empty { border-style: dashed; opacity: .85; }
.dslot.target { border-color: #ffe28a; box-shadow: 0 0 0 2px #ffe28a66, 0 0 16px #f2c35b66; opacity: 1; }
.dslot.off { filter: saturate(.4); } .dslot.setp::after { content: ''; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #7cffb055; pointer-events: none; }
.ds-n { position: absolute; top: 3px; left: 5px; font-size: 10px; color: #8890b8; letter-spacing: .5px; }
.ds-i { font-size: 26px; line-height: 1; margin-top: 8px; filter: drop-shadow(0 2px 4px #000a); } .ds-i.dim { opacity: .35; margin-top: 0; font-size: 28px; }
.ds-name { font-size: 11px; line-height: 1.15; font-weight: 700; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.ds-enh { position: absolute; top: 3px; right: 5px; font-size: 11px; color: #7cff9c; } .ds-tr { position: absolute; bottom: 3px; left: 5px; font-style: normal; font-size: 11px; color: #ffb84a; } .ds-off { position: absolute; bottom: 3px; right: 22px; color: #ff7070; font-style: normal; font-size: 12px; }
.ds-c { position: absolute; bottom: 3px; right: 5px; font-size: 10px; color: #8890b8; background: #0b0e24; border-radius: 8px; padding: 0 5px; }
.dslot[data-i="5"] .ds-name, .dslot[data-i="6"] .ds-name { display: none; } .dslot[data-i="5"] .ds-i, .dslot[data-i="6"] .ds-i { margin-top: 2px; font-size: 20px; }
.gslots { display: flex; flex-direction: column; }
.doll { zoom: .86; margin: 0 auto 2px; }
.gslots .gslot { padding: 4px 8px; margin-bottom: 2px; } .gslots .gslh { padding: 2px 6px 4px; }

/* =====================================================================
   카툰 레이어 (귀엽고 통통한 스타일): 진한 보라 외곽선 · 단단한 아래 그림자 · 말랑한 라운드 · 밝은 포인트 색 · 둥근 한글 글꼴(Jua)
   ===================================================================== */
:root {
  --ink: #fff8ea; --dim: #c4bde8; --gold: #ffd84a; --gold2: #ffe98a; --line: #2b1d40; --line-hi: #ffd84a;
  --toon-ink: #2b1d40; --toon-deep: #1d1230;
  --font: "Jua", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --ui: "Jua", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --bg-card: #4b43a6; --bg-card-hi: #6a5ad0; --bg-inset: #2f2872;
}
html, body { background: #231a47; letter-spacing: .01em; }
#menu { background: radial-gradient(90% 70% at 50% 25%, #6a5ad0cc 0%, #342a78e6 55%, #1b1236f2 100%); backdrop-filter: blur(5px); }
h1, h2, h3 { font-family: var(--font); text-shadow: 0 3px 0 var(--toon-ink); letter-spacing: .04em; }
h1 { color: var(--gold2); -webkit-text-stroke: 3px var(--toon-ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--toon-deep); }
h2 { color: var(--gold2); }
/* 패널 / 카드: 진한 외곽선 + 아래로 떨어지는 단단한 그림자 */
.box.panel { background: linear-gradient(#5e52b8, #3e3585); border: 4px solid var(--toon-ink); border-radius: 24px; box-shadow: 0 8px 0 var(--toon-deep), 0 22px 40px #0008; }
.item, .char, .scard, .ach, .strow, .rcard, .kpi, .tpanel, .lootbox, .ascbox, .gslots, .glistw, .gdetail, .web { border-width: 3px; border-color: var(--toon-ink); border-radius: 18px; box-shadow: 0 4px 0 var(--toon-deep); }
.item, .strow, .ach { background: linear-gradient(#5b52b6, #4a4296); }
.char, .scard { background: linear-gradient(#5f55bd, #463d96); }
.item.sel, .char.sel, .scard.sel, .strow.sel { border-color: var(--toon-ink); background: linear-gradient(#ffe36a, #ffc23a); color: #3a2410; box-shadow: 0 5px 0 #b57a14, 0 0 0 3px #fff6c4 inset, 0 0 26px #ffd84a88; transform: translateY(-2px); }
.item.sel small, .item.sel .souls, .item.sel .cost, .char.sel .ctitle, .char.sel .cblurb, .strow.sel .sdesc { color: #5a3a14 !important; }
.char.sel .cname, .scard.sel .cname { color: #7a3a0a; text-shadow: none; }
.item:hover:not(.sel) { background: linear-gradient(#6e63cc, #5a50ae); border-color: var(--toon-ink); }
.char.locked { opacity: .75; filter: saturate(.6); }
.cname { font-family: var(--font); color: var(--gold2); text-shadow: 0 2px 0 var(--toon-ink); } .cskill, .ctraits span, .ctags span { border-radius: 12px; }
.cskill { background: #2f2872; border: 2px solid var(--toon-ink); } .ctraits span { background: #2f2872; border: 2px solid var(--toon-ink); color: #fff; }
.hint, .sub, .dim { color: var(--dim); }
kbd { background: #fff8ea; color: #3a2410; border: 2px solid var(--toon-ink); border-bottom-width: 4px; border-radius: 8px; padding: 0 7px; font-family: var(--font); }
/* 버튼 */
.mbtn, .gchip, .gtab, .gact, .gbtn, .gdbtn, .backbtn, .ascbtn { font-family: var(--font); background: linear-gradient(#7a6ee0, #5b4fc0); color: #fff; border: 3px solid var(--toon-ink); border-radius: 14px; box-shadow: 0 4px 0 var(--toon-deep); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.mbtn:hover, .gchip:hover, .gtab:hover, .gact:hover, .gbtn:hover, .backbtn:hover, .ascbtn:hover { background: linear-gradient(#9488f4, #6e62d6); border-color: var(--toon-ink); transform: translateY(-1px); }
.mbtn:active, .gchip:active, .gtab:active, .gact:active, .gbtn:active, .backbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--toon-deep); }
.mbtn.pri, .gchip.on, .gtab.on, .gact.on, .gdbtn.on, .gbtn.on { background: linear-gradient(#ffe36a, #ffc23a); color: #3a2410; box-shadow: 0 4px 0 #b57a14; border-color: var(--toon-ink); }
.gact.off, .mbtn.off { filter: grayscale(.6); opacity: .6; } .gact.danger { background: linear-gradient(#ff8a8a, #e0485a); }
/* 게이지 */
.xpbar, .mbar, .skbar, .sbar { background: #2a1f45; border: 3px solid var(--toon-ink); border-radius: 999px; }
.xpbar i, .mbar i, .skbar i { background: linear-gradient(#8ae0ff, #4a9af0); box-shadow: inset 0 3px 0 #ffffff55; }
/* 숫자·강조 */
.souls, .gsouls { color: #fff3a8; text-shadow: 0 2px 0 var(--toon-ink); } .gp { color: #9affb4; } .nb { background: #2e8a5a; color: #fff; border: 2px solid var(--toon-ink); }
.score { color: var(--gold2); -webkit-text-stroke: 2px var(--toon-ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--toon-deep); }
.kpi b, .stats b { color: var(--gold2); text-shadow: 0 2px 0 var(--toon-ink); }
/* 장비 / 트리 / 결과 */
.gslots, .glistw, .gdetail { background: linear-gradient(#4a4296, #3a3280); }
.glh { background: #2f2872; border-bottom: 3px solid var(--toon-ink); color: var(--gold2); }
.grow { background: #4f47a6; border-radius: 12px; border-left-width: 5px; } .grow.sel { background: linear-gradient(#ffe36a, #ffc23a); color: #3a2410; } .grow.sel .gr-meta, .grow.sel .gr-name { color: #4a2c0c !important; }
.dslot { background: linear-gradient(#6a5fd0, #4a4296); border: 3px solid var(--toon-ink); border-radius: 14px; box-shadow: 0 4px 0 var(--toon-deep); } .dslot.has { border-color: var(--toon-ink); box-shadow: 0 4px 0 var(--toon-deep), inset 0 0 0 3px var(--rc, #fff); } .dslot.target { box-shadow: 0 4px 0 #b57a14, 0 0 0 3px #ffe36a, 0 0 18px #ffd84a; }
.dollbody { opacity: .55; }
.rcard, .tpanel { background: linear-gradient(#524aab, #413985); } .rcard h3 { color: var(--gold2); }
.web { background: radial-gradient(60% 60% at 50% 50%, #4a41a0 0%, #2a2468 100%); }
.gname { font-family: var(--font); }
.gdlgbox { background: linear-gradient(#5e52b8, #3e3585); border: 4px solid var(--toon-ink); border-radius: 22px; box-shadow: 0 8px 0 var(--toon-deep); }
.achv-toast { background: linear-gradient(#5e52b8, #3e3585); border: 4px solid var(--toon-ink); border-radius: 20px; box-shadow: 0 6px 0 var(--toon-deep); }

/* ---- 이미지 에셋 연결 (assets/img/ui, bg): 파일이 없으면 위의 코드 스타일이 그대로 보인다 ---- */
#menu { background-image: var(--img-menu, linear-gradient(transparent, transparent)), radial-gradient(90% 70% at 50% 25%, #6a5ad0cc 0%, #342a78e6 55%, #1b1236f2 100%); background-size: cover, auto; background-position: center; background-repeat: no-repeat; }
.eimg { width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; }
.iico .eimg { width: 1.45em; height: 1.45em; }
.box.panel, .gdlgbox { border-image: var(--img-panel, none) 30% fill / 22px stretch; }
.item, .strow, .ach, .mbtn, .gchip, .gtab, .backbtn { border-image: var(--img-button, none) 30% fill / 16px stretch; }
.item.sel, .strow.sel, .mbtn.pri, .gchip.on, .gtab.on { border-image: var(--img-button-sel, none) 30% fill / 16px stretch; }
.char, .scard, .rcard { border-image: var(--img-card, none) 30% fill / 18px stretch; }
.char.sel, .scard.sel { border-image: var(--img-card-sel, none) 30% fill / 18px stretch; }
.iticon { vertical-align: middle; image-rendering: auto; }
.ds-i .iticon { filter: drop-shadow(0 2px 0 rgba(29,18,48,.5)); }
.gdlg .dlg-ico { display: block; text-align: center; margin: 4px 0 8px; }
/* 도술 강화: 소켓·보조 젬 */
.socks { display: flex; gap: 3px; justify-content: center; }
.sock { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2b1d40; background: #2a1f45; font-style: normal; font-size: 13px; line-height: 18px; text-align: center; }
.sock.on { background: linear-gradient(#ffe9a0, #ffb84a); }
.socks2 { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0; }
.sockbox { min-width: 92px; padding: 6px 8px; border-radius: 14px; border: 3px solid #2b1d40; background: #2a1f45; text-align: center; color: #8a82b8; }
.sockbox i { display: block; font-style: normal; font-size: 22px; } .sockbox b { font-size: 12px; }
.sockbox.open { color: #dfe6ff; border-color: #ffd84a; } .sockbox.on { background: linear-gradient(#ffe9a0, #ffb84a); color: #3a2410; }
.slink { color: #ffd84a; font-weight: 900; }
.strow:has(.socks) { grid-template-columns: 34px 84px 160px 100px 1fr; }
.box.panel:has(.socks) { width: min(780px, 96vw) !important; }
.sgem { display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 0 rgba(43,29,64,0.5)); }
.sock { display: inline-flex; align-items: center; justify-content: center; background: none !important; border: 0 !important; width: auto; height: auto; }
.sockbox i svg { margin: 0 auto; }
/* 보조 젬 강화 */
.glv { color: #ffd86b; font-size: 12px; margin-left: 4px; }
.upbtn { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #ffd86b; color: #2b1d40; font-size: 12px; font-weight: bold; border: 2px solid #2b1d40; cursor: pointer; }
.upbtn:hover { background: #fff0a8; }
.upbtn.max { background: #8890b8; cursor: default; }
.item .ilabel > span { white-space: nowrap; }
/* 소울스톤 트리: 인물 고르기 */
.theroes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; }
.theroes .mbtn { padding: 3px 10px; font-size: 13px; }
.theroes .tattr { margin-left: auto; color: #dfe6ff; font-size: 13px; }
.theroes .tattr b { color: #ffd86b; }
/* 출발 전 난이도 패널: 인물 카드 위로 올려 스크롤 없이 보이게 */
.ascbox { margin: 6px auto 10px; }
/* 소울스톤 트리: 화면 높이에 맞춰 지도가 늘어나고, 설명·[열기]가 항상 보인다 */
.box.wide:has(.web) { display: flex; flex-direction: column; height: calc(100vh - 20px); max-height: calc(100vh - 20px); overflow: hidden; padding: 12px 20px 10px; }
.box.wide:has(.web) h2 { margin: 0 0 4px; }
.box.wide:has(.web) .web { height: auto; flex: 1 1 0; min-height: 180px; }
.box.wide:has(.web) .tpanel { margin-top: 6px; padding: 6px 14px; gap: 12px; grid-template-columns: 48px 1fr auto; }
.box.wide:has(.web) .tp-ico { font-size: 30px; } .box.wide:has(.web) .tp-main b { font-size: 18px; } .box.wide:has(.web) .tp-act { min-width: 150px; }
.box.wide:has(.web) .hint { margin-top: 4px; font-size: 12px; }
.web .tmark rect { fill: #0e1226; fill-opacity: .92; stroke: #ffd86b; stroke-width: 2; } .web .tmark text { fill: #fff; text-anchor: middle; font-weight: 800; pointer-events: none; }
.web .tbadge circle { fill: #ffd24a; stroke: #2b1d40; stroke-width: 2; } .web .tbadge text { fill: #2b1d40; text-anchor: middle; font-weight: 900; pointer-events: none; }
.web .tn2.can circle, .web .tn2.can polygon { stroke-width: 5; filter: drop-shadow(0 0 5px #ffd24a); }
/* 출발 준비 화면 */
.maps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 6px; }
.mapcard { text-align: center; padding: 10px 8px; border-radius: 16px; background: linear-gradient(#524aab, #413985); border: 3px solid var(--toon-ink, #2b1d40); box-shadow: 0 4px 0 var(--toon-deep, #1c1230); cursor: pointer; }
.mapcard .mico { font-size: 34px; } .mapcard b { display: block; font-size: 17px; color: #ffe9a0; margin: 2px 0; } .mapcard small { display: block; font-size: 12px; color: #dfe6ff; line-height: 1.35; }
.mapcard.sel { background: linear-gradient(#ffe27a, #f2b83a); } .mapcard.sel b, .mapcard.sel small { color: #2b1d40; }
.mapcard:hover { filter: brightness(1.1); }
.readybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.gearinfo { font-size: 13px; color: #dfe6ff; flex: 1; } .gearinfo.bad { color: #ffb0a0; }
.rbtns { display: flex; gap: 8px; } .rbtns .mbtn { padding: 8px 16px; font-size: 15px; }
/* ---- 장비 화면 개편: 4탭 · 아이콘 격자 · 드래그&드롭 ---- */
.gear .ggrid { height: 560px; gap: 12px; }
.ggrid.gp0 { grid-template-columns: 300px minmax(300px, 1fr) minmax(260px, 1fr) minmax(260px, 0.9fr); }
.ggrid.gp1, .ggrid.gp2, .ggrid.gp3 { grid-template-columns: minmax(330px, 1.1fr) minmax(280px, 1fr) minmax(300px, 1fr); }
.gwork { border: 3px solid var(--toon-ink); border-radius: 18px; background: linear-gradient(#4a4296, #3a3280); box-shadow: 0 4px 0 var(--toon-deep); padding: 12px 14px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.gcats { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 0; } .gcats .gchip { padding: 2px 9px; font-size: 12px; }
.gcells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-content: start; min-height: 100%; }
.gcell { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(#2c2670, #221d58); border: 3px solid var(--rc, #55609f); box-shadow: inset 0 0 12px color-mix(in srgb, var(--rc, #55609f) 35%, transparent); cursor: grab; user-select: none; }
.gcell:hover { filter: brightness(1.2); transform: translateY(-1px); }
.gcell.sel { outline: 3px solid #ffe28a; outline-offset: 1px; box-shadow: 0 0 14px #ffe28a99; }
.gcell.empty { border: 2px dashed #3a4170; background: #15183a66; box-shadow: none; cursor: default; opacity: .6; }
.gcell.other { opacity: .55; } .gcell.off { filter: saturate(.35); }
.gcell.dragging { opacity: .4; }
.gc-big { font-size: 30px; } .gc-enh { position: absolute; right: 2px; bottom: 0; font-size: 11px; color: #ffd86b; text-shadow: 0 0 3px #000; }
.gc-lock { position: absolute; left: 1px; top: 0; font-size: 11px; font-style: normal; } .gc-eq { position: absolute; left: 2px; bottom: 1px; font-size: 10px; font-style: normal; background: #4fcf80; color: #0b2a18; border-radius: 6px; padding: 0 4px; font-weight: 900; }
.gc-tr { position: absolute; right: 3px; top: 0; font-size: 11px; color: #ffe28a; font-style: normal; } .gc-set { position: absolute; inset: 0; border-radius: 9px; box-shadow: inset 0 0 0 2px #7aff9a55; pointer-events: none; }
.gcells.dropok, .dslot.dropok, .gzone.dropok, .gcell.dropok { outline: 3px dashed #7aff9a; outline-offset: 2px; }
.gdragging .dslot { outline: 2px dashed #ffe28a88; outline-offset: 2px; }
.gwh { font-size: 15px; font-weight: 800; color: #ffd86b; } .gwbar { margin-top: auto; display: flex; flex-direction: column; gap: 4px; } .gwbar small { color: #ffb0a0; min-height: 14px; }
.gorbs { display: flex; gap: 8px; flex-wrap: wrap; } .gorb { width: 54px; height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(#2c2670, #221d58); border: 3px solid #55609f; cursor: grab; font-size: 22px; }
.gorb b { font-size: 11px; color: #ffe9a0; } .gorb.sel { border-color: #ffe28a; box-shadow: 0 0 12px #ffe28a99; } .gorb.off { opacity: .4; cursor: pointer; }
.gzones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gzone { text-align: center; padding: 14px 6px; border-radius: 14px; border: 3px dashed #8a93d6; background: #1d1950aa; font-size: 28px; } .gzone b { display: block; font-size: 14px; color: #fff; } .gzone small { display: block; font-size: 11px; color: #c9d0ff; }
.gzone.danger { border-color: #ff8a8a; }
.gact.big { font-size: 16px; padding: 10px 14px; }
.gwork .gabtns { display: flex; flex-wrap: wrap; gap: 6px; }
.glist { overflow-x: hidden; } .gcell { min-width: 0; } .gcell > span:first-child img, .gcell svg { max-width: 100%; max-height: 100%; }

/* ---- 소울스톤 트리 호버 팝업 ---- */
.treetip { position: fixed; z-index: 50; display: none; max-width: 280px; padding: 8px 12px; border-radius: 12px; background: #0e1226; border: 2px solid #ffd86b; color: #eef; font-size: 13px; line-height: 1.4; pointer-events: none; box-shadow: 0 4px 14px #000a; }
.treetip b { font-size: 14px; } .treetip .tt-tag { color: #9aa2cc; font-size: 11px; margin-left: 4px; } .treetip .tt-desc { margin-top: 3px; } .treetip .tt-st { margin-top: 4px; font-size: 12px; color: #ff9a8a; } .treetip .tt-st.own { color: #5bd48a; } .treetip .tt-st.can { color: #ffd24a; }
.box.wide:has(.web) .tp-main b { font-size: 15px; } .box.wide:has(.web) .tp-ico { font-size: 24px; }

/* ---- 도술 강화: 2탭(도술 · 보조 젬) + 오른쪽 상세 ---- */
.box.gro { width: min(1080px, 96vw); text-align: left; }
.gtabs2 { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; } .gtabs2 small { opacity: .75; margin-left: 4px; }
.grow2 { display: grid; grid-template-columns: 300px 1fr; gap: 14px; height: min(60vh, 560px); }
.glist2 { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 6px 2px 2px; }
.glrow { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; text-align: left; }
.glrow .sico { font-size: 22px; width: 28px; text-align: center; } .glrow .iico { width: 28px; display: inline-flex; justify-content: center; }
.glrow .sname { flex: 1; font-size: 15px; font-weight: 700; } .glrow .glv2 { font-size: 12px; color: #ffd86b; } .glrow .socks { display: inline-flex; gap: 2px; }
.gdet { overflow-y: auto; padding: 4px 10px 4px 4px; } .gdet h3 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.gdet .lv { font-size: 13px; color: #ffd86b; } .gdet .lv.no { color: #9aa2cc; } .gdet .sub { margin: 6px 0; font-size: 13px; line-height: 1.45; } .gdet .dim { color: #9aa2cc; } .gdet .msg { min-height: 18px; color: #ffe28a; }
.gsub2 { margin-top: 8px; font-size: 13px; font-weight: 700; } .gsub2 small { font-weight: 400; color: #9aa2cc; }
.gchips2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gchip2 { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 12px; border: 2px solid #3a4170; background: #14183a; cursor: pointer; font-size: 13px; }
.gchip2 small { margin-left: 4px; color: #ffd86b; } .gchip2.on { border-color: #4fcf80; background: #14301f; } .gchip2.bad { opacity: .45; } .gchip2.cur { outline: 2px solid #fff; }
.gchip2:hover { border-color: #cfd8ff; } .sockbox[data-gem] { cursor: pointer; }
.gtbl { border-collapse: collapse; width: 100%; font-size: 13px; margin: 6px 0; } .gtbl th, .gtbl td { text-align: left; padding: 3px 8px; border-bottom: 1px solid #2b3366; } .gtbl th { color: #9aa2cc; font-weight: 400; }
.gtbl tr.now td { background: #1d3a2a; color: #bfffd8; }
.gact2 { margin-top: 8px; }
.glrow.sel .glv2 { color: #5a3a00; } .glrow.sel .sname { color: #2b1d40; }
.glrow.sel .glv2 { color: #5a3a00 !important; }

/* ---- 도술 선택: 카드가 많아서 가로 스크롤 대신 격자(5열)로 ---- */
.box.wide:has(.scards) { width: min(1180px, 98vw); max-height: calc(100vh - 24px); overflow-y: auto; }
.scards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.scard { min-width: 0; max-width: none; min-height: 0; padding: 10px 8px 8px; }
.scard .cico { height: 40px; font-size: 32px; } .scard .cname { font-size: 18px; } .scard .ctags { min-height: 0; margin: 2px 0; }
.scard .cblurb { margin: 4px 0; font-size: 12px; } .scard .sfit { min-height: 0; padding: 6px 8px; font-size: 11px; line-height: 1.35; }
@media (max-width: 900px) { .scards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- 계정: 로그인 관문 · 우하단 계정 표시 ---- */
#authgate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 30%, #3a2f7a, #15112e 70%); font-family: 'Jua', 'Gowun Dodum', sans-serif; }
.authbox { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 18px; border-radius: 22px; background: #2a2260; border: 3px solid #7a62d8; box-shadow: 0 10px 0 #17123a, 0 20px 40px rgba(0,0,0,.4); color: #f2eeff; }
.authbox h1 { margin: 0; font-size: 26px; text-align: center; color: #ffe28a; }
.authsub { margin: 0 0 4px; text-align: center; color: #bfb4ee; font-size: 14px; }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.authtabs button { padding: 8px; border-radius: 12px; border: 2px solid #5a48a8; background: #1d1747; color: #bfb4ee; font: inherit; font-size: 16px; cursor: pointer; }
.authtabs button.on { background: #ffd84a; color: #4a2e00; border-color: #ffb800; }
.authbox label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #d8d0ff; }
.authbox input { padding: 10px 12px; border-radius: 12px; border: 2px solid #5a48a8; background: #15112e; color: #fff; font: inherit; font-size: 16px; }
.authbox input:focus { outline: none; border-color: #ffd84a; }
.autherr { min-height: 18px; margin: 0; color: #ff9a8a; font-size: 14px; text-align: center; }
.authgo { padding: 12px; border-radius: 14px; border: 0; background: #ffd84a; color: #4a2e00; font: inherit; font-size: 18px; cursor: pointer; box-shadow: 0 4px 0 #c79000; }
.authgo:disabled { opacity: .6; }
.authhint { margin: 0; text-align: center; color: #8f84c8; font-size: 12px; }
#acct { position: fixed; right: 8px; bottom: 6px; z-index: 50; display: flex; gap: 8px; align-items: center; padding: 3px 10px; border-radius: 12px; background: rgba(20,16,50,.75); color: #cfc6ff; font: 12px sans-serif; }
#acct button { padding: 2px 8px; border-radius: 8px; border: 1px solid #6a58b8; background: transparent; color: #cfc6ff; font: inherit; cursor: pointer; }
#acct button:hover { background: #3a2f7a; }
.authbox label[hidden] { display: none; }

.board{width:100%;border-collapse:collapse;margin:6px 0;font-size:14px}
.board th{color:#9aa2cc;font-weight:600;text-align:left;padding:4px 8px;font-size:12px}
.board td{padding:5px 8px;border-top:1px solid rgba(255,255,255,.08)}
.board tr.me td{background:rgba(255,226,138,.14);color:#ffe28a}
.boardh{margin:14px 0 2px;font-size:15px}

.char canvas.portrait{display:block;width:120px;height:113px;margin:-6px auto -4px;image-rendering:auto}

/* 단축키 안내 */
.kguide{--move:#5aa8ff;--fight:#ff8a5a;--auto:#5ad89a;--sys:#b48aff}
.klegend{display:flex;gap:14px;justify-content:center;margin:2px 0 10px;font-size:13px;color:#c8d0f0}
.klegend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.klegend .move i{background:var(--move)}.klegend .fight i{background:var(--fight)}.klegend .auto i{background:var(--auto)}.klegend .sys i{background:var(--sys)}
.kboard{display:flex;gap:22px;justify-content:center;align-items:flex-end;flex-wrap:wrap}
.kmain .krow{display:flex;gap:5px;margin-bottom:5px}
.kmain .r1{padding-left:0}.kmain .r2{padding-left:26px}.kmain .r3{padding-left:0}
.karrows .krow{display:flex;gap:5px;justify-content:center;margin-bottom:5px}
.kc{width:46px;height:46px;border-radius:8px;background:#2a2550;border:2px solid #3a3470;box-shadow:0 3px 0 #1a1636;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#6a6494;line-height:1.05}
.kc.wide{width:68px}
.kc b{font-size:15px}.kc small{font-size:9.5px;margin-top:2px;white-space:nowrap}
.kc.move,.kc.fight,.kc.auto,.kc.sys{color:#14102a;font-weight:700}
.kc.move{background:var(--move);border-color:#9ccaff}.kc.fight{background:var(--fight);border-color:#ffbe9c}.kc.auto{background:var(--auto);border-color:#9cf0c4}.kc.sys{background:var(--sys);border-color:#d4bcff}
.kcols{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px;text-align:left}
.kcard{background:rgba(10,8,30,.35);border-radius:12px;padding:8px 12px;font-size:13px;color:#dfe6ff}
.kcard h3{margin:2px 0 6px;font-size:14px}.kcard p{margin:4px 0;line-height:1.45}
.kcard .gold{color:#ffd86b}
@media (max-width:900px){.kcols{grid-template-columns:1fr}}

/* 모토 */
.motto{margin:2px 0 6px;color:#ffe28a;font-weight:700;font-size:17px;letter-spacing:.02em;text-align:center;text-shadow:0 2px 0 rgba(0,0,0,.35)}
