/* Shared, compact social surfaces. Keep selectors scoped to avoid player collisions. */
.compact-heading{min-height:0!important;padding:8px 0!important;background:none!important;border:0!important;margin-bottom:16px!important;display:flex;align-items:center;justify-content:space-between}.compact-heading h1{font-size:25px!important;margin:0}.public-site .page-heading.moon-heading{min-height:90px;padding:18px 22px}.public-site .page-heading p{font-size:13px}.public-site .home-greeting{min-height:112px;padding:20px;gap:14px}.public-site .home-greeting h1{font-size:26px}.public-site .home-greeting .eyebrow{font-size:10px;letter-spacing:2px}.public-site .room-action{min-height:80px}.public-site .room-action strong{font-size:18px}.public-site .room-action small{font-size:11px}.public-site .home-card{border-radius:20px}.public-site .home-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.home-stat strong{font-size:19px!important;overflow-wrap:anywhere}.home-stat small{font-size:11px}.home-section-title h2{font-size:20px}.moments-chart{height:80px;display:flex;gap:5px;align-items:flex-end;margin-top:16px}.moments-chart>span{height:var(--bar);flex:1;min-height:3px;border-radius:5px 5px 0 0;background:linear-gradient(#deb6eb,#9266bd)}.moment-scroll{display:flex;overflow-x:auto;gap:8px;padding:2px 0 10px;scroll-snap-type:x proximity}.moment-scroll article{flex:0 0 145px;padding:12px;background:#2d2239;border:1px solid #62487766;border-radius:16px;scroll-snap-align:start}.moment-scroll strong{display:block;font-size:12px;max-height:38px;overflow:hidden}.moment-scroll small{display:block;font-size:11px;color:#c5b2d3;margin-top:5px}
.profile-panel{font-family:system-ui,sans-serif;width:min(92vw,400px)!important;max-height:85dvh;overflow:auto;padding:18px!important;border-radius:28px!important;border:1px solid #8c68a6!important;background:radial-gradient(ellipse at top,#493159,#20172d 65%)!important;color:#f8f0ff;box-shadow:0 25px 90px #0009}.profile-panel::backdrop{background:#0e0918b8;backdrop-filter:blur(5px)}.profile-panel>button{margin-left:auto;display:block;border:0;border-radius:50%;padding:8px 14px;background:#ffffff12;color:#e9d1f6;min-height:40px}.profile-panel>h2{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#c9afd9;margin:0}.profile-card-hero{text-align:center;padding:15px 8px}.profile-card-hero img{display:block;width:86px!important;height:86px!important;object-fit:cover;border-radius:30px;margin:0 auto 14px;border:3px solid #e5b8ed55;box-shadow:0 8px 35px #c187dd22}.profile-card-hero h3{font-size:23px;margin:5px 0}.profile-card-hero p,.profile-card-hero small{font-size:13px;color:#d2beda;overflow-wrap:anywhere}.profile-card-stats{display:flex;justify-content:center;gap:8px;margin-bottom:15px}.profile-card-stats span{padding:8px 12px;border-radius:12px;background:#ffffff09;font-size:12px}.profile-card-actions{display:flex;gap:8px;flex-wrap:wrap}.profile-card-actions button{flex:1;min-height:44px;padding:11px;border-radius:15px;background:#d6afea;color:#2b1835;border:0;font:600 13px system-ui}.profile-safety{margin-top:18px;border-top:1px solid #d4a9ee22;padding-top:12px}.profile-safety summary{font-size:12px;color:#c4acd1;cursor:pointer}.profile-safety button{min-height:40px;padding:10px 14px;margin-top:8px;border-radius:12px;border:1px solid #a575b344;background:#33233e;color:#efd9f7}.profile-panel [role=status]{font-size:12px}.profile-panel:focus-visible{outline:2px solid #e5b8ef}.profile-panel label{font-size:13px}.profile-panel textarea,.profile-panel select{width:100%;padding:10px;background:#2b1e38;color:#f7edff;border:1px solid #856196;border-radius:12px}.profile-panel form{display:grid;gap:12px}
.space-settings{max-width:760px}.space-settings>h2{font-size:15px;margin:22px 0 10px}.premium-setting{padding:14px 16px!important;min-height:72px!important;border-radius:18px!important;margin:8px 0!important;gap:16px!important}.premium-setting strong{font-size:14px!important}.premium-setting small{font-size:12px!important;line-height:1.4!important;margin-top:4px}.premium-setting>span{min-width:0;flex:1}.premium-setting input[role=switch]{box-sizing:border-box!important;padding:0!important;margin:0!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:26px!important;min-height:26px!important;overflow:hidden!important;flex:0 0 44px!important}.premium-setting input[role=switch]::before{box-sizing:border-box!important;width:18px!important;height:18px!important;left:3px!important;top:50%!important;transform:translateY(-50%)!important}.premium-setting input[role=switch]:checked::before{left:calc(100% - 21px)!important;transform:translateY(-50%)!important}.space-settings.room-preferences>*:not(.viewing-settings):not(#settingsStatus){display:none!important}.room-preferences .viewing-settings h2{font-size:15px;margin:12px 0}.room-preferences .space-themes{gap:8px}.room-preferences .theme-landscape{min-height:72px;padding:14px}.room-preferences-frame{width:100%;height:460px;border:0}.inline-room-tools{display:block;width:100%;height:1400px;border:0;flex-shrink:0}.room-tools-heading{font-size:20px}.room-control-card .quiet{font-size:11px}.room-control-card .home-card{padding:16px}.room-control-card h2{font-size:17px}.room-control-card .home-card p.quiet{display:none}.room-control-card input,.room-control-card select{font-size:16px}.room-control-card .room-control-actions button{font-size:12px;min-height:42px}.room-detail-actions{gap:8px}
.home-space[data-section=friends] .circle-card{background:transparent;border:0;padding:0;max-width:none}.home-space[data-section=friends] .page-heading p,.home-space[data-section=friends] .circle-card>.home-section-title h2{display:none}.friend-code-row{background:#271d34;border-radius:14px;padding:10px 14px}.friend-code-row #friendCode{font-size:14px;letter-spacing:1px}.friend-code-row button{font-size:11px;min-height:36px;padding:8px!important}.friend-search-label{display:block;font-size:0;margin:15px 0}.friend-search-label input{font-size:15px;min-height:44px;border-radius:18px;background:#291f35}.home-person{position:relative;flex-wrap:nowrap!important;min-height:70px;gap:12px!important}.home-person img{width:44px!important;height:44px!important;border-radius:50%!important}.home-person .person-info{flex:1;min-width:0;flex-basis:auto!important}.home-person .profile-link{background:transparent!important;border:0!important;color:#f2e4fb!important;font-weight:600;font-size:14px!important;text-align:left;padding:0!important;min-height:24px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}.home-person>button{font-size:12px;min-height:38px;padding:8px 12px!important}.friend-actions{margin:0!important;position:relative}.friend-actions summary{list-style:none;padding:10px;font-size:16px;cursor:pointer}.friend-actions[open]{z-index:5}.friend-actions[open] button{display:block;margin:4px 0;min-width:90px}.home-person:has(.friend-actions[open]){align-items:flex-start}.home-inline input{font-size:15px!important}.home-inline button{font-size:12px;min-height:44px}.public-site .home-person>button.secondary{background:#332840;color:#dcbbe9}
.public-site .dm-conversation{background:transparent!important;color:#f3e9fb!important;border:0!important;border-bottom:1px solid #73517f33!important;border-radius:0!important;min-height:76px;padding:14px 12px!important;box-shadow:none!important}.public-site .dm-conversation:hover,.public-site .dm-conversation.active{background:#392b4766!important}.dm-conversation small,.dm-conversation time{color:#c9b4d4!important;font-size:11px}.dm-conversation strong{font-size:14px}.dm-conversation img{border-radius:50%!important;width:46px!important;height:46px!important}.dm-inbox{border-radius:20px!important;padding:3px!important;background:#1c1626}.dm-inbox .guest-recovery{font-size:11px;padding:12px;margin:0}.messages-space>.page-heading{min-height:0;background:none;border:0;padding:8px 0;margin-bottom:12px}.messages-space>.page-heading h1{font-size:25px}.dm-heading{padding:10px!important}.dm-heading h2{font-size:15px!important}.dm-message,.world-message{position:relative}.chat-photo{width:28px!important;height:28px!important;object-fit:cover;border-radius:50%;margin:0 6px 4px 0;flex:0 0 28px;vertical-align:middle}.chat-message .chat-photo{align-self:flex-end}.mini-avatar.replaced-avatar{display:none!important}.dm-message>.chat-photo,.world-message>.chat-photo{float:left}.message-reactions{display:flex;gap:4px;clear:both;flex-wrap:wrap}.message-reactions:empty{display:none}.message-reactions button{background:#30253b!important;color:#f5eaff!important;border:1px solid #8e699b55!important;min-height:24px!important;padding:2px 7px!important;font-size:12px!important;border-radius:12px!important}.message-reactions button[aria-pressed=true]{border-color:#e6b5ff!important}.shared-receipt{display:block;text-align:right;font-size:10px;color:#c1b3f5}.shared-receipt:empty{display:none}.message-actions{position:fixed;display:flex;gap:3px;z-index:16000;padding:7px;border:1px solid #9b70aa;border-radius:18px;background:#30203eee;box-shadow:0 10px 35px #0008;max-width:calc(100vw - 16px);flex-wrap:wrap}.message-actions button{min-width:32px;min-height:38px;background:transparent;border:0;border-radius:10px;color:#f3e5fb;padding:5px;font:18px system-ui}.message-actions button:nth-last-child(2){font-size:11px}.message-actions button:focus-visible{outline:2px solid #e9c3ff}.in-app-notice{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(92vw,420px);z-index:18000;background:#34243fec;border:1px solid #ab7abd;border-radius:20px;padding:13px 15px;box-shadow:0 10px 50px #0006;display:flex;align-items:center;gap:10px;color:#f6eafa;backdrop-filter:blur(12px);font:13px system-ui}.in-app-notice span{flex:1}.in-app-notice button{border:0;border-radius:12px;padding:8px 10px;min-height:36px;background:#d5afe8;color:#291531;font:600 12px system-ui}.world-heading{background:#2c2137}.world-heading h1{font-size:19px}.world-chat{border-radius:16px}.report-message{display:none!important}body:has(.profile-panel[open]) .live-people-overlay{visibility:hidden}
.play-session{max-width:950px;margin:auto}.play-session>iframe{display:block;width:100%;height:min(78dvh,850px);border:0;border-radius:22px;margin-top:12px}.play-session summary{padding:10px;cursor:pointer}.play-session #playFriends{display:flex;flex-wrap:wrap;gap:7px}.play-session #playFriends button{font-size:12px;padding:10px;border-radius:14px}.public-site .lobby-game{background:linear-gradient(135deg,#3b284d,#21172d)!important;color:#f6eafa!important;border:1px solid #956bab66!important;text-align:left}.lobby-game h2{font-size:19px}.lobby-game small{font-size:12px;color:#c7b1d5}
@media(max-width:650px){.app-layout{padding-bottom:calc(58px + env(safe-area-inset-bottom))!important}.app-mobile-top{height:52px!important;min-height:52px!important;padding:10px 16px!important}.app-mobile-top>a:first-child{font-size:25px}.app-mobile-top .mobile-profile{font-size:12px!important}.app-mobile-nav{height:calc(54px + env(safe-area-inset-bottom))!important;min-height:54px!important;padding:3px 5px calc(3px + env(safe-area-inset-bottom))!important;gap:2px!important}.app-mobile-nav a{padding:3px 2px!important;gap:0!important;font-size:9px!important;line-height:13px;min-height:44px!important;border-radius:11px!important;white-space:nowrap!important}.app-mobile-nav a span{font-size:18px!important;line-height:21px!important}.app-layout .public-content{padding:16px 14px!important}.app-layout .public-footer{padding:18px 16px!important;margin-top:24px}.home-greeting{padding:16px!important;min-height:100px!important}.home-greeting img{width:50px;height:50px}.home-greeting h1{font-size:24px!important}.home-primary{gap:9px!important}.room-action{min-height:80px!important;padding:14px 11px!important}.room-action strong{font-size:16px!important;white-space:nowrap}.room-action small{font-size:10px!important;line-height:1.3}.home-card{padding:15px!important}.home-space .home-stats .home-stat{padding:10px 8px}.home-stat strong{font-size:17px!important}.home-section-title a{font-size:11px}.space-settings>.page-heading{margin-bottom:10px}.space-settings .premium-setting{min-height:67px!important}.profile-panel{max-height:80dvh}.dm-inbox{border:0!important}.friend-code-row{margin-top:5px}.messages-space .page-heading h1{font-size:24px}.messages-space .page-heading .button{font-size:12px;min-height:36px;padding:9px 12px}.world-page .public-content{height:calc(var(--world-height,100dvh) - 112px)!important}.world-page.embedded-space .public-content{height:var(--world-height,100dvh)!important}}
@media(orientation:portrait){body.solace-v2.room-connected[data-screen=watch] .bottom-nav{display:flex!important;position:fixed!important;bottom:var(--room-nav-bottom,0px)!important;left:0;right:0;height:calc(50px + env(safe-area-inset-bottom));min-height:50px;z-index:450;padding:2px 6px calc(2px + env(safe-area-inset-bottom))!important;flex-shrink:0!important;visibility:visible!important;opacity:1!important;transform:none!important}body.solace-v2 .bottom-nav button{min-height:44px!important;font-size:10px!important;padding:2px!important;gap:0!important}body.solace-v2 .bottom-nav .nav-icon{font-size:18px!important;line-height:20px!important}body.solace-v2.room-connected[data-screen=watch] .watch{padding-bottom:calc(52px + env(safe-area-inset-bottom))!important;min-height:0;overflow:hidden}body.solace-v2.room-connected:not([data-screen=watch]) .bottom-nav{display:none!important}body.solace-v2.solace-fullscreen[data-screen=watch] .video-stage{height:calc(100dvh - 52px - env(safe-area-inset-bottom))!important;bottom:auto!important}body.solace-v2.solace-fullscreen[data-screen=watch] .bottom-nav{z-index:12000}}
@media(prefers-reduced-motion:no-preference){.in-app-notice{animation:notice-in .2s ease-out}.message-actions{animation:soft-in .12s ease-out}@keyframes notice-in{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}@keyframes soft-in{from{opacity:0;scale:.97}to{opacity:1;scale:1}}}

/* Full-width application pages; columns provide structure on larger displays. */
.public-content:has(.home-space),.public-content:has(.space-settings),.public-content:has(.messages-space),.public-content:has(.account-card),.public-content:has(.history-page),.public-content:has(.play-session){max-width:none!important}.home-space,.space-settings,.account-card,.history-page,.room-control-card,.play-session{max-width:none!important;width:100%}.profile-panel{width:min(94vw,760px)!important}.profile-card-actions{max-width:520px;margin:auto}.profile-safety{max-width:520px;margin:18px auto 0}.messages-space .dm-layout{max-width:none;width:100%}.world-chat{max-width:none}.space-settings .viewing-settings{grid-column:1/-1}.space-settings .viewing-settings h2{font-size:15px;margin:22px 0 10px}
@media(min-width:1000px){.space-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.space-settings>.page-heading,.space-settings>h2,.space-settings>p,.space-settings>form,.space-settings>details,.space-settings>a{grid-column:1/-1}.space-settings #spacePrivacy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.space-settings #spacePrivacy button{grid-column:1/-1;justify-self:start;width:auto}.space-themes{grid-template-columns:repeat(4,minmax(0,1fr))!important}.room-control-card #hostControls form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.room-control-card #hostControls form button{justify-self:start}.account-card{padding:30px!important}.home-space[data-section=home] .home-columns>div{grid-template-columns:repeat(2,minmax(0,1fr))}}

.embedded-space .room-tools-heading{display:none}

.chat-message .shared-receipt{display:inline-block;float:right;margin:4px 0 0 5px}.chat-message .shared-receipt:empty{display:none}.chat-message .message-reactions{padding-top:5px}.chat-message .message-reactions:empty{display:none}

.game-invitation{display:flex;gap:8px;align-items:center;padding:14px;border:1px solid #8a639f66;border-radius:16px;margin-bottom:12px;background:#30223b}.game-invitation strong{flex:1;font-size:13px}.game-invitation button{font-size:12px;min-height:40px;padding:8px 12px;border-radius:12px}

.in-app-notice span{min-width:0;overflow-wrap:anywhere}.account-card p,.profile-card-hero h3{overflow-wrap:anywhere}@media(max-width:360px){.room-action{grid-template-columns:24px minmax(0,1fr)!important;padding:12px 8px!important;gap:4px 6px!important}.room-action strong{font-size:14px!important}}

.public-site input:not([type=checkbox]):not([type=range]):not([type=hidden]),.public-site textarea,.public-site select{font-size:16px!important}.world-message,.dm-message{max-width:min(88%,680px)}

/* Reserve the room avatar slot and show the default icon while the photo loads. */
.chat-message > .chat-photo { background: #292135 url('/static/default-avatar.svg') center / cover no-repeat; }

/* Native multiline editor also avoids Android single-line emoji selection resets. */
#chatForm #message {resize:none;box-sizing:border-box;height:44px;min-height:44px;max-height:44px;line-height:22px;padding-top:10px;padding-bottom:10px;font:inherit;font-size:16px;overflow:auto;}
#message,#dmText,#worldText {text-align:start;unicode-bidi:plaintext;}

/* Conversation-first friends list; management stays in the overflow menu. */
.home-space[data-section=friends] .circle-card{padding:20px;max-width:none}
.home-space[data-section=friends] .home-person{display:flex;align-items:center;gap:12px;padding:14px 4px;border-radius:0;border:0;border-bottom:1px solid var(--site-edge,#584366);background:transparent!important;position:relative}
.home-space[data-section=friends] .home-person>img{width:52px;height:52px;min-width:52px;border-radius:50%;object-fit:cover}
.home-space[data-section=friends] .person-info{flex:1;min-width:0}
.home-space[data-section=friends] .person-info>button{padding:0!important;text-align:left;min-height:24px;background:none!important}
.friend-preview-text{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:var(--site-muted)!important}
.friend-thread-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin-left:auto;font-size:11px;color:var(--site-muted)}
.friend-thread.has-unread .friend-preview-text{font-weight:650;color:var(--site-text)!important}
.friend-thread-meta .unread-count{background:var(--site-accent);color:var(--site-ink);padding:2px 6px;min-width:18px;border-radius:20px;text-align:center}
@media(max-width:650px){.home-space[data-section=friends] .circle-card{padding:14px}.home-space[data-section=friends] .home-person{gap:9px}.home-space[data-section=friends] .home-person>.secondary{font-size:11px;padding:7px;min-height:36px}.friend-thread-meta{font-size:10px}}

.friend-thread-meta time{white-space:nowrap}.friend-preview-text{text-decoration:none;min-height:28px;line-height:28px}.friend-thread .friend-thread-meta{order:3}.friend-thread .friend-actions{order:4}

.social-chat .chat-photo{background:#292135 url('/static/default-avatar.svg') center/cover no-repeat;}
