﻿/*  박터트리기 (팀전 이벤트) 유저 화면   2026-11-11 신설 · 2026-11-12 화면 v3 · 2026-11-17 3차 디자인 시안
    쓰는 뷰 : Views/TeamBattle/Index · _TeamBattleBoard · _TeamBattleRank (.renewal-team-battle)
              (메인 전광판 띠는 2026-11-18 부터 team-battle-strip.css 로 분리 — 탑메뉴 화면 전부에 싣는다)
    3차 : 시안 배치 — 위(제목 · 시·분·초 카운트다운 · 박) → 게이지 → 보상 버튼 → 내 상태 3칸 → 팀 대항전(접힌 줄)
          → 박 레벨업 기여 TOP → 기여 점수 안내 → 단계별 보상 · 참여 방법(접기)
    팀 색은 관리자가 정한 값을 --tc 로 받는다 (없으면 주황). 아이콘은 이미지 파일 없이 CSS 의 작은 SVG 로 그린다.      */

/* ═══════════════ 이벤트 페이지 ═══════════════ */
.renewal-team-battle {
    --or:#FF7A00; --or-2:#FF9A1F; --or-soft:#FFF1E2; --or-line:#FFD9B3;
    --brown:#5A2D0C; --ink:#2B2620; --sub:#8A8278; --line:#F0E8DD; --card:#fff; --bg:#FFF8F0; --lead:#FFF6D6;
    --gold:#F2B705; --silver:#AEB6C1; --bronze:#D28A4E;
    max-width:560px; margin:0 auto; padding:0 12px 28px; color:var(--ink); background:var(--bg);
    font-size:14px; line-height:1.4; word-break:keep-all;
}
/* 2026-11-18 화면 색 : 관리자 [상세 상단 배치] 의 배경색(--bg) · 포인트색(--or)을 #tbRoot 에 넣으면 아래가 그 두 색에서 따라 만들어진다.
   (게이지 막대 그라데이션 끝색 · 옅은 태그 바탕 · 테두리 · 박 이미지 뒤 바탕) — 관리자 미리보기(.tb-theme-pv)와 같은 식 */
