/* 강자비스 RPG 부품 (회의 공간에서 시작, 다른 공간에서도 다시 쓰려고 따로 둠)
   - .scene: 방 바닥·벽 / .chr: 사람 캐릭터 / .chr > .bubble: 캐릭터 말풍선 (대화창 .msg .bubble과 섞이지 않게 캐릭터 안으로만 좁힘) / .qcard: 퀘스트(안건) 카드 */
:root {
  --ink: #1f1a2e;
  --wall: #4b3f72; --wall-2: #3a3060;
  --floor-a: #e9d8b4; --floor-b: #dfcba2;
  --wood: #9c6b3f; --wood-2: #7d5230; --wood-hi: #b9845a;
  --gold: #ffd43b;
}

.scene { position: relative; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); background:
  repeating-conic-gradient(var(--floor-a) 0 25%, var(--floor-b) 0 50%) 0 0 / 36px 36px; }
.scene .wall { position: absolute; left: 0; right: 0; top: 0; height: 74px; background: linear-gradient(var(--wall), var(--wall-2)); border-bottom: 3px solid var(--ink); }
.scene .wall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 4px; background: rgba(255,255,255,.12); }
.scene .door { position: absolute; right: 22px; bottom: 0; width: 64px; height: 18px; background: #6b4a2b; border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.scene .door::after { content: '출입문'; position: absolute; inset: 0; font-size: 10px; font-weight: 800; color: #f5e3c3; display: grid; place-items: center; }
.scene .rug { position: absolute; border-radius: 50%; background: radial-gradient(#c94f4f, #a33a3a 70%); border: 3px solid var(--ink); opacity: .9; }
.scene .table { position: absolute; border: 3px solid var(--ink); border-radius: 46px; background: linear-gradient(var(--wood-hi), var(--wood) 40%, var(--wood-2)); box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,.25); }
.scene .plant { position: absolute; font-size: 28px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }

/* 사람 캐릭터 */
.chr { position: absolute; width: 46px; height: 64px; transform: translate(-50%, -50%); text-align: center; transition: left .6s, top .6s; z-index: 3; }
.chr .spr { position: relative; width: 34px; height: 46px; margin: 0 auto; animation: chr-idle 2.4s ease-in-out infinite; }
.chr .hair { position: absolute; left: 4px; top: 0; width: 26px; height: 12px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 3px 3px; z-index: 2; }
.chr .head { position: absolute; left: 5px; top: 5px; width: 24px; height: 20px; background: #ffd8b5; border: 2px solid var(--ink); border-radius: 8px; }
.chr .head::before, .chr .head::after { content: ''; position: absolute; top: 8px; width: 3px; height: 4px; background: var(--ink); border-radius: 2px; }
.chr .head::before { left: 6px; } .chr .head::after { right: 6px; }
.chr .body { position: absolute; left: 3px; top: 25px; width: 28px; height: 17px; border: 2px solid var(--ink); border-radius: 8px 8px 4px 4px; }
.chr .legs { position: absolute; left: 8px; top: 40px; width: 18px; height: 6px; background: #3b3552; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 4px 4px; }
.chr.seated .legs { display: none; }
.chr .tag { display: inline-block; margin-top: 2px; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(31,26,46,.85); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }
.chr .tag.host { background: #b8860b; }
.chr.off .spr { filter: grayscale(1) opacity(.55); animation: none; }
.chr.online .spr::after { content: ''; position: absolute; right: -3px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #51cf66; border: 2px solid var(--ink); }
.chr.me .tag { background: #4c6ef5; }
@keyframes chr-idle { 50% { transform: translateY(-2px); } }
.chr.walk .spr { animation: chr-walk .5s steps(2) infinite; }
@keyframes chr-walk { 50% { transform: translateY(-3px) rotate(-3deg); } }

/* 의자 */
.chair { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%); background: #6c5ce7; border: 3px solid var(--ink); border-radius: 8px; z-index: 1; box-shadow: 0 3px 0 var(--ink); }
.chair.empty { background: #8d84c9; opacity: .55; }

/* 말풍선 */
.chr > .bubble, .v-chr > .bubble { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); background: #fff; border: 2px solid var(--ink); border-radius: 8px; font-size: 11px; font-weight: 800; padding: 1px 5px; white-space: nowrap; z-index: 4; animation: bub 1.8s ease-in-out infinite; }
.chr > .bubble::after, .v-chr > .bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
@keyframes bub { 50% { transform: translate(-50%, -2px); } }

/* 퀘스트(안건) 카드 */
.qcard { position: relative; background: #fffdf5; border: 2px solid var(--ink); border-radius: 9px; padding: 7px 9px 6px; box-shadow: 0 3px 0 var(--ink); cursor: grab; font-size: 13px; line-height: 1.4; transition: transform .12s; user-select: none; }
.qcard:hover { transform: translateY(-2px) rotate(-.5deg); }
.qcard.dragging { opacity: .4; }
.qcard .qt { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; border-radius: 5px; padding: 0 6px; margin-right: 4px; border: 1.5px solid var(--ink); }
.qcard .qwho { display: block; margin-top: 3px; font-size: 11px; color: #6b6380; font-weight: 600; }
.qcard .auto { font-size: 10px; font-weight: 800; color: #b8860b; margin-left: 4px; }
.qcard::before { content: ''; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #e03131; border: 2px solid var(--ink); }
.qt-공유 { background: #4c6ef5; } .qt-요청 { background: #f76707; } .qt-점검 { background: #2f9e44; } .qt-전달 { background: #7048e8; } .qt-결정 { background: #e03131; }
.qcard.t-공유 { border-left: 6px solid #4c6ef5; } .qcard.t-요청 { border-left: 6px solid #f76707; } .qcard.t-점검 { border-left: 6px solid #2f9e44; } .qcard.t-전달 { border-left: 6px solid #7048e8; } .qcard.t-결정 { border-left: 6px solid #e03131; }

/* 도장 */
.stamp { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); opacity: 0; z-index: 99; font-size: 54px; font-weight: 900; color: #e03131; border: 6px solid #e03131; border-radius: 14px; padding: 4px 22px; background: rgba(255,255,255,.85); pointer-events: none; }
.stamp.go { animation: stamp .9s ease-out forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); } 35% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
