/* 파파플레이 공통 라운지 화면(원본). tools/darkcss.js가 이 파일에 다크 모드 규칙을 붙여 css/pp/comm.css를 만든다. 라운지 모양은 이 파일만 고친다. 2026-11-28 */
.comm{display:flex;flex-direction:column;background:#fff;color:var(--text);font-family:Pretendard,sans-serif;min-height:0}
.comm.gone{display:none}
.comm.inline{position:relative;height:var(--cm-h,460px);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.comm.dock{position:fixed;top:0;right:0;bottom:0;width:var(--cm-w,320px);border-left:1px solid #2a3846;z-index:35}
.comm.sheet{position:fixed;left:0;right:0;bottom:0;height:74vh;height:var(--cm-sh,74dvh);z-index:58;border-radius:12px 12px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.35);padding-bottom:env(safe-area-inset-bottom)}
body.comm-dock #app{margin-right:var(--cm-w,320px)}
body.comm-dock #toast{right:calc(var(--cm-w,320px) + 22px)}
body.comm-dock #match{right:var(--cm-w,320px)}
.cm-h{display:flex;align-items:center;gap:8px;background:#16202a;color:#fff;padding:0 10px 0 14px;height:48px;flex:0 0 auto}
.comm.dock .cm-h{height:62px}
.cm-h > b{font-size:14.5px;font-weight:800;white-space:nowrap}
.cm-live{display:inline-flex;align-items:center;gap:4px;font-family:var(--num);font-size:12px;letter-spacing:.08em;color:#c6ff3d}
.cm-live i{width:7px;height:7px;border-radius:50%;background:#ff4d4d;animation:cmblink 1.6s infinite}
@keyframes cmblink{50%{opacity:.25}}
.cm-tabs{display:flex;gap:2px;margin-left:auto;background:#24313d;border-radius:999px;padding:2px}
.cm-tabs button{border:0;background:transparent;color:#9fb0c0;font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;cursor:pointer}
.cm-tabs button.on{background:#c6ff3d;color:#0b0f14}
.cm-x{border:0;background:transparent;color:#9fb0c0;font-size:22px;line-height:1;width:30px;height:30px;cursor:pointer}
.comm.inline .cm-x,.comm.inline .cm-h > b{display:none}
.cm-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:2px;overscroll-behavior:contain;background:#fafbfc}
.cm-empty{margin:auto;color:var(--muted);font-size:13px;text-align:center;line-height:1.6;padding:20px}
.cm-m{font-size:13.5px;line-height:1.5;padding:4px 0;word-break:break-word}
.cm-m time{font-family:var(--num);font-size:11.5px;color:#9aa6b2;margin-left:6px}
.cm-nick{font-weight:700}
.cm-nick.cm-admin{background:#16202a;color:#c6ff3d;border-radius:3px;padding:1px 6px}
.cm-nk.adm{background:#16202a;color:#c6ff3d}
.cm-op{font-size:10.5px;font-weight:800;background:#16202a;color:#c6ff3d;border-radius:3px;padding:1px 5px;margin-left:4px;vertical-align:1px}
.cm-adm{margin-left:6px}
.cm-adm button{border:0;background:none;color:var(--bad);font-size:11px;cursor:pointer;padding:0 3px;text-decoration:underline}
.cm-m.brag{background:#fff;border:1px solid var(--line);border-left:3px solid #22a35b;border-radius:4px;padding:8px 10px;margin:6px 0}
.cm-m.brag p{margin:6px 0 0;font-size:13.5px}
.cm-who{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 4px;font-size:12.5px;color:var(--muted);margin-bottom:6px}
.cm-who time{margin-left:auto}
/* 반응. 길게 눌러 고르고, 글 아래 칩으로 수를 보인다. 24차 지시. */
#cmList .cm-m[data-id]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border-radius:4px;transition:background .15s}
#cmList .cm-m.cm-hold{background:rgba(34,163,91,.10)}
.cm-rx{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.cm-rc{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:1px 8px 1px 6px;font-size:13px;line-height:20px;cursor:pointer}
.cm-rc b{font-family:var(--num);font-size:12px;font-weight:700;color:#4a5560}
.cm-rc.on{border-color:#22a35b;background:#eaf7ef}.cm-rc.on b{color:#1b7f46}
.cm-pick{position:fixed;z-index:200;display:flex;gap:2px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 6px;box-shadow:0 6px 22px rgba(0,0,0,.18)}
.cm-pick button{display:flex;flex-direction:column;align-items:center;border:0;background:transparent;border-radius:12px;padding:3px 7px;cursor:pointer;font-family:inherit}
.cm-pick button i{font-style:normal;font-size:24px;line-height:30px;transition:transform .12s}
.cm-pick button:hover i,.cm-pick button:active i{transform:scale(1.25)}
.cm-pick button span{font-size:10.5px;color:#6b7783}
.cm-pick button.on{background:#eaf7ef}
.cm-card{display:flex;gap:10px;align-items:flex-start}
.cm-card > img{width:40px;height:27px;object-fit:cover;border-radius:2px;border:1px solid var(--line);margin-top:3px;flex:0 0 auto}
.cm-f{flex:0 0 auto;border-top:1px solid var(--line);padding:8px 10px 10px;background:#fff}
.cm-me{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.cm-nk{border:0;background:none;font-size:12.5px;font-weight:700;color:#3d4a56;cursor:pointer;padding:2px 0;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-brag{margin-left:auto;border:1px solid #22a35b;background:#eef8f1;color:#1b8a48;font-size:12.5px;font-weight:800;border-radius:999px;padding:5px 11px;cursor:pointer;white-space:nowrap}
.cm-brag:hover{background:#22a35b;color:#fff}
.cm-in{display:flex;gap:6px}
.cm-in input{flex:1;min-width:0;border:1px solid var(--line);border-radius:4px;padding:9px 10px;font:inherit;font-size:16px;background:#fff;color:var(--text)}
@media(min-width:900px){.cm-in input{font-size:14px}
}
.cm-in button{border:0;background:#16202a;color:#fff;font-weight:700;font-size:13.5px;border-radius:4px;padding:0 14px;cursor:pointer;white-space:nowrap}
.comm-fab{position:fixed;right:14px;bottom:80px;z-index:40;display:flex;align-items:center;gap:6px;background:#16202a;color:#fff;border:0;border-radius:999px;padding:10px 14px 10px 12px;font-size:13.5px;font-weight:800;box-shadow:0 6px 18px rgba(0,0,0,.28);cursor:pointer}
.comm-fab svg{width:18px;height:18px;fill:#c6ff3d}
.comm-fab .n{background:#ff4d4d;color:#fff;font-family:var(--num);font-size:12px;border-radius:999px;padding:1px 6px;min-width:18px;text-align:center}
@media(min-width:900px){.comm-fab{bottom:22px;right:22px}
}
.comm-fab.side{top:50%;bottom:auto;right:0;border-radius:8px 0 0 8px;flex-direction:column;padding:12px 8px;writing-mode:vertical-rl;gap:8px}
.comm-fab.side svg{writing-mode:horizontal-tb}
.comm-fab.side .n{writing-mode:horizontal-tb}
body.comm-dock #bpop{right:calc(var(--cm-w,320px) + 22px)}
/* 라운지 크기 손잡이. 오른쪽 칸은 왼쪽 가장자리, 첫 화면 창은 아래, 폰 시트는 위. 18차 지시. */
.cm-grip{display:none;position:absolute;z-index:3;touch-action:none}
.comm.dock .cm-grip{display:block;left:-4px;top:0;bottom:0;width:9px;cursor:ew-resize}
.comm.dock .cm-grip:hover,.cm-resizing .comm.dock .cm-grip{background:rgba(198,255,61,.45)}
.comm.inline .cm-grip{display:block;left:0;right:0;bottom:0;height:12px;cursor:ns-resize;background:linear-gradient(transparent 5px,#dfe5ec 5px,#dfe5ec 7px,transparent 7px)}
.comm.inline .cm-grip:hover{background:linear-gradient(transparent 4px,#22a35b 4px,#22a35b 8px,transparent 8px)}
.comm.inline .cm-f{padding-bottom:16px}
.comm.sheet .cm-grip{display:flex;justify-content:center;align-items:center;position:relative;height:20px;cursor:ns-resize;background:#16202a;border-radius:12px 12px 0 0}
.comm.sheet .cm-grip i{width:44px;height:5px;border-radius:3px;background:#5d6e7e}
.comm.sheet{overflow:hidden}
body.cm-resizing{user-select:none;cursor:grabbing}
@media (max-width:759px){.comm.inline .cm-grip{display:none}.comm.inline .cm-f{padding-bottom:0}.comm.sheet .cm-grip{cursor:default}
}
body.cm-resizing #comm .cm-list{pointer-events:none}.cm-bot{font-size:10px;font-weight:700;border:1px solid #c3ccd5;color:#7a8794;border-radius:3px;padding:0 4px;margin-left:4px;vertical-align:1px}
/* 라운지 공지. 맨 위 고정 띠와 공지 글. 19차 지시. */
.cm-pin{flex:0 0 auto;display:flex;gap:8px;align-items:flex-start;background:#fff8e1;border-bottom:1px solid #f0d58a;padding:8px 12px;font-size:13px;line-height:1.5;color:#3d3000;max-height:96px;overflow:auto}
.cm-pin b{flex:0 0 auto;background:#e0a800;color:#fff;font-size:11px;border-radius:3px;padding:1px 6px;margin-top:1px}
.cm-m.notice{background:#fff8e1;border-left:3px solid #e0a800;border-radius:3px;padding:6px 8px;margin:4px 0}
.cm-ntag{font-size:10.5px;font-weight:800;background:#e0a800;color:#fff;border-radius:3px;padding:1px 5px;margin-right:5px;vertical-align:1px}
/* 위키 레전드 명패. 50차 지시. */
.cm-legend{display:inline-block;margin-left:4px;padding:1px 6px 1px 18px;border-radius:3px;font-size:10.5px;font-weight:800;vertical-align:1px;color:#5a3d00;background:linear-gradient(135deg,#ffe58a,#f2b705) no-repeat;position:relative;white-space:nowrap}
.cm-legend::before{content:'';position:absolute;left:5px;top:50%;width:9px;height:9px;margin-top:-5px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18l-2-10-5 4-2-7-2 7-5-4z' fill='%235a3d00'/%3E%3C/svg%3E") center/contain no-repeat}.tc-lg .cm-legend{font-size:12px;margin:0}
.cm-legend.lg1{color:#5a3d00;background:linear-gradient(135deg,#ffe58a,#e0a800)}.cm-legend.lg2{color:#2f3a44;background:linear-gradient(135deg,#eef1f4,#9aa4ae)}.cm-legend.lg2::before{filter:grayscale(1)}.cm-legend.lg3{color:#fff;background:linear-gradient(135deg,#d9a06a,#9a5a28)}.cm-legend.lg3::before{filter:brightness(3)}.cm-legend.lg10{color:#fff;background:linear-gradient(135deg,#51cf66,#2b8a3e)}.cm-legend.lg10::before{filter:brightness(4)}

/* 42차: 라운지 주간 명패. 역대 명패보다 한 단계 가볍게 */
.cm-legend.wk{color:#0e5a6b;background:linear-gradient(135deg,#e3f6fa,#a9dbe6)}.cm-legend.wk.wk1{color:#0b4a59;background:linear-gradient(135deg,#d6f3f8,#6cc3d5)}.cm-legend.wk::before{filter:hue-rotate(160deg) saturate(.6)}

/* 42차: 라운지 대회 말풍선 */
.cm-cupbub{position:relative;display:inline-flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:0;margin:2px 0 8px;padding:4px 12px;border-radius:999px;max-width:100%;box-sizing:border-box;background:linear-gradient(135deg,#fff3c4,#f2c14e);border:1px solid #d9a300;color:#3d2c00;font-size:12.5px;line-height:1.3}.cm-cupbub b{font-weight:800}.cm-cupbub small{font-size:11px;opacity:.75}.cm-cupbub::after{content:'';position:absolute;left:18px;bottom:-7px;width:12px;height:12px;background:#f2c14e;border-right:1px solid #d9a300;border-bottom:1px solid #d9a300;transform:rotate(45deg)}.cm-card.cup{border-color:#d9a300;box-shadow:0 0 0 1px #f2c14e inset}
.cm-legend.cup{color:#3b1f6b;background:linear-gradient(135deg,#efe4ff,#b993f5)}.cm-legend.cup::before{filter:hue-rotate(230deg) saturate(.7)}
.feed-btn{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border:0;border-radius:16px;padding:6px 12px 6px 10px;background:#111;color:#fff;font-size:13px;font-weight:800;cursor:pointer;line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.feed-btn:hover{background:#333}
.feed-btn.new{animation:feedPulse 2s ease-in-out 3}
.feed-btn .dot{position:static;display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-left:2px;border-radius:8px;background:var(--bad);color:#fff;font-size:10.5px;text-align:center;vertical-align:1px}
.feed-bg{position:fixed;inset:0;z-index:8500;background:rgba(10,14,22,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.feed-box{background:var(--panel);color:var(--text);border-radius:20px;width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(0,0,0,.3);overflow:hidden}
.feed-top{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid var(--line)}
.feed-top h3{margin:0;font-size:19px;font-weight:800}
.feed-x{border:0;width:38px;height:38px;border-radius:50%;background:var(--panel2);font-size:24px;line-height:38px;color:var(--text);cursor:pointer;padding:0;flex-shrink:0}
.feed-x:hover{background:var(--line)}
.feed-bot{flex-shrink:0;padding:10px 20px 14px;border-top:1px solid var(--line);background:var(--panel)}
.feed-close{width:100%;border:0;border-radius:12px;padding:13px 0;background:#111;color:#fff;font-size:15.5px;font-weight:800;cursor:pointer}
.feed-chips{display:flex;gap:8px;padding:12px 20px;overflow-x:auto;border-bottom:1px solid var(--line);flex-shrink:0}
.feed-chips button{flex-shrink:0;border:1px solid var(--line2);background:var(--panel);color:var(--text);border-radius:18px;padding:7px 14px;font-size:14px;font-weight:600;cursor:pointer}
.feed-chips button.on{background:var(--text);color:var(--panel);border-color:var(--text)}
.feed-list{overflow-y:auto;padding:0 20px;-webkit-overflow-scrolling:touch;background:var(--panel)}
.feed-post{display:flex;gap:12px;padding:18px 0 16px;border-bottom:1px solid var(--line)}
.feed-av{flex-shrink:0;width:42px;height:42px;border-radius:50%;color:#fff;font-style:normal;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center}
.feed-av.sm{width:30px;height:30px;font-size:13px}
.feed-bd{flex:1;min-width:0}
.feed-hd{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;font-size:15px;line-height:1.3}
.feed-hd b{font-weight:800}
.feed-hd em{font-style:normal;color:var(--muted);font-size:13px}
.feed-hd em::before{content:"· ";}
.feed-hd span{color:var(--muted);font-size:13px;margin-left:auto}
.feed-bd p{margin:6px 0 0;font-size:16px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere;color:var(--text)}
.feed-tags{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:8px;font-size:14px;font-weight:500}
.feed-tags a{color:#1c7ed6;cursor:pointer;text-decoration:none}
.feed-ft{display:flex;gap:20px;margin-top:12px;color:var(--muted);font-size:14px}
.feed-ft span{display:inline-flex;align-items:center;gap:5px}
.feed-act{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--muted);font:inherit;padding:4px 6px;margin:-4px -6px;border-radius:8px;cursor:pointer}
.feed-act:hover{background:var(--panel2);color:var(--text)}
.feed-act.on{color:#e03131;font-weight:700}
.feed-act.on svg path{fill:currentColor}
.feed-act.on2{color:var(--text);font-weight:700}
.feed-in-row{display:flex;gap:8px;margin-top:12px}
.feed-in{flex:1;min-width:0;border:1px solid var(--line2);border-radius:20px;padding:10px 14px;font-size:15px;background:var(--panel);color:var(--text)}
.feed-in:focus{outline:none;border-color:var(--text)}
.feed-send{border:0;border-radius:20px;padding:0 16px;background:#111;color:#fff;font-weight:800;font-size:14px;cursor:pointer}
.feed-me{font-style:normal;font-size:11px;font-weight:800;background:#111;color:#fff;border-radius:6px;padding:2px 6px;align-self:center}
.feed-rps{margin-top:14px;background:var(--panel2);border-radius:14px;padding:4px 14px}
.feed-rp{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.feed-rp:last-child{border-bottom:0}
.feed-rp .feed-hd{font-size:14px}
.feed-rp .feed-bd p{font-size:15px;margin-top:3px}
.feed-rp .feed-ft{margin-top:6px;font-size:13px}
.feed-post.news{background:var(--panel2);margin:10px -12px 0;padding:16px 12px;border-radius:14px;border-bottom:0}
.feed-post.news .feed-bd>p{font-weight:700}
.feed-post.news .feed-rps{background:var(--panel)}
.feed-empty{color:var(--muted);text-align:center;padding:40px 0;font-size:15px}
.feed-note{color:var(--muted);font-size:12.5px;text-align:center;padding:16px 0 20px;margin:0}
@media (max-width:560px){.feed-bg{padding:24px 18px}.feed-box{max-height:66vh;border-radius:18px}
  .feed-top{padding:12px 14px 9px}.feed-top h3{font-size:16px}.feed-x{width:32px;height:32px;line-height:32px;font-size:20px}
  .feed-auto{padding:8px 14px!important;font-size:12.5px!important}
  .feed-chips{padding:8px 14px;gap:6px}.feed-chips button{padding:5px 11px;font-size:12.5px}
  .feed-list{padding:0 14px}.feed-post{gap:9px;padding:12px 0 11px}.feed-av{width:32px;height:32px;font-size:13px}.feed-av.sm{width:24px;height:24px;font-size:11px}
  .feed-hd{font-size:13.5px}.feed-hd em,.feed-hd span{font-size:11.5px}.feed-bd p{font-size:14px;line-height:1.55;margin-top:4px}
  .feed-tags{font-size:12.5px;margin-top:5px}.feed-ft{gap:16px;margin-top:8px;font-size:12.5px}.feed-ft svg{width:15px;height:15px}
  .feed-rps{margin-top:9px;padding:2px 10px;border-radius:12px}.feed-rp{gap:8px;padding:7px 0}.feed-rp .feed-hd{font-size:12.5px}.feed-rp .feed-bd p{font-size:13px}.feed-rp .feed-ft{font-size:11.5px;margin-top:4px}
  .feed-in{padding:7px 12px;font-size:16px}.feed-send{font-size:12.5px;padding:0 12px}
  .feed-bot{padding:8px 14px 10px}.feed-close{padding:10px 0;font-size:14px;border-radius:10px}
}
.feed-ft .feed-share{margin-left:auto;font-size:13px}

/* 2026-11-21: 라운지에 올린 SNS 글 카드 */
.cm-sns{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:2px 12px;margin-top:6px}
.cm-sns .feed-post{border-bottom:0;padding:12px 0;margin:0;background:none}
.cm-sns .feed-av{width:34px;height:34px;font-size:14px}
.cm-sns .feed-av.sm{width:24px;height:24px;font-size:11px}
.cm-sns .feed-hd{font-size:13.5px}
.cm-sns .feed-hd span{font-size:12px}
.cm-sns .feed-bd p{font-size:14px;line-height:1.55}
.cm-sns .feed-tags{font-size:12.5px;margin-top:4px}
.cm-sns .feed-tags a{cursor:default}
.cm-sns .feed-ft{margin-top:6px;font-size:12.5px}
.cm-sns .feed-rps{margin-top:8px;padding:2px 10px}
.cm-sns .feed-rp{padding:7px 0}
.cm-sns .feed-rp .feed-bd p{font-size:13px}
.feed-auto{margin:0;padding:10px 20px;background:var(--acc-soft);color:var(--text);font-size:14px;font-weight:700;border-bottom:1px solid var(--line)}
.feed-m{display:inline-flex}
.t-son .lab-r .feed-btn{display:none}
@media(min-width:900px){.feed-m{display:none}.t-son .lab-r .feed-btn{display:inline-flex}
}
.pt-bigl .comm.inline{height:calc(100vh - 150px) !important;min-height:520px;border:0}
.pt-bigl .comm.inline .cm-grip{display:none}
@media (max-width:900px){.pt-bigl .comm.inline{height:calc(100vh - 170px) !important;min-height:420px}
}
/* 2026-11-26: 같이 쓰는 아빠 라운지. 글쓴이 옆에 어느 게임에서 올렸는지 꼬리표(축구, 야구). */
.cm-game{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:4px;background:#e8f7d2;color:#3e7a1a;font-size:11px;font-weight:700;vertical-align:1px}
.cm-game.bb{background:#e3ebff;color:#1f4fbf}

/* ───── 2026-11-26: 채널톡처럼 떠 있는 라운지. 오른쪽 아래 둥근 단추를 누르면 그 위에 둥근 창이 부드럽게 커지며 열리고, 단추는 X로 바뀐다. */
.comm.pop{position:fixed;right:24px;bottom:100px;width:390px;height:min(660px,calc(100vh - 130px));height:min(660px,calc(100dvh - 130px));z-index:60;border-radius:24px;overflow:hidden;box-shadow:0 22px 60px rgba(15,25,40,.24),0 3px 10px rgba(15,25,40,.10);
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(20px) scale(.92);transform-origin:calc(100% - 30px) calc(100% + 40px);
  transition:opacity .2s ease,transform .32s cubic-bezier(.2,.9,.25,1.08),visibility 0s linear .32s}
.comm.pop.on{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition:opacity .2s ease,transform .32s cubic-bezier(.2,.9,.25,1.08),visibility 0s}
.comm.pop .cm-grip{display:none}
.comm.pop .cm-h{border-radius:24px 24px 0 0}
.comm-fab.pop{right:24px;bottom:24px;width:60px;height:60px;padding:0;border-radius:50%;justify-content:center;gap:0;background:#16202a;box-shadow:0 10px 26px rgba(15,25,40,.28);transition:transform .2s ease,background .2s ease}
.comm-fab.pop:hover{transform:scale(1.06)}
.comm-fab.pop .l{display:none}
.comm-fab.pop svg{position:absolute;width:26px;height:26px;transition:transform .3s cubic-bezier(.2,.9,.25,1.08),opacity .2s ease}
.comm-fab.pop svg.ic{fill:#c6ff3d}
.comm-fab.pop svg.xx{fill:none;stroke:#16202a;stroke-width:2.4;stroke-linecap:round;opacity:0;transform:rotate(-90deg) scale(.6)}
.comm-fab.pop.open{background:#fff}
.comm-fab.pop.open svg.ic{opacity:0;transform:rotate(90deg) scale(.6)}
.comm-fab.pop.open svg.xx{opacity:1;transform:none}
.comm-fab.pop .n{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;line-height:18px;padding:0 6px;font-size:12px;font-weight:700;border:2px solid #fff;box-sizing:border-box;box-shadow:0 2px 6px rgba(0,0,0,.2);animation:cmBadge .3s cubic-bezier(.2,.9,.25,1.3)}
.comm-fab.pop.open .n{display:none!important}
.comm-fab:not(.pop) svg.xx{display:none}
@media (max-width:759px){
  .comm.pop{right:10px;left:10px;width:auto;bottom:146px;height:calc(100vh - 210px);height:calc(100dvh - 210px);border-radius:20px}
  .comm-fab.pop{right:14px;bottom:80px;width:54px;height:54px}
}

/* 2026-11-27: 라운지에 띄어쓰기 없는 긴 글이 오면 채팅창이 옆으로 늘어나 가로 스크롤이 생겼다. 글은 칸 안에서 줄을 바꾸고 목록은 옆으로 넘치지 않는다. */
.cm-list{overflow-x:hidden}
.cm-list>*{min-width:0;max-width:100%}
.cm-m,.cm-m *{overflow-wrap:anywhere;word-break:break-word;min-width:0}

/* 2026-11-28: 파파 라운지 채팅창. 메신저처럼 흰 머리(마크, 이름, 상태), 옅은 회색 바탕, 동그란 얼굴과 말풍선, 둥근 입력칸과 보내기 단추. */
.comm .cm-h{background:#fff;color:#16202a;height:62px;padding:0 10px 0 14px;border-bottom:1px solid #e9ecf0;gap:10px}
.comm .cm-hmark{width:36px;height:36px;border-radius:50%;flex:0 0 auto;background-size:58%}
.comm .cm-ht{display:flex;flex-direction:column;gap:2px;min-width:0}
.comm .cm-h > .cm-ht > b{font-size:16px;font-weight:900;letter-spacing:-.02em;color:#16202a}
.comm .cm-live{font-family:inherit;font-size:12px;letter-spacing:0;color:#5d6672;font-weight:600}
.comm .cm-live i{background:#2fb35a;animation:none}
.comm .cm-x{color:#5d6672;font-size:26px}
.comm .cm-list{background:#f4f5f7;padding:12px 12px 8px;gap:6px}
.cm-m.bub{display:flex;align-items:flex-start;gap:8px;padding:2px 0;font-size:14px}
.cm-av{flex:0 0 auto;width:32px;height:32px;border-radius:50%;color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:2px}
.cm-bw{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:calc(100% - 40px)}
.cm-who2{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0;font-size:12.5px;margin:0 0 3px 2px}
.cm-who2 .cm-nick{font-weight:800}
.cm-line{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.cm-line .cm-t{background:#fff;color:#16202a;border-radius:4px 16px 16px 16px;padding:8px 12px;line-height:1.5;box-shadow:0 1px 2px rgba(20,30,50,.08);min-width:0}
.cm-line time{flex:0 0 auto;margin:0 0 2px;font-family:inherit;font-size:11px;color:#9aa3ad;white-space:nowrap}
.cm-m.bub.me{justify-content:flex-end}
.cm-m.bub.me .cm-bw{align-items:flex-end;max-width:85%}
.cm-m.bub.me .cm-line{flex-direction:row-reverse}
.cm-m.bub.me .cm-t{background:#c6ff3d;color:#0b0f14;border-radius:16px 4px 16px 16px;box-shadow:none}
.cm-m.bub .cm-rx{margin:4px 0 0}
.cm-m.bub .cm-adm{margin-left:4px}
.comm .cm-m.notice,.comm .cm-m.brag{border-radius:12px}
.comm .cm-f{border-top:1px solid #e9ecf0;padding:8px 12px 12px}
.comm .cm-in{gap:8px;align-items:center}
.comm .cm-in input{border:0;background:#f1f3f5;border-radius:999px;padding:11px 16px;font-size:16px}
.comm .cm-in input:focus{outline:2px solid #c6ff3d;outline-offset:0}
.comm .cm-in button{width:42px;height:42px;padding:0;border-radius:50%;background:#16202a;color:#c6ff3d;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.comm .cm-in button svg{width:20px;height:20px}
.comm .cm-brag{border-radius:999px}
.cm-line .cm-t:empty{display:none}
/* 2026-11-28: 내 말풍선 위에도 닉네임과 명패(오른쪽 정렬) */
.cm-who2.me{justify-content:flex-end;margin:0 2px 3px 0}
/* 2026-11-28: 파파 라운지 고정 공지(둥근 카드 한 줄, 접기) */
.comm .cm-pin{display:block;background:transparent;border:0;padding:8px 10px 0;max-height:none;overflow:visible}
.cm-pin-card{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;box-shadow:0 2px 10px rgba(20,30,50,.10);padding:10px 8px 10px 14px}
.cm-pin-ico{flex:0 0 auto;width:22px;height:22px;color:#6a7380}
.cm-pin-ico svg{width:22px;height:22px;display:block}
.cm-pin-txt{flex:1;min-width:0;border:0;background:transparent;text-align:left;font-family:inherit;font-size:14.5px;font-weight:700;color:#16202a;cursor:pointer;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-pin-card.open .cm-pin-txt{white-space:normal;line-height:1.55;font-weight:600}
.cm-pin-x{flex:0 0 auto;width:30px;height:30px;border:0;background:transparent;color:#5d6672;font-size:24px;line-height:1;cursor:pointer;border-radius:8px}
.cm-pin-x:hover{background:#f1f3f6}
.cm-pin-chip{display:inline-flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:999px;box-shadow:0 2px 8px rgba(20,30,50,.10);padding:6px 12px 6px 9px;font-family:inherit;font-size:13px;font-weight:800;color:#2b3640;cursor:pointer}
.cm-pin-chip svg{width:18px;height:18px;color:#6a7380}
html[data-theme="dark"] .cm-pin-card,html[data-theme="dark"] .cm-pin-chip{background:#1b222b}
html[data-theme="dark"] .cm-pin-txt{color:#ebedf0}
html[data-theme="dark"] .cm-pin-chip{color:#d5dae1}
/* 셀럽아빠 자랑 카드: 국기 자리에 캐릭터 얼굴, 국기는 얼굴 오른쪽 아래(2026-11-30) */
.cm-card.cd .cc-ava{position:relative;flex:0 0 56px;width:56px;height:56px;margin-right:2px}
.cm-card.cd .cc-face{display:block;width:56px;height:56px;border-radius:16px;background:#ffd9df center 20%/cover no-repeat;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.cm-card.cd .cc-face.sil{display:flex;align-items:flex-end;justify-content:center;overflow:hidden;background:linear-gradient(160deg,#cfe0ff,#8fb0ec)}
.cm-card.cd .cc-face.sil.f{background:linear-gradient(160deg,#ffe1e6,#ff9bab)}
.cm-card.cd .cc-face.sil svg{width:80%;height:80%;fill:rgba(255,255,255,.9)}
.cm-card.cd .cc-flag{position:absolute;right:-6px;bottom:-4px;width:24px!important;height:16px!important;border-radius:3px;box-shadow:0 0 0 2px #fff;object-fit:cover}

/* ───── 다크 모드(자동 생성: node tools/darkcss.js) ───── */
html[data-theme="dark"] .comm{background:#161a1f}
html[data-theme="dark"] .cm-list{background:#161d24}
html[data-theme="dark"] .cm-m.brag{background:#161a1f}
html[data-theme="dark"] .cm-rc{background:#161a1f}
html[data-theme="dark"] .cm-rc b{color:#aaafb4}
html[data-theme="dark"] .cm-rc.on{background:#13321f}
html[data-theme="dark"] .cm-rc.on b{color:#43d782}
html[data-theme="dark"] .cm-pick{background:#161a1f}
html[data-theme="dark"] .cm-pick button span{color:#94999e}
html[data-theme="dark"] .cm-pick button.on{background:#13321f}
html[data-theme="dark"] .cm-f{background:#161a1f}
html[data-theme="dark"] .cm-nk{color:#b5bbc0}
html[data-theme="dark"] .cm-brag{background:#132f1c;color:#49db84}
html[data-theme="dark"] .cm-in input{background:#161a1f}
html[data-theme="dark"] .comm.inline .cm-grip{background:linear-gradient(transparent 5px,#1e2833 5px,#1e2833 7px,transparent 7px)}
html[data-theme="dark"] .cm-bot{border:1px solid #3f4d5a;color:#93999f}
html[data-theme="dark"] .cm-pin{background:#332b13;border-bottom:1px solid #695e3f;color:#e9e8e2}
html[data-theme="dark"] .cm-m.notice{background:#332b13}
html[data-theme="dark"] .cm-game{background:#2d3c17;color:#77d63e}
html[data-theme="dark"] .cm-game.bb{background:#131c32}
html[data-theme="dark"] .comm-fab.pop.open{background:#161a1f}
html[data-theme="dark"] .comm-fab.pop .n{border:2px solid #2c323a}
html[data-theme="dark"] .comm .cm-h{background:#161a1f;color:#e0e4e8;border-bottom:1px solid #313b48}
html[data-theme="dark"] .comm .cm-h > .cm-ht > b{color:#e0e4e8}
html[data-theme="dark"] .comm .cm-live{color:#989ca2}
html[data-theme="dark"] .comm .cm-x{color:#989ca2}
html[data-theme="dark"] .comm .cm-list{background:#1d1f23}
html[data-theme="dark"] .cm-line .cm-t{background:#161a1f;color:#e0e4e8}
html[data-theme="dark"] .comm .cm-f{border-top:1px solid #313b48}
html[data-theme="dark"] .comm .cm-in input{background:#1e2125}
html[data-theme="dark"] .cm-pin-card{background:#161a1f}
html[data-theme="dark"] .cm-pin-ico{color:#94989e}
html[data-theme="dark"] .cm-pin-txt{color:#e0e4e8}
html[data-theme="dark"] .cm-pin-x{color:#989ca2}
html[data-theme="dark"] .cm-pin-x:hover{background:#1a2028}
html[data-theme="dark"] .cm-pin-chip{background:#161a1f;color:#cacfd3}
html[data-theme="dark"] .cm-pin-chip svg{color:#94989e}
html[data-theme="dark"] .cm-card.cd .cc-face{background:#36141a center 20%/cover no-repeat}
html[data-theme="dark"] .cm-card.cd .cc-face.sil.f{background:linear-gradient(160deg,#331319,#4f1e26)}