.renewal-team-battle { --hero-bg:#FCF1E9; }
@supports (color: color-mix(in srgb, red 50%, white)) {
    .renewal-team-battle {
        --or-2:color-mix(in srgb, var(--or) 78%, #fff);
        --or-soft:color-mix(in srgb, var(--or) 10%, #fff);
        --or-line:color-mix(in srgb, var(--or) 30%, #fff);
        --hero-bg:color-mix(in srgb, var(--bg) 97%, #5A2D0C);
    }
}
.renewal-team-battle * { box-sizing:border-box; }
.renewal-team-battle b, .renewal-team-battle strong { font-weight:800; }
.renewal-team-battle img { display:block; max-width:100%; }

/* 진행 중인 이벤트가 없을 때 */
.renewal-team-battle .tb-none { display:flex; flex-direction:column; align-items:center; gap:6px; margin-top:40px; padding:40px 20px; border-radius:16px; background:var(--card); border:1px solid var(--line); text-align:center; color:var(--sub); }
.renewal-team-battle .tb-none b { color:var(--ink); font-size:16px; }
.renewal-team-battle .tb-none-btn { margin-top:8px; padding:8px 18px; border-radius:999px; background:var(--or); color:#fff; font-size:13px; font-weight:800; text-decoration:none; }

/* ── ① 위 : 박 이미지 한 장 + 겹침 (2026-11-18 대표 요청) ──
   박 이미지 = 지금 레벨의 통이미지(제목 · 박 · 캐릭터). 그 위에 카운트다운 · 1위 · 2위 팀 이미지 · 레벨 이름을 겹친다.
   자리는 관리자가 "원본 이미지 px" 로 적은 값(--r 오른쪽에서 · --b 아래에서 · --w 폭 · --h 높이)을
   원본 크기(--nw · --nh — team-battle.js 가 이미지를 읽고 넣는다)로 나눠 % 로 바꾼다 → 화면 폭이 달라도 같은 자리.
   카운트다운 글자는 상자 폭의 % (cqw) 라 상자를 키우면 글자도 커진다. 관리자 미리보기(CS_Admin view-styles.css .tb-hp-*)와 같은 값 */
.renewal-team-battle .tb-hero2 { position:relative; margin:0 -12px; background:var(--hero-bg); container-type:inline-size; overflow:hidden; }
/* 2026-11-18 : 관리자 [상세 상단 배치] View 를 끈 줄 (카운트다운 · 이름표는 스크립트가 쓰는 칸이라 그리고 숨긴다) */
/*   2026-11-19 : !important — 이름표에 높이가 있으면 .tb-lv-pill.tb-ov.has-h { display:flex } 가 이겨 꺼도 보였다 (관리자 미리보기와 달랐다) */
.renewal-team-battle .tb-hero2 .is-hide { display:none !important; }
.renewal-team-battle .tb-hero2-img { display:block; width:100%; max-width:none; height:auto; }
.renewal-team-battle .tb-ov { position:absolute; visibility:hidden; right:calc(var(--r, 0) / var(--nw) * 100%); bottom:calc(var(--b, 0) / var(--nh) * 100%); }
.renewal-team-battle .tb-hero2.is-ready .tb-ov { visibility:visible; }
.renewal-team-battle .tb-ov.has-w { width:calc(var(--w) / var(--nw) * 100%); }
.renewal-team-battle .tb-ov.has-h { height:calc(var(--h) / var(--nh) * 100%); }
/* 팀 이미지 (폭 · 높이 둘 다 0 이면 Razor 가 그리지 않는다) */
.renewal-team-battle .tb-ov-team { z-index:1; }
.renewal-team-battle .tb-ov-team img { display:block; width:100%; height:auto; }
.renewal-team-battle .tb-ov-team.has-h:not(.has-w) img { width:auto; height:100%; }
.renewal-team-battle .tb-ov-team.has-w.has-h img { width:100%; height:100%; object-fit:contain; }
/* 카운트다운 — 폭 · 높이 둘 다 0 이면 기본 자리(왼쪽 4% · 아래 6% · 폭 36%) · 폭만 0 이면 36% */
.renewal-team-battle .tb-ov-cd { z-index:2; container-type:inline-size; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.2cqw; width:36%; margin:0; text-align:center; }
.renewal-team-battle .tb-ov-cd.is-def { left:4%; right:auto; bottom:6%; visibility:visible; }
.renewal-team-battle .tb-ov-cd .tb-count-label { font-size:13px; font-size:9cqw; color:var(--brown); }      /* 2026-11-24 대표 : 7cqw → 9cqw */
.renewal-team-battle .tb-ov-cd .tb-count-box { gap:1.5cqw; margin:0; margin-top:-2px; }                        /* 2026-11-24 대표 : 위로 2px */
.renewal-team-battle .tb-ov-cd .tb-count-box b { min-width:22cqw; padding:1.6cqw 1cqw; border-radius:3.5cqw; font-size:24px; font-size:13cqw; line-height:1.1; }
.renewal-team-battle .tb-ov-cd .tb-count-box i { font-size:18px; font-size:9cqw; }
/* 2026-11-23 대표 : 숫자 아래 시간/분/초 글자(.tb-count-unit)는 뺐다 — 칸 안에는 '이벤트 종료까지' + 숫자만 (세로 가운데) */
/* 끝나면 카운트다운 자리에 우승팀 (2026-11-18 대표) — 자리 · 크기는 카운트다운과 같고 글자는 상자 폭의 % (cqw) */
.renewal-team-battle .tb-win { gap:1.6cqw; }
.renewal-team-battle .tb-win-label { position:relative; display:inline-flex; align-items:center; font-size:13px; font-size:7.5cqw; font-weight:900; color:var(--brown); }
/* 2026-11-20 : 우승 라벨의 SVG 왕관 · 팀 색 이름 알약 · 점수는 아래 이름 글자(.tb-win-name2)만으로 바꿨다 — .tb-win-label 은 "이벤트 종료"(우승팀 없음) 때만 */
.renewal-team-battle .tb-team.is-win .tb-team-sub { color:var(--or); font-weight:800; }
/* 레벨 이름 (오른쪽 아래 고정) — 관리자 [레벨 이름] · 비면 Lv.N */
.renewal-team-battle .tb-hero2 .tb-lv-pill { position:absolute; right:3%; bottom:4%; z-index:3; margin:0; padding:.45em 1.1em; border-radius:999px; background:var(--brown); color:#fff; font-size:13px; font-size:3.1cqw; font-weight:800; white-space:nowrap; box-shadow:0 2px 6px rgba(90,45,12,.25); }   /* 2026-11-18 : px 상·하한(clamp)을 빼고 박 이미지 폭에 정비례 — 관리자 미리보기와 같은 자리 · 같은 크기 */
.renewal-team-battle .tb-hero2 .tb-lv-pill small { margin-right:.25em; font-size:.82em; font-weight:700; opacity:.8; }
/* 레벨 이름표를 관리자 자리로 (2026-11-18 · 2위 팀 자리를 이름표로 바꿈) — 넷 다 0 이면 위 기본 자리(오른쪽 3% · 아래 4%).
   높이를 주면 글자 크기 = 높이의 45% (원본 px → 화면 px 은 박 이미지 폭 기준 cqw) · 폭 0 = 글자만큼 */
.renewal-team-battle .tb-hero2 .tb-lv-pill.tb-ov { right:calc(var(--r, 0) / var(--nw) * 100%); bottom:calc(var(--b, 0) / var(--nh) * 100%); }
.renewal-team-battle .tb-hero2 .tb-lv-pill.tb-ov.has-w { width:calc(var(--w) / var(--nw) * 100%); text-align:center; }
.renewal-team-battle .tb-hero2 .tb-lv-pill.tb-ov.has-h { display:flex; align-items:center; justify-content:center; height:calc(var(--h) / var(--nh) * 100%); padding-top:0; padding-bottom:0; font-size:calc(var(--h) / var(--nw) * 45cqw); }
.renewal-team-battle .tb-hero2.is-noimg .tb-lv-pill { visibility:visible; }
/* 박 이미지가 하나도 없을 때 : 제목 글자 + 카운트다운을 그냥 쌓는다 */
.renewal-team-battle .tb-hero2.is-noimg { padding:18px 14px 14px; text-align:center; }
.renewal-team-battle .tb-hero2.is-noimg .tb-hero-chip { display:inline-block; padding:2px 10px; border-radius:999px; background:var(--or); color:#fff; font-size:10.5px; font-weight:900; letter-spacing:.06em; }
.renewal-team-battle .tb-hero2.is-noimg h2 { margin:6px 0 10px; font-size:23px; line-height:1.25; font-weight:900; color:var(--brown); }
.renewal-team-battle .tb-hero2.is-noimg .tb-ov-cd { position:static; visibility:visible; width:min(100%, 300px); margin:0 auto; }
.renewal-team-battle .tb-hero2.is-noimg .tb-lv-pill { position:static; display:inline-block; margin-top:10px; }
/* 카운트다운 숫자 상자 (공통) */
.renewal-team-battle .tb-count-label { display:block; font-size:12px; font-weight:800; color:var(--brown); }
.renewal-team-battle .tb-count-box { display:flex; align-items:center; justify-content:center; gap:4px; margin-top:4px; }
.renewal-team-battle .tb-count-box b { min-width:46px; padding:6px 4px; border-radius:10px; background:var(--brown); color:#fff; font-size:24px; font-weight:900; text-align:center; font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-count-box i { font-style:normal; font-size:20px; font-weight:900; color:var(--brown); }
/* 2026-11-20 대표 "빨간색 끄기" : 종료 10분 전 빨간 타이머(tb-count-urgent)를 껐다 — class 는 남아 있어 되살리려면 background:#D93A3F 를 다시 넣는다 */

/* 2026-11-23 대표 : 카운트다운 숫자 = 스코어 카드 넘기기 (시안 B · 라이브러리 없음 · 시안 = _ClaudeCode_sample/20261123_가자_박터트리기_플립타이머)
   칸 하나(b.tb-fc) = 네 장 — up.next(뒤 위) · dn.cur(앞 아래) · up.cur(앞 위 · 접혀 내려간다) · dn.next(새 아래 · 펼쳐진다)
   team-battle.js flipTo 가 값이 바뀐 칸에만 .go 를 붙였다 뗀다. 넘기지 않을 때는 예전 숫자 상자와 같은 크기 · 같은 갈색
     일반     46 × 45.6px  (24px 글자 × 줄높이 1.4 + 위아래 6px · 모서리 10px)
     상단 겹침 22 × 17.5cqw (13cqw 글자 × 1.1 + 위아래 1.6cqw · 모서리 3.5cqw)
   위 .tb-count-box b 의 padding · min-width · 바탕은 여기서 지운다(바탕은 네 장이 칠한다) — 크기는 --w --h --r --fs 로만 */
.renewal-team-battle .tb-count-box b.tb-fc {
    --w:46px; --h:45.6px; --r:10px; --fs:24px; --dur:.62s; --fc-top:#7A3E14;
    position:relative; z-index:0; display:block; flex:none; width:var(--w); min-width:0; height:var(--h); padding:0; border-radius:var(--r); background:none;
    perspective:calc(var(--h) * 5); font-size:var(--fs); line-height:1; font-weight:900; color:#fff; text-align:center; font-variant-numeric:tabular-nums;
}
/* 상단 겹침 : 카운트다운 칸 폭(cqw)을 따른다. 사용자 정의 속성은 "px 먼저 · cqw 나중" 대체가 안 돼서 @supports 로 나눈다 — cqw 를 모르면 위 일반 px 크기 */
@supports (width:1cqw) {
    .renewal-team-battle .tb-ov-cd .tb-count-box b.tb-fc { --w:22cqw; --h:17.5cqw; --r:3.5cqw; --fs:13cqw; }
}
.renewal-team-battle .tb-fc > span { position:absolute; left:0; right:0; height:50%; overflow:hidden; background:var(--brown); -webkit-backface-visibility:hidden; backface-visibility:hidden; }
.renewal-team-battle .tb-fc > span > em { display:block; height:var(--h); line-height:var(--h); font-style:normal; text-align:center; }
.renewal-team-battle .tb-fc .up { top:0; border-radius:var(--r) var(--r) 0 0; transform-origin:50% 100%; background:linear-gradient(180deg, var(--fc-top), var(--brown)); }
.renewal-team-battle .tb-fc .dn { bottom:0; border-radius:0 0 var(--r) var(--r); transform-origin:50% 0; }
.renewal-team-battle .tb-fc .dn > em { margin-top:calc(var(--h) / -2); }
/* 가운데 접는 선 */
.renewal-team-battle .tb-fc::after { content:""; position:absolute; left:0; right:0; top:50%; z-index:5; height:1px; margin-top:-.5px; background:rgba(0,0,0,.45); }
.renewal-team-battle .tb-fc .up.cur, .renewal-team-battle .tb-fc .dn.next { z-index:2; }      /* 넘어가는 두 장 */
.renewal-team-battle .tb-fc .up.next, .renewal-team-battle .tb-fc .dn.cur { z-index:1; }      /* 뒤에 깔린 두 장 */
.renewal-team-battle .tb-fc .dn.next { transform:rotateX(90deg); }
.renewal-team-battle .tb-fc.go .up.cur  { animation:tbFcDown calc(var(--dur) / 2) ease-in forwards; }
.renewal-team-battle .tb-fc.go .dn.next { animation:tbFcUp calc(var(--dur) / 2) ease-out calc(var(--dur) / 2) forwards; }
/* 넘어가는 동안 위 반쪽은 어두워지고 아래 반쪽은 밝아진다 (빛 받는 느낌) */
.renewal-team-battle .tb-fc.go .up.cur::after, .renewal-team-battle .tb-fc.go .dn.next::after { content:""; position:absolute; inset:0; background:#000; }
.renewal-team-battle .tb-fc.go .up.cur::after  { opacity:0; animation:tbFcShade calc(var(--dur) / 2) ease-in forwards; }
.renewal-team-battle .tb-fc.go .dn.next::after { opacity:.45; animation:tbFcLight calc(var(--dur) / 2) ease-out calc(var(--dur) / 2) forwards; }
@keyframes tbFcDown  { from { transform:rotateX(0); } to { transform:rotateX(-90deg); } }
@keyframes tbFcUp    { from { transform:rotateX(90deg); } to { transform:rotateX(0); } }
@keyframes tbFcShade { to { opacity:.45; } }
@keyframes tbFcLight { to { opacity:0; } }
/* 움직임 줄이기 : 바로 새 숫자 (team-battle.js 도 이때는 .go 를 안 붙이고 네 장을 한 번에 바꾼다 — 여기는 혹시 붙었을 때의 안전장치) */
@media (prefers-reduced-motion: reduce) {
    .renewal-team-battle .tb-fc.go .up.cur { animation:none; visibility:hidden; }
    .renewal-team-battle .tb-fc.go .dn.next { animation:none; transform:none; }
    .renewal-team-battle .tb-fc.go .up.cur::after, .renewal-team-battle .tb-fc.go .dn.next::after { animation:none; opacity:0; }
}

/* ── ⓪ 시작 전 (2026-11-18 대표) : 상단 이미지(관리자 [상단 이미지]) + 시작 카운트다운. 아래는 단계별 보상 · 참여 방법 · 유의사항만 ── */
.renewal-team-battle .tb-pre { margin:0 -12px; padding-bottom:14px; background:var(--hero-bg); text-align:center; }
.renewal-team-battle .tb-pre-img { display:block; width:100%; max-width:none; height:auto; }
.renewal-team-battle .tb-pre-title { padding:22px 14px 2px; }
.renewal-team-battle .tb-pre-title .tb-hero-chip { display:inline-block; padding:2px 10px; border-radius:999px; background:var(--or); color:#fff; font-size:10.5px; font-weight:900; letter-spacing:.06em; }
.renewal-team-battle .tb-pre-title h2 { margin:6px 0 0; font-size:23px; line-height:1.25; font-weight:900; color:var(--brown); }
.renewal-team-battle .tb-pre-count { margin:12px auto 0; }
.renewal-team-battle .tb-pre-count .tb-count-label { font-size:13.5px; }

/* 공통 카드 */
.renewal-team-battle .tb-card { margin-top:10px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:16px; }
.renewal-team-battle .tb-hint { margin-top:8px; font-size:11.5px; color:var(--sub); text-align:center; }
.renewal-team-battle .tb-sec-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.renewal-team-battle .tb-sec-head > b { display:flex; align-items:center; gap:6px; font-size:16px; font-weight:800; }      /* 2026-11-24 대표 : 900 → 800 */
.renewal-team-battle .tb-sec-sub { font-size:11.5px; color:var(--sub); }
.renewal-team-battle .tb-ico-head::before { content:""; flex:none; width:20px; height:20px; background:center / contain no-repeat; }

/* ── ② 게이지 ── */
.renewal-team-battle .tb-gauge-title { margin-bottom:6px; font-size:15px; font-weight:900; color:var(--brown); text-align:center; }      /* 2026-11-23 대표 : 굵게 · 13 → 15px */
/* 2026-11-19 : 기여 점수 안내 아래 비례 예시 한 줄 (기준의 두 배 박스) */
.renewal-team-battle .tb-score-ratio { margin-top:8px; font-size:12px; color:var(--sub); text-align:center; }
/* 2026-11-18 : 막대 바탕(차지 않은 부분) = 관리자 [게이지 바탕색] (#tbRoot 의 --gauge-bg · 비면 기본) */
.renewal-team-battle .tb-bar { position:relative; height:24px; border-radius:999px; background:var(--gauge-bg, #F3EADF); overflow:hidden; }
/* 2026-11-23 대표 : 차오른 부분 = 포인트색 그라데이션 위에 흰 반투명 대각선 줄무늬가 천천히 오른쪽으로 흐른다
   줄무늬는 24px 칸 안에서 % 로 그려(한 칸 = 줄 두 개) 칸 폭만큼 옮기면 이음매 없이 이어진다 · 움직임 줄이기 설정이면 멈춤 (글자 라벨은 그대로) */
.renewal-team-battle .tb-bar i { position:absolute; top:0; bottom:0; left:0; border-radius:999px;
    background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.24) 0 25%, rgba(255,255,255,0) 25% 50%), linear-gradient(90deg, var(--or), var(--or-2));
    background-size:24px 24px, 100% 100%; background-repeat:repeat, no-repeat;
    animation:tbBarStripe 1.4s linear infinite; }
@keyframes tbBarStripe { from { background-position:0 0, 0 0; } to { background-position:24px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .renewal-team-battle .tb-bar i { animation:none; } }
.renewal-team-battle .tb-bar span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:900; color:#fff; text-shadow:0 1px 1px rgba(90,45,12,.45); }
.renewal-team-battle .tb-gauge-line { display:flex; justify-content:space-between; gap:8px; margin-top:7px; font-size:12px; color:var(--sub); }
.renewal-team-battle .tb-gauge-line b { color:var(--ink); }
.renewal-team-battle .tb-gauge-line em { font-style:normal; font-weight:800; color:var(--or); }
/* 2026-11-18 : 지금 레벨 구간 (대표 "1레벨이면 0 ~ 1000 으로 보이고 그다음이 1001 이구나를 알게") */
.renewal-team-battle .tb-gauge-range { margin-top:5px; padding-top:6px; border-top:1px dashed var(--line); font-size:11.5px; color:var(--sub); text-align:center; }
.renewal-team-battle .tb-gauge-range b { color:var(--brown); font-weight:800; }

/* ── ③ 보상 버튼 ── */
.renewal-team-battle .tb-two { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:8px; margin-top:10px; }
.renewal-team-battle .tb-two-btn { display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:14px; background:var(--card); border:1px solid var(--line); font:inherit; font-size:14px; color:inherit; text-align:left; cursor:pointer; }
.renewal-team-battle .tb-two-btn b { flex:1; }
.renewal-team-battle .tb-two-arrow { color:var(--sub); font-size:18px; line-height:1; }
.renewal-team-battle .tb-two-ico { flex:none; width:24px; height:24px; background:center / contain no-repeat; }
/* 아이콘 (작은 SVG) */
.renewal-team-battle .tb-ico-team,
.renewal-team-battle .tb-ico-medal::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2B705' d='M6 3h12v3h3v2a5 5 0 0 1-5 5h-.3A5 5 0 0 1 13 15.9V18h3v3H8v-3h3v-2.1A5 5 0 0 1 8.3 13H8a5 5 0 0 1-5-5V6h3zm-1 5a3 3 0 0 0 1.1 2.3A6 6 0 0 1 6 9V8zm14 0h-1v1a6 6 0 0 1-.1 1.3A3 3 0 0 0 19 8z'/%3E%3C/svg%3E"); }
.renewal-team-battle .tb-ico-gift,
.renewal-team-battle .tb-fold-ico.tb-ico-gift { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='2' y='7' width='14' height='10' rx='2' fill='%23FF7A00'/%3E%3Crect x='1' y='4' width='16' height='4' rx='1.5' fill='%23FF9A1F'/%3E%3Crect x='8' y='4' width='2' height='13' fill='%23fff'/%3E%3C/svg%3E"); }
.renewal-team-battle .tb-ico-doc { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3' y='1.5' width='12' height='15' rx='2' fill='%23B9B1A6'/%3E%3Crect x='6' y='5.5' width='6' height='1.6' rx='.8' fill='%23fff'/%3E%3Crect x='6' y='9' width='6' height='1.6' rx='.8' fill='%23fff'/%3E%3C/svg%3E"); }
.renewal-team-battle .tb-ico-crown::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M1 4l4 3 4-6 4 6 4-3-2 9H3z' fill='%23F2B705'/%3E%3C/svg%3E"); }
.renewal-team-battle .tb-ico-info::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23FF7A00'/%3E%3Crect x='9' y='8.5' width='2' height='6.5' rx='1' fill='%23fff'/%3E%3Ccircle cx='10' cy='5.8' r='1.3' fill='%23fff'/%3E%3C/svg%3E"); }

/* ── ④ 내 상태 3칸 ── */
.renewal-team-battle .tb-mine { display:grid; grid-template-columns:repeat(3, 1fr); text-align:center; padding:10px 6px; }
.renewal-team-battle .tb-mine > div + div { border-left:1px solid var(--line); }
.renewal-team-battle .tb-mine span { display:block; font-size:12px; color:var(--sub); }
.renewal-team-battle .tb-mine b { display:block; margin-top:2px; font-size:19px; font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.renewal-team-battle .tb-mine small { font-size:12.5px; font-weight:700; }
.renewal-team-battle .tb-mine.tb-mine-off { display:flex; align-items:center; gap:10px; padding:12px 14px; text-align:left; font-size:13px; }
.renewal-team-battle .tb-mine.tb-mine-off > span { flex:1; min-width:0; font-size:13px; color:var(--ink); }
.renewal-team-battle .tb-mine-tag { flex:none; padding:4px 10px; border-radius:999px; background:var(--or); color:#fff !important; font-size:11.5px; font-weight:800; text-decoration:none; white-space:nowrap; }
.renewal-team-battle .tb-mine-next { display:block; margin-top:3px; font-weight:700; }
.renewal-team-battle .tb-mine-next i { display:inline-block; width:9px; height:9px; margin:0 3px 0 4px; border-radius:50%; background:var(--tc); vertical-align:1px; }
.renewal-team-battle .tb-mine .tb-mine-next b { display:inline; margin:0; font-size:inherit; font-weight:900; overflow:visible; }      /* 2026-11-20 : 내 기여 숫자용 큰 글씨(.tb-mine b)가 팀 이름에 걸려 "가자 / 팀" 으로 줄이 쪼개지던 것 */

/* ── ⑤ 팀 대항전 — [팀 카드] (2026-11-18 시안 : 왼쪽 팀 색 · 순위 뱃지 · 캐릭터 · 점수 · 팀 1등) ──
   ★ 화면 조절은 아래 --tc-* 변수만 고친다 (관리자 팀 카드의 "사용자 화면 모양 고칠 곳" 안내가 여기를 가리킨다)
   팀 색 = 관리자가 정한 값(--tc). 순위 뱃지 = 관리자 팀 표의 [순위 뱃지](정렬 N 줄 = N위) · 없으면 원형 뱃지 */
.renewal-team-battle .tb-teams {
    --tc-radius:18px;        /* 카드 모서리 */
    --tc-bar:6px;            /* 왼쪽 팀 색 막대 굵기 */
    --tc-tint:10%;           /* 카드 왼쪽에 번지는 팀 색 농도 */
    --tc-pic:64px;           /* 캐릭터 크기 */
    --tc-badge:40px;         /* 순위 뱃지 크기 */
    --tc-name-fs:17px;  --tc-score-fs:18px;  --tc-sub-fs:12px;  --tc-best-fs:13.5px;
    --tc-sub-color:#8A8278;  --tc-best-color:#2B2620;
    padding-bottom:10px;
}
.renewal-team-battle .tb-team {
    --tc:#FF7A00;
    position:relative; margin-top:16px; border-radius:var(--tc-radius); background:#fff;
    border:1.5px solid var(--line); border-left:var(--tc-bar) solid var(--tc);
    box-shadow:0 2px 8px rgba(43,38,32,.05);
}
/* 팀 색 번짐 (color-mix 를 모르는 옛 브라우저는 위 흰 바탕 · 회색 테두리 그대로) */
@supports (color: color-mix(in srgb, red 50%, white)) {
    .renewal-team-battle .tb-team {
        border-color:color-mix(in srgb, var(--tc) 32%, #fff); border-left-color:var(--tc);
        background:linear-gradient(90deg, color-mix(in srgb, var(--tc) var(--tc-tint), #fff) 0, #fff 46%);
    }
    .renewal-team-battle .tb-team.is-lead { box-shadow:0 4px 14px color-mix(in srgb, var(--tc) 24%, transparent); }

    /* 2026-11-19 : 1위 팀 카드 테두리 (관리자 [상세 상단 배치] 1위 테두리 · 속도) — 색은 그 팀의 팀 색(--tc)
       lead-fx-1 회전 테두리 : 팀 색 테두리 위로 밝은 띠(팀 색 → 흰빛)가 계속 돈다 · lead-fx-2 숨쉬는 빛 : 테두리가 팀 색으로 밝아졌다 어두워지며 빛이 번진다
       --lead-spd = 한 바퀴 시간 배율(서버가 넣는다 · 1 보통). 링은 카드 테두리 위에만 그린다(mask) — 카드 내용은 안 움직인다
       ★ 관리자 미리보기(CS_Admin view-styles.css .tb-admin .tb-theme-pv)와 같은 규칙 · 바꿀 때 둘 다 */
    .renewal-team-battle .tb-team.is-lead.lead-fx-1::after {
        content:""; position:absolute; inset:-1.5px; z-index:1; padding:3px; border-radius:var(--tc-radius); pointer-events:none;
        background:conic-gradient(from var(--tb-lead-a), var(--tc) 0 30%, color-mix(in srgb, var(--tc) 45%, #fff) 40%, #fff 45%, color-mix(in srgb, var(--tc) 45%, #fff) 50%, var(--tc) 60% 100%);
        -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite:xor;
                mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);         mask-composite:exclude;
        animation:tbLeadSpin calc(3s * var(--lead-spd, 1)) linear infinite;
    }
    .renewal-team-battle .tb-team.is-lead.lead-fx-2 { animation:tbLeadBreathe calc(2.4s * var(--lead-spd, 1)) ease-in-out infinite; }
}

/* 2026-11-20 대표 : 우승팀 = 이름 글자만 (검정 · 버튼 · 알약 모양 없음) — 카드 · 월계수 · '우승팀' · 왕관은 종료 이미지 안에 있다
   자리 · 폭 = 관리자 [상세 상단 배치] 카운트다운 칸 · 글자 크기는 그 칸 폭(cqw)을 따른다 · 5~6글자 is-l1 · 7글자 이상 is-l2 는 줄인다 */
.renewal-team-battle .tb-win-name2 { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    color:#000; font-size:28px; font-size:17cqw; font-weight:900; letter-spacing:-.01em; line-height:1.15; }
.renewal-team-battle .tb-win-name2.is-l1 { font-size:13.5cqw; }
.renewal-team-battle .tb-win-name2.is-l2 { font-size:10cqw; }
/* 2026-11-23 대표 "종료된 후 우승팀의 이름이 나올 좌표를 관리자에서 지정" : 우승팀 이름 자리(.tb-ov-wn · 관리자 [상세 상단 배치] 우승팀 이름)
   상자 가운데 · 글자 = 상자 높이의 70% (높이 0 이면 폭의 17% = 카운트다운 자리와 같은 비율) · 5~6글자 .8 · 7글자 이상 .6 배 · 그래도 넘치면 말줄임
   자리가 비면(폭 · 높이 0) Razor 가 위 카운트다운 자리(.tb-ov-cd.tb-win)를 그대로 쓴다. 관리자 미리보기(CS_Admin view-styles.css .tb-hp-wn)와 같은 값 */
.renewal-team-battle .tb-ov-wn { z-index:2; display:flex; align-items:center; justify-content:center; margin:0; text-align:center; font-size:calc(var(--w) / var(--nw) * 17cqw); }
.renewal-team-battle .tb-ov-wn.has-h { font-size:calc(var(--h) / var(--nw) * 70cqw); }
.renewal-team-battle .tb-ov-wn .tb-win-name2 { min-width:0; font-size:1em; }
.renewal-team-battle .tb-ov-wn .tb-win-name2.is-l1 { font-size:.8em; }
.renewal-team-battle .tb-ov-wn .tb-win-name2.is-l2 { font-size:.6em; }
.renewal-team-battle .tb-ov-wn .tb-win-label { font-size:.6em; }

/* 2026-11-23 대표 : 게이지 제목 줄 = [우승팀 상품]  제목(가운데)  [이용방법] (예전 오른쪽 위 [?] 는 없앴다)
   양옆 칸 폭이 같아(1fr auto 1fr) 버튼이 하나뿐이거나 없어도 제목은 가운데 · 아주 좁으면 제목만 줄을 바꾼다(min-width:0 · keep-all)
   버튼 모양 = 짝꿍 이벤트 [이용방법](buddy-event.css .rules-btn) — 흰 바탕 · 포인트색(--or) 테두리 · 글자 · 알약 */
.renewal-team-battle .tb-gauge-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:4px; margin-bottom:6px; }
.renewal-team-battle .tb-gauge-head .tb-gauge-title { min-width:0; margin:0; word-break:keep-all; }
.renewal-team-battle .tb-gauge-side { display:flex; min-width:0; }
.renewal-team-battle .tb-gauge-side.is-end { justify-content:flex-end; }
.renewal-team-battle .tb-gauge-link { flex:none; margin:0; padding:3px 8px; border:1px solid var(--or); border-radius:999px; background:#fff; color:var(--or);
    font:inherit; font-size:11.5px; font-weight:800; line-height:1.4; letter-spacing:-.02em; white-space:nowrap; cursor:pointer; }
.renewal-team-battle .tb-gauge-link:active { background:var(--or-soft); }
.renewal-team-battle .tb-gauge-link:focus:not(:focus-visible) { outline:0; }
.renewal-team-battle .tb-pre-links { display:flex; justify-content:center; gap:8px; margin:12px 0 2px; }      /* 2026-11-23 : 시작 전 카운트다운 아래 [우승팀 상품] · [이용방법] */
.renewal-team-battle .tb-pre-links .tb-gauge-link { padding:5px 12px; font-size:12.5px; }
/* 2026-11-23 대표 : 버튼 이미지(관리자 [우승팀 상품 · 기여도 상품 버튼 이미지]) — 테두리 · 바탕 없이 이미지만 · 높이 30px · 폭은 비율대로 (시작 전 줄도 같다) */
.renewal-team-battle .tb-gauge-link.is-img { padding:0; border:0; border-radius:0; background:none; line-height:0; }
.renewal-team-battle .tb-gauge-link.is-img img { display:block; width:auto; max-width:150px; height:30px; object-fit:contain; }      /* 2026-11-23 : 가로로 긴 이미지가 머리줄을 넘지 않게 폭 상한 */
.renewal-team-battle .tb-gauge-link.is-img:active { background:none; opacity:.75; }
/* 2026-11-23 대표 : 팀 대항전 머리줄 = 제목 + "실시간"(왼쪽에 붙임) · [우승팀 상품](오른쪽) */
.renewal-team-battle .tb-teams-head .tb-live-badge { margin-right:auto; }

/* 2026-11-20 대표 : 게이지 칸 아래에 내 정보 (카드 → 칸 안 한 줄) */
.renewal-team-battle .tb-gauge .tb-mine { margin-top:10px; padding:10px 0 0; border-top:1px dashed var(--line); }
.renewal-team-battle .tb-gauge .tb-mine.tb-mine-off { padding:10px 0 0; }
.renewal-team-battle .tb-gauge-live.tb-live-flash b { display:inline-block; animation:tbLivePop .6s ease-out; }

/* 2026-11-24 대표 : 끝난 뒤 결과 티켓 (게이지 카드 대신 · _TeamBattleBoard ②' · 시안 20261124_가자_박터트리기_종료카드시안 B)
   위 = 1위 팀(우승팀)만 — 팀 색(--tc) 옅은 바탕 · 이름 · 1위 우승 · 팀 점수 · 참가 인원 + '종료' 도장(포인트색 --or · 기울임)
   절취선(점선 + 양옆 반달 홈 = 화면 바탕색 --bg) 아래 = 내 점수(나의 팀 · 내 기여 · 최종 순위) 세 칸. 꽃가루 없음(대표) */
.renewal-team-battle .tb-end { position:relative; padding:0; overflow:visible; }
.renewal-team-battle .tb-end-top { position:relative; padding:16px 16px 14px; border-radius:15px 15px 0 0; background:#fff; overflow:hidden; }
@supports (color: color-mix(in srgb, red 50%, white)) {
    .renewal-team-battle .tb-end-top { background:linear-gradient(160deg, color-mix(in srgb, var(--tc) 16%, #fff) 0%, #fff 72%); }
}
.renewal-team-battle .tb-end-meta { padding-right:84px; font-size:11.5px; font-weight:700; color:#000; }      /* 2026-11-24 대표 : 검정 */
.renewal-team-battle .tb-end-team { display:flex; align-items:center; gap:7px; min-width:0; margin-top:6px; padding-right:84px; }
.renewal-team-battle .tb-end-team i { flex:none; width:12px; height:12px; border-radius:50%; background:var(--tc); box-shadow:0 0 0 3px rgba(255,255,255,.9); }
.renewal-team-battle .tb-end-team b { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:22px; font-weight:800; color:var(--tc); }
.renewal-team-battle .tb-end-team small { flex:none; font-size:14px; font-weight:800; color:var(--ink); }
.renewal-team-battle .tb-end-team.is-none b { color:var(--sub); }
.renewal-team-battle .tb-end-rank { display:flex; align-items:center; gap:7px; margin-top:4px; }
.renewal-team-battle .tb-end-rank b { font-size:30px; font-weight:800; line-height:1.1; }
.renewal-team-battle .tb-end-win { padding:2px 10px; border-radius:999px; background:var(--gold); color:#5A3B00; font-size:12px; font-weight:900; }
.renewal-team-battle .tb-end-sub { margin-top:4px; font-size:12.5px; color:var(--sub); }
/* '종료' 도장 — 포인트색 두 겹 원 · 기울임 */
.renewal-team-battle .tb-end-stamp { position:absolute; right:14px; top:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; width:74px; height:74px;
    border:3px solid var(--or); border-radius:50%; color:var(--or); transform:rotate(-14deg); opacity:.9; box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--or); pointer-events:none; }
.renewal-team-battle .tb-end-stamp b { font-size:19px; font-weight:900; letter-spacing:.06em; line-height:1; }
.renewal-team-battle .tb-end-stamp small { margin-top:3px; font-size:8.5px; font-weight:900; letter-spacing:.14em; }
/* 절취선 — 양옆 반달 홈은 화면 바탕색으로 카드 테두리(1px)까지 덮는다 */
.renewal-team-battle .tb-end-perf { position:relative; height:18px; margin:0 14px; }
.renewal-team-battle .tb-end-perf::before { content:""; position:absolute; left:6px; right:6px; top:50%; border-top:2px dashed #E6DED3; }
.renewal-team-battle .tb-end-perf::after,
.renewal-team-battle .tb-end-perf > span { content:""; position:absolute; top:0; width:18px; height:18px; border-radius:50%; background:var(--bg); }
.renewal-team-battle .tb-end-perf::after { right:-24px; }
.renewal-team-battle .tb-end-perf > span { left:-24px; }
.renewal-team-battle .tb-end-body { padding:4px 14px 14px; }
.renewal-team-battle .tb-end-stats { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:6px; }
.renewal-team-battle .tb-end-stats div { min-width:0; padding:9px 4px; border-radius:12px; background:#FBF8F4; text-align:center; }
.renewal-team-battle .tb-end-stats span { display:block; font-size:11.5px; color:var(--sub); }
.renewal-team-battle .tb-end-stats b { display:block; margin-top:1px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:17px; font-weight:700; }
.renewal-team-battle .tb-end-stats b small { font-size:11.5px; font-weight:700; }
.renewal-team-battle .tb-end-note { margin:8px 0 0; padding:10px; border-radius:12px; background:#FBF8F4; font-size:12.5px; color:var(--sub); text-align:center; }

/* 2026-11-23 대표 : 박 레벨업 기여 TOP — 접기(2026-11-20)를 없앴다. 목록은 늘 다 보이고 머리줄 = 제목 + 오른쪽 [기여도 상품](.tb-gauge-link · #tbContribPop)
   (머리줄은 .tb-sec-head 그대로 — 제목 왼쪽 · 버튼 오른쪽. 제목이 길면 제목만 줄이고 버튼은 그대로) */
.renewal-team-battle .tb-top3-head > b { min-width:0; }

/* 2026-11-19 (대표) : 종료 안내 — 종료 + [종료 후 노출 (분)] 이 지나면 닫을 수 없는 안내 (홈으로만). #tbRoot 밖이라 .renewal-team-battle 를 붙이지 않는다 */
/* 2026-11-20 대표 : 유의사항 이미지 팝업 (#tbRoot 밖 · 닫기 [×] · 바깥 누르기 · Esc) — 긴 이미지는 안에서 스크롤 */
.tb-pop { position:fixed; inset:0; z-index:100001; display:flex; align-items:center; justify-content:center; padding:24px 16px; background:rgba(20,14,8,.62); }
.tb-pop[hidden] { display:none; }
.tb-pop-box { position:relative; width:100%; max-width:480px; }
.tb-pop-scroll { max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
    border-radius:16px; background:#fff; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.tb-pop-img { display:block; width:100%; height:auto; }
.tb-pop-x { position:absolute; top:8px; right:8px; z-index:1; display:flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0;
    border:0; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:22px; line-height:1; cursor:pointer; }

/* 2026-11-23 대표 : 상품 팝업 2종 (#tbPrizePop 우승팀 상품 · #tbContribPop 기여도 상품 · 내용 _TeamBattlePrize.cshtml)
   2026-11-24 대표 : B안 — 아래에서 올라오는 시트 + 레벨 타임라인 (시안 20261124_가자_박터트리기_상품팝업시안 B)
     · 단계 = 왼쪽 선 + 동그라미(달성 is-done 체크 · 지금 is-now 포인트색 + 퍼지는 링 · 다음 is-next 회색) · 지금 레벨 선은 게이지 %(--p)만큼 채운다
     · 순위 줄 = 왼쪽 순위(금·은·동 점) + 오른쪽 지급 항목. 항목마다 한 줄(Ⓟ 포인트 · 🎁 상품 · 🎟️ 쿠폰) · 길면 … · 두 개 이상이면 앞 줄 끝에 +
     · 열면 지금 레벨만 · [전체보기] 를 누르면 팝업에 is-more → 모든 레벨 · 버튼은 숨는다 (2026-11-23 규칙 그대로)
   #tbRoot 밖이라 색 변수를 여기서 다시 둔다 (관리자 포인트색 --or 은 Index 가 #tbRoot 와 같은 style 로 넣는다) */
.tb-prize-pop { --or:#FF7A00; --or-soft:#FFF1E2; --or-line:#FFD9B3; --brown:#5A2D0C; --ink:#2B2620; --sub:#8A8278; --line:#F0E8DD;
    --rule:#F1EBE3; --soft-bg:#FBF8F4; --gold:#F2B705; --silver:#AEB6C1; --bronze:#D28A4E; }
@supports (color: color-mix(in srgb, red 50%, white)) {
    .tb-prize-pop { --or-soft:color-mix(in srgb, var(--or) 9%, #fff); --or-line:color-mix(in srgb, var(--or) 32%, #fff); }
}
.tb-pop.tb-prize-pop { align-items:flex-end; padding:0; }
.tb-prize-pop .tb-pop-box { max-width:520px; }
.tb-prize { display:flex; flex-direction:column; max-height:86vh; max-height:86dvh; padding-bottom:env(safe-area-inset-bottom, 0px);
    border-radius:24px 24px 0 0; background:#fff; box-shadow:0 -10px 30px rgba(0,0,0,.18);
    color:var(--ink); font-size:14px; line-height:1.4; word-break:keep-all; text-align:left; animation:tbSheetUp .22s ease-out; }
@keyframes tbSheetUp { from { transform:translateY(40px); opacity:.5; } to { transform:none; opacity:1; } }
.tb-sheet-grab { flex:none; width:40px; height:4px; margin:9px auto 0; border-radius:4px; background:#E2DAD0; }
.tb-prize-head { flex:none; display:flex; align-items:flex-start; gap:10px; padding:12px 18px 10px; }
.tb-prize-head-t { flex:1; min-width:0; }
.tb-prize-tit { display:block; font-size:19px; font-weight:900; color:var(--ink); }
.tb-prize-desc { margin:2px 0 0; font-size:12.5px; color:var(--sub); }
.tb-sheet-x { flex:none; position:relative; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:#F4EFE9; cursor:pointer; }
.tb-sheet-x::before, .tb-sheet-x::after { content:""; position:absolute; left:50%; top:50%; width:14px; height:2px; margin:-1px 0 0 -7px; border-radius:2px; background:#6B635A; transform:rotate(45deg); }
.tb-sheet-x::after { transform:rotate(-45deg); }
.tb-sheet-x:focus:not(:focus-visible) { outline:0; }
.tb-prize-body { flex:1; min-height:0; padding:6px 18px 4px; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.tb-prize-pop.is-more .tb-prize-body { padding-bottom:18px; }
.tb-prize-empty { padding:24px 0; font-size:13px; color:var(--sub); text-align:center; }

/* 타임라인 */
.tb-tl { margin:0; padding:0; list-style:none; }
.tb-tl-lv { position:relative; padding:0 0 16px 42px; }
.tb-tl-lv::before { content:""; position:absolute; left:13px; top:30px; bottom:2px; width:3px; border-radius:3px; background:#ECE5DC; }
.tb-tl-lv:last-child::before { display:none; }
.tb-tl-lv.is-done::before { background:var(--or); }
.tb-tl-lv.is-now::before { background:linear-gradient(var(--or) 0 var(--p, 0%), #ECE5DC var(--p, 0%)); }
.tb-tl-node { position:absolute; left:0; top:0; display:flex; align-items:center; justify-content:center; width:29px; height:29px; border:2px solid #E2DAD0; border-radius:50%;
    background:#fff; color:#B3A99D; font-size:12px; font-weight:900; }
.tb-tl-node em { font-style:normal; }
.tb-tl-lv.is-done > .tb-tl-node { border-color:var(--or); background:var(--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4l3 3 6.2-6.6' fill='none' stroke='%23fff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.tb-tl-lv.is-done > .tb-tl-node em { display:none; }
.tb-tl-lv.is-now > .tb-tl-node { border-color:var(--or); background:var(--or); color:#fff; box-shadow:0 0 0 5px var(--or-soft); }
.tb-tl-lv.is-now > .tb-tl-node::after { content:""; position:absolute; inset:-6px; border:2px solid var(--or); border-radius:50%; opacity:0; animation:tbNodePulse 1.8s ease-out infinite; }
@keyframes tbNodePulse { 0% { transform:scale(.8); opacity:.6; } 100% { transform:scale(1.45); opacity:0; } }
.tb-tl-head { display:flex; align-items:center; gap:7px; min-height:29px; }
.tb-tl-head b { font-size:15px; font-weight:900; }
.tb-tl-head small { font-size:12px; color:var(--sub); }
.tb-tl-tag { display:none; margin-left:auto; padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:800; line-height:1.4; }
.tb-tl-lv.is-now .tb-tl-tag-now { display:inline-block; background:var(--or); color:#fff; }
.tb-tl-lv.is-done .tb-tl-tag-done { display:inline-block; background:#F1EDE8; color:var(--sub); }
.tb-tl-who { margin:2px 0 0; font-size:11px; font-weight:800; color:var(--sub); }
.tb-tl-rows + .tb-tl-who { margin-top:10px; }
.tb-tl-none { margin:4px 0 0; font-size:12.5px; color:#B9B1A6; }
.tb-tl-rows { margin:6px 0 0; padding:2px 12px; border-radius:14px; background:var(--soft-bg); list-style:none; }
.tb-tl-rows li { display:flex; align-items:flex-start; gap:10px; padding:8px 0; }
.tb-tl-rows li + li { border-top:1px solid var(--rule); }
.tb-tl-lv.is-now .tb-tl-rows { background:var(--or-soft); box-shadow:inset 0 0 0 1px var(--or-line); }
.tb-tl-rk { flex:none; display:inline-flex; align-items:center; gap:5px; width:66px; min-height:20px; font-size:12.5px; font-weight:900; white-space:nowrap; }
.tb-tl-rk::before { content:""; flex:none; width:8px; height:8px; border-radius:50%; background:#D9D1C7; }
.tb-tl-rk.g::before { background:var(--gold); }
.tb-tl-rk.s::before { background:var(--silver); }
.tb-tl-rk.b::before { background:var(--bronze); }
/* 지급 항목 — 한 줄에 하나 · 길면 … · + 는 앞 항목 끝에 (줄임표에 안 잘리게 따로) */
.tb-tl-its { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.tb-it { display:flex; align-items:center; gap:5px; min-width:0; min-height:20px; font-size:13px; font-weight:800; color:var(--ink); }
.tb-it::before { flex:none; width:16px; height:16px; }
.tb-it-pt::before { content:"P"; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:var(--or); color:#fff; font-size:9.5px; font-weight:900; line-height:1; }
.tb-it-pd::before { content:""; display:inline-block; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.2' y='7' width='11.6' height='7.4' rx='1.6' fill='%23F6C343'/%3E%3Crect x='1.4' y='4.6' width='13.2' height='3.2' rx='1.1' fill='%23E9A91C'/%3E%3Crect x='7.1' y='4.6' width='1.8' height='9.8' fill='%23E8392F'/%3E%3Cpath d='M8 4.6C6.6 2.2 4.2 2.4 4.6 3.9 5 5 7 4.9 8 4.6Zm0 0c1.4-2.4 3.8-2.2 3.4-.7C11 5 9 4.9 8 4.6Z' fill='%23E8392F'/%3E%3C/svg%3E") center / contain no-repeat; }
.tb-it-cp::before { content:"\1F39F\FE0F"; display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:400; line-height:1; }
.tb-it-none { color:#B9B1A6; }
.tb-it-t { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.tb-it-plus { flex:none; font-style:normal; font-size:12.5px; font-weight:800; color:#A89F94; }
.tb-tl-left { margin:8px 0 0; font-size:12px; color:var(--sub); }
.tb-tl-left b { font-weight:800; color:var(--ink); }
.tb-tl-left em { font-style:normal; font-weight:900; color:var(--or); }
.tb-tl-lv:not(.is-now) .tb-tl-left { display:none; }
/* 접힘 — 지금 레벨 하나만 (선도 숨긴다) */
.tb-prize-pop:not(.is-more) .tb-tl-lv:not(.is-now) { display:none; }
.tb-prize-pop:not(.is-more) .tb-tl-lv::before { display:none; }
.tb-prize-pop:not(.is-more) .tb-tl-lv { padding-bottom:6px; }
.tb-prize-pop.is-more .tb-prize-more { display:none; }
.tb-prize-more { flex:none; height:48px; margin:8px 18px 18px; border:0; border-radius:14px; background:var(--or); color:#fff; font:inherit; font-size:15px; font-weight:900; cursor:pointer; }
.tb-prize-more:active { opacity:.85; }
.tb-prize-more:focus:not(:focus-visible) { outline:0; }
@media (prefers-reduced-motion: reduce) {
    .tb-prize, .tb-tl-lv.is-now > .tb-tl-node::after { animation:none; }
}
/* 2026-11-23 대표 : 기여도 상품 팝업 — 아래 기여 점수 안내(점수제만 · 보드 ⑦ 카드와 같은 내용 · 팝업 안 모양) */
.tb-prize-score { margin-top:18px; padding-top:14px; border-top:1px dashed var(--line); }
.tb-prize-score .tb-sec-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.tb-prize-score .tb-sec-head > b { display:flex; align-items:center; gap:6px; font-size:15px; font-weight:900; color:var(--ink); }
.tb-prize-score .tb-ico-head::before { content:""; flex:none; width:18px; height:18px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23FF7A00'/%3E%3Crect x='9' y='8.5' width='2' height='6.5' rx='1' fill='%23fff'/%3E%3Ccircle cx='10' cy='5.8' r='1.3' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.tb-prize-score .tb-sec-sub { font-size:11.5px; color:var(--sub); text-align:right; }
.tb-prize-score .tb-score-list { margin:0; padding:0; list-style:none; font-size:13px; }
.tb-prize-score .tb-score-list li { display:flex; justify-content:space-between; gap:10px; padding:7px 4px; border-top:1px solid #F5F0EA; }
.tb-prize-score .tb-score-list li:first-child { border-top:0; }
.tb-prize-score .tb-score-list b { font-weight:800; font-variant-numeric:tabular-nums; }
.tb-prize-score .tb-score-sum { margin-top:8px; padding:9px 10px; border-radius:12px; background:#FFF5D6; }
.tb-prize-score .tb-score-sum > b { display:block; font-size:12.5px; font-weight:800; color:var(--brown); }
.tb-prize-score .tb-score-sum > div { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.tb-prize-score .tb-score-sum span { padding:4px 8px; border-radius:8px; background:#fff; font-size:12px; }
.tb-prize-score .tb-score-sum em { font-style:normal; font-weight:900; color:var(--or); }
.tb-prize-score .tb-score-ratio { margin-top:8px; font-size:12px; color:var(--sub); text-align:center; }
.tb-prize-score .tb-hint { margin-top:8px; font-size:11.5px; color:var(--sub); text-align:center; }

.tb-closed { position:fixed; inset:0; z-index:100000; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(20,14,8,.62); }
.tb-closed[hidden] { display:none; }
.tb-closed-box { width:100%; max-width:320px; padding:28px 22px 22px; border-radius:18px; background:#fff; text-align:center; box-shadow:0 12px 40px rgba(0,0,0,.25); }
.tb-closed-ico { display:flex; align-items:center; justify-content:center; width:52px; height:52px; margin:0 auto 12px; border-radius:50%; background:#FFF1E2; color:#FF7A00; font-size:26px; font-weight:900; }
.tb-closed-box b { display:block; font-size:18px; font-weight:900; color:#2B2620; }
.tb-closed-box p { margin:8px 0 18px; font-size:13px; line-height:1.5; color:#8A8278; }
.tb-closed-btn { display:block; padding:12px 0; border-radius:12px; background:#FF7A00; color:#fff !important; font-size:15px; font-weight:800; text-decoration:none !important; }
html.tb-locked, html.tb-locked body { overflow:hidden !important; }

@property --tb-lead-a { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes tbLeadSpin { to { --tb-lead-a:360deg; } }
@keyframes tbLeadBreathe {
    0%, 100% { border-top-color:color-mix(in srgb, var(--tc) 32%, #fff); border-right-color:color-mix(in srgb, var(--tc) 32%, #fff); border-bottom-color:color-mix(in srgb, var(--tc) 32%, #fff);
               box-shadow:0 4px 14px color-mix(in srgb, var(--tc) 24%, transparent), 0 0 0 0 transparent, 0 0 0 0 transparent; }
    50%      { border-top-color:var(--tc); border-right-color:var(--tc); border-bottom-color:var(--tc);
               box-shadow:0 4px 14px color-mix(in srgb, var(--tc) 24%, transparent), 0 0 0 3px color-mix(in srgb, var(--tc) 28%, transparent), 0 0 16px 3px color-mix(in srgb, var(--tc) 50%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    .renewal-team-battle .tb-team.is-lead.lead-fx-1::after, .renewal-team-battle .tb-team.is-lead.lead-fx-2 { animation:none; }
}
.renewal-team-battle .tb-team-head { position:relative; display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px 10px 10px; border:0; background:none; font:inherit; color:inherit; text-align:left; cursor:pointer; }
/* 순위 뱃지 : 카드 왼쪽 위 모서리에 걸친다 */
.renewal-team-battle .tb-badge { position:absolute; top:-13px; left:-12px; z-index:2; display:flex; align-items:center; justify-content:center; width:var(--tc-badge); height:var(--tc-badge); }
.renewal-team-battle .tb-badge img { width:100%; height:100%; object-fit:contain; }
.renewal-team-battle .tb-badge .tb-medal { flex-direction:column; min-width:0; width:calc(var(--tc-badge) - 6px); height:calc(var(--tc-badge) - 6px); padding:0; border-radius:50%; border:2px solid #fff; box-shadow:0 2px 5px rgba(0,0,0,.18); font-size:13px; line-height:1; }
.renewal-team-battle .tb-badge .tb-medal small { font-size:8.5px; font-weight:800; }
.renewal-team-battle .tb-medal { flex:none; display:flex; align-items:center; justify-content:center; min-width:36px; height:24px; padding:0 6px; border-radius:999px; font-size:11.5px; font-weight:900; color:#fff; }
.renewal-team-battle .tb-medal.m1 { background:var(--gold); }
.renewal-team-battle .tb-medal.m2 { background:var(--silver); }
.renewal-team-battle .tb-medal.m3 { background:var(--bronze); }
.renewal-team-battle .tb-medal.m0 { background:#C9C2B8; }
.renewal-team-battle .tb-team-pic { flex:none; display:flex; align-items:center; justify-content:center; width:var(--tc-pic); height:var(--tc-pic); margin-left:6px; }
.renewal-team-battle .tb-team-pic img { width:100%; height:100%; object-fit:contain; }
.renewal-team-battle .tb-team-initial { display:flex; align-items:center; justify-content:center; width:72%; height:72%; border-radius:50%; background:var(--tc); color:#fff; font-size:20px; font-weight:900; }
.renewal-team-battle .tb-team-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.renewal-team-battle .tb-team-top { display:flex; align-items:center; gap:6px; min-width:0; }
.renewal-team-battle .tb-team-name { flex:0 1 auto; min-width:0; font-size:var(--tc-name-fs); font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 2026-11-24 대표 : 팀 이름 · 점수 굵기 = 1위 팀(is-lead) 900 · 나머지 팀 700 */
.renewal-team-battle .tb-team.is-lead .tb-team-name, .renewal-team-battle .tb-team.is-lead .tb-team-score { font-weight:900; }
.renewal-team-battle .tb-tag { flex:none; padding:1px 7px; border-radius:6px; background:var(--or-soft); color:var(--or); font-size:11px; font-weight:800; }
.renewal-team-battle .tb-team-score { flex:none; margin-left:auto; font-size:var(--tc-score-fs); font-weight:700; font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-team-score small { font-size:12px; font-weight:700; }
.renewal-team-battle .tb-team-sub { font-size:var(--tc-sub-fs); color:var(--tc-sub-color); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 2026-11-24 대표 : [내 팀] 을 이름 옆에서 '참가 N명 · 리드 중' 줄 오른쪽으로 — 글이 길면 참가 줄만 … 로 줄고 [내 팀] 은 그대로 */
.renewal-team-battle .tb-team-subrow { display:flex; align-items:center; gap:6px; min-width:0; }
.renewal-team-battle .tb-team-subrow .tb-team-sub { flex:0 1 auto; min-width:0; }
.renewal-team-battle .tb-team-subrow .tb-tag { margin-left:auto; }      /* 2026-11-24 운영자 요청 : [내 팀] 은 줄 오른쪽 끝에 고정(점수 밑) */
.renewal-team-battle .tb-team-best { display:flex; align-items:center; gap:6px; margin-top:3px; padding-top:6px; border-top:1px dashed #E8DFD3; font-size:var(--tc-best-fs); color:var(--tc-best-color); }
.renewal-team-battle .tb-team-best::before { content:""; flex:none; width:18px; height:14px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M1 4l4 3 4-6 4 6 4-3-2 9H3z' fill='%23F2B705'/%3E%3C/svg%3E") center / contain no-repeat; }
.renewal-team-battle .tb-team-best span { flex:1; min-width:0; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.renewal-team-battle .tb-team-best b { flex:none; font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-team-best.is-empty { color:var(--tc-sub-color); }
.renewal-team-battle .tb-team-best.is-empty span { font-weight:600; }
.renewal-team-battle .tb-caret { flex:none; width:14px; color:var(--sub); font-size:10px; text-align:center; transition:transform .15s; }
.renewal-team-battle .tb-team.open .tb-team-head .tb-caret { transform:rotate(180deg); }

/* 펼친 팀원 순위 — [팀원 순위 줄] (2026-11-18)
   ★ 화면 조절은 아래 --rk-* 변수만 고친다. 칸 = 순위 · 닉네임(· 나) · 상품명 · 상품금액 (_TeamBattleRank.cshtml)
     상품명을 빼려면 --rk-prod-display:none — 금액은 오른쪽 끝에 그대로 붙고, 닉네임은 --rk-name-max 까지 넓어진다
     (닉네임이 남는 자리를 다 쓰게 하려면 --rk-name-max:none) */
.renewal-team-battle .tb-team-body {
    --rk-bg:#FBF8F4;  --rk-line:#F1EBE3;  --rk-me-bg:var(--or-soft);
    --rk-pad-y:8px;   --rk-pad-x:12px;    --rk-gap:8px;     --rk-min-h:36px;
    --rk-fs:13px;
    --rk-no-w:18px;   --rk-no-color:var(--sub);
    --rk-name-max:34%; --rk-name-color:var(--ink); --rk-name-fw:700;
    --rk-prod-display:block; --rk-prod-fs:12px; --rk-prod-color:var(--sub);
    --rk-price-fs:13px; --rk-price-color:var(--ink); --rk-price-fw:800;
    display:none; margin:0 10px 10px; border-radius:12px; background:var(--rk-bg); overflow:hidden;
}
.renewal-team-battle .tb-team.open .tb-team-body { display:block; }
.renewal-team-battle .tb-rank-empty { padding:12px; font-size:12.5px; color:var(--sub); text-align:center; }
.renewal-team-battle .tb-row { display:flex; align-items:center; gap:var(--rk-gap); min-height:var(--rk-min-h); padding:var(--rk-pad-y) var(--rk-pad-x); font-size:var(--rk-fs); }
.renewal-team-battle .tb-row + .tb-row { border-top:1px solid var(--rk-line); }
.renewal-team-battle .tb-row-no { flex:none; width:var(--rk-no-w); font-weight:800; color:var(--rk-no-color); text-align:center; font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-row-name { flex:0 1 auto; min-width:0; max-width:var(--rk-name-max); font-weight:var(--rk-name-fw); color:var(--rk-name-color); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.renewal-team-battle .tb-row-prod { display:var(--rk-prod-display); flex:1 1 0; min-width:0; font-size:var(--rk-prod-fs); color:var(--rk-prod-color); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.renewal-team-battle .tb-row-price { flex:none; margin-left:auto; font-size:var(--rk-price-fs); font-weight:var(--rk-price-fw); color:var(--rk-price-color); font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-row.is-top .tb-row-no { color:var(--or); }
.renewal-team-battle .tb-row.is-me { background:var(--rk-me-bg); }
.renewal-team-battle .tb-row-me { flex:none; padding:0 5px; border-radius:4px; background:var(--or); color:#fff; font-size:10px; font-weight:800; }
.renewal-team-battle .tb-row.is-out .tb-row-name,
.renewal-team-battle .tb-row.is-out .tb-row-price { color:var(--sub); }
.renewal-team-battle .tb-cut { padding:5px 12px; font-size:11px; font-weight:700; color:var(--or); background:#fff; border-top:1px dashed var(--or-line); border-bottom:1px dashed var(--or-line); text-align:center; }

/* ── ⑥ 박 레벨업 기여 TOP ── */
.renewal-team-battle .tb-top3 ol { margin:0; padding:0; list-style:none; }
.renewal-team-battle .tb-top3 li { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; font-size:14px; }
.renewal-team-battle .tb-top3 li:nth-child(odd) { background:#FBF6EF; }
.renewal-team-battle .tb-top3 li .tb-medal { min-width:24px; width:24px; padding:0; border-radius:50%; }
.renewal-team-battle .tb-top3-name { flex:1; min-width:0; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.renewal-team-battle .tb-top3 li b { font-size:14.5px; font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-top3 li.is-me { background:var(--or-soft); }
.renewal-team-battle .tb-top3 li.is-me .tb-medal.m0 { background:var(--or); }

/* ── ⑦ 기여 점수 안내 ── */
.renewal-team-battle .tb-score-list { margin:0; padding:0; list-style:none; font-size:13px; }
.renewal-team-battle .tb-score-list li { display:flex; justify-content:space-between; gap:10px; padding:7px 4px; border-top:1px solid #F5F0EA; }
.renewal-team-battle .tb-score-list li:first-child { border-top:0; }
.renewal-team-battle .tb-score-list b { font-variant-numeric:tabular-nums; }
.renewal-team-battle .tb-score-box { margin-top:8px; font-size:12px; color:var(--sub); }
.renewal-team-battle .tb-score-box b { color:var(--ink); font-weight:700; }
.renewal-team-battle .tb-score-sum { margin-top:8px; padding:9px 10px; border-radius:12px; background:#FFF5D6; }
.renewal-team-battle .tb-score-sum > b { display:block; font-size:12.5px; color:var(--brown); }
.renewal-team-battle .tb-score-sum > div { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.renewal-team-battle .tb-score-sum span { padding:4px 8px; border-radius:8px; background:#fff; font-size:12px; }
.renewal-team-battle .tb-score-sum em { font-style:normal; font-weight:900; color:var(--or); }

/* ── ⑧ 접기 (단계별 보상 · 참여 방법) ── */
.renewal-team-battle .tb-fold { margin-top:8px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
.renewal-team-battle .tb-fold-btn { display:flex; align-items:center; gap:8px; width:100%; padding:12px 14px; border:0; background:none; font:inherit; font-size:14.5px; font-weight:800; color:var(--ink); text-align:left; cursor:pointer; }
.renewal-team-battle .tb-fold-ico { flex:none; width:18px; height:18px; background:center / contain no-repeat; }
.renewal-team-battle .tb-fold-btn .tb-caret { margin-left:auto; }
.renewal-team-battle .tb-fold.open > .tb-fold-btn .tb-caret { transform:rotate(180deg); }
.renewal-team-battle .tb-fold-body { display:none; padding:0 12px 12px; }
.renewal-team-battle .tb-fold.open > .tb-fold-body { display:block; }

.renewal-team-battle .tb-table { width:100%; border-collapse:collapse; font-size:12px; }
.renewal-team-battle .tb-table th { padding:6px 4px; font-size:11px; font-weight:700; color:var(--sub); text-align:left; border-bottom:1px solid var(--line); }
.renewal-team-battle .tb-table td { padding:8px 4px; vertical-align:top; border-bottom:1px solid #F5F0EA; }
.renewal-team-battle .tb-table td:first-child { width:64px; }
.renewal-team-battle .tb-table td:first-child b { display:block; font-size:13px; }
.renewal-team-battle .tb-table td small { display:block; color:var(--sub); font-size:10.5px; }
.renewal-team-battle .tb-table td > span { display:block; }
.renewal-team-battle .tb-tline + .tb-tline { margin-top:4px; }
.renewal-team-battle .tb-tline em { display:block; color:var(--sub); font-style:normal; font-weight:700; }
.renewal-team-battle .tb-tline span { display:block; }
.renewal-team-battle .tb-table .tb-none { color:#B9B1A6; }
.renewal-team-battle .tb-table tr.is-now td { background:var(--or-soft); }
.renewal-team-battle .tb-table tr.is-now td:first-child b { color:var(--or); }
.renewal-team-battle .tb-now { display:inline-block; margin-top:3px; padding:0 5px; border-radius:4px; background:var(--or); color:#fff; font-size:10px; font-weight:800; }

.renewal-team-battle .tb-steps { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; }
.renewal-team-battle .tb-step { padding:10px 8px; border-radius:12px; background:#FBF6EF; text-align:center; }
.renewal-team-battle .tb-step em { display:inline-block; width:20px; height:20px; border-radius:50%; background:var(--brown); color:#fff; font-size:11px; font-weight:800; font-style:normal; line-height:20px; }
.renewal-team-battle .tb-step b { display:block; margin-top:5px; font-size:13px; }
.renewal-team-battle .tb-step span { display:block; margin-top:2px; font-size:11.5px; color:var(--sub); }
.renewal-team-battle .tb-rules { margin:10px 0 0; padding:0; list-style:none; font-size:12.5px; }
.renewal-team-battle .tb-rules li { display:flex; justify-content:space-between; gap:10px; padding:7px 2px; border-top:1px solid #F5F0EA; }
.renewal-team-battle .tb-rules li span { flex:none; color:var(--sub); }
.renewal-team-battle .tb-rules li b { font-weight:700; text-align:right; }
.renewal-team-battle .tb-notice { margin-top:10px; padding:10px 12px; border-radius:10px; background:#FBF8F4; font-size:12px; color:#6F675D; }
.renewal-team-battle .tb-notice img { max-width:100%; height:auto; }
/* 유의사항 HTML (관리자 CKEditor 로 쓴 내용 · 2026-11-18) — 문단 · 목록 · 제목 · 표 · 링크 기본 모양 */
.renewal-team-battle .tb-notice > :first-child { margin-top:0; }
.renewal-team-battle .tb-notice > :last-child { margin-bottom:0; }
.renewal-team-battle .tb-notice p { margin:0 0 6px; }
.renewal-team-battle .tb-notice h2, .renewal-team-battle .tb-notice h3, .renewal-team-battle .tb-notice h4 { margin:10px 0 4px; font-size:13.5px; font-weight:800; color:var(--ink); }
.renewal-team-battle .tb-notice ul, .renewal-team-battle .tb-notice ol { margin:0 0 6px; padding-left:18px; }
.renewal-team-battle .tb-notice li { margin:2px 0; }
.renewal-team-battle .tb-notice blockquote { margin:6px 0; padding:6px 10px; border-left:3px solid var(--or-line); background:#fff; }
.renewal-team-battle .tb-notice table { width:100%; border-collapse:collapse; margin:6px 0; font-size:11.5px; }
.renewal-team-battle .tb-notice th, .renewal-team-battle .tb-notice td { padding:4px 6px; border:1px solid #EDE6DC; vertical-align:top; }
.renewal-team-battle .tb-notice a { color:var(--or); text-decoration:underline; }

/* ── 실시간 (2026-11-17) ──
   · 팀 대항전 머리의 "실시간" 점 : 붙어 있으면 빨간 점이 숨 쉬고, 끊겨 예비 폴링 중이면(#tbRoot.tb-live-off) 회색
   · 값이 바뀐 줄([data-live]) : 1.8초 동안 노랗게 차올랐다 빠진다 — team-battle.js 의 FLASH_MS 와 맞춘다 */
.renewal-team-battle .tb-live-badge { display:inline-flex; align-items:center; gap:5px; font-weight:700; color:#E5483B; }
.renewal-team-battle .tb-live-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:#E5483B; animation:tbLiveDot 1.6s ease-in-out infinite; }
.renewal-team-battle.tb-live-off .tb-live-badge { color:var(--sub); }
.renewal-team-battle.tb-live-off .tb-live-badge::before { background:#BDB5AB; animation:none; }
@keyframes tbLiveDot { 0%, 100% { opacity:1; } 50% { opacity:.25; } }

.renewal-team-battle .tb-live-flash { animation:tbLiveFlash 1.8s ease-out; }
.renewal-team-battle .tb-team.tb-live-flash .tb-team-score,
.renewal-team-battle .tb-mine.tb-live-flash b,
.renewal-team-battle .tb-gauge.tb-live-flash b,
.renewal-team-battle .tb-top3 li.tb-live-flash b { display:inline-block; animation:tbLivePop .6s ease-out; }
@keyframes tbLiveFlash { 0% { box-shadow:0 0 0 0 rgba(255,184,0,0); background-color:#FFF1B8; } 25% { box-shadow:0 0 0 4px rgba(255,184,0,.45); } 100% { box-shadow:0 0 0 0 rgba(255,184,0,0); } }
@keyframes tbLivePop { 0% { transform:scale(1); } 40% { transform:scale(1.18); color:#E5483B; } 100% { transform:scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .renewal-team-battle .tb-live-flash,
    .renewal-team-battle .tb-live-flash b,
    .renewal-team-battle .tb-live-flash .tb-team-score,
    .renewal-team-battle .tb-live-badge::before { animation:none; }
}

/* ═══════════════ 배경음악 버튼 (2026-11-18) ═══════════════
   Views/TeamBattle/Index 의 #tbBgmBtn · team-battle-bgm.js. 화면 배율(zoom)을 안 받게 #tbRoot 밖에 있어 색을 직접 적는다.
   2026-11-20 대표 : 하단에 떠서 따라다니던 것을 상단 이미지 오른쪽 위로 — #tbRoot 안 맨 위(이미지 위)에 붙고 스크롤하면 같이 올라간다. 그때 곡이 없으면 hidden */
.renewal-team-battle { position:relative; }
.tb-bgm-btn { position:absolute; z-index:6; top:10px; right:10px;
              width:30px; height:30px; padding:0; border:0; border-radius:50%; cursor:pointer;        /* 2026-11-20 대표 : 30px · 검정 */
              background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 17.5a2.5 2.5 0 1 1-2-2.45V5.2l12-2.2v11.5a2.5 2.5 0 1 1-2-2.45V7.4L9 8.9z'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow:0 4px 12px rgba(0,0,0,.25); }
.tb-bgm-btn.is-off { background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 17.5a2.5 2.5 0 1 1-2-2.45V5.2l12-2.2v11.5a2.5 2.5 0 1 1-2-2.45V7.4L9 8.9z' opacity='.55'/%3E%3Cpath d='M3 3l18 18' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.tb-bgm-btn[hidden] { display:none; }
@media (prefers-reduced-motion: no-preference) { .tb-bgm-btn:not(.is-off) { animation:tbBgmPulse 2.4s ease-in-out infinite; } }
@keyframes tbBgmPulse { 0%, 100% { box-shadow:0 4px 12px rgba(0,0,0,.25); } 50% { box-shadow:0 4px 12px rgba(0,0,0,.25), 0 0 0 6px rgba(0,0,0,.15); } }
