/* 스테이션 리스트 시안 · 흰 바탕, 코덱스 화면과 같은 글자 크기대(13px 기준) */
@font-face{font-family:Pretendard;src:url("assets/fonts/Pretendard-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url("assets/fonts/Pretendard-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url("assets/fonts/Pretendard-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Pretendard;src:url("assets/fonts/Pretendard-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:root{--ink:#1b2233;--ink-2:#3b4458;--muted:#6b7489;--faint:#9aa2b4;--line:#eef1f6;--line-2:#e3e7ef;--soft:#f6f8fb;--red:#ff245d;--blue:#315cff;--purple:#8a35f5;--green:#6cbf3a;--orange:#f2660f}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:13px/1.5 Pretendard,-apple-system,"Apple SD Gothic Neo",sans-serif;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
img{display:block}

.lo-top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:14px 32px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.lo-top h1{margin:0;font-size:16px;font-weight:700}
.lo-top p{margin:2px 0 0;color:var(--muted);font-size:12px}
.lo-jump{display:flex;align-items:center;gap:4px;flex-shrink:0}
.lo-jump span{font-size:11px;color:var(--faint);margin:0 4px 0 10px}
.lo-jump a{font-size:12px;font-weight:600;color:var(--ink-2);text-decoration:none;padding:4px 9px;border-radius:7px;border:1px solid var(--line-2)}
.lo-jump a:hover{background:var(--soft)}
.lo-main{max-width:1240px;margin:0 auto;padding:12px 32px 60px}
.lo-group-title{margin:36px 0 6px;font-size:18px;font-weight:700}
.lo-group-title small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.lo-option{margin-top:36px;scroll-margin-top:96px}
.lo-head{display:flex;align-items:baseline;gap:10px;margin:0 0 10px}
.lo-head b{font-size:12px;color:#fff;background:var(--ink);border-radius:6px;padding:1px 7px}
.lo-head h3{margin:0;font-size:15px;white-space:nowrap}
.lo-head p{margin:0;color:var(--muted);font-size:12.5px}
.lo-frame{border:1px solid var(--line-2);border-radius:14px;overflow:hidden;background:#fff}
.lo-frame.gray{background:#f3f5f9;padding:8px}
.lo-foot{margin-top:40px;color:var(--muted);font-size:12px}
.lo-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px}
.lo-legend small{color:var(--faint);margin-left:6px}

/* 공통 조각 */
.face{width:var(--s);height:var(--s);border-radius:50%;flex-shrink:0;background:#e9edf4 url(assets/station-avatar-atlas-v26.png) no-repeat;background-size:400% 400%}
.face.ghost{background:none;display:grid;place-items:center;overflow:hidden}
.face.ghost img{display:block;width:100%;height:100%}
.row{position:relative;display:grid;align-items:center;column-gap:16px;padding:14px 18px 14px 14px;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.row:hover{background:#fafbfd}
.title{font-weight:600}
h4{margin:0;display:flex;align-items:center;gap:7px;min-width:0;font-size:14.5px;line-height:1.4;font-weight:600}
h4 .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pic{width:17px;height:17px;flex-shrink:0;opacity:.85}
.meta{display:flex;align-items:center;gap:6px;color:var(--faint);font-size:12px;margin-top:5px;min-width:0;white-space:nowrap;overflow:hidden}
.meta .nm{color:var(--ink-2);font-weight:600}
.meta .d::before{content:'·';margin-right:6px;color:#c5cbd8}
.meta.top{margin:0 0 3px}
.stat{display:inline-flex;align-items:center;gap:4px;color:var(--faint);font-size:12px;white-space:nowrap}
.stat img{width:14px;height:14px;opacity:.75}
.t{font-size:13px;font-weight:600;color:var(--muted);flex-shrink:0}
.t+.t::before{content:'·';margin:0 4px 0 0;color:#c5cbd8}
.t.q{color:var(--blue)}
.chip{font-size:11px;font-weight:600;color:var(--muted);background:var(--soft);border-radius:5px;padding:1px 7px;flex-shrink:0}
.chip.q{color:var(--blue);background:#eef2ff}
.chip.poll{color:#1a8a5a;background:#eaf7f0}
.bp{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:700;color:var(--orange);background:#fff1e8;border-radius:6px;padding:1px 7px 1px 4px;flex-shrink:0}
.bp img{width:14px;height:14px}
.more{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;opacity:.55}
.more:hover{opacity:1;background:var(--soft)}
.more img{width:18px;height:18px}
.vote{display:flex;align-items:center;justify-content:center;color:var(--ink)}
.vote b{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;min-width:24px;text-align:center}
.vote button{width:24px;height:24px;display:grid;place-items:center;border-radius:6px}
.vote svg{width:17px;height:17px}
.vote .up{color:var(--red)}.vote .down{color:var(--blue)}
.vote button:hover{background:var(--soft)}
.vote .up.on{background:#ffe9ee}.vote .up.on svg path{fill:var(--red)}
.vote .down.on{background:#ebf0ff}.vote .down.on svg path{fill:var(--blue)}
.vote.boom b{font-size:10.5px;letter-spacing:.4px;color:var(--red)}
.vote.col{flex-direction:column;gap:0}
.thumb{width:76px;height:56px;border-radius:9px;object-fit:cover;background:var(--soft)}
.thumb.empty{visibility:hidden}
.foot{display:flex;align-items:center;gap:8px;margin-top:7px;min-width:0}
.sep{flex:0 0 1px;height:12px;background:var(--line-2)}

/* A1 제목이 먼저 */
.a1 .row{grid-template-columns:40px minmax(0,1fr) 28px}
.a1 .vote.col{opacity:.9}
.a1 h4{font-size:15px}

/* A2 사진이 보이는 행 */
.a2 .row{grid-template-columns:minmax(0,1fr) 76px 28px;padding:14px 18px}
.a2 .meta .nm{font-weight:600}
.a2 .vote.line{background:var(--soft);border-radius:999px;padding:0 2px;margin-left:-4px}
.a2 .vote.line b{min-width:28px;font-size:12.5px}
.a2 .vote.line button{width:22px;height:22px}
.a2 .vote.line svg{width:14px;height:14px}
.a2 h4{font-size:15px}

/* A3 숫자 칼럼 */
.a3 .row{grid-template-columns:108px minmax(0,1fr) auto 28px;padding:12px 18px 12px 16px}
.a3 .vote.col{border-right:1px solid var(--line);align-self:stretch;margin:-12px 0}
.a3 .vote.col b{font-size:17px;line-height:1.1}
.a3 .vote.col.boom b{font-size:11.5px;background:linear-gradient(90deg,#ff245d,#8a35f5);-webkit-background-clip:text;background-clip:text;color:transparent}
.a3 .vote button{opacity:.35;width:22px;height:18px}
.a3 .row:hover .vote button,.a3 .vote button.on{opacity:1}
.a3 .body{display:flex;align-items:center;gap:12px;min-width:0}
.a3 .body>div{min-width:0}
.a3 h4 .chip{font-size:11px}
.a3 .reward{justify-self:end;text-align:right;line-height:1.1}
.a3 .reward b{display:block;font-size:17px;color:var(--orange)}
.a3 .reward small{font-size:11px;color:var(--orange);font-weight:600}
.a3 .reward.quiet{display:flex;gap:10px}

/* A4 계열: 회색 바탕 흰 카드 · 업/다운 맨 앞 · 사각 아바타 아래 관계 */
.a4{display:flex;flex-direction:column;gap:8px}
.a4 .row{grid-template-columns:40px 56px minmax(0,1fr) auto 28px;align-items:start;border:0;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(20,30,60,.05);padding:14px 16px 14px 10px;column-gap:14px;transition:box-shadow .15s}
.a4 .row:hover{background:#fff;box-shadow:0 6px 18px rgba(20,30,60,.09)}
.a4 .row.bounty{box-shadow:inset 3px 0 0 var(--orange),0 1px 2px rgba(20,30,60,.05)}
.a4 .row>.vote,.a4 .row>.more,.a4 .row>.thumb{align-self:center}
.a4 h4{font-size:15px}
.a4 .body{padding-top:2px}
.a4 .thumb{width:64px;height:48px}
.sqw{display:flex;flex-direction:column;align-items:center;gap:4px;width:56px;position:relative}
.sq{display:block;width:52px;height:52px;border-radius:12px;background:#e9edf4 url(assets/station-avatar-atlas-v26.png) no-repeat;background-size:400% 400%}
.sq.ghost{background:#1b2233;display:grid;place-items:center}.sq.ghost img{width:60%;filter:invert(1)}
/* A4 아래 라벨 */
.lv{font-size:10.5px;font-weight:700;border-radius:5px;padding:1px 6px;white-space:nowrap;line-height:1.5}
.lv.sync{color:#fff;background:var(--blue)}
.lv.top{color:#fff;background:var(--purple)}
.lv.soul{color:#fff;background:linear-gradient(90deg,var(--blue),var(--purple))}
.cb{display:flex;align-items:center;gap:2px;font-size:10px;font-weight:700;white-space:nowrap;letter-spacing:-.3px}
.cb img{width:12px;height:12px}
.cb.red{color:#e0144b}.cb.green{color:#00856f}
/* A4b 사진 아래 띠 */
.band .sq{border-radius:12px}
.band .bandlabel{position:absolute;left:2px;right:2px;top:38px;height:16px;border-radius:0 0 10px 10px;font-size:10px;font-weight:700;color:#fff;text-align:center;line-height:16px;background:var(--blue)}
.band.top .bandlabel{background:var(--purple)}.band.soul .bandlabel{background:linear-gradient(90deg,var(--blue),var(--purple))}
.band.sync .sq,.band.top .sq,.band.soul .sq{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--blue)}
.band.top .sq{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--purple)}
.band.soul .sq{box-shadow:0 0 0 2px #fff,0 0 0 4px #6b48f0}
.band .bandlabel{left:0;right:0;top:36px;height:16px;border-radius:0 0 12px 12px}
.corner{position:absolute;top:-6px;right:-6px;display:flex;gap:2px}
.corner i{width:18px;height:18px;border-radius:50%;border:2px solid #fff;position:relative}
.corner i.red{background:var(--red)}.corner i.green{background:var(--green)}
.corner i::after{content:'';position:absolute;inset:3px;background:#fff;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
/* A4c 테두리 색 + 글자 */
.frame .sq{box-sizing:border-box}
.frame.sync .sq{box-shadow:0 0 0 2px var(--blue)}
.frame.top .sq{box-shadow:0 0 0 2px var(--purple)}
.frame.soul .sq{box-shadow:0 0 0 2px #fff,0 0 0 4px #6b48f0}
.ft{font-size:11px;font-weight:700;margin-top:2px}
.frame.sync .ft{color:var(--blue)}.frame.top .ft{color:var(--purple)}.frame.soul .ft{background:linear-gradient(90deg,var(--blue),var(--purple));-webkit-background-clip:text;background-clip:text;color:transparent}
.fi{display:flex;gap:3px}
.fi span{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;background:var(--soft)}
.fi img{width:14px;height:14px}

/* B 공통: A1 행 + 관계 칼럼 */
.rel .row{grid-template-columns:40px minmax(0,1fr) 250px 28px}
.relcell{display:flex;align-items:center;gap:6px;min-width:0;position:relative}
.rb{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;border-radius:999px;padding:2px 9px 2px 6px;white-space:nowrap;background:var(--soft);color:var(--ink-2)}
.rb img{width:15px;height:15px}
.rb.blue{color:#2448d8;background:#eef2ff}.rb.purple{color:#7424db;background:#f4ecff}.rb.red{color:#e0144b;background:#ffecf1}.rb.navy{color:#26334F;background:#eef1f6}.rb.green{color:#00856f;background:#e7f7f3}

/* B1 관계 배지 */
.b1 .rb:not(.strong){background:transparent;padding-left:2px;color:var(--muted)}
.b1 .rb.strong{font-size:12px;padding:3px 10px 3px 7px}

/* B2 관계 칼럼 */
.b2 .colhead{display:grid;grid-template-columns:40px minmax(0,1fr) 250px 28px;column-gap:16px;padding:8px 18px 8px 14px;background:var(--soft);border-bottom:1px solid var(--line);font-size:11.5px;font-weight:600;color:var(--muted)}
.b2 .relcell{flex-direction:column;align-items:flex-start;gap:2px;border-left:1px solid var(--line);padding-left:16px;align-self:stretch;justify-content:center;margin:-14px 0}
.rl{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700}
.rl img{width:16px;height:16px}
.rl.blue{color:#2448d8}.rl.purple{color:#7424db}
.b2 small{display:flex;align-items:center;gap:3px;font-size:11.5px;color:var(--ink-2)}
.b2 small img{width:14px;height:14px}
.b2 small.dim,.b2 .none{color:var(--faint);font-size:11.5px}

/* B3 관계 단계 */
.steps{display:flex;align-items:center}
.steps i{width:9px;height:9px;border-radius:50%;background:#e3e7ef}
.steps em{width:14px;height:2px;background:#e3e7ef}
.steps.blue i.on{background:var(--blue)}.steps.purple i.on{background:var(--purple)}
.steps.l3 i.on{background:linear-gradient(135deg,var(--blue),var(--purple))}
.steps.l2 em:first-of-type,.steps.l3 em{background:currentColor}
.steps.blue{color:var(--blue)}.steps.purple{color:var(--purple)}
.steplabel{font-size:12px;font-weight:600;color:var(--ink-2);margin-left:4px;min-width:76px}
.hist{display:flex;gap:4px;margin-left:auto}
.hi{width:26px;height:26px;border-radius:8px;display:grid;place-items:center}
.hi img{width:17px;height:17px}
.hi.red{background:#ffecf1}.hi.green{background:#e7f7f3}

/* B4 아이콘 + 설명 카드 */
.b4 .relcell{justify-content:flex-end}
.dots{display:flex;align-items:center;padding:3px;border-radius:999px}
.dots:hover,.open .dots{background:var(--soft)}
.dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff;margin-left:-6px}
.dot:first-child{margin-left:0}
.dot img{width:15px;height:15px}
.dot.blue{background:#eef2ff}.dot.purple{background:#f4ecff}.dot.red{background:#ffecf1}.dot.navy{background:#eef1f6}.dot.green{background:#e7f7f3}
.pop{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:3;width:250px;background:#fff;border:1px solid var(--line-2);border-radius:12px;box-shadow:0 12px 30px rgba(20,30,60,.14);padding:12px 14px}
.relcell:hover .pop,.relcell.open .pop,.dots:focus-visible+.pop{display:block}
.pop b{display:block;font-size:12.5px;margin-bottom:6px}
.pop p{display:flex;gap:8px;margin:6px 0 0;align-items:flex-start}
.pop p img{width:18px;height:18px;margin-top:1px}
.pop strong{display:block;font-size:12px}
.pop span{font-size:11.5px;color:var(--muted)}
.b4 .row:last-child .pop{top:auto;bottom:calc(100% + 8px)}

@media (max-width:900px){
 .lo-top{flex-direction:column;align-items:flex-start;padding:12px 16px}.lo-jump{flex-wrap:wrap}
 .lo-main{padding:8px 16px 40px}.lo-head{flex-wrap:wrap}.lo-head h3{white-space:normal}
 .rel .row,.b2 .colhead{grid-template-columns:40px minmax(0,1fr) 28px}.rel .relcell{grid-column:2;grid-row:2;margin-top:8px}.b2 .colhead{display:none}.b2 .relcell{border:0;padding:0;margin:8px 0 0}
 .a3 .row{grid-template-columns:52px minmax(0,1fr) 28px}.a3 .reward{display:none}
}

/* 아바타 관계 배지 (A3) */
.fw{position:relative;flex-shrink:0;display:inline-flex;outline:0}
.badge{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #fff,0 1px 3px rgba(27,34,51,.18)}
.badge::after{content:'';position:absolute;inset:3.5px;background:#26334F;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.badge.blue::after{background:var(--blue)}.badge.purple::after{background:var(--purple)}.badge.red::after{background:var(--red)}.badge.navy::after{background:#26334F}.badge.green::after{background:var(--green)}
.fw .tip{display:none;position:absolute;left:-4px;top:calc(100% + 6px);z-index:3;white-space:nowrap;font-size:11.5px;font-weight:600;color:#fff;background:var(--ink);border-radius:7px;padding:4px 9px}
.fw:hover .tip,.fw:focus-visible .tip{display:block}
.bp.after{margin-left:2px}

.badge.gold::after{background:#f59e0b}
.a3 .side{display:flex;align-items:center;gap:12px;justify-self:end}
.hb{position:relative;display:grid;place-items:center;width:24px;height:24px;outline:0}
.hb img{width:20px;height:20px}
.hb .tip{display:none;position:absolute;right:-6px;top:calc(100% + 4px);z-index:3;white-space:nowrap;font-size:11.5px;font-weight:600;color:#fff;background:var(--ink);border-radius:7px;padding:4px 9px}
.hb:hover .tip,.hb:focus-visible .tip{display:block}
.rb.gold{color:#b86e00;background:#fff6e0}

/* A3 업/다운: 가로 알약 (코덱스 앱 형태) */
.a3 .vote.pill3{justify-self:start;height:34px;padding:0 5px;gap:2px;border-radius:999px;background:#eef1fc;border:1px solid #e1e6f8}
.a3 .vote.pill3 b{min-width:40px;font-size:12.5px;font-weight:700;color:var(--ink)}
.a3 .vote.pill3.boom b{font-size:11px;letter-spacing:.3px;color:var(--ink)}
.a3 .vote.pill3 button{opacity:1;width:24px;height:24px;border-radius:50%}
.a3 .vote.pill3 svg{width:18px;height:18px}
.a3 .vote.pill3 button:hover{background:#fff}

/* 콜라보 이력: 이름 옆 */
.meta .hb{width:18px;height:18px;margin-left:-1px}
.meta .hb img{width:16px;height:16px;opacity:1}
.meta .hb .tip{left:-6px;right:auto}
.meta{overflow:visible}

/* 콜라보 이력: 색 원 + 흰 아이콘 */
.meta .hb{width:20px;height:20px;margin-left:0}
.meta .hb i{position:relative;display:block;width:18px;height:18px;border-radius:50%}
.meta .hb i.red{background:var(--red)}.meta .hb i.green{background:var(--green)}
.meta .hb i::after{content:'';position:absolute;inset:3px;background:#fff;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
