/* 첫 화 배틀(prefix btl-). 남색·흰색만, 빨간색 없음. 사이트의 body.editorial 규칙(작은 글씨·링크·버튼 색)을 이겨야 해서 body.editorial 을 앞에 붙인다. */
.btl{--btl-navy:#1d2b4a;--btl-ink:#141414;--btl-sub:#777;--btl-line:#ececec;--btl-box:#d8dbe3;max-width:760px;margin:0 auto;padding:0 0 32px;color:var(--btl-ink)}
.btl-i{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.btl-loading{padding:60px 16px;text-align:center;color:var(--btl-sub)}
body.editorial .btl a{text-decoration:none}

/* 목록 */
.btl-th{display:flex;align-items:center;gap:10px;padding:18px 16px 4px}
body.editorial .btl-th h1{margin:0 auto 0 0!important;font-size:22px!important;font-weight:800!important;letter-spacing:-.03em;color:var(--btl-ink)!important}
body.editorial .btl a.btl-join{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 13px;border:1px solid var(--btl-navy);border-radius:17px;color:var(--btl-navy)!important;font-size:13.5px;font-weight:700;white-space:nowrap;background:#fff}
body.editorial .btl .btl-sub{margin:2px 0 0;padding:0 16px;font-size:13px;color:var(--btl-sub)}
.btl-sub b{color:var(--btl-navy)}
.btl-gt{display:flex;gap:18px;padding:0 16px;margin-top:12px;border-bottom:1px solid var(--btl-line);overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.btl-gt::-webkit-scrollbar{display:none}
body.editorial .btl-gt a{padding:10px 0 9px;font-size:14.5px;color:#888!important;flex:none}
body.editorial .btl-gt a.on{color:var(--btl-ink)!important;font-weight:800;box-shadow:inset 0 -2px var(--btl-navy)}
.btl-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px 4px;font-size:12.5px;color:var(--btl-sub)}
body.editorial .btl a.btl-tg{display:flex;align-items:center;gap:6px;color:#444!important;font-size:12.5px}
.btl-tg i{width:16px;height:16px;border:1.5px solid #aaa;border-radius:3px;display:flex;align-items:center;justify-content:center;color:#fff}
.btl-tg.on i{background:var(--btl-navy);border-color:var(--btl-navy)}
/* 블라인드 표지 */
.btl-cv{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-width:0;padding:10px 10px 9px 12px;border-radius:4px;overflow:hidden;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.06)}
.btl-cv:before{content:"";position:absolute;left:5px;top:0;bottom:0;width:1px;background:rgba(255,255,255,.12)}
.btl-cv.t1{background:linear-gradient(160deg,#25324f,#1a2238)}.btl-cv.t2{background:linear-gradient(160deg,#2f3a35,#1f2925)}.btl-cv.t3{background:linear-gradient(160deg,#3b2c3d,#271c29)}.btl-cv.t4{background:linear-gradient(160deg,#3a3326,#262118)}
.btl-cv-ab{font-size:10px;font-weight:800;letter-spacing:.12em;opacity:.6}
.btl-cv-q{font-size:12.5px;font-weight:700;line-height:1.5;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.btl-cv-foot{display:flex;justify-content:space-between;gap:6px;font-size:9px;letter-spacing:.02em;opacity:.6;min-width:0}
.btl-cv-foot i{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btl-cv-foot b{font-size:12px;font-weight:800;opacity:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.btl-cv.dim{opacity:.45}
.btl-cv-foot.rev{flex-direction:column;gap:2px;opacity:1}
.btl-cv-foot.rev b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.35}
.btl-cv-foot.rev i{opacity:.7;font-size:11px}
body.editorial .btl-cv,body.editorial .btl-cv span,body.editorial .btl-cv i,body.editorial .btl-cv b{color:#fff!important}
.btl-matches{display:block}
body.editorial a.btl-match{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #f3f3f3;color:var(--btl-ink)!important}
.btl-pair{display:flex;gap:6px;flex:none}
.btl-pair .btl-cv{width:104px;height:146px}
.btl-info{flex:1;min-width:0;display:flex;flex-direction:column}
.btl-info b{font-size:14.5px;font-weight:800}
body.editorial .btl-info small{font-size:12px;color:var(--btl-sub)!important;margin-top:3px}
.btl-info em{display:inline-flex;align-items:center;gap:2px;margin-top:10px;font-style:normal;font-size:13px;font-weight:700;color:var(--btl-navy)}
.btl-info em.btl-did{color:var(--btl-sub);font-weight:600;gap:3px}
.btl-empty{margin:28px 16px;padding:28px 16px;text-align:center;border:1px dashed var(--btl-box);border-radius:8px;display:flex;flex-direction:column;gap:6px;align-items:center}
.btl-empty strong{font-size:15.5px}
body.editorial .btl-empty small{font-size:13px;color:var(--btl-sub)!important}
body.editorial .btl-empty a,body.editorial .btl-empty button{margin-top:8px;display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:6px;background:var(--btl-navy);color:#fff!important;font-weight:700;border:0}
.btl-foot{padding:8px 16px;text-align:right;font-size:13px}
body.editorial .btl-foot a{color:var(--btl-sub)!important;text-decoration:underline}

/* 배틀 화면 */
.btl-hd{display:flex;align-items:center;gap:8px;height:52px;padding:0 10px;border-bottom:1px solid #f0f0f0;background:#fff}
body.editorial .btl-hd a,body.editorial .btl-hd button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;background:none;color:var(--btl-ink)!important;min-height:0}
.btl-hd b{margin-right:auto;font-size:15px;font-weight:700}
.btl-hd b small{font-size:12px;color:var(--btl-sub);font-weight:500;margin-left:4px}
.btl-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 16px 6px}
.btl-duo .btl-cv{height:208px;cursor:pointer}
.btl-duo .btl-cv-q{font-size:14px}
.btl-duo .btl-cv.on{outline:2.5px solid var(--btl-navy);outline-offset:3px}
.btl-duo .btl-cv.off{opacity:.45}
body.editorial .btl .btl-now{margin:0;padding:8px 16px 0;font-size:12.5px;color:var(--btl-sub)}
.btl-now b{color:var(--btl-ink)}
.btl-read{padding:10px 20px 0;font-size:16.5px;line-height:1.9;color:#222;word-break:keep-all;overflow-wrap:anywhere}
.btl-read p{margin:0}.btl-read p+p{margin-top:10px}
body.editorial .btl .btl-hint{margin:0;padding:14px 16px 6px;text-align:center;font-size:12px;color:var(--btl-sub)}
.btl-pickbar{position:sticky;bottom:calc(56px + env(safe-area-inset-bottom,0px));z-index:4;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 16px;background:#fff;border-top:1px solid var(--btl-line)}
/* 고른 뒤 */
.btl-duo.res .btl-cv{cursor:default}
.btl-rc{display:flex;flex-direction:column;min-width:0}
.btl-chosen{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:3px 7px;border-radius:3px;background:#e6ebf7;color:var(--btl-navy);font-size:12px;font-weight:800;min-height:22px}
.btl-chosen.none{visibility:hidden}
body.editorial .btl .btl-chosen{color:var(--btl-navy)!important}
body.editorial .btl p.btl-big{margin:8px 0 0;font-size:34px;font-weight:800!important;letter-spacing:-.04em;line-height:1;color:var(--btl-ink)}
.btl-big small{font-size:13px;font-weight:600;opacity:.6;margin-left:4px;letter-spacing:0}
body.editorial .btl .btl-wait{margin:10px 0 0;padding:10px 16px;font-size:12.5px;color:var(--btl-sub);text-align:center;border-top:1px solid var(--btl-line)}
.btl-sbar{display:grid;grid-template-columns:1fr 46px;gap:8px;padding:10px 16px;margin-top:10px;border-top:1px solid var(--btl-line)}
body.editorial .btl button.btl-btn{display:flex;align-items:center;justify-content:center;gap:6px;height:46px;min-height:46px;padding:0 14px;border:1px solid var(--btl-navy);border-radius:6px;background:var(--btl-navy);color:#fff!important;font-size:15px;font-weight:700}
body.editorial .btl button.btl-btn.ln{background:#fff;color:var(--btl-navy)!important;border-color:var(--btl-box)}
body.editorial .btl button.btl-btn:disabled{opacity:.6}
body.editorial .btl a.btl-nx{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;border-top:1px solid var(--btl-line);color:var(--btl-ink)!important;font-size:14.5px;font-weight:700}
.btl-nx em{display:flex;align-items:center;gap:2px;font-style:normal;font-size:12.5px;color:var(--btl-sub);font-weight:500}

/* 1화 내기 */
.btl-theme{display:flex;justify-content:space-between;align-items:center;margin:14px 16px 4px;padding:10px 12px;border-left:3px solid var(--btl-navy);background:#f6f7fa;font-size:13px;color:#333}
.btl-theme b{color:var(--btl-navy)}
.btl-form form{padding:0 16px}
.btl-f{display:block;margin-top:14px}
.btl-f>span{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
.btl-f>span small{margin-left:4px;font-weight:500;color:var(--btl-sub)}
body.editorial .btl-f input:not([type=radio]):not([type=checkbox]),body.editorial .btl-f select,body.editorial .btl-f textarea{width:100%;box-sizing:border-box;border:1px solid var(--btl-box);border-radius:6px;padding:10px 12px;font:inherit;font-size:15px;background:#fff;color:var(--btl-ink)}
body.editorial .btl-f input:not([type=radio]):not([type=checkbox]),body.editorial .btl-f select{height:46px}
body.editorial .btl-f textarea{min-height:260px;line-height:1.7;resize:vertical}
.btl-seg{display:grid;grid-template-columns:repeat(2,1fr);height:40px;border:1px solid var(--btl-box);border-radius:6px;overflow:hidden}
.btl-seg label{position:relative;display:flex;align-items:center;justify-content:center;font-size:13.5px;color:#555;cursor:pointer}
.btl-seg label+label{border-left:1px solid var(--btl-box)}
.btl-seg input{position:absolute;left:0;top:0;width:1px!important;height:1px!important;margin:0;opacity:0;pointer-events:none}
.btl-seg label.on{background:var(--btl-navy);color:#fff;font-weight:700}
.btl-cnt{display:flex;justify-content:space-between;margin:6px 0 0;font-size:12px;color:var(--btl-sub)}
.btl-cnt b{display:flex;align-items:center;gap:3px;font-weight:600}
.btl-cnt b.ok{color:var(--btl-navy);font-weight:800}
.btl-ex{border:1px dashed #b9bfcd;border-radius:6px;padding:10px 12px;font-size:13.5px;line-height:1.65;color:#444;background:#fff}
.btl-ex p{margin:0}.btl-ex p+p{margin-top:6px}
.btl-ex-none{color:#aaa}
body.editorial .btl button.btl-link{margin-top:6px;padding:0;border:0;background:none;color:var(--btl-navy)!important;font-size:12.5px;font-weight:700;min-height:0;height:auto}
.btl-paras{display:grid;gap:4px;margin-top:8px;max-height:260px;overflow:auto;border:1px solid var(--btl-line);border-radius:6px;padding:6px}
body.editorial .btl-paras button{text-align:left;padding:8px 10px;border:0;border-radius:4px;background:#f6f7fa;color:#333!important;font-size:13px;line-height:1.5;min-height:0;height:auto}
.btl-ck{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:13px;line-height:1.55;color:#333}
.btl-ck input{width:20px;height:20px;margin:1px 0 0;accent-color:#1d2b4a;flex:none}
body.editorial .btl .btl-note{margin:14px 0 8px;font-size:12px;color:var(--btl-sub);text-align:center}
.btl-submit{width:100%}

/* 내 참가 글 */
.btl-row{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--btl-line)}
.btl-row b{font-size:15px}
body.editorial .btl-row small{display:block;font-size:12px;color:var(--btl-sub)!important;margin-top:2px}
.btl-st{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--btl-navy)}
.btl-st.st-rejected{color:#666}
.btl-stat{margin:4px 0 0;font-size:13px;color:#333}
.btl-stat b{color:var(--btl-navy)}
body.editorial .btl .btl-stat.sub{margin-top:2px;font-size:12px;color:var(--btl-sub)}
body.editorial .btl-row-act a.btl-again{background:var(--btl-navy);border-color:var(--btl-navy);color:#fff!important}
.btl-row-act{display:flex;flex-direction:column;gap:6px;align-items:flex-end;flex:none}
body.editorial .btl-row-act a,body.editorial .btl-row-act button{font-size:13px;font-weight:700;color:var(--btl-navy)!important;background:none;border:1px solid var(--btl-box);border-radius:6px;padding:6px 10px;min-height:0;height:auto;white-space:nowrap}
.btl-mine .btl-hd b{font-size:16px}
body.editorial .btl-mine .btl-hd a.btl-join{width:auto;height:32px;padding:0 12px}

/* 관리자 */
.btl-admin .btl-gt{margin-bottom:6px}
.btl-adm{display:flex;justify-content:space-between;gap:16px;padding:16px;border-bottom:1px solid var(--btl-line)}
.btl-adm>div:first-child{min-width:0;flex:1}
.btl-adm b{font-size:15px}
body.editorial .btl-adm small{display:block;margin:2px 0 8px;font-size:12px;color:var(--btl-sub)!important}
.btl-adm p{margin:4px 0;font-size:13.5px}
.btl-adm details{margin-top:8px;font-size:13px}
.btl-full{margin-top:8px;max-height:420px;overflow:auto;padding:10px 12px;border:1px solid var(--btl-line);border-radius:6px;font-size:13.5px;line-height:1.75}
.btl-full p{margin:0 0 6px}
.btl-adm-act{display:flex;flex-direction:column;gap:6px;width:200px;flex:none}
body.editorial .btl-adm-act input{height:38px;border:1px solid var(--btl-box);border-radius:6px;padding:0 10px;font-size:13px}
.btl-adm-theme{padding:6px 16px;display:grid;gap:4px;max-width:360px}
.btl-none{padding:30px 16px;text-align:center;color:var(--btl-sub)}
body.editorial .btl button.btl-del{height:32px;min-height:32px;padding:0 10px;border:1px solid #d4d4d8;border-radius:6px;background:#fff;color:#555!important;font-size:12.5px;font-weight:600}
body.editorial .btl button.btl-del[data-sure="1"]{border-color:#1d2b4a;color:#1d2b4a!important;font-weight:800}

/* 홈 칸 */
.btl-home{--btl-navy:#1d2b4a;--btl-box:#d8dbe3;--btl-sub:#777;--btl-ink:#141414;--btl-line:#ececec;padding:18px 0 4px}
.btl-home-h{display:flex;align-items:baseline;gap:8px;padding:0 16px 4px}
body.editorial .btl-home-h h2{margin:0 auto 0 0!important;font-size:17px!important;font-weight:800!important;color:#141414!important}
.btl-home.pc .btl-home-h h2{margin-right:8px!important}
.btl-home-h small{margin-right:auto;font-size:13px;color:#777}
body.editorial .btl-home-h a{display:flex;align-items:center;font-size:12.5px;color:#777!important}
body.editorial .btl-home .btl-home-sub{margin:0;padding:0 16px;font-size:12.5px;color:#777}
.btl-home .btl-matches{margin-top:6px}
body.editorial .btl-home a.btl-home-theme{display:flex;color:#333!important;margin:10px 16px 0}
.btl-home-theme>b{color:var(--btl-navy);font-weight:800}
body.editorial .btl-home a.btl-home-join{display:flex;align-items:center;justify-content:space-between;margin:0 16px;padding:14px 16px;border:1px solid var(--btl-box);border-radius:8px;color:#141414!important}
.btl-home-join b{display:block;font-size:15px}
.btl-home-join small{display:block;font-size:12.5px;color:#777;margin-top:2px}
.btl-home.pc{padding:28px 0 8px}
.btl-home.pc .btl-home-h{padding:0 0 12px}
body.editorial .btl-home.pc .btl-home-h h2{font-size:20px!important}
.btl-home.pc .btl-matches{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.btl-home.pc a.btl-match{padding:12px 0}
.btl-home.pc a.btl-home-join{margin:0}

/* 공개 전에는 메뉴·탭·작업실 메뉴를 숨긴다(관리자·공개 뒤에는 body.battle-on) */
body:not(.battle-on) [data-battle-nav]{display:none!important}
.btl-preview{margin:10px 16px 0;padding:8px 12px;border-radius:6px;background:#f6f7fa;border:1px dashed #b9bfcd;font-size:12.5px;color:#444}
.btl-home .btl-preview{margin:0 16px 10px}
.btl-home.pc .btl-preview{margin:0 0 10px}
.btl-gate{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 16px 4px;padding:12px 14px;border:1px solid var(--btl-box);border-left:3px solid var(--btl-navy);border-radius:6px;font-size:13.5px;color:#333}
.btl-gate b{color:var(--btl-navy)}
body.editorial .btl-gate button{flex:none;height:36px;min-height:36px;padding:0 14px;border-radius:6px;border:1px solid var(--btl-navy);background:var(--btl-navy);color:#fff!important;font-size:13.5px;font-weight:700}
body.editorial .btl-gate.on button{background:#fff;color:var(--btl-navy)!important}
/* 커뮤니티 탭에 붙는 '첫 화 배틀' 링크(버튼 탭과 같은 모양) */
body.editorial .cy-page .cy-tabs a.cy-tab-battle{flex:0 0 auto;padding:9px 0;font-size:15.5px;font-weight:600;color:#4a4d53;text-decoration:none}

@media (min-width:701px){
  .btl-matches{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:0 16px}
  body.editorial .btl-list a.btl-match{padding:14px 0}
  .btl-play{max-width:560px}
  .btl-play .btl-hd{border:0}
  .btl-duo .btl-cv{height:260px}
  .btl-pickbar{position:static}
}
@media (max-width:1020px){
  body.editorial .cy-page .cy-tabs a.cy-tab-battle{padding:8px 1px 10px;color:#9a9da3}
}
