body.is-social {
  --bg: #101724;
  --surface: #172233;
  --surface-raised: #202f42;
  --surface-soft: #293a4c;
  --border: #adc6de26;
  --muted: #a6b7c9;
  --faint: #8b9eb2;
  --gold: #e6c78e;
  --text: #eaf0f5;
  min-width: 0;
  background: radial-gradient(ellipse at 65% 0, #283a4b77, transparent 55%), #101724;
}
.demo-notice { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #dcb77866; border-radius: 12px; background: #dcb77812; color: #e6c78e; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.demo-notice strong { font-size: 14px; }
.demo-career-note { margin: 12px 0; padding: 12px 14px; border: 1px solid #91c7bb55; border-radius: 12px; background: #77bca314; }
.demo-career-note strong { color: #b5e3d8; font-size: 13px; }
.demo-career-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.career-milestones { margin-top: 20px; }
.career-milestones h3 { margin: 0 0 10px; font-size: 15px; }
.career-milestones > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.career-milestones article { display: grid; align-content: center; gap: 5px; min-height: 68px; padding: 10px; border: 1px solid var(--border); border-radius: 11px; background: #0d1824; color: var(--faint); }
.career-milestones article.is-earned { border-color: #e6c78e66; background: #e6c78e0e; color: var(--gold); }
.career-milestones article strong { font-size: 11px; }
.career-milestones article small { font-size: 10px; line-height: 1.4; }
.academy-path { line-height: 1.8; }
.academy-path small { display: block; margin-top: 12px; color: var(--muted); }
.academy-lessons { display: grid; gap: 10px; margin: 20px 0; }
.academy-lesson { margin: 0; }
.academy-lesson summary { min-height: 44px; cursor: pointer; line-height: 1.8; font-weight: 700; }
.academy-lesson summary span { color: var(--gold); margin-right: 8px; }
.academy-lesson li { margin: 12px 0; line-height: 1.9; overflow-wrap: anywhere; }
.academy-role select, .academy-filters select { width: 100%; min-width: 0; min-height: 44px; }
.academy-role dt, .account-status dt { color: var(--gold); font-weight: 700; margin: 18px 0 6px; }
.academy-role dd, .account-status dd { margin: 0; line-height: 1.9; overflow-wrap: anywhere; }
.hunter-guide { margin: 18px 0; border: 1px solid #87a5c566; border-radius: 14px; background: #101c2b; }
.hunter-guide > summary { min-height: 46px; padding: 12px 14px; color: #e6d4a8; cursor: pointer; font-weight: 700; line-height: 1.6; }
.hunter-guide article { padding: 5px 14px 12px; border-top: 1px solid #87a5c533; }
.hunter-guide h4 { margin: 12px 0 6px; color: #c3d8e8; font-size: 14px; }
.hunter-guide p { margin: 7px 0; color: #b7c9d7; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.academy-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 20px 0; }
.academy-filters label { min-width: 0; display: grid; gap: 8px; }
.academy-filters p { grid-column: 1 / -1; line-height: 1.8; font-size: 13px; color: var(--muted); }
.academy-hint { border-left: 3px solid var(--gold); padding: 12px; line-height: 1.8; }
.academy-page .button, .casebook-page button, .boutique-page .button { min-height: 44px; }
.cosmetic-preview { text-align: center; overflow-wrap: anywhere; }
.cosmetic-character-showcase { position: relative; display: block; width: min(100%, 340px); height: 360px; margin: 16px auto 22px; padding: 0; overflow: hidden; border: 1px solid #d5c6a74d; border-radius: 20px; background: radial-gradient(ellipse at 50% 72%, #b48c5140, transparent 52%), radial-gradient(ellipse at 50% 4%, #8eacbf20, transparent 44%), linear-gradient(160deg, #263b50, #0f1b2b 72%); box-shadow: inset 0 -35px 55px #050a1466, 0 20px 48px #02071140; }
.cosmetic-character-showcase .preview-seat { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; transform: none; border: 0; border-radius: inherit; background: transparent; box-shadow: none; pointer-events: none; }
.cosmetic-character-showcase .seat-portrait { position: absolute; bottom: 8px; left: 50%; width: 250px; height: 320px; transform: translateX(-50%); overflow: visible; border: 0; border-radius: 0; background: transparent; }
.cosmetic-character-showcase .seat-portrait::before { display: none; }
.cosmetic-character-showcase .walking-person { width: 100%; height: 100%; --avatar-color: #7c8992; }
.cosmetic-preview > strong { display: inline-block; margin: 3px 0 8px; color: #f1d79e; font-size: 17px; }
.cosmetic-preview > p { max-width: 620px; margin: 0 auto 16px; color: var(--muted); line-height: 1.7; }
.body-style-picker { max-width: 520px; margin: 22px auto 0; padding: 0; border: 0; text-align: left; }
.body-style-picker legend { color: var(--gold); font-size: 14px; font-weight: 700; }
.body-style-picker p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.body-style-picker > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.body-style-option { min-height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #172538; color: var(--text); font: inherit; cursor: pointer; }
.body-style-option[aria-pressed="true"] { border-color: var(--gold); background: #e6c78e1a; color: #f3dba8; box-shadow: inset 0 0 0 1px #e6c78e44; }
.body-style-option:focus-visible { outline: 2px solid #f1d79e; outline-offset: 2px; }
.wardrobe-section { margin-top: 24px; }
.wardrobe-slot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.wardrobe-slot h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--gold); font-size: 15px; }
.wardrobe-slot h3::after { height: 1px; flex: 1; background: linear-gradient(90deg, #e5d2a438, transparent); content: ""; }
.wardrobe-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wardrobe-item { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, #172538, #101a28); transition: border-color .16s ease, transform .16s ease; }
.wardrobe-item.is-equipped { border-color: #e6c78e88; box-shadow: inset 0 0 0 1px #e6c78e22; }
.wardrobe-preview { display: grid; justify-items: start; gap: 8px; min-height: 72px; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: #dce7f00a; color: var(--text); text-align: left; cursor: pointer; }
.wardrobe-preview[aria-pressed="true"] { border-color: #e6c78e99; background: #e6c78e12; }
.wardrobe-preview:focus-visible { outline: 2px solid #f1d79e; outline-offset: 2px; }
.wardrobe-item:not(.is-equipped):hover { border-color: #bdcde047; transform: translateY(-2px); }
.wardrobe-preview span { color: var(--gold); font-size: 26px; line-height: 1; }
.wardrobe-preview strong { overflow-wrap: anywhere; font-size: 13px; }
.wardrobe-item p { min-height: 40px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.wardrobe-unlock { align-self: end; min-height: 44px; padding: 12px 4px; color: var(--muted); font-size: 12px; }
.sound-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sound-actions .button { flex: 1 1 150px; }
.boutique-page .shop-item .button { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .wardrobe-item { transition: none; }
  .wardrobe-item:not(.is-equipped):hover { transform: none; }
  .boutique-page .shop-item { transition: none; }
  .boutique-page .shop-item:hover { transform: none; }
}
@media (max-width: 380px) {
  .body-style-picker > div { gap: 6px; }
  .body-style-option { font-size: 12px; }
  .career-milestones > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.demo-notice p { color: #ffaaa0; margin: 0; }
.is-social .sidebar { background: #101724ed; }
.is-social .mobile-topbar, .is-social .mobile-nav { background: #101724f2; }
.is-social .main-content { max-width: 1600px; padding: 26px clamp(20px, 3vw, 52px) 48px; }
.social-page { max-width: 1220px; }
.social-page h1 { font-size: clamp(26px, 3vw, 36px); }
.social-page .page-heading { gap: 16px; }
.social-page .page-heading .eyebrow { font-size: 10px; margin-bottom: 9px; }
.social-page .panel { background: linear-gradient(145deg, #1a283a, #141f2f); }
.social-page button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lobby-cinematic { position: relative; isolation: isolate; overflow: hidden; min-height: 330px; border: 1px solid #9fbcd640; border-radius: 24px; background: #142338; }
.lobby-village, .staging-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; opacity: .85; z-index: -2; }
.lobby-cinematic::before, .staging-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d192cf5, #0d192c99 46%, #0d192c22), linear-gradient(0deg, #0d192cbb, transparent 55%); }
.lobby-cinematic-copy { max-width: 660px; padding: 34px 42px; }
.lobby-cinematic h2 { margin: 14px 0 12px; font-family: "Gowun Dodum", sans-serif; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.35; letter-spacing: -.06em; font-weight: 400; text-shadow: 0 4px 24px #0007; }
.lobby-cinematic-copy > p:not(.eyebrow) { color: #c3cfda; font-size: 14px; line-height: 1.9; }
.lobby-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lobby-hero-actions .button { min-height: 48px; }
.lobby-scene-label { position: absolute; right: 24px; bottom: 20px; color: #d6e1ebaa; font-size: 9px; letter-spacing: .1em; }
.lobby-pulse { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 6px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.lobby-pulse strong { color: var(--gold); margin-left: 6px; }
.lobby-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.lobby-paths > button { display: grid; gap: 12px; padding: 20px; text-align: left; border: 1px solid var(--border); border-radius: 15px; background: #1b293b99; cursor: pointer; transition: border-color .2s, background .2s; }
.lobby-paths > button:hover { background: #283b50; border-color: #e6c78e77; }
.lobby-paths span { font-size: 9px; letter-spacing: .1em; color: var(--gold); }
.lobby-paths strong { font-size: 16px; }
.lobby-paths small { font-size: 12px; line-height: 1.8; color: var(--muted); }
.mode-showcase { margin: 30px 0 20px; }
.mode-showcase .section-title-row { margin-bottom: 16px; }
.mode-category { margin: 22px 0; }
.mode-category-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 10px; }
.mode-category-heading h3 { margin: 0; color: #e7d3af; font-size: 16px; }
.mode-category-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.night-mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.night-mode-card { display: flex; min-width: 0; flex-direction: column; gap: 12px; padding: 20px 16px; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(circle at 100% 5%, #79c2b424, transparent 65%), #162335; cursor: pointer; }
.night-mode-card[data-tone="quick"] { background: radial-gradient(circle at 100% 5%, #a5bfef2b, transparent 65%), #162335; }
.night-mode-card[data-tone="extreme"] { background: radial-gradient(circle at 100% 5%, #b58a7138, transparent 65%), #162335; }
.night-mode-card[data-tone="occult"] { background: radial-gradient(circle at 100% 5%, #a593d640, transparent 65%), #162335; }
.night-mode-card[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px #e6c78e33; }
.night-mode-card .mode-card-number { font-size: 9px; color: var(--muted); letter-spacing: .03em; }
.night-mode-icon { font-size: 32px; color: var(--gold); padding: 5px 0; }
.night-mode-card > strong { font-size: 17px; }
.night-mode-card > span:not(.mode-card-number):not(.night-mode-icon) { color: var(--muted); font-size: 12px; line-height: 1.8; }
.night-mode-card > small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.night-mode-card b { color: var(--gold); font-weight: 400; }
.social-page .form-stack input, .social-page .form-stack select, .social-page .join-form input { font-size: 16px; min-width: 0; background: #101b2b; }
.social-page .form-stack > label { margin-bottom: -5px; }
.lobby-steps { display: grid; gap: 16px; margin: 28px 0 0; padding-left: 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.lobby-steps li::marker { color: var(--gold); }
.room-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.room-filters button { min-height: 44px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 30px; background: #172436; color: var(--muted); font-size: 12px; cursor: pointer; }
.room-filters button[aria-pressed="true"] { border-color: #e6c78e99; color: var(--gold); background: #e6c78e12; }
.social-page .open-room-card { background: #192639; gap: 16px; padding: 18px; }
.social-page .open-room-card .button { min-height: 44px; font-size: 12px; }
.social-page .open-room-info strong { font-size: 15px; }
.social-page .open-room-info small { font-size: 12px; }
.room-member-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.room-member-caption { flex-basis: 100%; color: var(--muted); font-size: 9px; }
.room-member { display: inline-flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px; padding: 4px 6px; border: 1px solid #b9cde322; border-radius: 9px; background: #101b29; }
.room-member-name { max-width: 130px; overflow: hidden; color: #e4e9f1; font-size: 11px !important; text-overflow: ellipsis; white-space: nowrap; }
.room-member-actions { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.room-member-action { min-height: 32px; padding: 5px 8px; border: 1px solid #b9cde333; border-radius: 7px; background: #1c2b3d; color: #d3deeb; font-size: 10px; cursor: pointer; }
.room-member-action:hover { border-color: #e7c99488; color: #f2d9a6; }
.room-member-pending { align-self: center; color: #9eabc0; font-size: 9px; }
.social-page .room-count { font-size: 13px; }
body.is-modal-open { overflow: hidden; }
button.staging-seat.is-empty { width: 100%; color: inherit; font: inherit; cursor: pointer; }
.room-create-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.room-create-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #030916d9; backdrop-filter: blur(7px); }
.room-create-dialog { position: relative; width: min(100%, 700px); max-height: min(88dvh, 850px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(16px, 3vw, 26px); border: 1px solid #d6bd8366; border-radius: 20px; background: linear-gradient(145deg, #1a2b3d, #0d1826); box-shadow: 0 20px 80px #000b; }
.room-create-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.room-create-heading .eyebrow { margin: 0 0 5px; color: #f0d496; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.room-create-heading h2 { margin: 0; font-size: clamp(20px, 4vw, 26px); }
.room-create-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.room-create-close { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; background: #182638; color: #eaf0f4; font-size: 24px; }
.room-create-mode-list { display: grid; gap: 8px; }
.create-mode-group { border: 1px solid var(--border); border-radius: 12px; background: #101c2a99; }
.create-mode-group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; min-height: 52px; padding: 8px 12px; cursor: pointer; color: #e8d4a9; font-size: 13px; font-weight: 800; }
.create-mode-group > summary small { color: var(--muted); font-size: 10px; font-weight: 400; }
.create-mode-grid { display: grid; gap: 6px; padding: 0 8px 8px; }
.create-mode-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: #172537; color: #eaf0f4; text-align: left; cursor: pointer; }
.create-mode-option:hover, .create-mode-option.is-selected { border-color: #e6c78eaa; background: #28374a; }
.create-mode-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e7c99416; color: #e7c994; font-size: 19px; }
.create-mode-copy { display: grid; gap: 3px; min-width: 0; }
.create-mode-copy strong { font-size: 12px; }
.create-mode-copy small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; }
.create-mode-count { color: #e7c994; font-size: 10px; white-space: nowrap; }
.room-create-selected { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px; border: 1px solid #e6c78e77; border-radius: 12px; background: #e6c78e0d; }
.room-create-selected > div { display: grid; gap: 3px; }
.room-create-selected strong { font-size: 13px; }
.room-create-selected small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.room-create-dialog .custom-roster-fields { max-height: 270px; overflow-y: auto; }
.room-occupancy { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.room-occupancy i { width: 7px; height: 7px; border-radius: 50%; background: #566b7e55; }
.room-occupancy .occupied { background: #b2ccbf; }
.staging-scene { position: relative; isolation: isolate; min-height: 240px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px; border: 1px solid #adc6de33; border-radius: 20px; overflow: hidden; }
.staging-scene h2 { font: 400 clamp(27px, 3vw, 38px)/1.4 "Gowun Dodum", sans-serif; margin: 14px 0 10px; }
.staging-scene p:last-child { font-size: 13px; color: #c6d3df; margin: 0; line-height: 1.7; }
.staging-scene > span { align-self: flex-end; font-size: 38px; color: var(--gold); text-align: right; white-space: nowrap; }
.staging-scene > span small { display: block; font-size: 9px; letter-spacing: .1em; }
.staging-progress { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 18px 0; margin: 0; color: var(--faint); font-size: 12px; }
.staging-progress li { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.staging-progress .complete { color: #b2d4c5; background: #8accb411; }
.staging-progress .current { color: var(--gold); border-color: #e6c78e77; background: #e6c78e11; }
.staging-status { border-left: 2px solid var(--gold); padding: 10px 14px; background: #e6c78e09; font-size: 13px; line-height: 1.8; color: #d2dfeb; }
.room-identity-note { margin: 10px 0; padding: 10px 12px; border-left: 3px solid #d7bc86; background: #132432; color: #c4d2dc; font-size: 12px; line-height: 1.6; }
.staging-page .room-roster-heading { margin-top: 0; }
.staging-seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.staging-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; min-height: 160px; padding: 16px 6px 12px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(160deg, #283a50, #1a2739); }
.staging-seat.is-ready { border-color: #96c4ae88; background: linear-gradient(160deg, #2a4647, #1a2936); }
.staging-seat[style*="--seat-color"] { border-color: var(--seat-color); box-shadow: inset 0 3px var(--seat-color), 0 8px 18px #050a1450; }
.staging-seat-number { position: absolute; left: 8px; top: 8px; color: #a9c0d5; font-size: 9px; }
.staging-seat .seat-portrait { width: 58px; height: 65px; border-radius: 10px; }
.staging-seat .profile-portrait-button { display: block; min-width: 58px; min-height: 65px; padding: 0; border: 1px solid #7893aa66; background: #102130; }
.staging-seat .profile-portrait-button:hover { border-color: #f1d795; }
.staging-seat .profile-portrait-button > span { display: block; width: 100%; height: 100%; }
.staging-seat .walking-person { display: block; width: 100%; height: 100%; }
.staging-seat > strong { color: var(--seat-color); }
.staging-seat strong { max-width: 100%; overflow-wrap: anywhere; text-align: center; font-size: 12px; line-height: 1.6; }
.staging-seat small { color: var(--muted); font-size: 10px; text-align: center; }
.staging-seat .roster-level { color: var(--gold); }
.preparation-player-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.preparation-player-list > div { display: grid; gap: 5px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; }
.preparation-player-list strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.preparation-player-list .roster-level { text-align: left; }
.staging-seat.is-ready small { color: #b1dfc9; }
.staging-speech { position: absolute; z-index: 3; top: -16px; left: 50%; width: min(170px, calc(100% + 20px)); max-height: 82px; overflow: hidden; padding: 8px 10px; transform: translate(-50%, -100%); border: 1px solid var(--seat-color); border-radius: 12px 12px 12px 2px; background: #101b2bf5; box-shadow: 0 6px 18px #02081270; color: var(--text); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.staging-speech strong { display: block; margin-bottom: 3px; color: var(--seat-color); font-size: 10px; }
.staging-seat.is-empty { border-style: dashed; background: #142030; color: #8b9eb2; }
.staging-seat.is-empty > span:not(.staging-seat-number) { display: grid; place-items: center; height: 65px; font-size: 28px; color: #71899e; }
.staging-page .waiting-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.staging-page .waiting-actions .button { flex: 1; min-height: 48px; }
.staging-page .waiting-hint { font-size: 12px; color: var(--muted); align-self: center; }
.staging-chat { padding-top: 20px; border-top: 1px solid var(--border); }
.staging-chat h2 { font-size: 16px; }
.waiting-feed { max-height: 240px; overflow-y: auto; padding: 0 6px; overflow-wrap: anywhere; }
.waiting-feed p { display: grid; gap: 5px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.7; }
.waiting-feed strong { color: var(--speaker-color, var(--gold)); font-size: 11px; }
.staging-page .room-note { font-size: 12px; line-height: 1.9; margin-bottom: 16px; }
.staging-page .room-code-copy { background: #101d2d; }
.waiting-grid { grid-template-areas: "main chat" "main aside"; }
.waiting-main { grid-area: main; }
.waiting-chat { grid-area: chat; position: sticky; top: 12px; align-self: start; min-width: 0; padding: 16px; border-color: #d7b66a55; background: linear-gradient(155deg, #19231d, #111a22); }
.waiting-aside { grid-area: aside; }
.staging-chat { padding-top: 0; border-top: 0; }
.waiting-chat .section-title-row { margin-bottom: 10px; }
.waiting-chat .section-title-row h2 { margin: 0; }
.waiting-chat .waiting-feed { max-height: clamp(140px, 28vh, 260px); overscroll-behavior: contain; }
.waiting-chat .quick-claims { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 10px 0; }
.waiting-chat .quick-claims button { text-align: left; }
.waiting-chat .chat-compose { gap: 7px; }
.waiting-chat .chat-compose .button { flex: 0 0 auto; min-height: 44px; }
.casebook-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.casebook-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.case-file-list { display: grid; gap: 10px; }
.case-file-list button { display: grid; gap: 12px; text-align: left; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: #1b293a; cursor: pointer; }
.case-file-list button[aria-current="page"] { border-color: var(--gold); background: #2d3842; }
.case-file-list span { color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.case-file-list strong { font-size: 14px; }
.case-file-list small { color: var(--muted); font-size: 12px; }
.case-file { background: linear-gradient(140deg, #233144, #182436); border: 1px solid #e6c78e55; border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.case-file h2 { font: 400 clamp(24px, 3vw, 34px)/1.5 "Gowun Dodum", sans-serif; margin: 16px 0; }
.case-scene { color: #c8d6e2; font-size: 15px; line-height: 1.9; }
.case-clues { display: grid; gap: 12px; margin: 24px 0; padding: 20px 20px 20px 40px; border-block: 1px solid var(--border); background: #101c2b55; color: #d4e0eb; font-size: 13px; line-height: 1.8; }
.case-clues li::marker { color: var(--gold); }
.case-choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.case-choices legend { margin-bottom: 16px; line-height: 1.8; font-size: 15px; }
.case-choices button { display: flex; gap: 14px; align-items: center; min-height: 54px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #172638; text-align: left; color: #e0e9f1; font-size: 13px; line-height: 1.8; cursor: pointer; }
.case-choices button span { color: var(--gold); }
.case-choices button[aria-pressed="true"] { border-color: var(--gold); background: #e6c78e15; }
.case-verdict { padding: 20px; background: #e6c78e15; border-left: 2px solid var(--gold); margin-bottom: 20px; }
.case-verdict[data-correct="true"] { border-color: #a2d5c2; background: #a2d5c213; }
.case-verdict strong { font-size: 14px; }
.case-verdict p { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 12px 0; }
.mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nickname-preview { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: #e6c78e12; color: #f0d7a2; font-size: 13px; font-weight: 700; }
.notification-settings .form-stack { gap: 12px; margin: 16px 0; }
.notification-switch { position: relative; display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(12, 19, 14, .55); cursor: pointer; }
.notification-switch > span { color: var(--text); font-size: 13px; font-weight: 700; }
.notification-switch input { position: absolute; right: 12px; z-index: 1; width: 52px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.notification-switch > i { position: relative; flex: 0 0 52px; width: 52px; height: 30px; border: 1px solid #aeb8b466; border-radius: 999px; background: #39434a; transition: background .18s ease, border-color .18s ease; }
.notification-switch > i::after { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #edf0ed; content: ""; box-shadow: 0 1px 5px #0006; transition: transform .18s ease; }
.notification-switch input:checked + i { border-color: #9dc9a3; background: #487a58; }
.notification-switch input:checked + i::after { transform: translateX(22px); }
.notification-switch input:focus-visible + i { outline: 3px solid #e6c78e; outline-offset: 3px; }
.notification-switch input:disabled + i { opacity: .58; }
.notification-onboarding { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #060c12cc; backdrop-filter: blur(7px); }
.notification-onboarding-card { width: min(460px, 100%); padding: clamp(22px, 6vw, 34px); border: 1px solid #e6c78e66; background: radial-gradient(ellipse at 90% 0, #e6c78e18, transparent 48%), linear-gradient(155deg, #25354a, #111b29 75%); box-shadow: 0 24px 80px #000b; }
.notification-onboarding-card h2 { margin: 8px 0 10px; color: #f3dfb2; font-family: "Gowun Dodum", sans-serif; font-size: 24px; }
.notification-onboarding-card > p:not(.eyebrow) { color: #c3d0d9; font-size: 13px; line-height: 1.8; }
.notification-prompt-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #c3d0d9; font-size: 13px; cursor: pointer; }
.notification-prompt-choice input { width: 20px; height: 20px; accent-color: #9dc9a3; }
.notification-onboarding-actions { display: grid; gap: 9px; margin-top: 20px; }
.push-device-actions { display: grid; gap: 10px; align-items: start; }
.push-device-actions p { margin: 0; color: #c4d2dc; line-height: 1.6; }
.push-recovery { display: grid; gap: 9px; padding: 14px; border: 1px solid #e6c78e55; border-radius: 12px; background: #e6c78e0d; }
.push-recovery strong { color: #f3dfb2; }
.push-recovery p { font-size: 12px; }
.password-change-panel .form-stack { margin-top: 16px; }
.case-file { position: relative; overflow: hidden; }
.case-file::before { content: ""; display: block; height: 150px; margin: -10px -10px 24px; border-radius: 12px; background: #162338 url("./caseboard.svg") center / cover; border-bottom: 1px solid #e6c78e55; }
body.is-auth { min-width: 0; }
.auth-panel input { font-size: 16px; }
.kakao-login { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 10px; background: #fee500; color: #191919; font-weight: 600; cursor: pointer; }
.kakao-login:disabled { opacity: .45; cursor: not-allowed; }
.auth-social-hint { margin: 9px 0 18px; color: #9fb2a0; font-size: 12px; line-height: 1.8; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #a5b09f; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #adc6de33; }
.auth-notice { padding: 12px; border-left: 2px solid #e6c78e; background: #e6c78e12; color: #e6c78e; font-size: 13px; line-height: 1.8; }
.social-signup-page { display: grid; min-height: 100vh; place-items: center; padding: 32px 20px; background: linear-gradient(#101724cc, #101724ee), url("./village.svg") center / cover; }
.social-signup-page .panel { max-width: 520px; padding: 30px; }
.social-signup-page h1 { margin-top: 14px; font-size: 28px; }
.social-signup-page .form-stack { margin: 24px 0 12px; }
.social-signup-page input { font-size: 16px; }
@media (max-width: 760px) {
  .waiting-grid { grid-template-areas: "chat" "main" "aside"; grid-template-columns: minmax(0, 1fr); }
  .waiting-chat { position: static; }
  .waiting-chat .waiting-feed { max-height: 200px; }
}
@media (max-width: 1100px) {
  .night-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staging-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .casebook-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
  .is-social .main-content { padding: 24px 16px 32px; }
  .lobby-cinematic { min-height: 320px; }
  .lobby-cinematic-copy { padding: 26px 20px 42px; }
  .lobby-cinematic-copy .eyebrow { font-size: 9px; }
  .lobby-cinematic-copy > p:not(.eyebrow) { font-size: 12px; }
  .lobby-hero-actions { gap: 7px; margin-top: 14px; }
  .lobby-hero-actions .button { min-height: 44px; padding: 8px 12px; }
  .lobby-scene-label { bottom: 14px; left: 22px; right: auto; font-size: 8px; }
  .lobby-paths { grid-template-columns: 1fr; gap: 8px; margin: 16px 0 24px; }
  .lobby-paths > button { gap: 8px; padding: 18px; }
  .lobby-paths strong { font-size: 15px; }
  .lobby-pulse { gap: 10px; font-size: 11px; }
  .night-mode-card { gap: 10px; padding: 16px 12px; }
  .night-mode-card > strong { font-size: 15px; }
  .social-page .section-title-row { flex-wrap: wrap; gap: 12px; }
  .social-page .section-title-row h2 { font-size: 18px; }
  .room-create-dialog { max-height: 92dvh; padding: 14px; border-radius: 16px; }
  .create-mode-group > summary { grid-template-columns: 1fr; gap: 3px; }
  .create-mode-option { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .create-mode-icon { width: 28px; height: 28px; }
  .create-mode-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
  .room-create-selected { grid-template-columns: 32px minmax(0, 1fr); }
  .room-create-selected .button { grid-column: 1 / -1; width: 100%; }
  .social-page .open-room-card { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .social-page .open-room-card .mode-icon { display: none; }
  .social-page .open-room-info { flex-basis: 65%; }
  .social-page .open-room-info strong { font-size: 14px; }
  .social-page .open-room-card .button { margin-left: auto; }
  .staging-scene { min-height: 250px; padding: 24px 18px; }
  .staging-scene > span { font-size: 26px; }
  .staging-scene .eyebrow { font-size: 9px; }
  .staging-scene > span small { font-size: 8px; }
  .staging-progress { gap: 6px; }
  .staging-progress li { font-size: 10px; padding: 9px; }
  .staging-seat { min-height: 152px; }
  .casebook-layout { grid-template-columns: 1fr; }
  .wardrobe-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .boutique-page .shop-item:hover { transform: none; }
  .wardrobe-item { padding: 10px; }
  .wardrobe-item p { min-height: 0; }
  .case-file-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .case-file-list button { padding: 12px 10px; gap: 10px; min-width: 0; }
  .case-file-list strong { font-size: 12px; line-height: 1.7; }
  .case-file-list small { font-size: 10px; line-height: 1.7; }
  .casebook-topline { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .night-mode-grid { grid-template-columns: 1fr; }
  .preparation-player-list { grid-template-columns: 1fr; }
  .staging-scene { display: block; }
  .staging-scene > span { display: block; margin-top: 16px; }
  .staging-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wardrobe-items { grid-template-columns: 1fr; }
}

.social-page {
  --gold: #e7c994;
  --gold-strong: #f2d9a6;
}
.is-social .sidebar {
  border-right-color: #c8d5e01b;
  background: linear-gradient(180deg, #101824f7, #0c131df7);
  box-shadow: 10px 0 45px #03070c40;
}
.social-page .page-heading { margin-bottom: 32px; }
.social-page .page-heading h1 { text-shadow: 0 6px 30px #0008; }
.social-page .panel,
.social-page .feature-card,
.social-page .open-room-card,
.social-page .night-mode-card,
.social-page .lobby-paths > button {
  border-color: #b9cde322;
  box-shadow: 0 14px 40px #02071126, inset 0 1px #f7f2e10a;
}
.lobby-cinematic {
  min-height: clamp(390px, 44vw, 540px);
  border-color: #bec8d15c;
  background:
    radial-gradient(ellipse at 72% 38%, #c9a77819, transparent 38%),
    linear-gradient(135deg, #142033, #1d2634 50%, #101824);
  box-shadow: 0 28px 70px #02060c8c, inset 0 1px #fff2;
}
.lobby-cinematic .lobby-village {
  opacity: .74;
  filter: brightness(.66) saturate(.76) contrast(1.12) hue-rotate(190deg);
  transform: scale(1.025);
  animation: lobby-night-drift 32s ease-in-out infinite alternate;
}
.lobby-cinematic::before {
  z-index: -1;
  background:
    linear-gradient(90deg, #0b121ff5 0%, #0d1627d9 36%, #0c14268c 66%, #09111c25),
    linear-gradient(0deg, #07101df2, transparent 48%);
}
.lobby-cinematic::after {
  position: absolute;
  z-index: -1;
  inset: 38% -12% -12%;
  background: radial-gradient(ellipse at 48% 100%, #9daeb629, #71849a12 35%, transparent 70%);
  content: "";
  pointer-events: none;
  animation: lobby-low-mist 18s ease-in-out infinite alternate;
}
.lobby-cinematic-copy {
  padding: clamp(26px, 5vw, 60px);
  text-shadow: 0 5px 26px #020611b3;
}
.lobby-cinematic h2 {
  max-width: 620px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.2;
  text-wrap: balance;
}
.lobby-cinematic-copy > p:not(.eyebrow) { max-width: 490px; color: #d0d6de; }
.lobby-hero-actions .button { box-shadow: 0 10px 26px #02060a55; }
.lobby-scene-label {
  right: 22px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid #d4d9de2b;
  border-radius: 99px;
  background: #080e18a8;
  backdrop-filter: blur(12px);
  letter-spacing: .13em;
}
.lobby-pulse { margin: 0 4px; }
.social-page .section-title-row { align-items: end; }
.social-page .button,
.social-page button:not(.nav-link) {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.social-page .button:not(:disabled):hover { box-shadow: 0 7px 22px #02060a55; }
.social-page .night-mode-card { position: relative; overflow: hidden; }
.social-page .night-mode-card::after {
  position: absolute;
  top: -48px;
  right: -52px;
  width: 118px;
  height: 118px;
  border: 1px solid #e5d3ac17;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.social-page :is(input, select, textarea) {
  border-color: #b8cbe02e;
  background-color: #101a29;
}
.social-page :is(input, select, textarea):focus-visible {
  border-color: #e7c994c2;
  box-shadow: 0 0 0 4px #e7c99419;
}
@keyframes lobby-night-drift {
  from { transform: scale(1.025) translate3d(-.4%, 0, 0); }
  to { transform: scale(1.07) translate3d(.8%, -1%, 0); }
}
@keyframes lobby-low-mist {
  from { opacity: .45; transform: translate3d(-3%, 0, 0); }
  to { opacity: .9; transform: translate3d(4%, -8px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lobby-cinematic .lobby-village,
  .lobby-cinematic::after { animation: none; }
}
@media (max-width: 700px) {
  .lobby-cinematic { min-height: 300px; }
  .lobby-cinematic .lobby-village { opacity: .62; object-position: 61% 52%; }
  .lobby-cinematic::before {
    background:
      linear-gradient(90deg, #0b121fef 0%, #0d1627bf 65%, #09111c40),
      linear-gradient(0deg, #07101df5, transparent 68%);
  }
  .lobby-cinematic-copy { padding: 20px 18px 48px; }
  .lobby-cinematic h2 { margin: 10px 0; font-size: clamp(30px, 8vw, 40px); }
  .lobby-cinematic-copy > p:not(.eyebrow) { margin: 8px 0; line-height: 1.65; }
  .lobby-scene-label { right: 14px; bottom: 12px; font-size: 8px; }
}

.is-social .sidebar { background: linear-gradient(180deg, #101824, #0d141e); }
.is-social .mobile-topbar,
.is-social .mobile-nav { background: #101824f5; }
.is-social .nav-link { border-radius: 11px; }
.is-social .nav-link.is-active { background: #223246; box-shadow: inset 2px 0 #e7c994; }
.is-social .nav-link.is-active > span { color: #e7c994; }
.social-page > .page-heading { margin-bottom: 20px; }
.social-page > .page-heading .page-subtitle { max-width: 650px; }
.social-page .section-title-row { margin-bottom: 12px; }
.social-page .section-title-row h2 { font-size: 18px; }
.first-night-path {
  gap: 18px;
  margin: 0 0 16px;
  padding: clamp(18px, 2.4vw, 24px);
  border-color: #b9cde32e;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d2d3e, #162332);
  box-shadow: 0 10px 28px #02071120;
}
.first-night-path h2 { font-size: clamp(21px, 2.5vw, 27px); }
.first-night-path-copy > p:not(.eyebrow) { margin: 8px 0 12px; font-size: 13px; }
.first-night-progress { margin: 12px 0; }
.first-night-steps { gap: 7px; }
.first-night-steps li { min-height: 52px; padding: 7px 9px; border-color: #9fb3c222; background: #101b28a8; }
.first-night-steps li > span { width: 28px; height: 28px; }
.lobby-cinematic {
  min-height: clamp(320px, 33vw, 420px);
  border-color: #bec8d13d;
  border-radius: 20px;
  box-shadow: 0 18px 44px #02060c55, inset 0 1px #fff2;
}
.lobby-cinematic-copy { padding: clamp(24px, 4vw, 42px); }
.lobby-cinematic h2 { max-width: 550px; font-size: clamp(32px, 4vw, 48px); line-height: 1.22; }
.lobby-cinematic-copy > p:not(.eyebrow) { max-width: 450px; font-size: 13px; line-height: 1.7; }
.lobby-hero-actions { gap: 8px; margin-top: 16px; }
.lobby-hero-actions .button { min-height: 44px; }
.lobby-pulse { justify-content: flex-start; gap: 8px; margin: 12px 0 4px; padding: 0; border: 0; }
.lobby-pulse > span { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid #b9cde322; border-radius: 999px; background: #142131; font-size: 11px; }
.lobby-pulse .online-dot { width: 6px; height: 6px; }
.lobby-grid { display: grid; width: 100%; max-width: 1080px; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 14px; margin: 14px auto 0; }
.lobby-grid > .panel { max-width: none; min-width: 0; padding: 18px; }
.lobby-online-panel { display: grid; align-content: start; gap: 8px; }
.lobby-online-panel .section-title-row { margin-bottom: 0; }
.lobby-online-panel .section-title-row h2 span { color: var(--gold); font-size: 13px; }
.lobby-online-help { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.lobby-online-list { display: grid; max-height: 360px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-content: start; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 2px 0; }
.lobby-online-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #b9cde322; border-radius: 10px; background: #111d2a; }
.lobby-online-identity { display: grid; min-width: 0; gap: 3px; }
.lobby-online-identity strong { overflow: hidden; color: #f0dfbd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-online-identity span { color: var(--muted); font-size: 9px; }
.lobby-online-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.lobby-online-actions .button { white-space: nowrap; }
.lobby-public-profile { text-align: center; }
.lobby-public-profile-avatar { display: grid; width: 76px; height: 76px; place-items: center; margin: 20px auto 10px; border: 1px solid #e7c99488; border-radius: 22px; background: linear-gradient(145deg, #32495c, #172438); color: var(--gold); font-size: 32px; }
.lobby-public-profile h2 { margin: 0; }
.lobby-online-actions .button { min-width: 62px; min-height: 36px; padding: 5px 9px; font-size: 10px; }
.lobby-friend-pending { color: var(--muted); font-size: 9px; white-space: nowrap; }
.room-list-section { margin-top: 24px; }
.room-list-section .section-title-row { margin-bottom: 11px; }
.room-list-section .section-title-row h2 { font-size: 19px; }
.room-discovery-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); gap: 10px; margin-bottom: 12px; }
.room-discovery-controls label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 11px; }
.room-discovery-controls input, .room-discovery-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #b9cde333; border-radius: 10px; background: #101b2b; color: var(--text); font: inherit; font-size: 14px; }
.room-discovery-controls input:focus, .room-discovery-controls select:focus { border-color: #e6c78e99; outline: 2px solid #e6c78e33; }
.room-filters { gap: 7px; margin-bottom: 12px; }
.room-filters button { min-height: 40px; padding: 7px 13px; border-color: #b9cde322; background: #152234; font-size: 11px; }
.room-filters button[aria-pressed="true"] { border-color: #e7c9948a; background: #e7c99414; }
.room-filters .room-refresh-button { margin-left: auto; border-radius: 10px; }
.open-room-list { gap: 7px; }
.social-page .open-room-card { min-height: 68px; gap: 12px; padding: 11px 13px; border-color: #b9cde322; border-radius: 14px; background: #172436; }
.social-page .open-room-card .mode-icon { flex: 0 0 36px; width: 36px; height: 36px; margin: 0; border-radius: 11px; }
.social-page .open-room-info strong { font-size: 13px; }
.social-page .open-room-info small { font-size: 10px; }
.room-member-list { gap: 5px; margin-top: 7px; }
.room-member { gap: 4px; padding: 4px; }
.room-member-name { max-width: 90px; font-size: 10px !important; }
.room-member-action { min-height: 34px; padding-inline: 7px; font-size: 9px; }
.social-page .open-room-card .button { min-height: 38px; border-radius: 10px; }
.social-page .empty-state { padding: 24px 18px; border-color: #b9cde322; border-radius: 16px; background: #142131; }
.social-page .empty-state .empty-icon { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; font-size: 20px; }
.social-page .empty-state h2 { margin-bottom: 6px; font-size: 18px; }
.social-page .empty-state p { margin-bottom: 0; font-size: 12px; }
@media (max-width: 760px) {
  .is-social .main-content { padding: 18px 14px calc(26px + env(safe-area-inset-bottom)); }
  .social-page > .page-heading { margin-bottom: 14px; }
  .first-night-path { gap: 12px; margin-bottom: 12px; padding: 16px; }
  .first-night-path-copy > p:not(.eyebrow) { margin: 6px 0 10px; }
  .first-night-progress { margin: 10px 0; }
  .first-night-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .first-night-steps li { grid-template-columns: 1fr; align-content: start; gap: 5px; min-height: 86px; padding: 8px; }
  .first-night-steps li > span { width: 24px; height: 24px; font-size: 10px; }
  .first-night-steps strong { font-size: 10px; line-height: 1.4; }
  .first-night-steps small { font-size: 8px; line-height: 1.35; }
  .lobby-cinematic { min-height: 280px; border-radius: 17px; }
  .lobby-cinematic-copy { padding: 18px 16px 42px; }
  .lobby-cinematic h2 { max-width: 420px; margin: 8px 0; font-size: clamp(28px, 7.5vw, 36px); }
  .lobby-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-hero-actions .button { min-width: 0; padding-inline: 10px; font-size: 11px; }
  .lobby-hero-actions .button:last-child { grid-column: 1 / -1; }
  .lobby-pulse { gap: 6px; }
  .lobby-pulse > span { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .lobby-grid > .panel { padding: 15px; }
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-online-list { max-height: 280px; grid-template-columns: 1fr; }
  .room-list-section { margin-top: 20px; }
  .room-discovery-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .room-discovery-controls label { font-size: 10px; }
  .room-discovery-controls input, .room-discovery-controls select { min-height: 42px; padding-inline: 9px; font-size: 13px; }
  .room-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .room-filters::-webkit-scrollbar { display: none; }
  .room-filters button { flex: 0 0 auto; }
  .room-filters .room-refresh-button { margin-left: 0; }
  .social-page .open-room-card { flex-wrap: nowrap; gap: 8px; padding: 10px; }
  .social-page .open-room-info { flex-basis: 0; }
  .social-page .open-room-card .button { margin-left: 0; padding-inline: 10px; }
}
@media (max-width: 390px) {
  .lobby-pulse > span { padding-inline: 7px; font-size: 9px; }
  .room-discovery-controls { grid-template-columns: minmax(0, 1fr); }
  .social-page .open-room-card .room-count { font-size: 9px; }
}
.is-social .main-content > .page-wrap { max-width: 1200px; }
.is-social .page-heading { gap: 16px; }
.is-social .page-heading h1 { font-size: clamp(27px, 3vw, 36px); text-shadow: none; }
.is-social .user-menu { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.is-social .user-menu button { min-height: 38px; padding: 0 11px; border-radius: 999px; background: #172436; font-size: 11px; }
.is-social .user-menu button:hover { border-color: #e7c99466; background: #202f42; color: #f2d9a6; }
.is-social .main-content .panel:not(.account-hero) {
  border-color: #b9cde322;
  border-radius: 16px;
  background: #172334;
  box-shadow: 0 8px 26px #02071120;
}
.is-social .main-content .beginner-entry {
  border-color: #b9cde322;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d2d3e, #162332);
}
.is-social .main-content .notice { border-color: #b9cde322; border-radius: 14px; background: #142131; }
@media (max-width: 760px) {
  .is-social .main-content > .page-wrap { max-width: 100%; }
  .is-social .page-heading { gap: 10px; }
  .is-social .user-menu { justify-content: flex-start; }
  .is-social .user-menu button { min-height: 36px; padding-inline: 10px; }
}
@media (max-width: 390px) {
  .is-social .user-menu { gap: 5px; }
  .is-social .user-menu button { padding-inline: 8px; font-size: 10px; }
}

/* ===== v67 · 13-part avatar gear ===== */
.avatar-gear { stroke: #1b1f29; stroke-width: .7; stroke-linejoin: round; }
.avatar-gear-line { fill: none; stroke: #00000055; stroke-width: .6; }
.avatar-gear-band { fill: none; stroke: #2b2733; stroke-width: 1.6; stroke-linecap: round; }
.avatar-gear-star { fill: #f2d9a6; }
.avatar-gear-dot { fill: #2b2733; }
.avatar-gear-sole { fill: none; stroke: #ffffff; stroke-width: 1.1; stroke-linecap: round; }
.avatar-muff { stroke-width: .9; }
.avatar-glasses { fill: none; stroke-width: .75; stroke-linecap: round; }
.avatar-glasses.is-thick { stroke-width: 1.05; }
.avatar-glasses.is-shades path:first-child { stroke-width: .6; }
.avatar-wings path { stroke: #1b1f2966; stroke-width: .7; stroke-linejoin: round; }
.avatar-wings.is-fairy { opacity: .78; }
.avatar-wing-line { fill: none !important; stroke: #00000030 !important; }
.avatar-watch-face { fill: #f4efe2; stroke-width: .7; }
.avatar-watch-hand { fill: none; stroke: #1b1f29; stroke-width: .45; stroke-linecap: round; }

/* ===== boutique ===== */
.boutique-hero { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-color: #e6c78e44; background: radial-gradient(circle at 18% 30%, #e6c78e22, transparent 46%), linear-gradient(150deg, #1d2c42, #111b29); }
.boutique-stage { display: grid; place-items: center; min-height: 250px; border-radius: 18px; background: radial-gradient(ellipse at 50% 85%, #e6c78e30, transparent 60%), linear-gradient(180deg, #24364d, #142131); box-shadow: inset 0 0 0 1px #e6c78e22; }
.boutique-avatar { position: static; display: grid; width: 180px; height: auto; place-items: center; overflow: visible; background: none; border: 0; box-shadow: none; }
.boutique-avatar .walking-person { width: 180px; height: auto; overflow: visible; animation: none; filter: drop-shadow(0 12px 18px #0008); }
.wardrobe-preview .wardrobe-badge { color: var(--gold); font-size: 10px; line-height: 1.4; }
.wardrobe-preview .wardrobe-badge.is-basic { color: #8accc1; }
.wardrobe-preview .wardrobe-badge.is-premium { color: #1b1408; }
.boutique-hero-copy h2 { margin: 6px 0; font-size: 26px; }
.boutique-preview-label { display: block; color: var(--gold); font-size: 13px; }
.boutique-meter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.boutique-meter span { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: #0d1622; color: var(--muted); font-size: 11px; }
.boutique-hero-copy p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.boutique-page .shop-item { position: relative; overflow: hidden; border-color: #d9c59438; background: linear-gradient(150deg, #1c2b3a, #111a24); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.boutique-page .shop-item:hover { transform: translateY(-3px); border-color: #e6c78e88; box-shadow: 0 12px 30px #03080d66; }
.boutique-page .shop-art { height: 116px; border: 1px solid #e6c78e22; background: radial-gradient(circle at 50% 40%, #e6c78e2b, #1b2b3b 72%); font-size: 42px; }
.boutique-page .shop-item h2 { font-size: 15px; }
.boutique-page .shop-item p { min-height: 42px; font-size: 11px; }
.wardrobe-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); gap: 8px; margin: 4px 0 16px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wardrobe-tab { display: grid; justify-items: center; gap: 3px; min-height: 76px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 13px; background: #142131; color: var(--text); cursor: pointer; scroll-snap-align: start; }
.wardrobe-tab span { color: var(--gold); font-size: 20px; line-height: 1; }
.wardrobe-tab strong { font-size: 12px; }
.wardrobe-tab small { max-width: 100%; overflow: hidden; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.wardrobe-tab[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(160deg, #3a3423, #1d2a3b); box-shadow: 0 0 0 1px #e6c78e55, 0 6px 18px #0006; }
.wardrobe-swatch { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: radial-gradient(circle at 35% 30%, #ffffff40, transparent 55%), var(--swatch); box-shadow: inset 0 0 0 1px #ffffff26; color: #fff !important; font-size: 18px !important; text-shadow: 0 1px 3px #000a; }
.wardrobe-badge { padding: 3px 8px; border-radius: 999px; background: #e6c78e1f; color: var(--gold); font-size: 10px; font-weight: 700; }
.wardrobe-badge.is-basic { background: #8accc11f; color: #8accc1; }
.wardrobe-badge.is-premium { background: linear-gradient(90deg, #f2c879, #e88a5c); color: #1b1408; }
.wardrobe-item.is-premium { border-color: #f2c87955; background: linear-gradient(145deg, #2a2418, #131b28); }
.wardrobe-item.is-locked .wardrobe-swatch { filter: grayscale(.65) brightness(.75); }
.button.gold { border-color: #f2c879; background: linear-gradient(90deg, #f2c879, #e8a55c); color: #1b1408; }
.button.danger { border-color: #e48678; background: #a8433a; color: #fff; }
.premium-skins { margin-top: 24px; }

/* ===== waiting room ===== */
.staging-heading .eyebrow { letter-spacing: .14em; }
.invite-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; font-size: 18px; }
.invite-card h2 span { padding: 4px 10px; border-radius: 999px; background: #8accc11f; color: #8accc1; font-size: 11px; }
.invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.invite-actions .button { min-height: 44px; padding: 0 10px; font-size: 12px; }
#social-notifications { position: fixed; z-index: 125; top: max(14px, env(safe-area-inset-top)); right: 14px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.social-notification { pointer-events: auto; padding: 12px; border: 1px solid #d6bd8380; border-radius: 14px; background: #152537; box-shadow: 0 10px 24px #0008; }
.social-notification > strong { color: #f5dfac; }
.social-notification p { margin: 6px 0 8px; overflow-wrap: anywhere; }
.social-notification > div { display: flex; flex-wrap: wrap; gap: 6px; }
.social-notification .button { min-height: 44px; padding-inline: 10px; }
.rule-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.rule-chip { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 11px; border: 1px solid var(--border); border-radius: 12px; background: #0f1a28; }
.rule-chip span { grid-row: span 3; color: var(--gold); font-size: 20px; }
.rule-chip small { color: var(--faint); font-size: 10px; }
.rule-chip strong { color: var(--text); font-size: 15px; }
.rule-chip em { color: var(--muted); font-size: 10px; font-style: normal; }
.rule-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-tag { padding: 5px 10px; border: 1px solid #e6c78e44; border-radius: 999px; background: #e6c78e12; color: var(--gold); font-size: 11px; font-weight: 700; }
.rule-tag.is-empty { border-color: var(--border); background: none; color: var(--faint); font-weight: 500; }
.room-settings { padding: 0; overflow: hidden; }
.room-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 14px 16px; cursor: pointer; list-style: none; }
.room-settings > summary::-webkit-details-marker { display: none; }
.room-settings > summary span { font-weight: 700; }
.room-settings > summary small { color: var(--faint); font-size: 10px; text-align: right; }
.room-settings > summary::after { content: "▾"; color: var(--gold); transition: transform .2s; }
.room-settings[open] > summary::after { transform: rotate(180deg); }
.room-settings .room-rules-form { display: grid; gap: 14px; padding: 0 16px 16px; }
.room-timing-settings { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.room-timing-settings legend { margin-bottom: 4px; color: var(--gold); font-weight: 700; }
.room-timing-settings legend small { margin-left: 6px; color: var(--faint); font-size: 10px; font-weight: 500; }
.timing-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #0f1a28; }
.timing-field.is-disabled { opacity: .55; }
.timing-field > label { font-size: 13px; font-weight: 700; }
.timing-field > output { color: var(--gold); font-size: 12px; font-weight: 700; text-align: right; }
.timing-input { grid-column: 1 / -1; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #0a131e; }
.timing-input input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--text); font-size: 16px; font-weight: 700; }
.timing-input span { padding: 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.timing-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.timing-presets button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: #182638; color: var(--muted); font-size: 12px; cursor: pointer; }
.timing-presets button[aria-pressed="true"] { border-color: var(--gold); background: #e6c78e1f; color: var(--gold); }
.timing-field > small { grid-column: 1 / -1; color: var(--faint); font-size: 11px; line-height: 1.6; }
.seat-crown { position: absolute; top: 8px; right: 10px; color: var(--gold); font-size: 15px; text-shadow: 0 0 10px #e6c78e88; }
.seat-kick { position: absolute; top: 6px; right: 6px; z-index: 4; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #e4867855; border-radius: 50%; background: #2a1820dd; color: #f0a99f; font-size: 12px; cursor: pointer; }
.staging-seat:has(.seat-crown) .seat-kick { top: 30px; }
.seat-kick:hover, .seat-kick:focus-visible { background: #a8433a; color: #fff; }
.seat-record { color: var(--muted); font-size: 10px; }
.seat-state { color: var(--faint); font-size: 10px; }
.staging-seat.is-ready .seat-state { color: #b1dfc9; }
.staging-seat.is-bot { background: linear-gradient(160deg, #22303f, #182433); }
.seat-kick-confirm { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; gap: 8px; padding: 10px; border-radius: 12px; background: #120c12f0; text-align: center; }
.seat-kick-confirm p { margin: 0; font-size: 13px; font-weight: 700; }
.seat-kick-confirm p small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.seat-kick-confirm .button { min-height: 38px; font-size: 12px; }
.profile-modal-hero { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; margin: 6px 0 14px; clear: both; }
.profile-modal-avatar { display: grid; place-items: center; height: 130px; border-radius: 16px; background: radial-gradient(ellipse at 50% 85%, #e6c78e2a, transparent 60%), #17293a; }
.profile-modal-avatar svg { width: 92px; height: auto; }
.profile-bio { margin: 8px 0 0; color: #dfe8ee; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* ===== account hero ===== */
.account-hero { display: grid; width: 100%; min-width: 0; box-sizing: border-box; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 16px; background: radial-gradient(circle at 10% 30%, #e6c78e1c, transparent 45%), var(--surface); }
.account-hero > * { min-width: 0; }
.account-hero-avatar.seat-portrait { display: grid; width: 100%; max-width: 100%; min-width: 0; height: 190px; overflow: visible; place-items: center; border: 0; border-radius: 18px; background: radial-gradient(ellipse at 50% 85%, #e6c78e30, transparent 60%), #17293a; }
.account-hero-avatar svg { width: min(100%, 120px); max-width: 100%; height: auto; }
.account-hero-copy { min-width: 0; overflow-wrap: anywhere; }
.account-hero-copy h2 { margin: 4px 0; font-size: 24px; }
.bio-form { display: grid; gap: 6px; margin: 12px 0; }
.bio-form label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.bio-form label span { color: var(--faint); font-weight: 500; }
.bio-form input { font-size: 16px; }
.bio-form small { color: var(--faint); font-size: 11px; }

/* ===== beginner journey ===== */
.journey-paths .journey-step { position: relative; overflow: hidden; }
.journey-step.is-current { border-color: var(--gold); background: linear-gradient(150deg, #3a3423, #1b293b); box-shadow: 0 0 0 1px #e6c78e55, 0 10px 26px #0007; }
.journey-step.is-current::after { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1b1408; content: "지금 할 일"; font-size: 10px; font-weight: 800; }
.journey-step.is-done { opacity: .78; }
.journey-step.is-done span { color: #8accc1; }

@media (max-width: 760px) {
  .boutique-hero { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .boutique-stage { min-height: 200px; }
  .boutique-avatar, .boutique-avatar .walking-person { width: 136px; }
  .wardrobe-tabs { grid-auto-columns: 78px; margin-inline: -4px; }
  .rule-summary { grid-template-columns: 1fr 1fr; }
  .account-hero { grid-template-columns: minmax(72px, 96px) minmax(0, 1fr); gap: 12px; }
  .account-hero-avatar.seat-portrait { height: 130px; }
  .account-hero-avatar svg { width: 80px; }
  .journey-step.is-current::after { top: 8px; right: 8px; }
}
@media (max-width: 420px) {
  .invite-actions { grid-template-columns: 1fr; }
  .profile-modal-hero { grid-template-columns: 84px 1fr; }
  .profile-modal-avatar.seat-portrait { height: 120px; }
}

/* The equipped top colors the sleeves so coat changes read clearly over the outfit body. */
.avatar-body, .avatar-sleeve { fill: var(--avatar-outerwear, var(--avatar-color)); }




/* Speech bubbles sit over the speaker's head inside the seat so they never cover the roster heading. */
.staging-seats .staging-speech { top: 8px; width: calc(100% - 16px); max-height: 54px; transform: translateX(-50%); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 6px 8px; border-radius: 10px 10px 10px 2px; font-size: 10px; pointer-events: none; animation: staging-speech-life 8s both; animation-delay: var(--speech-age); }
.staging-seats .staging-speech strong { display: none; }
@keyframes staging-speech-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes staging-speech-life { 0% { opacity: 0; } 6%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.waiting-main { scroll-margin-top: 16px; }
.staging-page .staging-scene { display: none; }
.staging-page .waiting-grid { align-items: start; scroll-margin-top: 64px; }
.waiting-play-area { display: contents; }
.staging-page .staging-seats { max-height: none; overflow: visible; }
.staging-room-tools { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 7; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #101724; }
.staging-room-tools .button { min-height: 44px; padding-inline: 12px; }
.staging-room-tools .staging-exit { margin-left: auto; }
.waiting-ready-panel, .lobby-invite-panel { min-width: 0; margin: 12px 0; padding: clamp(10px, 2vw, 18px); border: 1px solid #d6bd8360; border-radius: 16px; background: radial-gradient(ellipse at top right, #59482d50, transparent 70%), linear-gradient(145deg, #1d3043, #111e2c); }
.waiting-ready-top, .lobby-invite-heading, .lobby-invite-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.waiting-ready-top h3, .lobby-invite-heading h3 { margin: 4px 0 0; color: #f5e1b5; font-size: 17px; }
.waiting-vacancy { padding: 4px 8px; border: 1px solid #edcd8952; border-radius: 99px; color: #f5d894; font-size: 11px; white-space: nowrap; }
.staging-page .waiting-ready-panel .waiting-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0; }
.waiting-ai-confirm { margin-bottom: 10px; padding: 12px; border: 1px solid #e7c99475; border-radius: 12px; background: #232734; }
.waiting-ai-confirm h4 { margin: 4px 0; color: #f5e1b5; font-size: 15px; }
.waiting-ai-confirm > p:not(.eyebrow) { margin: 6px 0 10px; color: #c1ccdb; font-size: 12px; line-height: 1.65; }
.waiting-ai-confirm .waiting-ai-buttons { justify-content: flex-end; }
.waiting-ai-controls { padding-top: 10px; border-top: 1px solid #aebad431; }
.waiting-ai-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.plaza-invite-status { margin-bottom: 12px; }
.plaza-invite-status .button { min-height: 44px; margin-bottom: 4px; }
.invite-only-option { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #9ab5cc3d; border-radius: 12px; background: #101927; cursor: pointer; }
.invite-only-option input[type="checkbox"] { box-sizing: border-box; width: 20px !important; height: 20px !important; min-height: 20px !important; margin: 0; accent-color: #e7c994; }
.invite-only-option > span { display: grid; gap: 3px; }
.invite-only-option strong { color: #f0dfb9; font-size: 13px; }
.invite-only-option small { color: #b6c4d0; font-size: 11px; line-height: 1.4; }
.waiting-ai-buttons .button, .lobby-invite-panel .button { min-height: 44px; padding: 5px 10px; font-size: 12px; }
.waiting-ai-controls p, .lobby-invite-description, .lobby-invite-empty { margin: 8px 0 0; color: #c1ccdb; font-size: 12px; line-height: 1.65; }
.staging-page button.staging-seat.is-empty:hover, .staging-page button.staging-seat.is-empty:focus-visible { border-color: #e7c994; background: #e7c99413; }
.staging-page .staging-seat.is-empty > .seat-invite-mark { display: grid; place-items: center; min-width: 32px; min-height: 32px; border-radius: 50%; background: #e7c99414; color: #efd39a; }
.lobby-invite-panel { scroll-margin-block: 126px 80px; }
.lobby-invite-toolbar { margin-top: 10px; color: #acf0d9; font-size: 12px; }
.lobby-invitees-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.lobby-invitees-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #9ab5cc3d; border-radius: 10px; background: #101927; overflow-wrap: anywhere; }
.lobby-invite-avatar { display: grid; place-items: center; width: 44px; height: 54px; overflow: hidden; border-radius: 10px; background: #273f54; }
.lobby-invite-avatar .walking-person { width: 100%; height: 100%; }
.lobby-invite-copy { display: grid; min-width: 0; gap: 2px; }
.lobby-invite-copy small { color: #c1ccdb; font-size: 10px; }
.lobby-invite-copy p { margin: 0; overflow: hidden; color: #d7dce2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-invite-empty { padding: 10px; border: 1px dashed #9ab5cc63; border-radius: 9px; }
.invite-link-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 12px; }
.invite-link-field label { grid-column: 1 / -1; color: #f1d9a6; font-size: 12px; }
.invite-link-field input, .invite-link-field .button { min-width: 0; min-height: 44px; padding: 0 8px; font-size: 12px; }
@media (max-width: 760px) {
  .room-create-modal { top: var(--visible-viewport-top, 0px); bottom: auto; height: var(--match-visible-height, 100dvh); box-sizing: border-box; }
  .room-create-dialog { max-height: 100%; }
  .staging-room-tools { top: 58px; }
  .staging-page .waiting-grid { grid-template-areas: "play" "aside"; }
  .waiting-play-area { display: grid; grid-area: play; grid-template-areas: "main" "chat"; grid-template-rows: auto auto; height: auto; min-height: 0; gap: 8px; }
  .staging-page .waiting-main { position: static; padding: 12px; height: auto; min-height: 0; box-sizing: border-box; overflow: visible; }
  .staging-page .staging-seats { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .staging-page .waiting-actions { margin: 8px 0; }
  .staging-page .room-identity-note { font-size: 11px; margin: 6px 0; }
  .staging-page .waiting-chat { position: static; display: flex; flex-direction: column; min-height: 0; height: auto; box-sizing: border-box; overflow: hidden; padding: 12px; }
  .staging-page .waiting-chat .waiting-feed { flex: 0 1 auto; min-height: 90px; max-height: 220px; }
  .staging-page .waiting-chat .quick-claims { display: none; }
  .staging-page .waiting-chat .chat-form { flex-shrink: 0; margin-bottom: 0; }
  .staging-page .staging-progress, .staging-page .staging-status { display: none; }
  .staging-page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .staging-page .waiting-chat .chat-form { position: fixed; right: 10px; bottom: calc(var(--match-keyboard-inset, 0px) + 62px + env(safe-area-inset-bottom)); left: 10px; z-index: 9; margin: 0; padding: 8px 10px; border: 1px solid #d7b66a66; border-radius: 14px; background: #111b29f5; box-shadow: 0 8px 28px #0008; }
  .staging-page .waiting-chat .chat-form label { margin: 0 0 5px; font-size: 11px; }
  .staging-page .waiting-chat .chat-form label span { display: inline; margin-left: 4px; font-size: 10px; }
  .staging-page .waiting-chat .chat-compose input { min-height: 42px; padding: 8px 10px; }
  .staging-page .waiting-chat .chat-compose .button { min-height: 42px; }
}
