:root {
  --bg: #070a14;
  --panel: rgba(16, 22, 40, 0.86);
  --panel2: rgba(24, 32, 56, 0.9);
  --line: #24304f;
  --text: #dbe4ff;
  --muted: #7c89ad;
  --accent: #5cc8ff;
  --accent2: #8b7bff;
  --good: #5fe39a;
  --bad: #ff6b7a;
  --warn: #ffcb57;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100vw; height: 100vh; }
button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: .15s; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, #1f6fb2, #4b3fbf); border-color: #3c7fd0; }
button.primary:hover:not(:disabled) { filter: brightness(1.15); }
button.danger { border-color: #6b2a35; color: #ffb3bc; }
button.ghost { background: transparent; }
button.mini { padding: 2px 8px; font-size: 12px; }
button.big { width: 100%; padding: 10px; font-size: 16px; margin-top: 10px; }
input, select, textarea { font: inherit; color: var(--text); background: #0b1124; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { width: 100%; margin-top: 8px; font-family: monospace; font-size: 12px; }
.num { width: 80px; }
.num.wide { width: 120px; }
.muted { color: var(--muted); }
.small, small { font-size: 12px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.right { float: right; }

/* 레이아웃 */
#app { display: grid; grid-template-columns: 170px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
#topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: rgba(7, 10, 20, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.logo { font-weight: 800; letter-spacing: 1px; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 17px; }
#resbar { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.res { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 110px; cursor: default; }
.res .ri { font-size: 18px; }
.res b { display: block; font-size: 14px; }
.res small { color: var(--good); display: block; line-height: 1.1; }
.res.full b { color: var(--warn); }
.res.neg b { color: var(--bad); }
#alert { background: #4a1020; border: 1px solid var(--bad); color: #ffd0d6; padding: 4px 12px; border-radius: 8px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 14px #ff3b5588; } }
#nav { padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: rgba(7, 10, 20, .6); }
#nav button { display: flex; align-items: center; gap: 8px; text-align: left; background: transparent; border-color: transparent; padding: 8px 12px; position: relative; }
#nav button.on { background: var(--panel2); border-color: var(--line); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
#nav .ni { font-size: 16px; }
.badge { background: var(--bad); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; margin-left: auto; }
#main { padding: 16px; max-width: 1280px; width: 100%; min-width: 0; }

/* 패널 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.panel h3 { margin: 4px 0 10px; font-size: 15px; }
.panel h3 + .muted, .panel h3 ~ h3 { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 > .panel { margin-bottom: 0; }
.grid2 { margin-bottom: 14px; }
.hero { display: flex; gap: 20px; align-items: center; }
.hero h2 { margin: 0 0 4px; }
.meta { color: var(--muted); margin: 2px 0; }
.meta b { color: var(--text); }
.note { margin-top: 8px; padding: 6px 10px; border-radius: 6px; background: #1a2340; font-size: 13px; }
.note.good { background: #10331f; color: var(--good); }
.orb { flex: none; border-radius: 50%; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 80% 70%), hsl(var(--h) 60% 35%) 55%, hsl(var(--h) 60% 12%)); box-shadow: 0 0 24px hsl(var(--h) 80% 50% / .35); display: inline-block; vertical-align: middle; }
.chip { display: inline-block; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; font-size: 13px; }

/* 대기열 */
.qrow, .frow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #1f2944; flex-wrap: wrap; }
.qrow:last-child, .frow:last-child { border-bottom: none; }
.qrow > span:first-child { min-width: 170px; }
.bar { flex: 1; min-width: 80px; height: 6px; background: #0b1124; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .25s linear; }
.cd { font-variant-numeric: tabular-nums; color: var(--accent); }
.frow.hostile { background: #3a0f1a66; border-radius: 6px; padding: 6px 8px; }
.frow.return { opacity: .8; }
.frow .when { margin-left: auto; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #1d2747; border: 1px solid var(--line); white-space: nowrap; }
.tag.m-attack, .tag.m-raid, .tag.pirate { background: #4a1525; border-color: #7a2438; }
.tag.m-spy { background: #1c3a4a; }
.tag.m-transport, .tag.m-deploy { background: #1a3a2a; }
.tag.m-expedition { background: #2d1f55; }
.tag.own { background: #154a3a; border-color: #2a7a5f; }
.tag.inactive { background: #333a4a; }
.tag.t-combat { background: #4a1525; }
.tag.t-spy { background: #1c3a4a; }
.tag.t-fleet { background: #1a3a2a; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.card.locked { opacity: .55; }
.card.running { border-color: var(--accent); box-shadow: 0 0 12px #5cc8ff33; }
.card-head { display: flex; gap: 10px; align-items: center; }
.card-head .icon { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; background: #0b1124; border-radius: 10px; border: 1px solid var(--line); }
.card h4 { margin: 0; font-size: 15px; }
.lv { color: var(--accent); font-weight: 700; font-size: 13px; }
.desc { margin: 0; color: var(--muted); font-size: 12.5px; flex: 1; }
.effect { font-size: 12.5px; background: #0b1124; border-radius: 6px; padding: 4px 8px; }
.costs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cost.lack { color: var(--bad); }
.time { font-size: 12px; color: var(--muted); }
.req { font-size: 12px; color: var(--warn); }
.stats { font-size: 12.5px; }
.stats .dot { color: var(--muted); margin: 0 4px; }
.buyrow { display: flex; gap: 6px; align-items: center; }
.buyrow .num { width: 70px; }
.buyrow .primary { margin-left: auto; }

/* 표 */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 6px 8px; border-bottom: 1px solid #1f2944; text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; }
.tbl.small td, .tbl.small th { padding: 3px 6px; font-size: 12px; }
.galaxy .pos { color: var(--muted); width: 30px; }
.galaxy tr.own td { background: #0f2a2266; }
.galaxy tr.pirate td:nth-child(2) { color: #ffb3bc; }
.galaxy tr.deep td { background: #1a1235aa; }
.galaxy .acts { white-space: nowrap; text-align: right; }
.debris { color: var(--warn); font-size: 12px; }
.galnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.galnav .num { width: 64px; }

/* 함대 폼 */
.shiprow { display: grid; grid-template-columns: 1fr 70px 90px auto; gap: 8px; align-items: center; padding: 4px 0; }
.formrow { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.formrow label { min-width: 90px; color: var(--muted); }
.missions { display: flex; gap: 6px; flex-wrap: wrap; }
.radio { border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.radio input { display: none; }
.radio.on, .radio:has(input:checked) { border-color: var(--accent); background: #12305088; }
.summary { margin-top: 10px; padding: 8px 10px; background: #0b1124; border-radius: 8px; font-size: 13px; }

/* 메시지 */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.tabs > button.on { border-color: var(--accent); background: #12305088; }
.tabs .right { margin-left: auto; }
.msg { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: #0b112488; }
.msg.unread .msg-title { font-weight: 700; color: #fff; }
.msg-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px; cursor: pointer; }
.msg-title { flex: 1; }
.msg-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.report h5 { margin: 10px 0 4px; color: var(--muted); }
.rep-top { margin: 8px 0; font-size: 15px; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rep-name { font-weight: 700; }
.rep-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* 모달/토스트 */
#modal { position: fixed; inset: 0; background: #000a; display: flex; z-index: 50; padding: 16px; overflow-y: auto; }
#modal > .modal-box { margin: auto; }
#modal[hidden] { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: min(440px, 100%); }
.modal-box h1 { margin: 0 0 6px; text-align: center; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal-box input, .modal-box select { flex: 1; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 60; max-width: calc(100vw - 32px); }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 8px 14px; border-radius: 8px; box-shadow: 0 4px 16px #0008; transition: opacity .5s, transform .5s; }
.toast.good { border-left-color: var(--good); }
.toast.bad { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateX(20px); }

/* 모바일 */
@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; }
  #nav { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); position: sticky; top: 0; padding: 6px; }
  #nav button { flex: none; padding: 6px 10px; }
  #nav button.on { box-shadow: inset 0 -3px 0 var(--accent); }
  #topbar { position: static; gap: 8px; }
  #resbar { display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 100%; }
  .res { min-width: 0; }
  .grid2, .rep-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
  #main { padding: 12px; }
  .shiprow { grid-template-columns: 1fr 50px 70px auto; }
}

/* ---------- 그래픽 확장 ---------- */
.art { display: inline-block; vertical-align: middle; image-rendering: auto; }
.resico { vertical-align: -3px; }
.res .ri .art { filter: drop-shadow(0 0 4px #ffffff22); }
.planet-img { display: inline-block; vertical-align: middle; border-radius: 50%; }
.hero-planet { position: relative; flex: none; }
.hero-planet::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 60px #5cc8ff22; pointer-events: none; }
.hero-planet .planet-img { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }
.card-head .icon { width: 58px; height: 58px; background: radial-gradient(circle at 50% 40%, #1a2547, #0a0f1f); }
.card-head .icon .art { filter: drop-shadow(0 2px 6px #000a); transition: transform .3s; }
.card:hover .card-head .icon .art { transform: scale(1.08) rotate(-2deg); }
.card .emoji { line-height: 1; }
.tag.role { font-size: 10px; vertical-align: 2px; margin-left: 4px; color: var(--muted); }
.rf { font-size: 12px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.rf span { display: inline-flex; align-items: center; gap: 1px; }
.qrow .art { margin-right: 2px; }
.chip .art { margin-right: 2px; vertical-align: -6px; }

/* 함대 이동 트랙 */
.frow { flex-direction: column; align-items: stretch; gap: 4px; }
.fline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fl-ships { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { position: relative; height: 26px; margin: 0 40px 0 40px; border-bottom: 1px dashed #2f3d63; }
.track .tp { position: absolute; bottom: -16px; font-size: 10px; color: var(--muted); }
.track .tp.a { left: -36px; } .track .tp.b { right: -36px; }
.track .mover { position: absolute; bottom: -12px; transform: translateX(-50%); transition: left .25s linear; filter: drop-shadow(0 0 6px #5cc8ff88); }
.track .mover.flip .art { transform: scaleX(-1); }
.track .mover.enemy { filter: drop-shadow(0 0 6px #ff3b55) hue-rotate(140deg); }
.frow.hostile .track { border-bottom-color: #7a2438; }
.frow { padding-bottom: 18px; }

/* 성계 시각화 */
.sysview { width: 100%; height: auto; display: block; margin-bottom: 8px; border-radius: 8px; background: linear-gradient(180deg, #070b1a, #0c1024); border: 1px solid var(--line); }
.sysview .gp { cursor: pointer; }
.sysview .gp:hover image { filter: brightness(1.3); }
.galaxy tr.picked td { background: #1d2d55aa; }
.galaxy td .planet-img { margin-right: 6px; }

/* 메시지 */
.msg-actions { display: flex; gap: 8px; margin: 10px 0 4px; }
.mini-ico { font-size: 13px; }
details.rounds { margin-top: 10px; }
details.rounds summary { cursor: pointer; color: var(--accent); font-size: 13px; }

/* 전투 재생 */
.modal-box.replay-box { width: min(1000px, 100%); padding: 14px; }
.replay-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.replay-head .right { margin-left: auto; display: flex; gap: 6px; }
select.mini { padding: 2px 6px; font-size: 12px; }
#rp-canvas { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.replay-hud { min-height: 58px; margin-top: 8px; font-size: 13px; }
.replay-hud .atk { color: #5cd2ff; } .replay-hud .dfn { color: #ff8a9c; }

/* 시뮬레이터 */
.simgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 10px; }
.simrow { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.simrow span { flex: 1; font-size: 13px; }
.simrow .num { width: 80px; }
.simtech { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.simtech label { display: flex; gap: 6px; align-items: center; }
.num.tiny { width: 56px; }
.panel h4 { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.winbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.winbar > div { display: grid; place-items: center; transition: width .4s; white-space: nowrap; }
.winbar .wa { background: linear-gradient(90deg, #1f6fb2, #3a9be0); }
.winbar .wd { background: #6a5a2a; }
.winbar .wf { background: linear-gradient(90deg, #a82b45, #e04a6a); }
.simstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 8px; }
.simstats > div { background: #0b1124; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.simstats small { display: block; color: var(--muted); font-size: 11px; }
.simstats b { font-size: 17px; }
.simres { margin-top: 10px; }
#sim-progress { height: 10px; margin-top: 8px; }
.rules { margin: 0; padding-left: 20px; color: #b9c4e4; font-size: 13px; line-height: 1.8; }
@media (max-width: 820px) {
  .track { margin: 0 34px; }
  .galaxy th:nth-child(3), .galaxy td:nth-child(3), .galaxy th:nth-child(5), .galaxy td:nth-child(5) { display: none; }
  .galaxy td { white-space: nowrap; font-size: 12.5px; }
  .galaxy td .planet-img { width: 22px; height: 22px; }
  .galaxy .acts button { padding: 2px 6px; }
  .simgrid { grid-template-columns: 1fr; }
}

/* 잔해 */
button.salvage { border-color: #4a7a12; color: #d6ff9b; background: #1a2a10; }
button.salvage:hover:not(:disabled) { border-color: #9be05a; }
.note.warn-note { background: #2a2410; color: #ffe08a; }
.debris-dots circle { animation: twinkle 2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }

/* ---------- 일러스트 레이아웃 ---------- */
body { background: #03050c url(../assets/bg/space.jpg) center / cover fixed; }
#stars { opacity: .8; }
.panel { background: linear-gradient(180deg, rgba(14,22,44,.86), rgba(7,11,24,.9)); border-color: #23345a; box-shadow: 0 8px 24px #0008, inset 0 1px 0 #ffffff0d; backdrop-filter: blur(2px); }
.hero { min-height: 190px; background-size: cover; background-position: right center; background-repeat: no-repeat; border-color: #2c4370; }
.hero-info h2 { font-size: 24px; text-shadow: 0 2px 8px #000; }
.cards { grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 240px 1fr; column-gap: 16px; row-gap: 0; align-content: start; padding: 12px;
  background: linear-gradient(180deg, rgba(16,26,50,.9), rgba(8,12,26,.92)); border-color: #24365e; box-shadow: 0 6px 20px #0009; }
.card > * { grid-column: 2; margin-bottom: 6px; }
.card > :last-child { margin-bottom: 0; }
.card > .card-art { grid-column: 1; grid-row: 1 / span 12; align-self: start; }
.card-art { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid #34507e; background: #050810;
  box-shadow: 0 6px 18px #000c, 0 0 0 1px #00000080; }
.card-art img.scene { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s, transform .6s ease; }
.card-art img.scene.ready { opacity: 1; }
.card:hover .card-art img.scene { transform: scale(1.06); }
.card-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 30px #000a; pointer-events: none; }
.art-badge { position: absolute; left: 6px; bottom: 6px; z-index: 1; background: rgba(4,8,18,.82); border: 1px solid #3d5788; border-radius: 4px; padding: 0 7px; font-size: 12px; font-weight: 700; color: #d8e6ff; }
.card.locked { opacity: .78; }
.card.locked .card-art img.scene { filter: grayscale(.75) brightness(.55); }
.card h4 { font-size: 16px; }
.card .desc { flex: none; }
.card .buyrow, .card > button.primary { margin-top: 4px; }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card > *, .card > .card-art { grid-column: 1; grid-row: auto; }
}

/* ---------- 기술 트리 ---------- */
.techtree { width: 100%; border-collapse: separate; border-spacing: 0 3px; }
.techtree th { text-align: left; padding: 6px 12px; background: linear-gradient(180deg, #1a2a4c, #0f1a32); border-top: 1px solid #34507e; color: #e6efff; font-size: 14px; }
.techtree tr.tt-head:not(:first-child) th { padding-top: 14px; }
.techtree td { padding: 6px 12px; background: rgba(22,34,62,.85); border-top: 1px solid #2c4068; border-bottom: 1px solid #0a1022; vertical-align: top; }
.techtree td.tt-name { width: 48%; }
.tt-cell { display: flex; align-items: center; gap: 10px; }
.tt-cell > span:nth-child(2) { flex: 1; }
.tt-thumb { width: 64px; height: 40px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid #34507e; background: #050810; }
.tt-thumb img.scene { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.tt-thumb img.scene.ready { opacity: 1; }
.techtree tr.locked .tt-thumb img { filter: grayscale(.8) brightness(.55); }
.req-ok { color: #5ff06a; font-size: 13px; }
.req-no { color: #ff5a5a; font-size: 13px; }
.req-no small { color: #c08080; }
.info-btn { width: 20px; height: 20px; padding: 0; border-radius: 4px; font: 700 12px/18px Georgia, serif; font-style: italic; color: #cfe0ff; background: #1a2a4c; border: 1px solid #4a6aa8; vertical-align: 2px; }
.info-btn:hover { background: #2a4a8a; }

/* ---------- 상세 정보 창 ---------- */
.modal-box.info-box, .modal-box.picker-box { width: min(860px, 100%); position: relative; padding: 18px;
  background: linear-gradient(180deg, rgba(16,26,52,.98), rgba(6,10,22,.98)); border-color: #34507e; }
.info-close { position: absolute; top: 10px; right: 10px; }
.info-top { display: grid; grid-template-columns: 380px 1fr; gap: 18px; }
.info-art { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid #34507e; background: #050810; box-shadow: 0 8px 24px #000c; }
.info-art img.scene { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.info-art img.scene.ready { opacity: 1; }
.info-main h2 { margin: 2px 0; font-size: 24px; }
.info-main .desc { color: #b9c6e4; margin: 8px 0; }
.info-main h4, .info-body h4 { margin: 14px 0 6px; color: #8fa8d8; font-size: 13px; }
.info-body { margin-top: 6px; }
.lvtbl tr.cur td { color: var(--muted); }
.lvtbl tr.next td { background: #16305888; font-weight: 700; }
.rf-list { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.rf-list b { width: 100%; font-size: 12px; }
.rf-list span { display: inline-flex; align-items: center; gap: 4px; }
.unlocks { display: flex; flex-wrap: wrap; gap: 4px; }
.unlocks .chip { cursor: pointer; }
@media (max-width: 820px) { .info-top { grid-template-columns: 1fr; } }

/* ---------- 행성 초상화 / 선택 ---------- */
.planet-img.portrait { object-fit: cover; }
.hero-planet { cursor: pointer; }
.hero-planet .planet-img { border-radius: 50%; box-shadow: 0 0 34px rgba(120,255,190,.25), 0 0 0 1px #ffffff14; }
.hero-edit { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 11px; background: rgba(4,8,18,.8); border: 1px solid #3d5788; border-radius: 10px; padding: 1px 8px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.hero-planet:hover .hero-edit { opacity: 1; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick { padding: 4px; border-radius: 8px; background: #0a1226; border: 2px solid #24365e; }
.pick .planet-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; display: block; }
.pick.on { border-color: #5ff06a; box-shadow: 0 0 14px #5ff06a55; }
.galaxy td .planet-img.portrait, .chip .planet-img.portrait { border-radius: 50%; }

/* ---------- 달 / 미사일 / 차원문 ---------- */
.moon-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 2px; font-size: 11px; border-radius: 10px; background: #1a2238; border-color: #3a4a6a; margin-left: 6px; vertical-align: middle; }
.moon-chip .planet-img { border-radius: 50%; }
.gate-panel { border-color: #5a3a9a; }

/* ---------- 절제된 톤 (채도 낮춤) ---------- */
:root { --accent: #8fb3d9; --accent2: #8fb3d9; }
.logo { background: none; -webkit-background-clip: initial; background-clip: initial; color: #e4e9f0; letter-spacing: 3px; font-weight: 700; }
.modal-box h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #e4e9f0; letter-spacing: 3px; }
button.primary { background: #2a4058; border-color: #4a6584; }
button.primary:hover:not(:disabled) { filter: none; background: #34506e; }
.bar i { background: #8fb3d9; }
.panel, .card { background: linear-gradient(180deg, rgba(14,17,23,.9), rgba(8,10,14,.93)); border-color: #262d38; }
.card-art, .info-art, .tt-thumb { border-color: #343d4a; }
.techtree th { background: linear-gradient(180deg, #1c222c, #13171e); border-top-color: #3a4352; }
.techtree td { background: rgba(20,24,31,.88); border-top-color: #2a313c; }
.hero { border-color: #2e3642; }
#nav button.on { box-shadow: inset 3px 0 0 #8fb3d9; }
.res { background: rgba(14,17,23,.85); border-color: #262d38; }

/* =========================================================
   사진 톤 UI — 무채색, 얇은 선, 각진 모서리, 강조색 하나
   ========================================================= */
:root {
  --bg: #050608; --panel: rgba(10,12,15,.84); --panel2: #12151a; --line: #20252c;
  --text: #d4dae1; --muted: #7e8792; --accent: #c9d2dc; --accent2: #c9d2dc;
  --good: #8fcf9f; --bad: #e08a8a; --warn: #d9c48a; --radius: 3px;
}
html, body { font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; letter-spacing: -0.005em; }
body { background: #050608 url(../assets/bg/space.jpg) center / cover fixed; color: var(--text); }
#stars { opacity: .6; }
.ic { opacity: .9; }

/* 상단 / 메뉴 */
#topbar { background: rgba(5,6,8,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { font-size: 15px; font-weight: 600; letter-spacing: .32em; color: #e6ebf0; padding-right: 14px; border-right: 1px solid var(--line); }
#planetSel { background: transparent; border-color: #2a3038; }
.res { background: transparent; border: none; border-left: 1px solid var(--line); border-radius: 0; padding: 2px 12px; min-width: 104px; }
.res b { font-weight: 600; font-variant-numeric: tabular-nums; }
.res small { color: #8aa596; }
.res.full b { color: var(--warn); } .res.neg b { color: var(--bad); }
#alert { background: rgba(60,18,18,.7); border: 1px solid #6a2a2a; color: #f0c8c8; border-radius: 2px; animation: none; }
#nav { background: rgba(5,6,8,.55); border-right: 1px solid var(--line); gap: 1px; }
#nav button { color: var(--muted); border: none; border-radius: 0; padding: 9px 14px; font-size: 13.5px; }
#nav button .ni { font-size: 16px; opacity: .75; }
#nav button:hover { color: var(--text); background: rgba(255,255,255,.03); }
#nav button.on { color: #fff; background: rgba(255,255,255,.05); box-shadow: inset 2px 0 0 #c9d2dc; }
.badge { background: #8a3a3a; border-radius: 2px; }

/* 패널 / 카드 */
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; backdrop-filter: none; }
.panel h3 { font-size: 14px; font-weight: 600; color: #e6ebf0; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.panel h3 small { font-weight: 400; }
.panel h3 .right { margin-left: auto; }
.panel h3 + * { margin-top: 10px; }
.card { padding: 12px; }
.card h4 { font-size: 15px; font-weight: 600; color: #eef2f5; }
.card .lv { color: #aeb8c3; font-weight: 600; }
.card-art, .info-art, .tt-thumb { border: 1px solid #2a3038; border-radius: 2px; box-shadow: none; }
.card-art::after { box-shadow: inset 0 0 24px rgba(0,0,0,.55); }
.art-badge { background: rgba(5,6,8,.85); border: 1px solid #3a414b; border-radius: 2px; color: #e6ebf0; font-weight: 600; letter-spacing: .02em; }
.desc { color: #96a0ab; }
.effect { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 2px; }
.cost.lack { color: var(--bad); }
.req { color: var(--warn); }
.hero { border-color: var(--line); }
.hero-planet .planet-img { box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.hero-edit { background: rgba(5,6,8,.85); border-radius: 2px; border-color: #3a414b; }
.note { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 2px; color: var(--text); }
.note.good { background: rgba(143,207,159,.06); border-color: #2c4a36; color: #b9dcc3; }
.note.warn-note { background: rgba(217,196,138,.06); border-color: #4a4228; color: #e2d3a6; }

/* 버튼 / 입력 */
button { border-radius: 2px; background: transparent; border-color: #333b45; color: #c9d1da; }
button:hover:not(:disabled) { border-color: #6d7a89; color: #fff; }
button.primary { background: #c9d2dc; border-color: #c9d2dc; color: #0a0d11; font-weight: 600; }
button.primary:hover:not(:disabled) { background: #e6ebf0; border-color: #e6ebf0; color: #0a0d11; }
button.danger { border-color: #5a2e2e; color: #e3a3a3; background: transparent; }
button.danger:hover:not(:disabled) { border-color: #9a4a4a; color: #ffd0d0; }
button.salvage { border-color: #3a4a34; color: #b9d4ae; background: transparent; }
button.ghost { border-color: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled) { color: var(--text); border-color: #333b45; }
button .ic { margin-right: 2px; }
input, select, textarea { background: #0a0c0f; border-color: #2a3038; border-radius: 2px; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: #8a96a3; }
.info-btn { background: transparent; border: 1px solid #3a414b; color: #aeb8c3; border-radius: 2px; font: 600 11px/18px Georgia, serif; font-style: italic; }
.info-btn:hover { background: #1a1f25; }

/* 태그 / 칩 / 표 */
.tag { background: transparent; border: 1px solid #3a414b; color: #aab3bd; border-radius: 2px; }
.tag.m-attack, .tag.m-raid, .tag.m-missile, .tag.pirate, .tag.t-combat { border-color: #5a3030; color: #e0a2a2; background: transparent; }
.tag.m-spy, .tag.t-spy { border-color: #344a5a; color: #a8c4d8; background: transparent; }
.tag.m-transport, .tag.m-deploy, .tag.t-fleet, .tag.own { border-color: #2f4a3a; color: #a9d2b6; background: transparent; }
.tag.m-expedition { border-color: #4a4430; color: #d8cda4; background: transparent; }
.chip { background: transparent; border: 1px solid #2a3038; border-radius: 2px; }
.chip .thumb { margin-right: 3px; }
.thumb { object-fit: cover; border-radius: 1px; vertical-align: middle; border: 1px solid #2a3038; background: #0a0c0f; }
.tbl th { color: var(--muted); font-weight: 500; letter-spacing: .02em; border-bottom-color: var(--line); }
.tbl td { border-bottom-color: #171b20; }
.galaxy tr.own td { background: rgba(143,207,159,.04); }
.galaxy tr.pirate td:nth-child(2) { color: #e6b3b3; }
.galaxy tr.deep td { background: rgba(255,255,255,.02); }
.galaxy tr.picked td { background: rgba(255,255,255,.05); }
.debris { color: var(--warn); }
.moon-chip { background: transparent; border-color: #3a414b; border-radius: 2px; }
.sysview { background: rgba(5,6,8,.7); border-color: var(--line); border-radius: 2px; }

/* 기술 트리 */
.techtree th { background: rgba(255,255,255,.04); border-top: 1px solid #2a3038; color: #e6ebf0; font-weight: 600; }
.techtree td { background: rgba(10,12,15,.78); border-top: 1px solid #1b2026; border-bottom: none; }
.req-ok { color: var(--good); } .req-no { color: var(--bad); } .req-no small { color: #a77; }

/* 진행 / 이동 */
.bar { background: #15181d; border-radius: 0; height: 4px; }
.bar i { background: #c9d2dc; }
.cd { color: #c9d2dc; font-variant-numeric: tabular-nums; }
.frow.hostile { background: rgba(90,30,30,.18); border: 1px solid #3a2020; border-radius: 2px; }
.track { border-bottom-color: #2a3038; }
.track .mover { filter: none; }
.track .mover .thumb { width: 30px; height: 20px; }
.track .mover.enemy .thumb { border-color: #8a3a3a; }
.track .mover.flip .thumb { transform: scaleX(-1); }
.qrow, .frow { border-bottom-color: #171b20; }

/* 메시지 / 모달 / 토스트 */
.msg { background: rgba(10,12,15,.6); border-color: var(--line); border-radius: 2px; }
.tabs > button.on { background: rgba(255,255,255,.06); border-color: #6d7a89; color: #fff; }
.modal-box, .modal-box.info-box, .modal-box.picker-box { background: rgba(8,10,13,.97); border: 1px solid #2a3038; border-radius: 3px; }
.modal-box h1 { font-weight: 600; letter-spacing: .32em; font-size: 22px; }
#modal { background: rgba(0,0,0,.72); }
.toast { background: rgba(10,12,15,.95); border: 1px solid #2a3038; border-left: 2px solid #c9d2dc; border-radius: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.toast.good { border-left-color: var(--good); } .toast.bad { border-left-color: var(--bad); }
.pick { background: #0a0c0f; border: 1px solid #2a3038; border-radius: 2px; }
.pick.on { border-color: #c9d2dc; box-shadow: none; }

/* 시뮬레이터 */
.winbar { border-radius: 2px; }
.winbar .wa { background: #4d6680; } .winbar .wd { background: #5f5944; } .winbar .wf { background: #7d4646; }
.simstats > div { background: rgba(255,255,255,.025); border-color: var(--line); border-radius: 2px; }
.simtech { color: var(--muted); }
.track .mover.enemy { filter: none; }
.tag.inactive { background: transparent; border-color: #3a414b; color: #9aa3ad; }

/* ---------- 전투 재생 (전술 화면) ---------- */
.modal-box.replay-box { width: min(1100px, 100%); padding: 14px; }
.replay-head b { display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; }
.rp-stage { position: relative; overflow: hidden; padding: 16px 18px 18px; border: 1px solid #252b33; border-radius: 2px;
  background: linear-gradient(90deg, rgba(5,6,8,.55), rgba(5,6,8,.82) 50%, rgba(5,6,8,.55)), #050608 url(../assets/bg/space.jpg) center / cover; }
.rp-planet { position: absolute; right: -170px; top: 50%; width: 560px; transform: translateY(-50%); opacity: .28; pointer-events: none; filter: grayscale(.15); mask-image: radial-gradient(circle, #000 55%, transparent 72%); -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
.rp-top { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.rp-side { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rp-side b { font-size: 17px; font-weight: 600; color: #eef2f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-side.d { justify-content: flex-end; }
.rp-label { font-size: 11px; letter-spacing: .2em; color: var(--muted); border: 1px solid #3a414b; padding: 0 6px; border-radius: 2px; }
.rp-side.a .rp-label { color: #e8e2d0; border-color: #5a5648; }
.rp-side.d .rp-label { color: #d98a7a; border-color: #5a3a34; }
.rp-round { font-size: 12px; letter-spacing: .28em; color: #c9d2dc; text-transform: uppercase; padding: 2px 10px; border: 1px solid #333b45; border-radius: 2px; background: rgba(5,6,8,.6); }
.rp-power { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.rp-power > div { position: relative; height: 16px; background: rgba(255,255,255,.04); border: 1px solid #222830; display: flex; align-items: center; }
.rp-power i { position: absolute; top: 0; bottom: 0; transition: width .6s ease; }
.rp-power .pa i { left: 0; background: linear-gradient(90deg, rgba(232,226,208,.15), rgba(232,226,208,.55)); }
.rp-power .pd i { right: 0; background: linear-gradient(270deg, rgba(214,132,118,.15), rgba(214,132,118,.55)); }
.rp-power span { position: relative; z-index: 1; font-size: 11px; font-variant-numeric: tabular-nums; padding: 0 6px; color: #e6ebf0; }
.rp-power .pd { justify-content: flex-end; }
.rp-field { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); margin-top: 14px; }
.rp-col { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.rp-fx { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }
.rp-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 8px 4px 4px;
  background: rgba(8,10,13,.78); border: 1px solid rgba(255,255,255,.06); border-radius: 2px; transition: background .5s, opacity .6s, border-color .5s; }
.rp-col.d .rp-row { grid-template-columns: auto minmax(0, 1fr) 62px; padding: 4px 4px 4px 8px; text-align: right; }
.rp-row .thumb { width: 62px; height: 39px; border: none; }
.rp-name { font-size: 13px; color: #dfe5ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-bar { height: 3px; background: #1a1e24; margin-top: 5px; position: relative; overflow: hidden; }
.rp-bar i { position: absolute; top: 0; bottom: 0; left: 0; background: #e8e2d0; transition: width .6s ease; }
.rp-col.d .rp-bar i { left: auto; right: 0; background: #d98a7a; }
.rp-count { min-width: 64px; display: flex; flex-direction: column; line-height: 1.15; }
.rp-col.a .rp-count { align-items: flex-end; }
.rp-col.d .rp-count { align-items: flex-start; }
.rp-count b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f0f3f6; }
.rp-count small { font-size: 11px; color: #d98a7a; font-variant-numeric: tabular-nums; min-height: 13px; }
.rp-row.hit { border-color: rgba(255,255,255,.16); }
.rp-row.loss { animation: rpLoss .9s ease; }
@keyframes rpLoss { 0% { background: rgba(150,50,40,.55); } 100% { background: rgba(8,10,13,.78); } }
.rp-row.dead { opacity: .32; }
.rp-row.dead .rp-name { text-decoration: line-through; }
.rp-row.dead .thumb { filter: grayscale(1); }
.rp-empty { padding: 10px; text-align: right; }
.rp-result { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(5,6,8,.6); animation: rpFade .5s ease; }
.rp-result[hidden] { display: none; }
@keyframes rpFade { from { opacity: 0; } }
.rp-result-in { text-align: center; padding: 18px 40px; border-top: 1px solid #3a414b; border-bottom: 1px solid #3a414b; background: rgba(5,6,8,.75); }
.rp-result-k { font-size: 11px; letter-spacing: .4em; color: var(--muted); }
.rp-result-t { font-size: 26px; font-weight: 600; letter-spacing: .04em; color: #f0f3f6; margin: 6px 0 4px; }
.replay-hud { min-height: 48px; margin-top: 10px; font-size: 13px; color: #aab3bd; display: grid; gap: 2px; }
.replay-hud b { color: #e6ebf0; font-weight: 600; }
.replay-hud .atk { color: #e8e2d0; margin-right: 6px; } .replay-hud .dfn { color: #d98a7a; margin-right: 6px; }
@media (max-width: 820px) {
  .rp-field { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
  .rp-row, .rp-col.d .rp-row { grid-template-columns: 1fr; text-align: left; }
  .rp-row .thumb { display: none; }
  .rp-count { min-width: 0; }
}

/* ---------- 전투 로그 ---------- */
.blog { font-size: 13px; color: #b9c1ca; line-height: 1.6; }
.blog .atk { color: #e8e2d0; font-weight: 600; } .blog .dfn { color: #d98a7a; font-weight: 600; }
.blog b { color: #eef1f4; font-weight: 600; font-variant-numeric: tabular-nums; }
.bl-round { border-top: 1px solid #222830; padding: 12px 0 10px; }
.bl-round:first-child { border-top: none; padding-top: 4px; }
.bl-round h5 { margin: 0 0 6px; font-size: 11px; letter-spacing: .28em; color: #8c96a1; font-weight: 600; text-transform: uppercase; }
.bl-round p { margin: 2px 0; }
.bl-loss { color: #aab3bd; }
.bl-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.bl-side { min-width: 0; background: rgba(10,12,15,.6); border: 1px solid #222830; padding: 8px; }
.bl-sname { font-size: 12.5px; margin-bottom: 6px; color: #dfe4ea; }
.bl-tag { display: inline-block; font-size: 10.5px; letter-spacing: .12em; padding: 1px 6px; border: 1px solid #3a414b; color: #e8e2d0; margin-right: 4px; }
.bl-sname.d .bl-tag { color: #d98a7a; border-color: #5a3631; }
.bl-scroll { overflow-x: auto; }
.bl-t { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.bl-t th { text-align: left; color: #7f8994; font-weight: 500; padding: 3px 10px 3px 0; position: sticky; left: 0; background: #0b0d10; }
.bl-t td { padding: 3px 8px; text-align: center; border-left: 1px solid #1c2128; font-variant-numeric: tabular-nums; color: #dfe4ea; }
.bl-t tr:first-child td { vertical-align: bottom; font-size: 11px; color: #b9c1ca; }
.bl-t tr:first-child td .thumb { display: block; width: 54px; height: 34px; margin: 0 auto 3px; border: none; }
.bl-t small { font-size: 10.5px; }
.bl-wiped { color: #d98a7a; font-size: 12px; letter-spacing: .2em; padding: 6px 0; }
.bl-end p { margin: 4px 0; }
.msg-tabs { margin: 4px 0 8px; }
.modal-box.blog-box { width: min(1000px, 100%); }
/* 재생 화면 실시간 로그 */
.rp-log { margin-top: 10px; height: 136px; overflow-y: auto; padding: 8px 10px; background: rgba(6,7,9,.85); border: 1px solid #222830;
  font-size: 12.5px; line-height: 1.55; color: #aab3bd; scroll-behavior: smooth; }
.rp-log .rl { animation: rpFade .35s ease; }
.rp-log .rl-h { margin-top: 6px; font-size: 10.5px; letter-spacing: .3em; color: #7f8994; }
.rp-log .rl-h:first-child { margin-top: 0; }
.rp-log .rl-loss { color: #c9cfd6; }
.rp-log .rl-end { color: #dfe4ea; }
.rp-log b { color: #eef1f4; font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-log .atk { color: #e8e2d0; font-weight: 600; } .rp-log .dfn { color: #d98a7a; font-weight: 600; }
@media (max-width: 820px) { .bl-sides { grid-template-columns: 1fr; } .rp-log { height: 120px; } }

/* ---------- 식민 / 제국 ---------- */
.tag.good { color: #b7d3a8; border-color: #3d5236; }
.tag.bad { color: #d98a7a; border-color: #5a3631; }
.slot-info { font-size: 12px; color: #9aa4ae; font-variant-numeric: tabular-nums; }
.colony-msg { display: flex; gap: 14px; align-items: center; }
.colony-msg p { margin: 3px 0; }
.emp-t { width: 100%; white-space: nowrap; }
.emp-t tbody tr { cursor: pointer; }
.emp-t tbody tr:hover { background: rgba(255,255,255,.03); }
.emp-t tr.picked { background: rgba(201,210,220,.06); }
.emp-t tr.moonrow td:first-child { padding-left: 22px; }
.emp-t td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.emp-t td .small { font-size: 11px; }
.emp-body { display: flex; gap: 10px; align-items: center; }
.emp-t tfoot td { border-top: 1px solid #2a3038; padding-top: 8px; }
@media (max-width: 820px) { .colony-msg { flex-direction: column; align-items: flex-start; } }

/* ---------- 사령관 성향 ---------- */
.modal-box.doctrine-box { width: min(1100px, 100%); }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.doc-card { border: 1px solid #252b33; background: rgba(10,12,15,.7); display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.doc-card.cur { border-color: #6b7684; box-shadow: inset 0 0 0 1px rgba(201,210,220,.15); }
.doc-art { height: 150px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 10px 12px; background-color: #0a0c0f; }
.doc-title { display: flex; flex-direction: column; gap: 2px; }
.doc-title b { font-size: 19px; font-weight: 600; letter-spacing: .04em; color: #f0f3f6; }
.doc-style { font-size: 10.5px; letter-spacing: .3em; color: #aab3bd; }
.doc-blurb { margin: 0 12px; font-size: 12.5px; color: #aab3bd; line-height: 1.55; min-height: 58px; }
.doc-perks { list-style: none; margin: 0 12px; padding: 0; display: grid; gap: 3px; font-size: 12.5px; color: #dfe4ea; flex: 1; }
.doc-perks li.bad { color: #d98a7a; }
.doc-perks .ic { width: 12px; height: 12px; opacity: .8; }
.doc-card > button, .doc-card > div.good { margin: 4px 12px 0; }
@media (max-width: 820px) { .doc-grid { grid-template-columns: 1fr; } }

/* ---------- 플릿 사냥 ---------- */
.hunt { padding: 6px 8px; margin-bottom: 6px; border: 1px solid #3a414b; background: rgba(10,12,15,.7); font-size: 12.5px; }
.hunt.ok { border-color: #3d5236; } .hunt.early { border-color: #5a3631; }
.sensor-fleet { padding: 3px 0; }
.rep-foot .warn .mini { margin-left: 6px; }
.tag.m-evade { border-color: #3a414b; color: #b9c1ca; background: transparent; }

/* ---------- 라이벌 ---------- */
.tag.rival { color: #e3c98c; border-color: #5a4a2a; background: transparent; }
tr.rival td:first-child { box-shadow: inset 2px 0 0 #8a7240; }
.rank-t td { vertical-align: middle; }
.rank-t tr.picked { background: rgba(201,210,220,.06); }
.tag.player { color: #b9cdee; border-color: #3e4e6a; background: transparent; }

/* ---------- 멀티플레이 로그인 ---------- */
.modal-box.auth-box { width: min(440px, 100%); }
.auth-tabs { margin: 10px 0 12px; }
.auth-msg { min-height: 18px; margin: 4px 0 8px; }
.auth-alt { margin-top: 12px; text-align: center; }
