/* Soda Project - 어두운 게임 화면. 색과 간격은 :root 의 변수로 한곳에서 고친다. 바깥 글꼴·CSS 를 불러오지 않는다 (CSP: self 만 허용). */
:root {
  --bg: #080b12;
  --bg2: #0d121c;
  --panel: #121927;
  --panel2: #182135;
  --line: #243049;
  --line2: #33425f;
  --text: #dbe4f3;
  --dim: #8a98b3;
  --faint: #5d6a84;
  --accent: #36e2c8;
  --accent-ink: #04201c;
  --hot: #ff4f8b;
  --gold: #ffc857;
  --ok: #53d98a;
  --bad: #ff6b6b;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(54, 226, 200, .10), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(255, 79, 139, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ff3e1; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
main { flex: 1; padding: 26px 0 48px; }
.dim { color: var(--dim); } .small { font-size: .86rem; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .hide { display: none !important; } .grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- 위쪽 메뉴 ---- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(8, 11, 18, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: .14em; color: #fff; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--accent); }
.menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 14px; border-radius: 8px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.menu a:hover { color: var(--text); background: var(--panel); }
.menu a.on { color: var(--accent); background: rgba(54, 226, 200, .10); }
.menu a.play { color: var(--accent-ink); background: var(--accent); }
.top-side { display: flex; align-items: center; gap: 8px; }
.top-search input { width: 150px; padding: 7px 10px; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; font-size: .8rem; font-weight: 700; }
.lang a { padding: 5px 9px; color: var(--dim); }
.lang a.on { background: var(--panel2); color: var(--accent); }
.who { color: var(--text); font-weight: 700; }
.inline { display: inline; }
@media (max-width: 820px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; gap: 8px; }
  .menu { order: 3; flex-basis: 100%; }
  .top-side { margin-left: auto; }
  .top-search { display: none; }
}

/* ---- 버튼 · 입력 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #6df0dc; color: var(--accent-ink); }
.btn.hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: .84rem; }
.btn.lg { padding: 13px 26px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--dim); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--accent); }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(54, 226, 200, .15); }
textarea { min-height: 220px; resize: vertical; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { color: var(--dim); font-size: .84rem; margin-top: 5px; }
.field .hint.ok { color: var(--ok); } .field .hint.no { color: var(--bad); }
.req { color: var(--hot); margin-left: 3px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }

/* ---- 판 · 표 ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel.tight { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 900px) { .grid.c2, .grid.c3, .grid.side { grid-template-columns: 1fr; } .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 14px; border-bottom: 1px solid rgba(36, 48, 73, .6); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list td.title a { color: var(--text); font-weight: 600; }
table.list td.title a:hover { color: var(--accent); }
.empty { padding: 36px 16px; text-align: center; color: var(--dim); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--panel2); color: var(--dim); border: 1px solid var(--line2); }
.tag.accent { color: var(--accent); border-color: rgba(54, 226, 200, .4); }
.tag.hot { color: var(--hot); border-color: rgba(255, 79, 139, .4); }
.tag.gold { color: var(--gold); border-color: rgba(255, 200, 87, .4); }
.win { color: var(--ok); font-weight: 700; } .loss { color: var(--bad); font-weight: 700; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.alert.error { background: rgba(255, 107, 107, .10); border-color: rgba(255, 107, 107, .45); color: #ffb3b3; }
.alert.notice { background: rgba(54, 226, 200, .08); border-color: rgba(54, 226, 200, .4); color: #a5f5e9; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 15px; color: var(--dim); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; padding: 6px 10px; text-align: center; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); }
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager .on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; color: #fff; }
.prose li { margin-bottom: .4em; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }

/* ---- 홈 ---- */
.hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 54px 44px; margin-bottom: 22px;
  background: linear-gradient(120deg, rgba(54, 226, 200, .14), rgba(18, 25, 39, .2) 45%, rgba(255, 79, 139, .13)), var(--panel); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { color: var(--accent); font-weight: 800; letter-spacing: .22em; font-size: .8rem; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: .2em 0 .25em; color: #fff; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 560px; color: #b9c5da; font-size: 1.06rem; }
@media (max-width: 640px) { .hero { padding: 34px 22px; } }
.stat { text-align: center; padding: 18px 10px; }
.stat b { display: block; font-size: 1.9rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--dim); font-size: .84rem; letter-spacing: .04em; }
.stat .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 10px var(--ok); }
.feature h3 { color: #fff; }
.feature .n { font-size: .78rem; font-weight: 800; color: var(--accent); letter-spacing: .2em; }
.rank-no { display: inline-block; min-width: 30px; font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; }
.rank-no.r1 { color: var(--gold); } .rank-no.r2 { color: #cfd8e6; } .rank-no.r3 { color: #d39a6a; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.steps .panel { position: relative; padding-left: 68px; }
.steps .panel::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(54, 226, 200, .12); color: var(--accent); font-weight: 800; border: 1px solid rgba(54, 226, 200, .4); }

/* ---- 로그인 · 가입 ---- */
.auth { max-width: 440px; margin: 20px auto; }
.auth .panel { padding: 30px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .84rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: var(--bg2); border: 1px dashed var(--line2); font-size: .86rem; color: var(--dim); }

/* ---- 커뮤니티 ---- */
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: .88rem; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.comment { padding: 14px 0; border-bottom: 1px solid rgba(36, 48, 73, .6); }
.comment:last-child { border-bottom: 0; }
.comment .by { font-weight: 700; margin-right: 8px; }
.like.on { border-color: var(--hot); color: var(--hot); }
.new { color: var(--hot); font-size: .7rem; font-weight: 800; margin-left: 5px; }

/* ---- 싸움터: 대기실 ---- */
.arena { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 14px; height: calc(100vh - 150px); min-height: 520px; }
.arena .panel { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.arena .scroll { flex: 1; overflow-y: auto; min-height: 0; }
.arena .bar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.arena .bar h2 { margin: 0; font-size: 1rem; }
.arena .foot { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
@media (max-width: 1040px) { .arena { grid-template-columns: 1fr; height: auto; } .arena .panel { max-height: 70vh; } .arena .col-users { order: 3; } }
.ch-list button, .user-list li { display: block; width: 100%; text-align: left; padding: 8px 14px; border: 0; background: none; color: var(--dim); font: inherit; cursor: pointer; }
.ch-list button:hover { background: var(--panel2); color: var(--text); }
.ch-list button.on { color: var(--accent); background: rgba(54, 226, 200, .08); font-weight: 700; }
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li { cursor: default; padding: 5px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-list li.me { color: var(--accent); }
.subhead { padding: 8px 14px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.room-row { cursor: pointer; }
.room-row.sel { background: rgba(54, 226, 200, .08) !important; }
.slot { display: grid; grid-template-columns: 34px minmax(0, 1fr) 130px 86px auto; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid rgba(36, 48, 73, .6); }
.slot .no { color: var(--faint); font-weight: 800; }
.slot .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.open .name { color: var(--faint); font-weight: 400; font-style: italic; }
.slot.closed .name { color: var(--faint); text-decoration: line-through; }
.slot.me { background: rgba(54, 226, 200, .06); }
.slot select { padding: 5px 8px; }
.host-mark { color: var(--gold); font-size: .72rem; margin-left: 6px; }
.team1 { border-left: 3px solid var(--accent); } .team2 { border-left: 3px solid var(--hot); }
.countdown { padding: 18px; text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: .1em; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: .92rem; min-height: 0; overflow-wrap: anywhere; }
.chat-log .line { margin-bottom: 3px; }
.chat-log .nick { font-weight: 700; color: #9fd6ff; margin-right: 6px; }
.chat-log .mine .nick { color: var(--accent); }
.chat-log .sys { color: var(--faint); font-style: italic; }
.chat-log .whisper { color: #e7a8ff; }
.chat-log .roomc .nick { color: var(--gold); }
.chat-log time { color: var(--faint); font-size: .74rem; margin-right: 6px; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); display: inline-block; }
.conn.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---- 띄운 창 ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3, 5, 9, .72); padding: 16px; }
.modal .panel { width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---- 화면 아래 채팅 창 ---- */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.dock-btn { box-shadow: var(--shadow); }
.dock-box { width: 340px; max-width: calc(100vw - 24px); height: 440px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.dock-box .bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dock-box .bar select { width: auto; padding: 3px 8px; }
.dock-box .foot { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }

/* ---- 게임 화면 ---- */
body.game-page { background: #000; }
.game-shell { position: fixed; inset: 0; display: flex; flex-direction: column; background: #05070c; }
.game-bar { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #0b0f18; border-bottom: 1px solid var(--line); font-size: .88rem; }
.game-stage { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.game-stage canvas { display: block; width: 100%; height: 100%; }
.game-chat { position: absolute; left: 12px; bottom: 12px; width: 360px; max-width: 60vw; z-index: 5; }
.game-chat .chat-log { max-height: 180px; background: rgba(5, 7, 12, .55); border-radius: 8px; text-shadow: 0 1px 2px #000; }
.game-chat input { margin-top: 6px; background: rgba(5, 7, 12, .8); }
.overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(3, 5, 9, .82); padding: 16px; }
.result-title { font-size: 2.6rem; font-weight: 900; letter-spacing: .1em; text-align: center; margin-bottom: 14px; }
.result-title.win { color: var(--gold); } .result-title.loss { color: var(--bad); }
.stub { height: 100%; display: grid; place-items: center; padding: 20px; overflow: auto; }
.stub .panel { max-width: 620px; width: 100%; }

/* ---- 아래쪽 ---- */
.foot-site { border-top: 1px solid var(--line); background: var(--bg2); padding: 26px 0; color: var(--faint); font-size: .86rem; }
.foot-site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.foot-site a { color: var(--dim); margin-right: 14px; }
.foot-site a:hover { color: var(--accent); }

/* ---- 지도 정보 (방 만들기 · 방 · 서비스정보) ---- */
.map-info { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.map-info canvas { flex: none; border-radius: 6px; border: 1px solid var(--line2); image-rendering: pixelated; background: #000; }
.map-info p { margin: 6px 0; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.map-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
.map-card canvas { width: 128px; height: 128px; flex: none; border-radius: 8px; border: 1px solid var(--line2); image-rendering: pixelated; background: #000; }
.map-card h2 { font-size: 1.05rem; margin-bottom: 8px; }
.modal .panel { max-height: 94vh; overflow-y: auto; }
.row-gap { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.slot { grid-template-columns: 34px minmax(0, 1fr) 170px auto auto; }
.slot.cpu .name { color: var(--gold); font-weight: 700; }

/* ---- 게임이 붙은 게임 화면: 게임이 화면 전체를 쓰고 채팅이 그 위에 뜬다 (Enter 로 입력) ---- */
body.game-live .game-bar { display: none; }
body.game-live .game-chat { bottom: 200px; left: 10px; z-index: 6; width: 400px; }
body.game-live .game-chat .chat-log { background: transparent; max-height: 190px; overflow: hidden; padding: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; }
body.game-live .game-chat .line { align-self: flex-start; background: rgba(5, 7, 12, .5); padding: 1px 7px; border-radius: 4px; margin-bottom: 2px; }
body.game-live .game-chat input { opacity: .35; }
body.game-live .game-chat input:focus { opacity: 1; }

/* ---- 방: 큰 시작 버튼 · 색상 고르기 · 관전자 ---- */
.room-start { padding: 14px; border-top: 1px solid var(--line); background: var(--bg2); text-align: center; }
.room-start p { margin: 8px 0 0; }
.start-btn { display: block; width: 100%; padding: 18px 24px; font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(54, 226, 200, .25), 0 8px 26px rgba(54, 226, 200, .35); animation: start-pulse 1.6s ease-in-out infinite; }
.start-btn:hover { transform: translateY(-1px); }
.start-btn:disabled { animation: none; box-shadow: none; }
@keyframes start-pulse { 50% { box-shadow: 0 0 0 7px rgba(54, 226, 200, .12), 0 8px 34px rgba(54, 226, 200, .55); } }
@media (prefers-reduced-motion: reduce) { .start-btn { animation: none; } }
.wait-host { font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.slot { grid-template-columns: 34px 34px minmax(0, 1fr) 170px auto auto; }
.color-cell { position: relative; }
.swatch { display: block; width: 24px; height: 24px; padding: 0; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px #000; }
button.swatch { cursor: pointer; }
button.swatch:hover, button.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch.none { border-style: dashed; border-color: var(--line2); box-shadow: none; opacity: .55; }
.palette { position: absolute; z-index: 20; top: 30px; left: 0; display: grid; grid-template-columns: repeat(4, 30px); gap: 8px; padding: 10px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.palette .swatch { width: 30px; height: 30px; }
.palette .swatch:disabled { opacity: .3; cursor: not-allowed; border-style: dashed; }
.palette .swatch.on { outline: 3px solid #fff; outline-offset: 1px; }
.watch-list { list-style: none; margin: 0; padding: 4px 0 10px; }
.watch-list li { display: flex; gap: 8px; align-items: center; padding: 5px 14px; }
.watch-list li.me { color: var(--accent); font-weight: 700; }
.watch-list li.none { color: var(--faint); font-style: italic; }
.watch-list .grow { flex: 1; }

/* ---- 관리: 채널 ---- */
.ch-admin { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 90px 90px auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ch-admin.head { font-size: .78rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; background: var(--bg2); }
.ch-admin.new { background: rgba(54, 226, 200, .05); border-bottom: 0; }
.ch-admin .check { align-items: center; margin: 0; }
.ch-admin .check input { margin-top: 0; }
@media (max-width: 760px) { .ch-admin { grid-template-columns: 1fr 1fr; } .ch-admin.head { display: none; } }

/* ---- 게임 화면: 관전 표시 ---- */
.watch-badge { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); z-index: 7; padding: 4px 14px; border-radius: 999px; background: rgba(5, 7, 12, .7);
  border: 1px solid var(--gold); color: var(--gold); font-weight: 800; letter-spacing: .08em; pointer-events: none; }
.line.obs .nick { color: var(--gold); }
