/* Homepage chatroom entry: visual structure follows the supplied card template. */
#page-home #home-chatroom-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 404px;
    box-sizing: border-box;
    margin: 20px auto;
    padding: 15px 15px 14px;
    overflow: hidden;
    border: 1px solid #E6E9EF;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%);
    color: #1F2329;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(16,24,40,.055), 0 1px 3px rgba(16,24,40,.03);
    transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
#page-home #home-chatroom-card[hidden] { display: none; }
#page-home #home-chatroom-card:hover { border-color: #D2E8DA; box-shadow: 0 14px 32px rgba(56,183,100,.09), 0 2px 6px rgba(16,24,40,.04); }
#page-home #home-chatroom-card:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(16,24,40,.05); }
#page-home #home-chatroom-card:focus-visible { outline: 2px solid #38B764; outline-offset: 3px; }
#page-home #home-chatroom-card::before { content: ""; position: absolute; top: -36px; right: -28px; width: 170px; height: 120px; background: radial-gradient(circle, rgba(56,183,100,.13) 0%, rgba(56,183,100,0) 70%); pointer-events: none; z-index: 0; }
#page-home .home-chatroom-map { position: absolute; top: -4px; right: 44px; width: 124px; height: 66px; opacity: .85; pointer-events: none; z-index: 0; }
#page-home .home-chatroom-header, #page-home .home-chatroom-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#page-home .home-chatroom-title-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
#page-home .home-chatroom-wave { display: inline-flex; align-items: center; gap: 2.2px; height: 18px; flex-shrink: 0; }
#page-home .home-chatroom-wave span { display: block; width: 2.2px; border-radius: 99px; background: #38B764; animation: homeChatroomBarDance 1.7s ease-in-out infinite; }
#page-home .home-chatroom-wave span:nth-child(1) { height: 5px; animation-delay: 0s; }
#page-home .home-chatroom-wave span:nth-child(2) { height: 11px; animation-delay: .18s; }
#page-home .home-chatroom-wave span:nth-child(3) { height: 16px; animation-delay: .36s; }
#page-home .home-chatroom-wave span:nth-child(4) { height: 11px; animation-delay: .54s; }
#page-home .home-chatroom-wave span:nth-child(5) { height: 5px; animation-delay: .72s; }
#page-home .home-chatroom-title { overflow: hidden; color: #18191C; font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
#page-home .home-chatroom-online { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 2.5px 8.5px; border: 1px solid #E2E6EC; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(16,24,40,.04); color: #374151; font-size: 11.5px; font-weight: 500; line-height: 1; }
#page-home .home-chatroom-live-dot { position: relative; width: 6.5px; height: 6.5px; flex-shrink: 0; border-radius: 50%; background: #38B764; }
#page-home .home-chatroom-live-dot::after { position: absolute; inset: -3px; border-radius: 50%; background: rgba(56,183,100,.32); content: ""; animation: homeChatroomLivePulse 2s ease-out infinite; }
#page-home .home-chatroom-send-icon { display: flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border: 1px solid #D8EFE0; border-radius: 9px; background: #EFF8F2; color: #38B764; }
#page-home .home-chatroom-send-icon svg { width: 15px; height: 15px; }
#page-home .home-chatroom-preview-well { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 9px; margin-top: 12px; padding: 10px 11px; border: 1px solid #ECEEF2; border-radius: 14px; background: #F6F7F9; }
#page-home .home-chatroom-preview-row { display: flex; min-width: 0; align-items: flex-start; gap: 9px; }
#page-home .home-chatroom-preview-row[hidden] { display: none; }
#page-home .home-chatroom-avatar { display: flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #E6E8EC; border-radius: 8px; background: #FFFFFF; color: #6E7781; font-size: 12px; font-weight: 600; }
#page-home .home-chatroom-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
#page-home .home-chatroom-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; }
#page-home .home-chatroom-meta { display: flex; max-width: 100%; min-width: 0; align-items: center; gap: 4px; margin-bottom: 3px; }
#page-home .home-chatroom-name { overflow: hidden; color: #555961; font-size: 12px; font-weight: 500; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
#page-home .home-chatroom-name.is-verified { color: #299B55; font-weight: 600; }
#page-home .home-chatroom-speech { width: 12px; height: 10.5px; flex: 0 0 12px; }
#page-home .home-chatroom-badge { width: 12px; height: 12px; flex: 0 0 12px; color: #38B764; }
#page-home .home-chatroom-badge-star, #page-home .home-chatroom-badge-crown { color: #D39A37; }
#page-home .home-chatroom-badge-heart { color: #E47785; }
#page-home .home-chatroom-badge-leaf { color: #56A876; }
#page-home .home-chatroom-content { display: block; max-width: 100%; overflow: hidden; padding: 5px 10px; border: 1px solid #E8EAEE; border-radius: 3px 10px 10px 10px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.025); color: #1F2329; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
#page-home .home-chatroom-footer { margin-top: 11px; }
#page-home .home-chatroom-footer-copy { display: flex; min-width: 0; align-items: center; gap: 8px; }
#page-home .home-chatroom-avatar-stack { display: inline-flex; width: auto; height: 22px; flex: 0 0 auto; align-items: center; overflow: visible; vertical-align: middle; }
#page-home .home-chatroom-avatar-stack-item { position: relative; display: flex; width: 22px; height: 22px; flex: 0 0 22px; align-items: center; justify-content: center; overflow: hidden; border: 1.5px solid #FFFFFF; border-radius: 50%; background: #E5E7EB; box-shadow: 0 1px 2px rgba(0,0,0,.06); color: #59636E; font-size: 9px; font-weight: 600; }
#page-home .home-chatroom-avatar-stack-item + .home-chatroom-avatar-stack-item { margin-left: -6px; }
#page-home .home-chatroom-avatar-stack-item :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
#page-home .home-chatroom-retention { overflow: hidden; color: #6E7781; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#page-home .home-chatroom-cta { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; padding: 5px 11px; border-radius: 999px; background: #38B764; box-shadow: 0 2px 8px rgba(56,183,100,.28); color: #FFFFFF; font-size: 12px; font-weight: 600; }
#page-home .home-chatroom-cta svg { width: 13px; height: 13px; }
#page-home .home-chatroom-copy.msg-swap-in { animation: homeChatroomSlideSwap .28s cubic-bezier(.22,1,.36,1) both; }
@keyframes homeChatroomBarDance { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@keyframes homeChatroomLivePulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes homeChatroomSlideSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    #page-home .home-chatroom-wave span, #page-home .home-chatroom-live-dot::after { animation: none; }
    #page-home .home-chatroom-copy.msg-swap-in { animation: none; }
}
html[data-color-mode="dark"] #page-home #home-chatroom-card { border-color: var(--mode-border, rgba(220,225,240,.16)); background: var(--mode-surface, #1c222b); color: var(--mode-text, #f2f3f5); box-shadow: var(--mode-shadow, 0 12px 32px rgba(0,0,0,.28)); }
html[data-color-mode="dark"] #page-home :is(.home-chatroom-title, .home-chatroom-content) { color: var(--mode-text, #f2f3f5); }
html[data-color-mode="dark"] #page-home :is(.home-chatroom-online, .home-chatroom-preview-well) { border-color: var(--mode-border, rgba(220,225,240,.16)); background: var(--mode-field, rgba(200,210,235,.08)); color: var(--mode-muted, #b1b6c1); }
html[data-color-mode="dark"] #page-home :is(.home-chatroom-avatar, .home-chatroom-content, .home-chatroom-avatar-stack-item) { border-color: var(--mode-border, rgba(220,225,240,.16)); background: var(--cm-elevated, #262c36); color: var(--mode-text, #f2f3f5); }
html[data-color-mode="dark"] #page-home .home-chatroom-name { color: var(--mode-muted, #b1b6c1); }
html[data-color-mode="dark"] #page-home .home-chatroom-name.is-verified { color: #70d18e; }
html[data-color-mode="dark"] #page-home .home-chatroom-retention { color: var(--mode-muted, #b1b6c1); }
html[data-color-mode="dark"] #page-home .home-chatroom-send-icon { border-color: rgba(56,183,100,.3); background: rgba(56,183,100,.13); }
