/* ==========================================================================
   [2026-11-21 새 기능] 닉네임 이펙트 · 대표 칭호 모양 (공용)
   - 클래스 이름 = 이펙트 id (services/effects.js와 같아야 함). 닉네임 글자에 .qb-nick + 이펙트 클래스 하나를 붙임
   - 시안 "퀴즈버블 훈장·이펙트 시안"의 닉네임 이펙트 보드에서 옮김. 지금은 마이페이지만 씀,
     다음 단계에서 참가자 목록 · 채팅 · 순위표에도 이 파일을 붙임
   - 꽃잎 · 하트 · 고양이 귀 같은 장식은 이 파일 맨 아래 "이펙트 장식" (2026-11-21 추가, 글자 앞뒤 가짜 요소)
   - 다크모드에서 안 보이는 색(기본 · 달빛)은 [data-theme="dark"]에서 바꿈. 움직임 줄이기 설정이면 애니메이션 끔
   ========================================================================== */
@keyframes qbFxShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes qbFxFlicker { 0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(255, 120, 40, .6)); } 50% { filter: brightness(1.25) drop-shadow(0 0 10px rgba(255, 170, 40, .8)); } }
@keyframes qbFxNeon { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .55; } }
@keyframes qbFxFlash { 0%, 100% { text-shadow: 0 0 0 rgba(255, 214, 0, 0); } 50% { text-shadow: 0 0 12px rgba(255, 214, 0, .95); } }
@keyframes qbFxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.qb-nick { font-family: var(--qb-font-display, 'Jua'), 'Noto Sans KR', sans-serif; line-height: 1.25; display: inline-block; white-space: nowrap; }

/* ── 레벨 이펙트 ── */
.lv-basic { color: var(--qb-ink); }
.lv-bronze { color: #a35a2a; }
/* [2026-11-22 변경] 실버: 은빛 이름표 테두리(테두리 · 흰 바탕 상자) → 은빛 글자만 (사용자 결정: 닉네임 이펙트는 글자만, 테두리는 따로 상품 예정) */
.lv-silver { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(90deg, #5b6577, #b4bccb 35%, #5b6577 55%, #8a93a5 80%, #5b6577); background-size: 200% 100%; animation: qbFxShimmer 3s linear infinite; }
[data-theme="dark"] .lv-silver { background-image: linear-gradient(90deg, #aab3c2, #ffffff 35%, #aab3c2 55%, #d9dee8 80%, #aab3c2); }
.lv-gold, .lv-diamond, .lv-aurora, .lv-legend, .fx-fire, .fx-rainbow, .fx-candy, .fx-mint { -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv-gold { background-image: linear-gradient(90deg, #a87400, #ffd76a 35%, #a87400 55%, #e0a82e 80%, #a87400); background-size: 200% 100%; animation: qbFxShimmer 2.6s linear infinite; }
.lv-diamond { background-image: linear-gradient(90deg, #1f7fc0, #8fdcff, #1f7fc0, #5ab4ec, #1f7fc0); background-size: 200% 100%; animation: qbFxShimmer 3s linear infinite; filter: drop-shadow(0 0 6px rgba(95, 190, 255, .55)); }
.lv-aurora { background-image: linear-gradient(90deg, #1fb38c, #4fc3f7, #8b6cf0, #1fb38c); background-size: 200% 100%; animation: qbFxShimmer 4s linear infinite; filter: drop-shadow(0 0 7px rgba(79, 195, 247, .5)); }
.lv-legend { background-image: linear-gradient(90deg, #ff5fa2, #9b6cf0, #3fb6f2, #f0b400, #ff5fa2); background-size: 200% 100%; animation: qbFxShimmer 3s linear infinite; filter: drop-shadow(0 0 8px rgba(155, 108, 240, .6)); }

/* ── 상점 이펙트 ── */
.fx-sakura { color: #d14b86; }
.fx-heart { color: #e8336f; }
.fx-cat { color: #5b3fb5; }
.fx-bubble { color: #2a7fc4; }
.fx-stardust { color: #4a2f86; text-shadow: 0 0 8px rgba(195, 177, 236, .9); }
.fx-ice { color: #1f78b4; text-shadow: 0 0 8px rgba(160, 225, 255, .95), 0 0 1px #fff; }
.fx-moon { color: #5b4aa8; text-shadow: 0 0 10px rgba(195, 177, 236, .95); }
/* [2026-11-22 삭제] 구름 위(.fx-cloud) — 이름 둘레에 흰 구름 상자(테두리 · 바탕)가 생겨서. 사용자 결정: 닉네임 이펙트는 글자만 바꾸고, 테두리는 따로 상품으로 만들 예정 */
.fx-candy { background-image: repeating-linear-gradient(120deg, #ff6fae 0 8px, #ffb3d4 8px 16px, #9b7cf0 16px 24px, #c9b6ff 24px 32px); }
.fx-mint { background-image: linear-gradient(90deg, #20b494, #20b494 45%, #6b4a3a 55%, #20b494); }
.fx-rainbow { background-image: linear-gradient(90deg, #e23b3b, #f08a1c, #e8b800, #2fa84f, #2f7fe0, #7b4fd6); }
.fx-fire { background-image: linear-gradient(0deg, #e8340f, #ff8a1f 55%, #ffd23f); animation: qbFxFlicker 1.2s ease-in-out infinite; }
.fx-neon { color: #fff; text-shadow: 0 0 4px #ff5ec4, 0 0 10px #ff5ec4, 0 0 22px #ff2fb0; animation: qbFxNeon 3s linear infinite; }
.fx-bolt { color: #8a6400; animation: qbFxFlash 1.4s ease-in-out infinite; }

[data-theme="dark"] .fx-moon { color: #efe6ff; }
[data-theme="dark"] .fx-cat, [data-theme="dark"] .fx-stardust { color: #c9b6ff; }
[data-theme="dark"] .lv-bronze { color: #d98a55; }
[data-theme="dark"] .fx-bolt { color: #ffd84a; }
[data-theme="dark"] .fx-ice { color: #8fd3ff; }        /* [2026-11-21] 어두운 바탕에서 파란 글자가 묻혀서 */
[data-theme="dark"] .fx-bubble { color: #7cc4f5; }

/* ── 대표 칭호 (훈장 등급별 모양) ── */
.qb-title { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
/* 게임방 이름 옆 작은 칭호 (room-looks.js) */
.qb-title--sm { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
/* [2026-11-21 추가] 채팅 · 실시간 순위의 이름 왼쪽 작은 칭호 (room-looks.js title: 'before') — 좁은 곳이라 길면 말줄임 */
.qb-title--xs { flex: none; display: inline-block; max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; line-height: 1.5; padding: 0 7px; margin-right: 5px; vertical-align: middle; position: relative; top: -2px; }   /* [2026-11-22] 1px → middle: 채팅에서 칭호가 이름보다 살짝 위로 떠 보였음 (사용자 제보) → middle은 이번엔 살짝 아래로 보여서 2px 올림(top: -2px, 사용자 요청) */
.ranking-widget-item .qb-title--xs { margin-right: -6px; }   /* 순위 줄은 칸 사이 간격(gap 12px)이 있어서 이름과 붙여 보이게 */
.qb-title--bronze, .qb-title--silver { background: var(--qb-soft); color: var(--qb-accent-ink); }
.qb-title--gold { background: linear-gradient(90deg, #fff3c4, #ffe08a, #fff3c4); background-size: 200% 100%; color: #6b4b00; animation: qbFxShimmer 2.4s linear infinite; box-shadow: 0 0 0 1px #f0c94a inset; }
.qb-title--limited { background: #ffe6ef; color: #8a2450; border-radius: 6px; box-shadow: 0 0 0 1px #ffb3cf inset; }
.qb-title--diamond, .qb-title--legend { background: linear-gradient(90deg, #f1e6fd, #ffe6f2); color: #5a2f96; box-shadow: 0 0 0 1px #c9a8f5 inset; }

@media (prefers-reduced-motion: reduce) {
  .qb-nick, .qb-title { animation: none !important; }
}

/* ── [2026-11-21] 게임방 (room-looks.js가 이펙트를 입힌 이름 칸, data-qb-look="이펙트|칭호") ──
   게임 중 참가자 칸(.game-participant-tag)은 색칠된 알약이라 그 위에서 이펙트 글자가 묻힘 (특히 내 칸 = 연보라 바탕 위 금빛).
   → 이펙트가 있는 칸만 바탕을 카드색으로 바꾸고, 내 칸 · 방장 표시는 테두리로 */
.game-participant-tag[data-qb-look^="lv-"],
.game-participant-tag[data-qb-look^="fx-"] { background: var(--qb-surface); color: var(--qb-ink); box-shadow: 0 0 0 1px var(--qb-line) inset; }
.game-participant-tag.me[data-qb-look^="lv-"],
.game-participant-tag.me[data-qb-look^="fx-"] { box-shadow: 0 0 0 2px var(--qb-btn) inset; }

/* ── [2026-11-21 새 기능] 이펙트 장식 (시안 "닉네임 이펙트"의 꽃잎 · 하트 · 고양이 귀 · 별 · 비눗방울 · 번개 · 달 · 눈송이 · 왕관) ──
   HTML을 늘리지 않으려고 닉네임 글자(.qb-nick)의 앞뒤 가짜 요소(::before · ::after)에 그림을 붙임 → 게임방 · 마이페이지 · 상점 미리보기에 한 번에 적용
   - 그림은 작은 SVG를 CSS 안에 바로 넣음(data URI, 파일 요청 없음). 위치 · 크기 · 움직임은 시안 값을 글자 크기 비례(em, 시안 글자 28px 기준)로
     → 채팅 · 게임 중 참가자처럼 글자가 작은 곳에서는 장식도 작아짐
   - 장식이 없는 이펙트(불꽃 · 네온 · 무지개 · 솜사탕 · 브론즈~오로라 · 바다 · 노을)는 글자 모양만
   - 클릭 · 글자 선택에 방해되지 않게 pointer-events: none, 움직임 줄이기 설정이면 멈춤 */
@keyframes qbFxFall { 0% { transform: translate(0, -0.357em) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(0.357em, 1.071em) rotate(220deg); opacity: 0; } }
@keyframes qbFxPop { 0% { transform: translateY(0.214em) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-0.714em) scale(1); opacity: 0; } }
@keyframes qbFxTw { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes qbFxRise { 0% { transform: translateY(0.357em) scale(.6); opacity: 0; } 25% { opacity: .9; } 100% { transform: translateY(-0.857em) scale(1); opacity: 0; } }

.qb-nick { position: relative; }
.fx-sakura::before, .fx-sakura::after, .fx-heart::before, .fx-heart::after, .fx-cat::before, .fx-cat::after,
.fx-stardust::before, .fx-stardust::after, .fx-mint::before, .fx-mint::after, .fx-bubble::before, .fx-bubble::after,
.fx-bolt::after, .fx-moon::before, .fx-ice::after, .lv-legend::before {
  content: ''; position: absolute; pointer-events: none; background: no-repeat center / contain;
}

/* 벚꽃: 꽃잎 두 장이 떨어짐 */
.fx-sakura::before, .fx-sakura::after { width: 0.321em; height: 0.25em; border-radius: 0.321em 0 0.321em 0; background: #ffb7d0; animation: qbFxFall 2.8s linear infinite; }
.fx-sakura::before { left: -0.357em; top: -0.214em; }
.fx-sakura::after { right: -0.286em; top: -0.143em; animation-delay: 1.4s; }

/* 하트: 하트가 퐁퐁 */
.fx-heart::before, .fx-heart::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z' fill='%23ff5f95'/%3E%3C/svg%3E"); animation: qbFxPop 2s ease-out infinite; }
.fx-heart::after { width: 0.5em; height: 0.5em; right: -0.571em; top: 0; }
.fx-heart::before { width: 0.357em; height: 0.357em; left: -0.429em; top: 0.286em; animation-delay: 1s; }

/* 고양이 귀: 이름 위 양쪽 */
.fx-cat::before, .fx-cat::after { width: 0.571em; height: 0.5em; top: -0.393em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M8 0L16 14H0z' fill='%235b3fb5'/%3E%3Cpath d='M8 5l4 7H4z' fill='%23ffb7d0'/%3E%3C/svg%3E"); }
.fx-cat::before { left: 0.143em; transform: rotate(-14deg); }
.fx-cat::after { right: 0.143em; transform: rotate(14deg); }

/* 별가루 · 민트초코: 반짝이는 별 두 개 */
.fx-stardust::before, .fx-stardust::after, .fx-mint::before, .fx-mint::after { animation: qbFxTw 1.8s ease-in-out infinite; }
.fx-stardust::before, .fx-stardust::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%23c3a6ff'/%3E%3C/svg%3E"); }
.fx-mint::before, .fx-mint::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%2320b494'/%3E%3C/svg%3E"); }
.fx-stardust::before, .fx-mint::before { width: 0.5em; height: 0.5em; left: -0.571em; top: -0.214em; }
.fx-stardust::after, .fx-mint::after { width: 0.357em; height: 0.357em; right: -0.429em; top: -0.286em; animation-delay: .7s; }

/* 비눗방울: 동글동글 떠오름 */
.fx-bubble::before, .fx-bubble::after { width: 0.357em; height: 0.357em; border-radius: 50%; border: 2px solid rgba(90, 170, 230, .8); background: rgba(220, 240, 255, .5); box-sizing: border-box; animation: qbFxRise 2.6s ease-in infinite; }
.fx-bubble::before { left: -0.357em; bottom: -0.143em; }
.fx-bubble::after { right: -0.286em; bottom: 0; animation-delay: 1.1s; }

/* 번개 · 달빛 · 얼음(눈송이) · 레전드(왕관): 하나씩 */
.fx-bolt::after { width: 0.571em; height: 0.571em; right: -0.643em; top: -0.143em; animation: qbFxTw 1.8s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z' fill='%23ffd400' stroke='%23a87400' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fx-moon::before { width: 0.571em; height: 0.571em; left: -0.714em; top: -0.071em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='%23ffe9a8'/%3E%3C/svg%3E"); }
.fx-ice::after { width: 0.464em; height: 0.464em; right: -0.571em; top: -0.214em; animation: qbFxTw 1.8s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fd3ff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3v18M4.2 7.5l15.6 9M4.2 16.5l15.6-9'/%3E%3C/svg%3E"); }
.lv-legend::before { width: 0.786em; height: 0.643em; left: 50%; top: -0.607em; margin-left: -0.393em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4 5-8 5 8 5-4-2 12H4z' fill='%23f0b400' stroke='%23a87400' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ── [2026-11-22 추가] 닉네임 이펙트 17개 더 (사용자 요청: 30개 · 동물 많이) ──
   규칙(사용자 결정): 닉네임 글자만 바꿈 — 이름 둘레 테두리 · 바탕 상자 없음(테두리는 따로 상품 예정). 장식은 글자 앞뒤 작은 그림(::before · ::after)만
   글자색: --fxl = 밝은 바탕용, --fxd = 다크모드용. 상점 미리보기 판 · 밝은 말풍선은 다크모드여도 바탕이 밝아서 --fxl로 되돌림 (아래 마지막 줄) */
@keyframes qbFxBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-0.1em) rotate(4deg); } }
@keyframes qbFxWaddle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes qbFxBuzz { 0% { transform: translate(0, 0); } 25% { transform: translate(0.12em, -0.12em); } 50% { transform: translate(0, -0.2em); } 75% { transform: translate(-0.12em, -0.08em); } 100% { transform: translate(0, 0); } }
@keyframes qbFxGhost { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.fx-dog { --fxl: #8a5a2b; --fxd: #e8b88a; }
.fx-duck { --fxl: #c98a00; --fxd: #ffd23f; }
.fx-bunny { --fxl: #d6548c; --fxd: #ff9cc4; }
.fx-bear { --fxl: #7a4a2a; --fxd: #d9a77a; }
.fx-fox { --fxl: #d9641a; --fxd: #ff9a55; }
.fx-frog { --fxl: #2f8f3f; --fxd: #6fd47f; }
.fx-penguin { --fxl: #2b3a67; --fxd: #a9b8ea; }
.fx-panda { --fxl: #222222; --fxd: #f2f2f2; }
.fx-paw { --fxl: #9a6238; --fxd: #e3a978; }
.fx-music { --fxl: #6b4fd8; --fxd: #b9a6ff; }
.fx-ghost { --fxl: #7d70b0; --fxd: #d6cff5; animation: qbFxGhost 2.4s ease-in-out infinite; }
.fx-clover { --fxl: #2f8f3f; --fxd: #7fdc8c; }
:is(.fx-dog, .fx-duck, .fx-bunny, .fx-bear, .fx-fox, .fx-frog, .fx-penguin, .fx-panda, .fx-paw, .fx-music, .fx-ghost, .fx-clover) { color: var(--fxl); }
[data-theme="dark"] :is(.fx-dog, .fx-duck, .fx-bunny, .fx-bear, .fx-fox, .fx-frog, .fx-penguin, .fx-panda, .fx-paw, .fx-music, .fx-ghost, .fx-clover) { color: var(--fxd); }
/* 글자 그라데이션 5개: 꿀벌 · 바다 · 노을 · 갤럭시 · 글리터 */
.fx-bee, .fx-ocean, .fx-sunset, .fx-galaxy, .fx-glitter { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
.fx-bee { background-image: linear-gradient(90deg, #e0a000, #ffcc00 40%, #b07800 60%, #e0a000); animation: qbFxShimmer 3s linear infinite; }
.fx-ocean { background-image: linear-gradient(90deg, #0a6fc4, #3fd0e0, #0a8fd6, #6fe3ff, #0a6fc4); animation: qbFxShimmer 3.4s linear infinite; }
.fx-sunset { background-image: linear-gradient(90deg, #ff7a45, #ff4f8b 50%, #9b6cf0); background-size: 100% 100%; }
.fx-galaxy { background-image: linear-gradient(90deg, #5a3fd8, #d83fbf, #3f7fd8, #8b5cf6, #5a3fd8); animation: qbFxShimmer 4s linear infinite; filter: drop-shadow(0 0 5px rgba(140, 90, 240, .45)); }
.fx-glitter { background-image: linear-gradient(90deg, #ff6fae, #ffb84d, #ff9fd0, #f0a020, #ff6fae); animation: qbFxShimmer 1.6s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 180, 120, .6)); }
/* 장식 */
.fx-dog::before, .fx-dog::after, .fx-bunny::before, .fx-bunny::after, .fx-bear::before, .fx-bear::after, .fx-fox::before, .fx-fox::after,
.fx-frog::before, .fx-frog::after, .fx-panda::before, .fx-panda::after, .fx-paw::before, .fx-paw::after, .fx-music::before, .fx-music::after,
.fx-duck::after, .fx-penguin::after, .fx-bee::after, .fx-ghost::after, .fx-clover::after, .fx-galaxy::after, .fx-glitter::before, .fx-glitter::after {
  content: ''; position: absolute; pointer-events: none; background: no-repeat center / contain;
}
/* 강아지: 축 처진 귀 */
.fx-dog::before, .fx-dog::after { width: 0.4em; height: 0.52em; top: -0.18em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M8 0C3 0 0 4 1 10c1 6 4 9 6 9s3-3 3-8C10 5 12 0 8 0z' fill='%23a0693a'/%3E%3C/svg%3E"); }
.fx-dog::before { left: -0.22em; transform: rotate(18deg); }
.fx-dog::after { right: -0.22em; transform: scaleX(-1) rotate(18deg); }
/* 토끼: 긴 귀 */
.fx-bunny::before, .fx-bunny::after { width: 0.3em; height: 0.72em; top: -0.66em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 24'%3E%3Cpath d='M5 0C1 0 0 8 1 16c.5 4 2 8 4 8s3.5-4 4-8C10 8 9 0 5 0z' fill='white' stroke='%23e0679a' stroke-width='1'/%3E%3Cpath d='M5 4c-2 0-2.5 5-2 11 .3 3 1 5 2 5s1.7-2 2-5c.5-6 0-11-2-11z' fill='%23ffb7d0'/%3E%3C/svg%3E"); }
.fx-bunny::before { left: 0.2em; transform: rotate(-10deg); }
.fx-bunny::after { right: 0.2em; transform: rotate(10deg); }
/* 곰: 동그란 귀 */
.fx-bear::before, .fx-bear::after { width: 0.4em; height: 0.4em; top: -0.26em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%238a5a33'/%3E%3Ccircle cx='8' cy='8' r='4' fill='%23e8b98a'/%3E%3C/svg%3E"); }
.fx-bear::before { left: 0.06em; }
.fx-bear::after { right: 0.06em; }
/* 여우: 뾰족한 주황 귀 */
.fx-fox::before, .fx-fox::after { width: 0.46em; height: 0.46em; top: -0.36em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 16L5 0l10 12z' fill='%23f07a24'/%3E%3Cpath d='M4.5 13.5l1.7-8.5 5 5.6z' fill='white'/%3E%3C/svg%3E"); }
.fx-fox::before { left: 0.08em; transform: rotate(-12deg); }
.fx-fox::after { right: 0.08em; transform: scaleX(-1) rotate(-12deg); }
/* 개구리: 동그란 눈 두 개 */
.fx-frog::before, .fx-frog::after { width: 0.42em; height: 0.42em; top: -0.3em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%2340b85a'/%3E%3Ccircle cx='8' cy='8.5' r='5' fill='white'/%3E%3Ccircle cx='8.8' cy='9' r='2.6' fill='%23222'/%3E%3C/svg%3E"); }
.fx-frog::before { left: 0.1em; }
.fx-frog::after { right: 0.1em; }
/* 판다: 까만 동그란 귀 */
.fx-panda::before, .fx-panda::after { width: 0.38em; height: 0.38em; top: -0.24em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23222' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E"); }
.fx-panda::before { left: 0.08em; }
.fx-panda::after { right: 0.08em; }
/* 발자국: 양쪽에 콕콕 */
.fx-paw::before, .fx-paw::after { width: 0.4em; height: 0.4em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c48a5a'%3E%3Cellipse cx='12' cy='16' rx='5' ry='4.2'/%3E%3Ccircle cx='5.5' cy='10' r='2.3'/%3E%3Ccircle cx='9.5' cy='6' r='2.3'/%3E%3Ccircle cx='14.5' cy='6' r='2.3'/%3E%3Ccircle cx='18.5' cy='10' r='2.3'/%3E%3C/svg%3E"); animation: qbFxTw 1.6s ease-in-out infinite; }
.fx-paw::before { left: -0.5em; bottom: 0; }
.fx-paw::after { right: -0.5em; top: -0.1em; animation-delay: .8s; }
/* 음표: 양쪽에서 떠오름 */
.fx-music::before, .fx-music::after { width: 0.42em; height: 0.42em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l11-2v12' fill='none' stroke='%237b5ff0' stroke-width='2.4'/%3E%3Ccircle cx='6.5' cy='18' r='3' fill='%237b5ff0'/%3E%3Ccircle cx='17.5' cy='15' r='3' fill='%237b5ff0'/%3E%3C/svg%3E"); animation: qbFxRise 2.4s ease-in infinite; }
.fx-music::before { left: -0.48em; bottom: 0; }
.fx-music::after { right: -0.46em; bottom: 0.1em; animation-delay: 1.2s; }
/* 오리 · 펭귄 · 꿀벌 · 유령 · 클로버: 이름 오른쪽에 하나 */
.fx-duck::after { width: 0.62em; height: 0.52em; right: -0.72em; bottom: 0.02em; animation: qbFxBob 1.6s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M6 9a5 5 0 0 1 10-1c4 0 7 2 7 6s-4 6-11 6S1 18 1 14c0-2 2-4 5-5z' fill='%23ffd23f' stroke='%23e0a800' stroke-width='.8'/%3E%3Ccircle cx='12' cy='6.5' r='1.2' fill='%23222'/%3E%3Cpath d='M15.5 7.5l4.5 1-4.5 1.6z' fill='%23ff8a1f'/%3E%3C/svg%3E"); }
.fx-penguin::after { width: 0.5em; height: 0.6em; right: -0.62em; bottom: 0; transform-origin: 50% 100%; animation: qbFxWaddle 1.2s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cellipse cx='10' cy='13' rx='8' ry='10' fill='%232b3a67'/%3E%3Cellipse cx='10' cy='15' rx='5' ry='7' fill='white'/%3E%3Ccircle cx='7.5' cy='8' r='1.2' fill='white'/%3E%3Ccircle cx='12.5' cy='8' r='1.2' fill='white'/%3E%3Cpath d='M8.5 10.5h3L10 12.5z' fill='%23ffb02e'/%3E%3C/svg%3E"); }
.fx-bee::after { width: 0.54em; height: 0.46em; right: -0.66em; top: -0.18em; animation: qbFxBuzz 1.4s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cellipse cx='9' cy='5' rx='4' ry='3' fill='%23dff3ff' opacity='.9'/%3E%3Cellipse cx='15' cy='5' rx='4' ry='3' fill='%23dff3ff' opacity='.9'/%3E%3Cellipse cx='12' cy='12' rx='8' ry='6' fill='%23ffcc00'/%3E%3Cpath d='M9 6.5v11M13 6.3v11.4' stroke='%23332200' stroke-width='2'/%3E%3Ccircle cx='18.5' cy='11' r='1' fill='%23222'/%3E%3C/svg%3E"); }
.fx-ghost::after { width: 0.5em; height: 0.6em; right: -0.62em; top: -0.2em; animation: qbFxFloat 2.4s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 1a8 8 0 0 1 8 8v13l-2.7-2-2.6 2-2.7-2-2.7 2-2.6-2L2 22V9a8 8 0 0 1 8-8z' fill='white' stroke='%23b8aee0' stroke-width='1.2'/%3E%3Ccircle cx='7.5' cy='10' r='1.3' fill='%23443355'/%3E%3Ccircle cx='12.5' cy='10' r='1.3' fill='%23443355'/%3E%3C/svg%3E"); }
.fx-clover::after { width: 0.5em; height: 0.5em; right: -0.6em; top: -0.16em; animation: qbFxTw 2s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%2340b85a'%3E%3Ccircle cx='8' cy='8' r='4.5'/%3E%3Ccircle cx='16' cy='8' r='4.5'/%3E%3Ccircle cx='8' cy='16' r='4.5'/%3E%3Ccircle cx='16' cy='16' r='4.5'/%3E%3C/g%3E%3Cpath d='M12 12l5 10' stroke='%232f8a3d' stroke-width='1.6'/%3E%3C/svg%3E"); }
/* 갤럭시 · 글리터: 반짝이 */
.fx-galaxy::after, .fx-glitter::before, .fx-glitter::after { animation: qbFxTw 1.6s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%23f5a3e0'/%3E%3C/svg%3E"); }
.fx-galaxy::after { width: 0.42em; height: 0.42em; right: -0.5em; top: -0.24em; }
.fx-glitter::before { width: 0.34em; height: 0.34em; left: -0.42em; top: -0.12em; animation-delay: .5s; }
.fx-glitter::after { width: 0.44em; height: 0.44em; right: -0.52em; top: -0.26em; }
/* [2026-11-22] 이름 옆에 붙는 장식(오리 · 펭귄 · 꿀벌 · 유령 · 클로버 · 갤럭시 · 글리터 · 음표 · 발자국)은 자리를 안 차지해서 뒤 글자(채팅 내용 등)를 가렸음 → 그만큼 바깥 여백 */
.fx-duck, .fx-penguin, .fx-bee, .fx-ghost, .fx-clover { margin-right: 0.7em; }
.fx-galaxy, .fx-glitter, .fx-paw, .fx-music { margin-left: 0.45em; margin-right: 0.45em; }
/* 상점 미리보기 판(다크 판 제외) · 밝은 말풍선은 다크모드여도 바탕이 밝음 → 밝은 바탕용 글자색으로 */
[data-theme="dark"] :is(.sh-stage:not(.sh-stage--dark), .bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) :is(.fx-dog, .fx-duck, .fx-bunny, .fx-bear, .fx-fox, .fx-frog, .fx-penguin, .fx-panda, .fx-paw, .fx-music, .fx-ghost, .fx-clover) { color: var(--fxl); }

/* ── [2026-11-22 추가 2차] 닉네임 효과 20개 더 (사용자 요청: 50개) — 규칙은 위 17개와 같음: 글자만 · 테두리/바탕 상자 없음 · 장식은 앞뒤 작은 그림 ──
   동물 10: 햄스터 · 병아리 · 돼지 · 코알라 · 호랑이 · 유니콘 · 공룡 · 고래 · 나비 · 닌자 / 테마 10: 천사 · 악마 · 글리치 · 레트로 · 용암 · 눈송이 · 단풍 · 체리 · 불꽃놀이 · 초콜릿 */
@keyframes qbFxFlap { 0%, 100% { transform: scaleX(1) rotate(-8deg); } 50% { transform: scaleX(.45) rotate(-8deg); } }
@keyframes qbFxHalo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.08em); } }
@keyframes qbFxGlitch { 0%, 100% { text-shadow: 1px 0 #ff2f6d, -1px 0 #2fd8ff; } 20% { text-shadow: -2px 0 #ff2f6d, 2px 0 #2fd8ff; } 40% { text-shadow: 2px 1px #ff2f6d, -2px -1px #2fd8ff; } 60% { text-shadow: 0 0 #ff2f6d, 0 0 #2fd8ff; } 80% { text-shadow: -1px -1px #ff2f6d, 1px 1px #2fd8ff; } }
@keyframes qbFxSpout { 0%, 60%, 100% { opacity: 0; transform: translateY(0.1em) scale(.6); } 75% { opacity: 1; transform: translateY(-0.12em) scale(1); } }
@keyframes qbFxTail { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
.fx-hamster { --fxl: #b8742f; --fxd: #f0b97a; }
.fx-chick { --fxl: #c99a00; --fxd: #ffd84a; }
.fx-pig { --fxl: #d6578d; --fxd: #ffa3c8; }
.fx-koala { --fxl: #5b6474; --fxd: #c3cad6; }
.fx-tiger { --fxl: #d9650a; --fxd: #ff9a3d; }
.fx-dino { --fxl: #2f8f3f; --fxd: #74d884; }
.fx-whale { --fxl: #2370b8; --fxd: #82c4f5; }
.fx-butterfly { --fxl: #7d4fd0; --fxd: #c3a6ff; }
.fx-ninja { --fxl: #2b2f45; --fxd: #d9dcea; }
.fx-angel { --fxl: #a88300; --fxd: #ffe48a; text-shadow: 0 0 6px rgba(255, 236, 160, .9); }
.fx-devil { --fxl: #c62f3a; --fxd: #ff7a84; }
.fx-snow { --fxl: #2a6fb0; --fxd: #9fd2ff; }
.fx-autumn { --fxl: #b94a14; --fxd: #ff9a5c; }
.fx-cherry { --fxl: #c92a48; --fxd: #ff8197; }
.fx-firework { --fxl: #5a3fc4; --fxd: #b9a6ff; }
.fx-glitch { --fxl: #2b2340; --fxd: #f2f0ff; animation: qbFxGlitch 1.6s steps(1) infinite; }
.fx-retro { --fxl: #ff3f86; --fxd: #ff7fb0; text-shadow: 2px 2px 0 #26c6da, 4px 4px 0 rgba(38, 198, 218, .35); }
:is(.fx-hamster, .fx-chick, .fx-pig, .fx-koala, .fx-tiger, .fx-dino, .fx-whale, .fx-butterfly, .fx-ninja, .fx-angel, .fx-devil, .fx-snow, .fx-autumn, .fx-cherry, .fx-firework, .fx-glitch, .fx-retro) { color: var(--fxl); }
[data-theme="dark"] :is(.fx-hamster, .fx-chick, .fx-pig, .fx-koala, .fx-tiger, .fx-dino, .fx-whale, .fx-butterfly, .fx-ninja, .fx-angel, .fx-devil, .fx-snow, .fx-autumn, .fx-cherry, .fx-firework, .fx-glitch, .fx-retro) { color: var(--fxd); }
/* 글자 그라데이션 3개: 유니콘 · 용암 · 초콜릿 */
.fx-unicorn, .fx-lava, .fx-choco { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
.fx-unicorn { background-image: linear-gradient(90deg, #ff7eb6, #b58cff, #5fd0c4, #ffb36b, #ff7eb6); animation: qbFxShimmer 4s linear infinite; }
.fx-lava { background-image: linear-gradient(90deg, #8a0f0f, #ff4d00, #ffb000, #ff4d00, #8a0f0f); animation: qbFxShimmer 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 80, 0, .5)); }
.fx-choco { background-image: linear-gradient(90deg, #5a2f14, #a8693d, #6b3a1c, #c48a5a, #5a2f14); animation: qbFxShimmer 5s linear infinite; }
[data-theme="dark"] .fx-choco { background-image: linear-gradient(90deg, #c48a5a, #f0c9a0, #a8693d, #e8b98a, #c48a5a); }
/* 장식 */
.fx-hamster::before, .fx-hamster::after, .fx-pig::before, .fx-pig::after, .fx-koala::before, .fx-koala::after, .fx-tiger::before, .fx-tiger::after,
.fx-devil::before, .fx-devil::after, .fx-snow::before, .fx-snow::after, .fx-autumn::before, .fx-autumn::after, .fx-firework::before, .fx-firework::after,
.fx-chick::after, .fx-unicorn::after, .fx-dino::after, .fx-whale::after, .fx-whale::before, .fx-butterfly::before, .fx-ninja::after, .fx-angel::before, .fx-cherry::after {
  content: ''; position: absolute; pointer-events: none; background: no-repeat center / contain;
}
/* 햄스터 · 코알라 · 돼지 · 호랑이 · 악마: 머리 위 양쪽 */
.fx-hamster::before, .fx-hamster::after { width: 0.34em; height: 0.34em; top: -0.2em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%23e3a35c'/%3E%3Ccircle cx='8' cy='8.5' r='4' fill='%23ffc9d6'/%3E%3C/svg%3E"); }
.fx-hamster::before { left: 0.04em; } .fx-hamster::after { right: 0.04em; }
.fx-koala::before, .fx-koala::after { width: 0.5em; height: 0.5em; top: -0.28em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%239aa3b2'/%3E%3Ccircle cx='8' cy='8' r='4.5' fill='%23e6e9ef'/%3E%3C/svg%3E"); }
.fx-koala::before { left: -0.16em; } .fx-koala::after { right: -0.16em; }
.fx-pig::before, .fx-pig::after { width: 0.4em; height: 0.4em; top: -0.3em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 15C2 6 5 1 9 1c3 0 6 4 5 9-3 0-8 2-12 5z' fill='%23ff9cc2'/%3E%3Cpath d='M5 12c0-5 2-8 4-8 2 0 3 2 3 4-3 1-5 2-7 4z' fill='%23ffd1e3'/%3E%3C/svg%3E"); }
.fx-pig::before { left: 0.06em; } .fx-pig::after { right: 0.06em; transform: scaleX(-1); }
.fx-tiger::before, .fx-tiger::after { width: 0.4em; height: 0.4em; top: -0.26em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%23ff8a1f'/%3E%3Ccircle cx='8' cy='8.5' r='3.6' fill='%23fff3e0'/%3E%3Cpath d='M3 4l2.5 2M13 4l-2.5 2M8 1v2.5' stroke='%232b1a0a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fx-tiger::before { left: 0.06em; } .fx-tiger::after { right: 0.06em; }
.fx-devil::before, .fx-devil::after { width: 0.3em; height: 0.4em; top: -0.3em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M2 16C1 9 3 3 10 0 7 5 7 10 9 16z' fill='%23e8323f'/%3E%3C/svg%3E"); }
.fx-devil::before { left: 0.14em; } .fx-devil::after { right: 0.14em; transform: scaleX(-1); }
/* 병아리 · 유니콘 · 천사: 머리 위 가운데 */
.fx-chick::after { width: 0.5em; height: 0.46em; top: -0.42em; left: 50%; margin-left: -0.25em; animation: qbFxBob 1.4s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cellipse cx='10' cy='11' rx='8' ry='6.5' fill='%23ffd84a' stroke='%23e0a800' stroke-width='.8'/%3E%3Ccircle cx='10' cy='6' r='4.5' fill='%23ffd84a' stroke='%23e0a800' stroke-width='.8'/%3E%3Ccircle cx='8.4' cy='5.4' r='.9' fill='%23222'/%3E%3Ccircle cx='11.6' cy='5.4' r='.9' fill='%23222'/%3E%3Cpath d='M9 7.2h2L10 8.6z' fill='%23ff8a1f'/%3E%3C/svg%3E"); }
.fx-unicorn::after { width: 0.32em; height: 0.52em; top: -0.5em; left: 50%; margin-left: -0.16em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0L9 16H1z' fill='%23ffd76a' stroke='%23d9a300' stroke-width='.8'/%3E%3Cpath d='M2.4 11l5.6-1.6M3.2 7.4l4-1.2M4 3.8l2-.6' stroke='%23d9a300' stroke-width='.8'/%3E%3C/svg%3E"); }
.fx-angel::before { width: 0.7em; height: 0.24em; top: -0.3em; left: 50%; margin-left: -0.35em; border-radius: 50%; border: 0.07em solid #ffd34d; box-shadow: 0 0 6px rgba(255, 211, 77, .9); background: none; box-sizing: border-box; animation: qbFxHalo 2s ease-in-out infinite; }
/* 공룡: 이름 위 뾰족 등지느러미 */
.fx-dino::after { height: 0.24em; top: -0.2em; left: 0.1em; right: 0.1em; background-size: 0.3em 0.24em; background-repeat: repeat-x; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M0 10L6 0l6 10z' fill='%2353b863'/%3E%3C/svg%3E"); }
/* 고래(오른쪽 + 물 뿜기) · 체리(오른쪽) · 나비(왼쪽 위) · 닌자(머리띠 끈) */
.fx-whale::after { width: 0.68em; height: 0.46em; right: -0.78em; bottom: 0.02em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Cpath d='M2 10c0-5 5-8 11-8s10 3 10 7c0 1 2-2 3-1-1 3-3 5-4 5-2 3-6 4-10 4C6 17 2 14 2 10z' fill='%234a9fe0'/%3E%3Cpath d='M4 12c3 3 9 3 13 1' stroke='%23d8efff' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23123'/%3E%3C/svg%3E"); }
.fx-whale::before { width: 0.3em; height: 0.3em; right: -0.4em; top: -0.2em; animation: qbFxSpout 2.4s ease-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 12V6M6 6C4 3 2 3 1 4M6 6c2-3 4-3 5-2' stroke='%237cc4f5' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fx-cherry::after { width: 0.5em; height: 0.56em; right: -0.6em; top: -0.12em; transform-origin: 50% 0; animation: qbFxTail 2s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath d='M11 1C9 6 6 9 5 14M11 1c1 5 3 8 9 12' stroke='%235a8a2a' stroke-width='1.4' fill='none'/%3E%3Cpath d='M11 1c3-1 6 0 7 2-3 1-5 0-7-2z' fill='%2366b33a'/%3E%3Ccircle cx='5' cy='16' r='4.5' fill='%23e8334f'/%3E%3Ccircle cx='15' cy='16' r='4.5' fill='%23d6213e'/%3E%3Ccircle cx='3.6' cy='14.6' r='1.1' fill='%23ffb3c0'/%3E%3C/svg%3E"); }
.fx-butterfly::before { width: 0.48em; height: 0.4em; left: -0.52em; top: -0.22em; animation: qbFxFlap .5s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M12 10C9 2 2 0 1 5s4 7 11 5zM12 10c3-8 10-10 11-5s-4 7-11 5zM12 10c-2 4-7 9-9 7s3-6 9-7zM12 10c2 4 7 9 9 7s-3-6-9-7z' fill='%23b58cff' stroke='%237d4fd0' stroke-width='.8'/%3E%3Cpath d='M12 4v13' stroke='%233b2a5c' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fx-ninja::after { width: 0.5em; height: 0.4em; right: -0.5em; top: 0.02em; transform-origin: 0 50%; animation: qbFxTail 1.2s ease-in-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M0 6c6-2 12-5 19-4-4 3-9 5-14 6zM0 8c6 1 12 3 17 7-6 0-11-3-15-5z' fill='%23e2363e'/%3E%3C/svg%3E"); }
/* 눈송이 · 단풍: 양쪽에서 떨어짐 / 불꽃놀이: 양쪽에서 팡 */
.fx-snow::before, .fx-snow::after { width: 0.3em; height: 0.3em; animation: qbFxFall 3s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cc0f5' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/svg%3E"); }
.fx-snow::before { left: -0.36em; top: -0.2em; } .fx-snow::after { right: -0.3em; top: -0.1em; animation-delay: 1.5s; }
.fx-autumn::before, .fx-autumn::after { width: 0.34em; height: 0.34em; animation: qbFxFall 3.2s linear infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2 5 4-2-1 5 5 1-4 3 2 4-5-1-1 5h-4l-1-5-5 1 2-4-4-3 5-1-1-5 4 2z' fill='%23e8642a'/%3E%3C/svg%3E"); }
.fx-autumn::before { left: -0.38em; top: -0.2em; } .fx-autumn::after { right: -0.32em; top: -0.12em; animation-delay: 1.6s; }
.fx-firework::before, .fx-firework::after { width: 0.46em; height: 0.46em; animation: qbFxPop 1.6s ease-out infinite; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v5M12 17v5M2 12h5M17 12h5M5 5l3.5 3.5M15.5 15.5L19 19M19 5l-3.5 3.5M8.5 15.5L5 19' stroke='%23ff5fa2'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23ffd34d'/%3E%3C/svg%3E"); }
.fx-firework::before { left: -0.5em; top: -0.2em; } .fx-firework::after { right: -0.5em; top: -0.3em; animation-delay: .8s; }
/* 옆 장식이 뒤 글자를 가리지 않게 여백 (위 17개와 같은 이유) */
.fx-whale, .fx-cherry, .fx-ninja { margin-right: 0.7em; }
.fx-butterfly { margin-left: 0.55em; }
.fx-snow, .fx-autumn, .fx-firework { margin-left: 0.42em; margin-right: 0.42em; }
/* 상점 미리보기 판 · 밝은 말풍선은 다크모드여도 바탕이 밝음 → 밝은 바탕용 글자색 */
[data-theme="dark"] :is(.sh-stage:not(.sh-stage--dark), .bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) :is(.fx-hamster, .fx-chick, .fx-pig, .fx-koala, .fx-tiger, .fx-dino, .fx-whale, .fx-butterfly, .fx-ninja, .fx-angel, .fx-devil, .fx-snow, .fx-autumn, .fx-cherry, .fx-firework, .fx-glitch, .fx-retro) { color: var(--fxl); }
[data-theme="dark"] :is(.sh-stage:not(.sh-stage--dark), .bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-choco { background-image: linear-gradient(90deg, #5a2f14, #a8693d, #6b3a1c, #c48a5a, #5a2f14); }

@media (prefers-reduced-motion: reduce) {
  .qb-nick::before, .qb-nick::after { animation: none !important; }
}

/* ── [2026-11-22 새 기능] 닉네임 테두리 (상점 상품, services/effects.js SHOP_FRAMES) ──
   이름을 감싸는 칸(.qb-frame)에 그림 — room-looks.js가 이름 → (이펙트 .qb-nick) → 테두리 .qb-frame 순서로 감쌈
   - 따로 감싸는 이유: 닉네임 이펙트가 같은 칸의 배경(그라데이션 글자) · 앞뒤 장식(귀 · 오리 등)을 써서 한 칸에 그리면 서로 덮음
   - 안쪽은 투명 → 이펙트 글자색이 그대로 보임. 그라데이션 테두리는 ::before에 그리고 가운데를 뚫음(mask), 모서리 장식은 ::after
   - 크기는 글자 크기 비례(em) → 순위 · 대기실 · 정답 공개 등 글자 크기가 달라도 같은 모양
   - 채팅에는 안 넣음 (사용자 결정: 말풍선 스킨과 겹침) · 움직임 줄이기 설정이면 멈춤 */
@keyframes qbNfFlow { to { background-position: 300% 50%; } }
@keyframes qbNfPulse { 50% { box-shadow: 0 0 0 2px #ff7fd3, 0 0 11px #ff4fc0, inset 0 0 3px rgba(255, 79, 192, .35); } }
/* [2026-11-25 수정] 위아래 여백 0.06em → 위 0.2em · 아래 0: 게임 글씨체(Jua)는 한글이 글자 칸 위쪽에 그려져서(아래는 영어 꼬리용 빈칸)
   위아래를 똑같이 주면 글자가 위로 붙어 보였음 (사용자 지적, 재 보니 위 3px · 아래 7px) → 이제 위아래 거의 같음 (5~6px). 테두리 높이는 거의 그대로 */
.qb-frame { position: relative; isolation: isolate; display: inline-block; padding: 0.2em 0.55em 0; border-radius: 999px; line-height: 1.25; vertical-align: middle; white-space: nowrap; }
.qb-frame::before, .qb-frame::after { content: none; position: absolute; pointer-events: none; }
/* 그라데이션 테두리 공통 (골드 · 실버 · 무지개 · 얼음) */
:is(.nf-gold, .nf-silver, .nf-rainbow, .nf-ice)::before {
  content: ''; inset: 0; border-radius: inherit; padding: 2px; background: var(--nf-grad); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.nf-gold { --nf-grad: linear-gradient(90deg, #b8860b, #ffe9a3, #d4a017, #fff3c4, #b8860b); box-shadow: 0 0 6px rgba(240, 190, 60, .45); }
.nf-gold::before { animation: qbNfFlow 4s linear infinite; }
.nf-silver { --nf-grad: linear-gradient(90deg, #7d8799, #ffffff, #aab3c2, #eef1f6, #7d8799); box-shadow: 0 0 5px rgba(160, 170, 190, .45); }
.nf-silver::before { animation: qbNfFlow 5s linear infinite; }
.nf-rainbow { --nf-grad: linear-gradient(90deg, #ff6b6b, #ffb84d, #ffe14d, #5fd38d, #4dabff, #a77bff, #ff6b6b); }
.nf-rainbow::before { animation: qbNfFlow 3s linear infinite; }
.nf-ice { --nf-grad: linear-gradient(90deg, #8fd0ff, #ffffff, #bfe6ff, #6fb6f2, #8fd0ff); box-shadow: 0 0 8px rgba(140, 200, 255, .55); }
.nf-ice::before { animation: qbNfFlow 6s linear infinite; }
.nf-ice::after { content: ''; width: 0.5em; height: 0.5em; top: -0.28em; right: -0.12em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fb6f2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10'/%3E%3C/svg%3E"); }
/* 네온 */
.nf-neon { box-shadow: 0 0 0 2px #ff4fc0, 0 0 7px #ff4fc0, inset 0 0 3px rgba(255, 79, 192, .3); animation: qbNfPulse 2.4s ease-in-out infinite; }   /* 안쪽 빛은 약하게 — 진하면 글자가 뿌옇게 보임 */
/* 꽃: 분홍 테 + 양 끝 꽃 */
.nf-flower { box-shadow: 0 0 0 2px #ffb3cf; }
.nf-flower::after { content: ''; inset: -0.32em -0.38em; background: no-repeat; background-size: 0.62em 0.62em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ff8fb8'%3E%3Cellipse cx='12' cy='6' rx='3.4' ry='5'/%3E%3Cellipse cx='12' cy='18' rx='3.4' ry='5'/%3E%3Cellipse cx='6' cy='12' rx='5' ry='3.4'/%3E%3Cellipse cx='18' cy='12' rx='5' ry='3.4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.8' fill='%23ffe08a'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ffb7d0'%3E%3Cellipse cx='12' cy='6' rx='3.4' ry='5'/%3E%3Cellipse cx='12' cy='18' rx='3.4' ry='5'/%3E%3Cellipse cx='6' cy='12' rx='5' ry='3.4'/%3E%3Cellipse cx='18' cy='12' rx='5' ry='3.4'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.8' fill='%23fff3c4'/%3E%3C/svg%3E");
  background-position: left top, right bottom; }
/* 픽셀: 네모 계단 테 */
.nf-pixel { border-radius: 0; margin: 0 2px; box-shadow: 0 -2px 0 #2b2340, 0 2px 0 #2b2340, -2px 0 0 #2b2340, 2px 0 0 #2b2340, 3px 3px 0 1px rgba(43, 35, 64, .25); }
[data-theme="dark"] .nf-pixel { box-shadow: 0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff, 3px 3px 0 1px rgba(255, 255, 255, .2); }
/* 리본: 분홍 테 + 위 가운데 리본 */
.nf-ribbon { box-shadow: 0 0 0 2px #ff8fb8; }
.nf-ribbon::after { content: ''; width: 0.9em; height: 0.5em; top: -0.36em; left: 50%; margin-left: -0.45em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 20'%3E%3Cpath d='M18 10C12 2 3 1 2 6s4 11 16 4zM18 10c6-8 15-9 16-4s-4 11-16 4z' fill='%23ff6fa5' stroke='%23d94a83' stroke-width='1.2'/%3E%3Ccircle cx='18' cy='10' r='3.2' fill='%23ffb3cf' stroke='%23d94a83' stroke-width='1.2'/%3E%3C/svg%3E"); }
/* 별: 금색 점선 테 + 양 끝 별 */
.nf-star { box-shadow: none; outline: 2px dotted #f0b400; outline-offset: 0; }
.nf-star::after { content: ''; inset: -0.2em -0.5em; background: no-repeat; background-size: 0.5em 0.5em; background-position: left center, right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.2 4.6 1.5 6.8L12 16.9 5.9 20.4l1.5-6.8L2.2 9l6.9-.7z' fill='%23ffc61a' stroke='%23c98a00' stroke-width='1.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.2 4.6 1.5 6.8L12 16.9 5.9 20.4l1.5-6.8L2.2 9l6.9-.7z' fill='%23ffc61a' stroke='%23c98a00' stroke-width='1.2'/%3E%3C/svg%3E"); }
/* 왕관: 보라 테 + 왼쪽 위 모서리 왕관 */
.nf-crown { box-shadow: 0 0 0 2px #9b6cf0, 0 0 6px rgba(155, 108, 240, .4); }
.nf-crown::after { content: ''; width: 0.66em; height: 0.52em; top: -0.42em; left: -0.18em; transform: rotate(-22deg); background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 6l5 4 5-8 5 8 5-4-2 12H4z' fill='%23f0b400' stroke='%23a87400' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* ── [2026-11-22 추가 2차] 닉네임 테두리 10개 더 (사용자 요청: 20개) — 하트 · 구름 · 불꽃 · 넝쿨 · 캔디 · 우주 · 고양이 귀 · 날개 · 레이스 · 전기 ──
   만드는 법은 위 10개와 같음: 그라데이션 테는 ::before(가운데 뚫음), 모서리 장식은 ::after */
@keyframes qbNfFlicker { 0%, 100% { box-shadow: 0 0 6px rgba(255, 110, 20, .6); } 50% { box-shadow: 0 0 11px rgba(255, 150, 40, .85); } }
@keyframes qbNfZap { 0%, 88%, 100% { opacity: 1; } 90% { opacity: .3; } 94% { opacity: 1; } 96% { opacity: .5; } }
:is(.nf-fire, .nf-candy, .nf-galaxy)::before {
  content: ''; inset: 0; border-radius: inherit; padding: 2px; background: var(--nf-grad); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* 하트: 분홍 테 + 양 끝 하트 */
.nf-heart { box-shadow: 0 0 0 2px #ff7fae, 0 0 6px rgba(255, 127, 174, .4); }
.nf-heart::after { content: ''; inset: -0.22em -0.48em; background: no-repeat; background-size: 0.46em 0.42em; background-position: left center, right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15.5 1.5 12 1.5 7.5A5 5 0 0 1 12 5a5 5 0 0 1 10.5 2.5C22.5 12 19 15.5 12 21z' fill='%23ff4f8b' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15.5 1.5 12 1.5 7.5A5 5 0 0 1 12 5a5 5 0 0 1 10.5 2.5C22.5 12 19 15.5 12 21z' fill='%23ff86b0' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E"); }
/* 구름: 하얀 몽실 테 + 위쪽 구름 */
.nf-cloud { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px #cfe2ff, 0 3px 8px rgba(110, 150, 220, .3); }
.nf-cloud::after { content: ''; width: 0.9em; height: 0.46em; top: -0.34em; right: -0.24em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M6 15a5 5 0 0 1 1-9.9A7 7 0 0 1 20 4a5 5 0 0 1 7 4 4 4 0 0 1-1 7z' fill='white' stroke='%23bcd4ff' stroke-width='1.2'/%3E%3C/svg%3E"); }
/* 불꽃: 주황 그라데이션 테 + 일렁이는 빛 + 오른쪽 위 불꽃 */
.nf-fire { --nf-grad: linear-gradient(90deg, #ff3d00, #ffb300, #ff6a00, #ffd34d, #ff3d00); animation: qbNfFlicker 1.4s ease-in-out infinite; }
.nf-fire::before { animation: qbNfFlow 2s linear infinite; }
.nf-fire::after { content: ''; width: 0.5em; height: 0.56em; top: -0.42em; right: -0.12em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M10 1c1 5 7 7 7 14a7 7 0 0 1-14 0c0-4 3-5 3-9 2 1 3 3 3 5 1-3 0-6 1-10z' fill='%23ff6a00'/%3E%3Cpath d='M10 12c1 2 3 3 3 6a3 3 0 0 1-6 0c0-2 2-3 3-6z' fill='%23ffd34d'/%3E%3C/svg%3E"); }
/* 넝쿨: 초록 테 + 양 모서리 잎 */
.nf-leaf { box-shadow: 0 0 0 2px #6cc35a; }
.nf-leaf::after { content: ''; inset: -0.3em -0.34em; background: no-repeat; background-size: 0.56em 0.56em; background-position: left top, right bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 9 11 4 21 3c-1 10-6 17-17 17z' fill='%237ccf5a'/%3E%3Cpath d='M4 20L15 9' stroke='%234f9a33' stroke-width='1.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4C20 15 13 20 3 21c1-10 6-17 17-17z' fill='%2366b84a'/%3E%3Cpath d='M20 4L9 15' stroke='%234f9a33' stroke-width='1.5'/%3E%3C/svg%3E"); }
/* 캔디: 빨강 · 하양 사선 줄무늬 테 */
.nf-candy { --nf-grad: repeating-linear-gradient(45deg, #ff4d6d 0 5px, #fff 5px 10px); }
.nf-candy::before { padding: 3px; background-size: auto; }
/* 우주: 보라 · 파랑 흐르는 테 + 별 */
.nf-galaxy { --nf-grad: linear-gradient(90deg, #5a3fd8, #d83fbf, #3f7fd8, #8b5cf6, #5a3fd8); box-shadow: 0 0 8px rgba(140, 90, 240, .45); }
.nf-galaxy::before { animation: qbNfFlow 4s linear infinite; }
.nf-galaxy::after { content: ''; width: 0.42em; height: 0.42em; top: -0.26em; left: -0.14em; animation: qbFxTw 1.8s ease-in-out infinite; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 7.8L22 12l-7.8 2.2L12 22l-2.2-7.8L2 12l7.8-2.2z' fill='%23ffd6f5'/%3E%3C/svg%3E"); }
/* 고양이 귀: 보라 테 위 양쪽 귀 */
.nf-cat { box-shadow: 0 0 0 2px #8b6cf0; }
.nf-cat::after { content: ''; inset: -0.36em 0.1em auto; height: 0.42em; background: no-repeat; background-size: 0.42em 0.42em; background-position: left top, right top;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 16L4 1l11 15z' fill='%238b6cf0'/%3E%3Cpath d='M4.5 13.5l1-8.5 6 8.5z' fill='%23ffb7d0'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M15 16L12 1 1 16z' fill='%238b6cf0'/%3E%3Cpath d='M11.5 13.5l-1-8.5-6 8.5z' fill='%23ffb7d0'/%3E%3C/svg%3E"); }
/* 날개: 금테 + 양옆 하얀 날개 */
.nf-wings { box-shadow: 0 0 0 2px #e8b93a, 0 0 6px rgba(232, 185, 58, .45); margin: 0 0.55em; }
.nf-wings::after { content: ''; inset: -0.1em -0.62em; background: no-repeat; background-size: 0.6em 0.6em; background-position: left center, right center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 12C17 4 8 3 1 5c4 1 6 3 7 5-3 0-5 1-6 3 3 0 6 0 8 2-2 1-3 3-3 5 6-1 12-4 16-8z' fill='white' stroke='%23d9b24a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 12C7 4 16 3 23 5c-4 1-6 3-7 5 3 0 5 1 6 3-3 0-6 0-8 2 2 1 3 3 3 5-6-1-12-4-16-8z' fill='white' stroke='%23d9b24a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* 레이스: 분홍 점선 이중 테 */
.nf-lace { box-shadow: 0 0 0 2px #ffd1e3, 0 0 0 4px #fff; outline: 2px dotted #ff9cc2; outline-offset: 3px; }
/* 전기: 노랑 점선 테가 지직 + 양 끝 번개 */
.nf-electric { outline: 2px dashed #ffcf1a; outline-offset: 0; box-shadow: 0 0 8px rgba(255, 207, 26, .55); animation: qbNfZap 2.6s linear infinite; }
.nf-electric::after { content: ''; inset: -0.24em -0.46em; background: no-repeat; background-size: 0.42em 0.5em; background-position: left top, right bottom;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z' fill='%23ffd400' stroke='%23a87400' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2L4 14h7l-1 8 9-12h-7z' fill='%23ffd400' stroke='%23a87400' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* ── [2026-11-22 새 기능] 운영자 전용 — 칭호(.qb-title--gm, services/badges.js HIDDEN_TITLES) · 테두리(.nf-gm, SHOP_FRAMES hidden) ──
   상점 · 칭호 고르기 · 훈장 목록에 안 나옴. DB로 관리자 계정에만 줌. 이름은 사용자가 바꿀 예정
   모양: 진한 남보라 바탕 + 금빛 글자 · 금테 (다른 칭호와 확실히 구별되는 "공식" 느낌) */
.qb-title--gm { background: linear-gradient(90deg, #241a4a, #4b2fb0, #241a4a); background-size: 200% 100%; color: #ffe08a; box-shadow: 0 0 0 1px #f0c94a inset, 0 0 6px rgba(240, 201, 74, .35); animation: qbFxShimmer 3s linear infinite; letter-spacing: .02em; }
.nf-gm { box-shadow: 0 0 0 2px #f0c94a, 0 0 0 4px #4b2fb0, 0 0 10px rgba(124, 92, 240, .55); }
.nf-gm::after { content: ''; width: 0.62em; height: 0.62em; top: -0.34em; right: -0.3em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5z' fill='%234b2fb0' stroke='%23f0c94a' stroke-width='1.6'/%3E%3Cpath d='M8 12l3 3 5-6' fill='none' stroke='%23ffe08a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* 게임 중 참가자 알약(.game-participant-tag)에 테두리가 있으면 알약 바탕 · 테를 빼고 테두리만 (room-looks.js가 data-qb-frame을 붙임) */
.game-participant-tag[data-qb-frame] { background: transparent !important; box-shadow: none !important; color: var(--qb-ink) !important; padding: 0 !important; }   /* [2026-11-22] color: 내 칸(.me)은 원래 보라 바탕 + 흰 글자라 바탕만 빼면 글자가 안 보였음(사용자 제보) */
/* [2026-11-22] 테두리 자체를 다른 참가자 칸과 같은 크기 · 같은 연보라 바탕의 알약으로 — 바탕이 비어 혼자 다른 모양처럼 보였음(사용자 지적) */
.game-participant-tag[data-qb-frame] > .qb-frame { padding: 6px 12px; line-height: inherit; background: var(--qb-pale); vertical-align: top; }
/* 대기실 참가자 이름 · 실시간 순위 · 결과 순위 이름 칸은 긴 이름을 "…"로 자르려고 넘친 부분을 숨겨서(overflow: hidden) 테두리 위아래가 잘렸음
   → 테두리가 있는 칸만 넘쳐도 보이게 + 위아래 여백 (room-looks.js가 data-qb-frame을 붙임) */
:is(.participant-name, .player-name-widget, .player-name)[data-qb-frame] { overflow: visible; padding-top: 3px; padding-bottom: 3px; }
@media (prefers-reduced-motion: reduce) { .qb-frame, .qb-frame::before { animation: none !important; } }

/* ── [2026-11-21 새 기능] 첫 글자 동그라미 → 대표 훈장 메달 (room-looks.js setAvatar · 마이페이지 account.js) ──
   동그라미 바탕색을 지우고 메달 그림(badge-icon.js)을 가운데에. 메달이 동그라미보다 살짝 커서(1.1배) 넘쳐도 보이게 */
.qb-avatar-medal { background: transparent !important; box-shadow: none !important; overflow: visible !important; display: flex; align-items: center; justify-content: center; }
.qb-avatar-medal .qb-medal { flex: none; }

/* ── [2026-11-21 새 기능] 채팅 말풍선 꾸미기 (상점 상품) ──
   room-looks.js가 게임방 채팅 줄(.game-chat-line)에 .bb-* 를 붙임 · 상점 미리보기(.sh-bubble · .sh-pv__chat)도 같은 클래스.
   바뀐 순서 (모두 사용자 결정, 배포 전이라 산 사람 없음 — 관리자 계정 것만 바꿔 넣음):
     ① CSS 말풍선 5개(구름 · 하트 · 별밤 · 벚꽃 · 골드) → ② 사용자 그림(PNG) 말풍선 5개 → ③ 그라데이션 그림 그리드에서 자른 PNG 31개
     → ④ [2026-11-22] 다시 CSS로만 그린 말풍선 24종 (지금). PNG는 해상도가 낮아 뿌옇고, 광택이 강해 글자가 묻히고, 사이트 디자인과 결이 달라서
        사용자가 시안(https://claude.ai/artifact/D1yACiYhEbNPmvbfG8Ry2N)을 보고 "이걸로 다 바꿔줘". 그림 파일(public/images/bubbles/)은 삭제
   - 크기 · 모서리는 room.css .game-chat-line 그대로 (내 채팅 .mine은 꼬리 모서리가 오른쪽). 여기서는 바탕 · 글자색 · 테두리 빛 · 장식만 바꿈
   - 선택자 :is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-이름 = 게임방 내 말풍선 기본색(.game-chat-line.mine, room.css)보다 뒤에 불러와서 같은 우선순위로 덮어씀
   - 내 채팅(.mine): 모서리 장식(::after)과 노을의 해가 왼쪽으로 옮겨 감 (꼬리가 오른쪽이라서)
   - 움직임은 오로라 · 네온 · 골드 · 홀로그램 4종만, 움직임 줄이기 설정이면 멈춤
   - 새로 넣을 때: 여기 모양 + services/effects.js SHOP_BUBBLES (id는 bb-영어소문자) + 밝은 바탕이면 아래 다크모드 :is 목록 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line)[class*="bb-"] { position: relative; isolation: isolate; }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line)[class*="bb-"]::before, :is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line)[class*="bb-"]::after { position: absolute; pointer-events: none; background-repeat: no-repeat; background-position: center; background-size: contain; }
.game-chat-line[class*="bb-"] .nickname { color: inherit; }
.pp-chat-line[class*="bb-"] .pp-chat-name { color: inherit; }   /* [2026-11-22] 팝업 모드 채팅(room-popup.js)도 같은 말풍선 — 선택자에 .pp-chat-line 추가 */
/* [2026-11-22] 상점 미리보기 창 채팅 줄(.sh-pv__chat)은 게임방 채팅 줄과 달리 모서리 · 여백이 없어서 말풍선이 네모로 보였음(사용자 제보) → 게임방과 같게 */
.sh-pv__chat[class*="bb-"] { border-radius: 18px 18px 18px 6px; padding: 9px 14px; }
/* 1 솜사탕 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-cotton{background:linear-gradient(135deg,#ffd6ec 0%,#ead9ff 55%,#cfe7ff 100%);color:#5a2a6e;box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -6px 12px rgba(255,255,255,.4),0 0 0 1.5px rgba(255,255,255,.9),0 3px 10px rgba(214,140,200,.28)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-cotton::after{content:"";width:30px;height:15px;top:-8px;right:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M6 15a5 5 0 0 1 1-9.9A7 7 0 0 1 20 4a5 5 0 0 1 7 4 4 4 0 0 1-1 7z' fill='white' stroke='%23f1c9ea' stroke-width='1'/%3E%3C/svg%3E")}
:is(.game-chat-line, .pp-chat-line).mine.bb-cotton::after{right:auto;left:12px;transform:scaleX(-1)}
/* 2 노을 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-sunset{background:radial-gradient(circle at 90% 135%,#fff3b0 0 15px,rgba(255,230,140,.6) 16px,transparent 26px),linear-gradient(160deg,#ffd08f 0%,#ff9d8c 48%,#c78dff 100%);color:#4a1d3f;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 0 0 1px rgba(255,255,255,.55),0 3px 10px rgba(255,140,140,.3)}
:is(.game-chat-line, .pp-chat-line).mine.bb-sunset{background:radial-gradient(circle at 10% 135%,#fff3b0 0 15px,rgba(255,230,140,.6) 16px,transparent 26px),linear-gradient(200deg,#ffd08f 0%,#ff9d8c 48%,#c78dff 100%)}
/* 3 오로라 (움직임) */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-aurora{background:radial-gradient(ellipse 60% 120% at 15% 0%,rgba(80,255,190,.55),transparent 60%),radial-gradient(ellipse 60% 140% at 65% 0%,rgba(150,110,255,.6),transparent 62%),radial-gradient(ellipse 50% 100% at 100% 100%,rgba(60,180,255,.5),transparent 60%),#101a3c;background-size:180% 100%,180% 100%,100% 100%,auto;color:#f2fbff;box-shadow:inset 0 1px 0 rgba(200,255,240,.35),0 0 0 1px rgba(150,220,255,.35),0 0 14px rgba(90,220,200,.22);animation:qbBbAurora 7s ease-in-out infinite alternate}
@keyframes qbBbAurora{to{background-position:100% 0,0 0,0 0,0 0}}
/* 4 바다 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-ocean{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M0 5c5-4 10-4 15 0s10 4 15 0 10-4 15 0 10 4 15 0v5H0z' fill='%2389d6f7'/%3E%3Cpath d='M0 8c5-3 10-3 15 0s10 3 15 0 10-3 15 0 10 3 15 0v2H0z' fill='%2350b8ec'/%3E%3C/svg%3E") repeat-x left bottom/48px 8px,linear-gradient(180deg,#effaff,#c6ebff);color:#0b4566;padding-bottom:13px;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #a9dcf7,0 3px 10px rgba(80,170,230,.22)}
/* 5 민트초코 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-mint{background:radial-gradient(rgba(122,74,46,.38) 1.3px,transparent 1.8px) 3px 4px/24px 18px,radial-gradient(rgba(122,74,46,.3) 1.1px,transparent 1.6px) 15px 12px/24px 18px,linear-gradient(#d9fbef,#b9ecd9);color:#173f33;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 0 1.5px #8fdcc0}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-mint :is(.nickname, b, .sh-pv__chat-name){color:#5a3018}
/* 6 레몬 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-lemon{background:repeating-linear-gradient(-45deg,rgba(255,255,255,.4) 0 6px,transparent 6px 12px),linear-gradient(#fff7b0,#ffe066);color:#5a4500;box-shadow:inset 0 1px 0 #fffbe0,0 0 0 1.5px #f2cb33,0 3px 8px rgba(242,203,51,.3)}
/* 7 딸기우유 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-straw{background:radial-gradient(#fff 2px,transparent 2.6px) 0 0/14px 14px,radial-gradient(#fff 2px,transparent 2.6px) 7px 7px/14px 14px,linear-gradient(#ffe6ee,#ffd0df);color:#8a2450;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #ffb3c9}
/* 8 밤하늘 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-night{background:radial-gradient(1.2px 1.2px at 12% 30%,#fff,transparent),radial-gradient(1px 1px at 30% 75%,#fff,transparent),radial-gradient(1.4px 1.4px at 55% 25%,#fff,transparent),radial-gradient(1px 1px at 72% 70%,#fff,transparent),radial-gradient(1.2px 1.2px at 88% 40%,#fff,transparent),radial-gradient(1px 1px at 42% 50%,#cfc6ff,transparent),linear-gradient(160deg,#1c2150,#2d1d58);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 1px rgba(170,160,255,.4)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-night::after{content:"";width:16px;height:16px;top:-7px;right:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M13 2a8 8 0 1 0 5 13A7 7 0 0 1 13 2z' fill='%23ffe9a3'/%3E%3C/svg%3E");filter:drop-shadow(0 0 4px rgba(255,230,150,.8))}
:is(.game-chat-line, .pp-chat-line).mine.bb-night::after{right:auto;left:10px}
/* 9 네온 (움직임) */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-neon{background:#140a22;color:#fff;box-shadow:0 0 0 1.5px #ff4fc0,0 0 10px rgba(255,79,192,.7),inset 0 0 12px rgba(255,79,192,.35);animation:qbBbNeon 2.6s ease-in-out infinite}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-neon :is(.nickname, b, .sh-pv__chat-name){color:#ff9be0;text-shadow:0 0 6px rgba(255,79,192,.9)}
@keyframes qbBbNeon{50%{box-shadow:0 0 0 1.5px #ff7fd3,0 0 16px rgba(255,79,192,.95),inset 0 0 14px rgba(255,79,192,.45)}}
/* 10 골드 (움직임) */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-gold{background:linear-gradient(110deg,transparent 40%,rgba(255,255,255,.75) 50%,transparent 60%) 0 0/260% 100%,linear-gradient(135deg,#fff7d6,#ffe39a 50%,#fff4cc);color:#5c4100;box-shadow:inset 0 1px 0 #fffbe8,0 0 0 1.5px #e7b93a,0 3px 10px rgba(231,185,58,.35);animation:qbBbShine 3.2s linear infinite}
@keyframes qbBbShine{from{background-position:120% 0,0 0}to{background-position:-120% 0,0 0}}
/* 11 홀로그램 (움직임) */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-holo{background:linear-gradient(120deg,#ffd1f4,#d1e8ff,#d6ffe8,#fff3c4,#ffd1f4) 0 0/300% 100%;color:#3a2a5c;box-shadow:inset 0 1px 0 #fff,inset 0 -6px 12px rgba(255,255,255,.5),0 0 0 1.5px rgba(255,255,255,.95),0 3px 10px rgba(170,140,255,.25);animation:qbBbHolo 6s linear infinite}
@keyframes qbBbHolo{to{background-position:300% 0}}
/* 12 사이버 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-cyber{background:linear-gradient(rgba(0,255,140,.13) 1px,transparent 1px) 0 0/100% 8px,linear-gradient(90deg,rgba(0,255,140,.13) 1px,transparent 1px) 0 0/8px 100%,linear-gradient(160deg,#052016,#0a2e20);color:#c9ffe3;box-shadow:0 0 0 1px #19e68c,0 0 10px rgba(25,230,140,.35),inset 0 0 10px rgba(25,230,140,.15)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-cyber :is(.nickname, b, .sh-pv__chat-name){color:#5dffb0}
/* 13 라떼 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-latte{background:radial-gradient(ellipse 120% 70% at 50% -30%,#fffdf8 60%,transparent 62%),linear-gradient(#f8ead5,#ecd6b6);color:#5a3a1e;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #dcc29d,0 3px 8px rgba(150,110,60,.18)}
/* 14 벚꽃 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-sakura{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%23ffc2d6' opacity='.7'%3E%3Cpath d='M8 6c2 2 3 5 0 8-3-3-2-6 0-8z'/%3E%3Cpath d='M40 4c2 2 3 5 0 8-3-3-2-6 0-8z' transform='rotate(40 40 8)'/%3E%3Cpath d='M26 26c2 2 3 5 0 8-3-3-2-6 0-8z' transform='rotate(-30 26 30)'/%3E%3Cpath d='M52 28c2 2 3 5 0 8-3-3-2-6 0-8z' transform='rotate(70 52 32)'/%3E%3C/g%3E%3C/svg%3E") 0 0/60px 40px,linear-gradient(#fff6f9,#ffe4ee);color:#8a2450;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #ffc6da}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-sakura::after{content:"";width:16px;height:16px;top:-8px;right:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ff8fb8'%3E%3Cellipse cx='12' cy='6' rx='3.2' ry='5'/%3E%3Cellipse cx='12' cy='18' rx='3.2' ry='5'/%3E%3Cellipse cx='6' cy='12' rx='5' ry='3.2'/%3E%3Cellipse cx='18' cy='12' rx='5' ry='3.2'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23ffe08a'/%3E%3C/svg%3E")}
:is(.game-chat-line, .pp-chat-line).mine.bb-sakura::after{right:auto;left:12px}
/* 15 눈꽃 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-snow{background:radial-gradient(circle at 10px 100%,#fff 7px,transparent 7.5px) 0 100%/20px 9px repeat-x,linear-gradient(#f5fbff,#d9eeff);color:#1f4f80;padding-bottom:12px;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #bcdfff,0 3px 10px rgba(110,170,230,.2)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-snow::after{content:"";width:17px;height:17px;top:-8px;right:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fb6f2' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17l17.4-10M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E")}
:is(.game-chat-line, .pp-chat-line).mine.bb-snow::after{right:auto;left:12px}
/* 16 피크닉 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-picnic{background:linear-gradient(90deg,rgba(255,110,110,.2) 50%,transparent 0) 0 0/16px 16px,linear-gradient(rgba(255,110,110,.2) 50%,transparent 0) 0 0/16px 16px,#fffaf6;color:#7a2b2b;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #ffbcbc}
/* 17 노트 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-note{border-radius:6px 6px 6px 2px;background:linear-gradient(90deg,transparent 7px,#ff9a9a 7px 8.5px,transparent 8.5px),repeating-linear-gradient(#fffef4 0 21px,#cfe1ff 21px 22px) 0 9px/100% 22px;background-color:#fffef4;line-height:22px;color:#2b2b45;padding-left:16px;box-shadow:0 0 0 1px #e8e3c8,0 2px 5px rgba(0,0,0,.1)}
:is(.game-chat-line, .pp-chat-line).mine.bb-note{border-radius:6px 6px 2px 6px}
/* 18 젤리 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-jelly{background:radial-gradient(ellipse 45% 35% at 22% 18%,rgba(255,255,255,.9),transparent 70%),linear-gradient(180deg,#a8f2ff,#5ad1ff);color:#06374e;box-shadow:inset 0 -4px 8px rgba(0,80,140,.25),inset 0 2px 0 rgba(255,255,255,.95),0 3px 0 #2fa9d9,0 6px 12px rgba(47,169,217,.35)}
/* 19 갤럭시 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-galaxy{background:radial-gradient(1px 1px at 20% 35%,#fff,transparent),radial-gradient(1.3px 1.3px at 60% 22%,#fff,transparent),radial-gradient(1px 1px at 82% 68%,#fff,transparent),radial-gradient(ellipse 55% 90% at 28% 40%,rgba(255,100,200,.5),transparent 70%),radial-gradient(ellipse 55% 90% at 78% 60%,rgba(90,140,255,.55),transparent 70%),#1b0f3f;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 0 1px rgba(200,170,255,.4),0 0 12px rgba(160,110,255,.25)}
/* 20 무지개 테두리 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-rainbow{border:2px solid transparent;padding:7px 12px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#ff6b6b,#ffb84d,#ffe14d,#5fd38d,#4dabff,#a77bff) border-box;color:#3a2a5c;box-shadow:0 3px 10px rgba(167,123,255,.25)}
/* 21 크리스털 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-crystal{background:conic-gradient(from 210deg at 72% 40%,#eef8ff,#c6e7ff,#f7fcff,#b8deff,#e3f3ff,#eef8ff);color:#1f3f73;box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.7),0 0 0 1.5px #9fd0ff,0 3px 12px rgba(120,180,255,.3)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-crystal::after{content:"";width:15px;height:15px;top:-7px;right:14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 8.4L23 12l-8.4 2.6L12 23l-2.6-8.4L1 12l8.4-2.6z' fill='white' stroke='%238cc6ff' stroke-width='1.2'/%3E%3C/svg%3E")}
:is(.game-chat-line, .pp-chat-line).mine.bb-crystal::after{right:auto;left:14px}
/* 22 불꽃 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-fire{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 12c2-4 4-6 5-10 1 3 3 5 4 4s1-4 3-6c1 4 4 6 4 9 1-2 2-3 4-5 0 3 3 5 3 8 1-2 3-3 4-6 1 3 4 4 4 6 1-1 2-2 3-4 1 2 2 3 2 4z' fill='%23ffb02e' opacity='.85'/%3E%3C/svg%3E") repeat-x left bottom/36px 10px,linear-gradient(0deg,#ff6a00,#d4140f 55%,#7d0909);color:#fff;padding-bottom:12px;box-shadow:inset 0 1px 0 rgba(255,200,120,.45),0 0 0 1px rgba(255,190,90,.55),0 0 12px rgba(255,100,0,.4)}
/* 23 잎새 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-leaf{background:linear-gradient(160deg,#efffe5,#c9f0b2);color:#24501a;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #a6dc86}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-leaf::after{content:"";width:18px;height:18px;top:-9px;right:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 9 11 4 21 3c-1 10-6 17-17 17z' fill='%237ccf5a'/%3E%3Cpath d='M4 20L15 9' stroke='%234f9a33' stroke-width='1.5'/%3E%3C/svg%3E")}
:is(.game-chat-line, .pp-chat-line).mine.bb-leaf::after{right:auto;left:10px;transform:scaleX(-1)}
/* 24 레트로 픽셀 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-pixel{border-radius:0;background:#fff;color:#1d1d1d;margin:3px;box-shadow:3px 0 0 #1d1d1d,-3px 0 0 #1d1d1d,0 3px 0 #1d1d1d,0 -3px 0 #1d1d1d,3px 6px 0 rgba(0,0,0,.18),6px 3px 0 rgba(0,0,0,.18)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-pixel :is(.nickname, b, .sh-pv__chat-name){color:#e2363e}
[data-theme="dark"] :is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-pixel{box-shadow:3px 0 0 #fff,-3px 0 0 #fff,0 3px 0 #fff,0 -3px 0 #fff,3px 6px 0 rgba(255,255,255,.15),6px 3px 0 rgba(255,255,255,.15)}
/* [2026-11-22 추가] 6종 더 — 사용자 요청으로 30종 맞춤 (25 수박 · 26 하트 · 27 데님 · 28 코믹 · 29 별빛 · 30 초코) */
/* 25 수박: 빨간 과육 + 씨 + 초록 껍질 테두리 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-melon{background:radial-gradient(ellipse 1.8px 2.8px at 50% 50%,rgba(60,20,20,.32) 98%,transparent) 6px 4px/40px 24px,radial-gradient(ellipse 1.8px 2.8px at 50% 50%,rgba(60,20,20,.26) 98%,transparent) 26px 16px/40px 24px,linear-gradient(#ff8796,#ff5f74);color:#fff;text-shadow:0 1px 1px rgba(150,20,40,.45);box-shadow:inset 0 0 0 2.5px #f2ffe6,0 0 0 3px #3fae4c,0 3px 8px rgba(63,174,76,.25)}
/* 26 하트: 분홍 + 모서리 하트 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-heart{background:linear-gradient(135deg,#ffe8f1,#ffc7dc);color:#8a1f4f;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #ff9cc4,0 3px 10px rgba(255,120,170,.25)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-heart::after{content:"";width:18px;height:16px;top:-8px;right:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15.5 1.5 12 1.5 7.5A5 5 0 0 1 12 5a5 5 0 0 1 10.5 2.5C22.5 12 19 15.5 12 21z' fill='%23ff4f8b' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");transform:rotate(12deg)}
:is(.game-chat-line, .pp-chat-line).mine.bb-heart::after{right:auto;left:10px;transform:rotate(-12deg)}
/* 27 데님: 청바지 결 + 노란 바느질선 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-denim{background:repeating-linear-gradient(45deg,rgba(255,255,255,.06) 0 2px,transparent 2px 4px),repeating-linear-gradient(-45deg,rgba(0,0,0,.06) 0 2px,transparent 2px 4px),linear-gradient(#4677b8,#2e5590);color:#fff;outline:1.5px dashed rgba(255,214,130,.9);outline-offset:-5px;box-shadow:0 0 0 1px #24467a,0 3px 8px rgba(36,70,122,.3)}
/* 28 코믹: 만화책 망점 + 굵은 테두리 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-comic{background:radial-gradient(rgba(0,0,0,.13) 1px,transparent 1.4px) 0 0/6px 6px,#fff36b;color:#1d1d1d;box-shadow:0 0 0 2px #1d1d1d,3px 3px 0 2px #1d1d1d}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-comic :is(.nickname, b, .sh-pv__chat-name){color:#e2363e}
:is(.game-chat-line, .pp-chat-line).mine.bb-comic{box-shadow:0 0 0 2px #1d1d1d,-3px 3px 0 2px #1d1d1d}
[data-theme="dark"] :is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-comic{box-shadow:0 0 0 2px #1d1d1d,3px 3px 0 2px #fff36b}
/* 29 별빛: 따뜻한 노랑 + 작은 별 무늬 + 모서리 별 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-star{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cg fill='%23ffd65a' opacity='.55'%3E%3Cpath d='M8 4l1.2 3 3 .3-2.3 2 .7 3-2.6-1.6-2.6 1.6.7-3-2.3-2 3-.3z'/%3E%3Cpath d='M34 18l1 2.4 2.5.2-1.9 1.6.6 2.4-2.2-1.3-2.2 1.3.6-2.4-1.9-1.6 2.5-.2z'/%3E%3C/g%3E%3C/svg%3E") 0 0/48px 32px,linear-gradient(135deg,#fffae0,#ffeaa8);color:#5c4100;box-shadow:inset 0 1px 0 #fff,0 0 0 1.5px #f5c842,0 3px 10px rgba(245,200,66,.3)}
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-star::after{content:"";width:18px;height:18px;top:-9px;right:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.2 4.6 1.5 6.8L12 16.9 5.9 20.4l1.5-6.8L2.2 9l6.9-.7z' fill='%23ffc61a' stroke='%23c98a00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");filter:drop-shadow(0 0 3px rgba(255,200,40,.7))}
:is(.game-chat-line, .pp-chat-line).mine.bb-star::after{right:auto;left:10px}
/* 30 초코: 밀크초콜릿 + 위에서 진한 초코가 흘러내림 */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-choco{background:radial-gradient(ellipse 5px 7px at 50% 0,#4a2814 96%,transparent) 3px 4px/30px 11px repeat-x,radial-gradient(ellipse 4px 4px at 50% 0,#4a2814 96%,transparent) 18px 4px/30px 8px repeat-x,linear-gradient(#4a2814 0 5px,transparent 5px),linear-gradient(#9a6440,#78482a);color:#fff7ee;padding-top:13px;box-shadow:inset 0 -2px 4px rgba(0,0,0,.2),0 0 0 1px #4a2814,0 3px 8px rgba(74,40,20,.3)}
@media (prefers-reduced-motion: reduce) { :is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line)[class*="bb-"] { animation: none !important; } }

/* [2026-11-22 삭제] 입장 알림(화면 위쪽 작은 띠 .qb-entry · .en-* 3종) — 사용자 결정으로 입장 효과(화면 전체 연출)로 바뀌어
   모양은 public/css/entry-fx.css, 그리기는 public/js/entry-fx.js로 옮김 */
/* 밝은 말풍선(바탕이 밝은 CSS 말풍선 — 새로 넣으면 여기 :is에 추가)은 다크모드에서도 바탕이 밝아서 다크모드용 연한 글자색을 원래 색으로 되돌림 */
/* [2026-11-22] 기본 닉네임(lv-basic)은 다크모드에서 흰 글자라 밝은 말풍선 위에서 안 보였음(상점 미리보기에서 발견, 게임방 채팅도 같음) → 말풍선 글자색을 따름 */
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .lv-basic { color: inherit; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .lv-silver { background-image: linear-gradient(90deg, #5b6577, #b4bccb 35%, #5b6577 55%, #8a93a5 80%, #5b6577); }   /* [2026-11-22] 밝은 말풍선 위에서는 밝은 바탕용 은빛 */
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-cat { color: #5b3fb5; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-stardust { color: #4a2f86; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-moon { color: #5b4aa8; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .lv-bronze { color: #a35a2a; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-bolt { color: #8a6400; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-ice { color: #1f78b4; }
[data-theme="dark"] :is(.bb-cotton, .bb-sunset, .bb-ocean, .bb-mint, .bb-lemon, .bb-straw, .bb-gold, .bb-holo, .bb-latte, .bb-sakura, .bb-snow, .bb-picnic, .bb-note, .bb-jelly, .bb-rainbow, .bb-crystal, .bb-leaf, .bb-pixel, .bb-heart, .bb-comic, .bb-star) .fx-bubble { color: #2a7fc4; }

/* ==========================================================================
   [2026-11-25 새 기능] 랭킹 보상 — 오늘(밤 12시 확정) 레벨 랭킹 1 · 2 · 3위에게 자동 장착 (routes/game-progress.js POST /look,
   services/ranking.js RANK_REWARD). 상점에서 살 수 없음. 시안 "랭킹 보상 시안" 그대로: 1위 금 > 2위 백금 > 3위 브론즈 (상점 최고급보다 화려하게)
   - 칭호: .qb-title--topfirst · topsecond · topthird (금속 질감 + 아이콘 + 빛이 지나감, 1위는 숨쉬듯 번쩍)
   - 닉네임 효과: .fx-topfirst(흐르는 금 + 머리 위 왕관 + 반짝이) · .fx-topsecond(흐르는 백금 + 별) · .fx-topthird(흐르는 브론즈 + 월계수 잎)
   - 말풍선: .bb-topfirst(밤보라 벨벳 + 돌아가는 황금 테두리 + 금가루 + 왕관) · .bb-topsecond(백금 홀로그램 + 별) · .bb-topthird(브론즈 + 월계수 잎)
   ========================================================================== */
.qb-title--topfirst, .qb-title--topsecond, .qb-title--topthird { position: relative; overflow: hidden; font-family: var(--qb-font-display, 'Jua'), sans-serif; font-weight: 400; letter-spacing: .05em; }
.qb-title--topfirst::before, .qb-title--topsecond::before, .qb-title--topthird::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .25em; vertical-align: -.15em; flex: none; background: no-repeat center / contain; }
.qb-title--topfirst::after, .qb-title--topsecond::after, .qb-title--topthird::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%) 0 0 / 250% 100%; mix-blend-mode: overlay; animation: qbTopTitleSweep 2.2s linear infinite; pointer-events: none; }
.qb-title--topfirst { background: linear-gradient(180deg, #fff3b0, #ffcf3a 45%, #e09a00 55%, #ffd75e); color: #5a3a00; box-shadow: 0 0 0 1.5px #b07800 inset, 0 0 10px rgba(255, 200, 40, .55); animation: qbTopTitleGlow 1.8s ease-in-out infinite; }
.qb-title--topfirst::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 4l5 4 6-7 6 7 5-4-2 11H3z' fill='%23fff6c7' stroke='%237a4a00' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.qb-title--topsecond { background: linear-gradient(180deg, #ffffff, #d9e0ec 45%, #9aa6ba 55%, #e3e8f1); color: #2b3242; box-shadow: 0 0 0 1.5px #7d889c inset, 0 0 8px rgba(190, 205, 235, .6); }
.qb-title--topsecond::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.9L22 9.5l-5.6 4.8L18 22l-6-3.9L6 22l1.6-7.7L2 9.5l7.4-.6z' fill='white' stroke='%233c4558' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.qb-title--topthird { background: linear-gradient(180deg, #ffe2cc, #e3a06d 45%, #b06633 55%, #e8ac7c); color: #4a2208; box-shadow: 0 0 0 1.5px #8a4a20 inset; }
.qb-title--topthird::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C6 17 4 11 6 3c4 3 7 8 6 18z' fill='%23ffe2cc' stroke='%235a2a0c' stroke-width='1.3'/%3E%3Cpath d='M12 21c6-4 8-10 6-18-4 3-7 8-6 18z' fill='%23f6cfae' stroke='%235a2a0c' stroke-width='1.3'/%3E%3C/svg%3E"); }
.qb-title--topthird::after { animation-duration: 3.2s; }
/* [2026-11-25 수정] 끊김 없이 반복: 그림 폭 250%면 위치 -166.667%가 정확히 그림 한 칸 이동 (예전 -250%는 한 칸 반이라 반복될 때 빛이 툭 튀어 보였음 — 사용자 지적) */
@keyframes qbTopTitleSweep { to { background-position: -166.667% 0; } }
@keyframes qbTopTitleGlow { 50% { box-shadow: 0 0 0 1.5px #b07800 inset, 0 0 16px rgba(255, 210, 60, .95); } }

/* 닉네임 효과 — 라이트는 진한 금 · 백금 · 브론즈, 다크(그리고 1위 밤보라 말풍선 안)는 밝은 색 */
.fx-topfirst, .fx-topsecond, .fx-topthird { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 250% 100%; margin-right: .5em; }
.fx-topfirst { background-image: linear-gradient(90deg, #a87400, #c98a00, #e0a000, #c98a00, #a87400, #c98a00); animation: qbFxTopFlow 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 190, 30, .45)); }
.fx-topsecond { background-image: linear-gradient(90deg, #4f586a, #66708a, #8e99ad, #66708a, #4f586a, #66708a); animation: qbFxTopFlow 3s linear infinite; }
.fx-topthird { background-image: linear-gradient(90deg, #8a4a20, #a85e2c, #c87a46, #a85e2c, #8a4a20, #a85e2c); animation: qbFxTopFlow 3.6s linear infinite; }
[data-theme="dark"] .fx-topfirst, .bb-topfirst .fx-topfirst { background-image: linear-gradient(90deg, #ffd75e, #ffc21a, #fff8d6, #ffc21a, #ffd75e, #ffc21a); filter: drop-shadow(0 0 6px rgba(255, 200, 40, .7)); }
[data-theme="dark"] .fx-topsecond { background-image: linear-gradient(90deg, #c3cbd8, #9aa6ba, #ffffff, #9aa6ba, #c3cbd8, #9aa6ba); filter: drop-shadow(0 0 4px rgba(220, 230, 250, .6)); }
[data-theme="dark"] .fx-topthird { background-image: linear-gradient(90deg, #e3a06d, #c87a46, #ffe2cc, #c87a46, #e3a06d, #c87a46); }
.fx-topfirst::before { content: ""; position: absolute; left: 50%; top: -.58em; width: .85em; height: .58em; margin-left: -.42em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 4l5 4 6-7 6 7 5-4-2 11H3z' fill='%23ffcf3a' stroke='%23a87400' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='1.6' r='1.4' fill='%23fff'/%3E%3Ccircle cx='1.2' cy='4' r='1.1' fill='%23fff3c4'/%3E%3Ccircle cx='22.8' cy='4' r='1.1' fill='%23fff3c4'/%3E%3C/svg%3E"); animation: qbFxTopBob 1.6s ease-in-out infinite; pointer-events: none; }
.fx-topfirst::after { content: "\2726"; position: absolute; right: -.62em; top: -.3em; font-size: .5em; color: #ffcf3a; -webkit-text-fill-color: #ffcf3a; animation: qbFxTopTw 1.2s ease-in-out infinite; pointer-events: none; }
.fx-topsecond::after { content: "\2726"; position: absolute; right: -.62em; top: -.32em; font-size: .55em; color: #9aa6ba; -webkit-text-fill-color: #9aa6ba; animation: qbFxTopTw 1.6s ease-in-out infinite; pointer-events: none; }
[data-theme="dark"] .fx-topsecond::after { color: #fff; -webkit-text-fill-color: #fff; }
.fx-topthird::after { content: ""; position: absolute; right: -.7em; top: -.05em; width: .6em; height: .6em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6 18 4 12 6 4c4 3 7 8 6 18z' fill='%23e3a06d'/%3E%3Cpath d='M12 22c6-4 8-10 6-18-4 3-7 8-6 18z' fill='%23c87a46'/%3E%3C/svg%3E"); pointer-events: none; }
@keyframes qbFxTopFlow { to { background-position: -166.667% 0; } }   /* 같은 이유 (그림 폭 250%) */
@keyframes qbFxTopBob { 50% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes qbFxTopTw { 50% { opacity: .25; transform: scale(.7); } }

/* 말풍선 (채팅 줄 자체가 말풍선 — 위 [class*="bb-"] 공통 규칙이 position · isolation을 줌) */
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topfirst { background: radial-gradient(circle at 20% 30%, rgba(255, 215, 90, .2) 0 1.5px, transparent 2px) 0 0 / 14px 14px, radial-gradient(circle at 70% 70%, rgba(255, 240, 180, .25) 0 1px, transparent 1.5px) 0 0 / 19px 19px, linear-gradient(135deg, #2a1748, #140b26); color: #fff3cf; }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topfirst::before { content: ""; inset: -2px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--qb-top-a, 0deg), #fff6c7, #ffcf3a, #a87400, #ffe27a, #fff6c7, #ffcf3a, #a87400, #fff6c7); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: qbBbTopSpin 3s linear infinite; z-index: -1; filter: drop-shadow(0 0 4px rgba(255, 200, 40, .75)); }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topfirst::after { content: ""; width: 20px; height: 14px; top: -10px; right: 10px; transform: rotate(14deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 4l5 4 6-7 6 7 5-4-2 11H3z' fill='%23ffcf3a' stroke='%23a87400' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); filter: drop-shadow(0 0 3px rgba(255, 200, 40, .9)); }
:is(.game-chat-line, .pp-chat-line).mine.bb-topfirst::after { right: auto; left: 10px; transform: rotate(-14deg); }
:is(.game-chat-line, .pp-chat-line).bb-topfirst .nickname { color: #ffe7a3; }
@property --qb-top-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes qbBbTopSpin { to { --qb-top-a: 360deg; } }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topsecond { background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) 0 0 / 260% 100%, linear-gradient(120deg, #eef2f8, #dfe6f2 30%, #f6e8ff 55%, #e1f1ff 80%, #eef2f8); color: #2b3242; box-shadow: 0 0 0 1.5px #aab4c6, inset 0 1px 0 #fff, 0 0 12px rgba(190, 205, 235, .55); animation: qbBbTopShine 2.6s linear infinite; }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topsecond::after { content: "\2726"; top: -10px; right: 8px; font-size: 14px; line-height: 1; color: #fff; text-shadow: 0 0 6px #b9c6de, 0 0 2px #7d889c; animation: qbFxTopTw 1.6s ease-in-out infinite; }
:is(.game-chat-line, .pp-chat-line).mine.bb-topsecond::after { right: auto; left: 8px; }
:is(.game-chat-line, .pp-chat-line).bb-topsecond .nickname { color: #3c4558; }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topthird { background: linear-gradient(110deg, transparent 40%, rgba(255, 240, 225, .7) 50%, transparent 60%) 0 0 / 260% 100%, linear-gradient(135deg, #fbe2cf, #eab48a 55%, #f6d3b6); color: #4a2208; box-shadow: 0 0 0 1.5px #b9774a, inset 0 1px 0 #fff5ec, 0 0 8px rgba(220, 140, 80, .35); animation: qbBbTopShine 3.4s linear infinite; }
:is(.game-chat-line, .sh-bubble, .sh-pv__chat, .pp-chat-line).bb-topthird::after { content: ""; width: 18px; height: 18px; top: -10px; right: 8px; transform: rotate(20deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6 18 4 12 6 4c4 3 7 8 6 18z' fill='%23e3a06d'/%3E%3Cpath d='M12 22c6-4 8-10 6-18-4 3-7 8-6 18z' fill='%23b06633'/%3E%3C/svg%3E"); }
:is(.game-chat-line, .pp-chat-line).mine.bb-topthird::after { right: auto; left: 8px; transform: rotate(-20deg) scaleX(-1); }
:is(.game-chat-line, .pp-chat-line).bb-topthird .nickname { color: #5a2a0c; }
/* 밝은 말풍선(2 · 3위) 안: 다크모드에서도 라이트용 진한 색 (밝은 글자는 밝은 말풍선 위에서 안 보임 — 위 [2026-11-22] lv-basic 규칙과 같은 이유) */
[data-theme="dark"] .bb-topsecond .fx-topsecond { background-image: linear-gradient(90deg, #4f586a, #66708a, #8e99ad, #66708a, #4f586a, #66708a); }
[data-theme="dark"] .bb-topthird .fx-topthird { background-image: linear-gradient(90deg, #8a4a20, #a85e2c, #c87a46, #a85e2c, #8a4a20, #a85e2c); }
[data-theme="dark"] :is(.bb-topsecond, .bb-topthird) .lv-basic { color: inherit; }
@keyframes qbBbTopShine { to { background-position: -162.5% 0, 0 0; } }   /* [2026-11-25 수정] 그림 폭 260% → 한 칸 이동 = -162.5% (예전 -260%는 반복 때 툭 튐) */
@media (prefers-reduced-motion: reduce) { .qb-title--topfirst, .qb-title--topfirst::after, .qb-title--topsecond::after, .qb-title--topthird::after, .fx-topfirst, .fx-topsecond, .fx-topthird, .fx-topfirst::before, .fx-topfirst::after, .fx-topsecond::after, .bb-topfirst::before, .bb-topsecond, .bb-topthird { animation: none !important; } }

/* ── [2026-11-25 새 기능] 랭킹 보상 닉네임 테두리 — 오늘 1 · 2 · 3위 (services/ranking.js RANK_REWARD.frame). 시안 "랭킹 테두리 시안" A-2 (사용자 선택)
   직접 만든 순위 메달과 같은 색: 1위 금 + 루비 · 2위 은 + 사파이어 · 3위 로즈골드 + 자수정. 메달 색 링(1 · 2위는 빙글 돎, 3위는 흐름) + 양 끝 보석.
   위 가운데 보석은 뺌(사용자 선택 — 테두리 윗선에 붙어 보였음) */
:is(.nf-topfirst, .nf-topsecond, .nf-topthird)::before {
  content: ''; inset: 0; border-radius: inherit; padding: 2.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
:is(.nf-topfirst, .nf-topsecond, .nf-topthird)::after { content: ''; inset: 50% -0.34em auto; height: 0.52em; margin-top: -0.26em; background-repeat: no-repeat; background-size: 0.52em 0.52em; background-position: left center, right center; }
.nf-topfirst::before { background: conic-gradient(from var(--qb-top-a, 0deg), #fff6c7, #ffcf3a, #a87400, #ffe27a, #fff6c7, #ffcf3a, #a87400, #fff6c7); animation: qbBbTopSpin 3s linear infinite; }
.nf-topfirst { box-shadow: 0 0 8px rgba(255, 200, 40, .55); animation: qbNfTopGlow 1.8s ease-in-out infinite; }
.nf-topfirst::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23ffb3c7'/%3E%3Cstop offset='.45' stop-color='%23e0144d'/%3E%3Cstop offset='1' stop-color='%235c0018'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23c98a00' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23ffb3c7'/%3E%3Cstop offset='.45' stop-color='%23e0144d'/%3E%3Cstop offset='1' stop-color='%235c0018'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23c98a00' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"); }
.nf-topsecond::before { background: conic-gradient(from var(--qb-top-a, 0deg), #ffffff, #c9d4ea, #6f7fa6, #e8eef9, #ffffff, #c9d4ea, #6f7fa6, #ffffff); animation: qbBbTopSpin 4s linear infinite; }
.nf-topsecond { box-shadow: 0 0 8px rgba(90, 130, 230, .45); }
.nf-topsecond::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23d8e6ff'/%3E%3Cstop offset='.45' stop-color='%232a5fe0'/%3E%3Cstop offset='1' stop-color='%230b1f5c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23c9d4ea' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23d8e6ff'/%3E%3Cstop offset='.45' stop-color='%232a5fe0'/%3E%3Cstop offset='1' stop-color='%230b1f5c'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23c9d4ea' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"); }
.nf-topthird::before { background: linear-gradient(90deg, #b0663a, #ffd9bd, #c8805a, #f6c3a0, #b0663a) 0 0 / 300% 100%; animation: qbNfFlow 3.5s linear infinite; }
.nf-topthird { box-shadow: 0 0 7px rgba(170, 90, 220, .4); }
.nf-topthird::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23f4d0ff'/%3E%3Cstop offset='.45' stop-color='%23b832e0'/%3E%3Cstop offset='1' stop-color='%234a0a66'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23e8a87c' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23f4d0ff'/%3E%3Cstop offset='.45' stop-color='%23b832e0'/%3E%3Cstop offset='1' stop-color='%234a0a66'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M12 1.5l9.5 10.5-9.5 10.5L2.5 12z' fill='url(%23g)' stroke='%23e8a87c' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M8 9l4-4 4 4' fill='none' stroke='%23fff' stroke-width='1.4' opacity='.8'/%3E%3C/svg%3E"); }
@keyframes qbNfTopGlow { 50% { box-shadow: 0 0 14px rgba(255, 210, 60, .9); } }
/* 테두리 안의 1위 닉네임 효과 왕관을 살짝 띄워 테두리 윗선에 닿지 않게 (시안 A-2와 같은 모양) */
.qb-frame .fx-topfirst::before { top: -0.95em; }
/* 테두리 안에서는 랭킹 효과의 오른쪽 장식 여백을 양쪽 같게 (이름이 테두리 가운데에 오게) */
.qb-frame :is(.fx-topfirst, .fx-topsecond, .fx-topthird) { margin-left: .3em; margin-right: .3em; }
@media (prefers-reduced-motion: reduce) { .nf-topfirst, .nf-topfirst::before, .nf-topsecond::before, .nf-topthird::before { animation: none !important; } }

/* [2026-11-25 새 기능] 4 ~ 10위 TOP 10 칭호 (services/ranking.js TOP10_REWARD) — 훈장 그림과 같은 보라 + 금. 1 · 2 · 3위 칭호보다 차분하게(번쩍임 없음, 빛만 지나감) */
/* [2026-11-25 변경] 한 단계 화려하게 (사용자 요청: 1 · 2 · 3위보다는 덜하지만 일반 칭호보다는 확실히 눈에 띄게)
   예전: 평평한 보라 바탕 + 금 글씨 + 은은한 빛. 지금: 보라 금속 질감(위아래 밝고 가운데 진함) + 금 테두리 2겹 + 금빛 글씨 그림자
   + 빛이 지나감(1 · 2 · 3위와 같은 밝기) + 왕관이 가끔 반짝. 1위의 숨쉬는 번쩍임 · 2 · 3위의 금속 은빛보다는 차분 */
.qb-title--topten { position: relative; overflow: hidden; font-family: var(--qb-font-display, 'Jua'), sans-serif; font-weight: 400; letter-spacing: .05em; background: linear-gradient(180deg, #a98cff, #6b4bd6 42%, #3d2490 58%, #7d5ee6); color: #ffe08a; text-shadow: 0 1px 0 #5a3a00, 0 0 6px rgba(255, 210, 90, .55); box-shadow: 0 0 0 1.5px #e0a000 inset, 0 0 0 3px rgba(255, 224, 138, .35) inset, 0 0 8px rgba(124, 92, 240, .45); }
.qb-title--topten::before { content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .25em; vertical-align: -.15em; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 4l5 4 6-7 6 7 5-4-2 11H3z' fill='%23ffd75e' stroke='%23a87400' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='1.6' r='1.4' fill='%23fff'/%3E%3C/svg%3E"); animation: qbTopTenCrown 2.6s ease-in-out infinite; }
.qb-title--topten::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .8) 50%, transparent 65%) 0 0 / 250% 100%; mix-blend-mode: overlay; animation: qbTopTitleSweep 2.8s linear infinite; pointer-events: none; }
@keyframes qbTopTenCrown { 0%, 70%, 100% { filter: none; } 80% { filter: drop-shadow(0 0 3px #fff3b0) brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .qb-title--topten::before, .qb-title--topten::after { animation: none !important; } }
