/* Sky conversation surfaces: star texture remains visible around quiet reading areas. */
.sky-icon { width:22px; height:22px; flex-shrink:0; vertical-align:middle; }
.nav-icon .sky-icon { width:21px; height:21px; }
.mobile-dock .sky-icon { width:24px; height:24px; }
#social, #ai, #updates { isolation:isolate; position:relative; }
#social .game-main, #ai .ai-main-panel, #updates {
 background:linear-gradient(135deg,rgba(6,14,25,.38),rgba(4,8,17,.3)),url('/assets/sky-night-stars-v1.jpg') center / 850px auto repeat;
 border:1px solid #b7d9ff20; box-shadow:0 20px 65px #0003; border-radius:24px;
}
#social .game-main { padding:24px; }
#social .game-main > .section-head { margin:0 0 20px; padding:0 4px; }
#social .game-main > .section-head .eyebrow { color:#a8bcd2; }
#social .game-main > .section-head h2 { font-size:26px; }
#social .social-tabs { width:100%; margin:0 0 22px; padding:6px; border:1px solid #ffffff12; background:#08111dcc; border-radius:16px; }
#social .social-tab { min-width:0; flex:1; border-radius:11px; min-height:46px; padding:10px 14px; font-size:14px; }
#social .social-tab.is-active { background:#182d40; color:#e4f5ff; box-shadow:inset 0 0 0 1px #9ad9ff20; }
#social .whatsapp-layout > .social-thread-card { border:1px solid #b7d9ff18; background:#07101d9c; padding:16px; }
#social .social-thread-card > h3 { font-size:14px; color:#adc1d8; margin:0 0 18px; }
#social .thread-row { display:flex; align-items:center; gap:13px; min-height:86px; padding:14px; margin:0 0 6px; border:1px solid transparent; border-radius:16px; background:#0a162b6b; }
#social .thread-row.is-active { border-color:#b4daff35; background:#19334c9c; }
#social .thread-row:hover { background:#19334c7c; }
#social .thread-avatar { width:46px; height:46px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:linear-gradient(145deg,#243c55,#122238); color:#d0e9ff; font-size:15px; font-weight:700; border:1px solid #b2d9ff26; flex-shrink:0; }
#social .thread-row > span:nth-child(2) { flex:1; min-width:0; text-align:left; }
#social .thread-row strong { font-size:16px; }
#social .thread-row small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; color:#9db1c8; }
#social .social-chat-main {
 background:linear-gradient(#08142338,#07121e45),url('/assets/sky-night-stars-v1.jpg') center / 800px auto repeat;
 border:1px solid #b7d9ff20; border-radius:22px; overflow:hidden;
}
#social .chat-card-head { display:flex; align-items:center; gap:14px; min-height:76px; padding:18px 22px; background:#0b1829d9; backdrop-filter:blur(16px); }
#social .chat-card-head h3 { margin:0; font-size:18px; }
#social .chat-back { font-size:30px; }
#social .chat-log { background:transparent; padding:28px; }
#social .chat-message { background:#101e31ee; border:1px solid #c9ddff16; box-shadow:0 6px 18px #0003; }
#social .chat-message.is-mine { background:linear-gradient(135deg,#203e55f5,#172d40f5); border-color:#b4deff25; }
#social .chat-form { background:#0a1729e6; backdrop-filter:blur(16px); }
#social .chat-form input { background:#101e31; border-color:#c9ddff22; }
#social .chat-form button[type=submit] { color:#06101b; background:#c4e4f7; border:0; }
#social .chat-inline-status { flex-shrink:0; margin:0; padding:10px 18px; background:#182639; color:#f4d1ad; font-size:14px; }
.chat-inline-status[hidden] { display:none !important; }
#social .empty-chat { padding:28px 20px; border:1px dashed #bdd5f826; border-radius:18px; background:#081423b3; text-align:center; color:#b7c9de; font-size:15px; line-height:1.6; }
#ai .ai-conversation { background:transparent; }
#ai .ai-composer-head { background:#0a1729d9; backdrop-filter:blur(16px); }
#ai .ai-composer-head .workspace-status { font-size:13px; }
#ai .ai-conversation-head { background:transparent; }
#ai .ai-turn { background:#101d30e8; border:1px solid #c7e3ff18; box-shadow:0 8px 28px #0003; }
#ai .ai-turn-user { background:#1a354be8; border-color:#b9dbff26; }
#ai .ai-turn-head h3 { font-size:14px; }
#ai .ai-turn-avatar { background:#b4dfff15; color:#d8eeff; }
#ai .ai-answer { font-size:16px; line-height:1.75; overflow-wrap:anywhere; }
#ai .ai-composer { background:#0a1729e8; backdrop-filter:blur(18px); }
#ai .ai-submit-button { background:#c4e4f7; color:#06101b; }
#ai .ai-tool-menu { bottom:calc(100% + 12px); top:auto; max-height:40dvh; overflow:auto; }
#updates { padding:26px; min-height:calc(100dvh - 150px); }
#updates .section-head { margin:0 0 28px; }
#updates .section-head h2 { font-size:30px; }
.update-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; padding:16px; background:#091525d9; border:1px solid #c7e3ff18; border-radius:18px; }
.update-toolbar label { display:flex; align-items:center; gap:14px; font-size:14px; }
.update-toolbar select { min-width:180px; min-height:44px; background:#111f31; font-size:14px; }
.update-toolbar p { font-size:14px; color:#afc3da; margin:0; line-height:1.5; }
#updates .updates-board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:22px; }
#updates .update-card { display:flex; flex-direction:column; gap:20px; padding:24px; background:#091423e8; backdrop-filter:blur(8px); border:1px solid #c7e3ff20; border-radius:22px; min-height:0; overflow:hidden; }
#updates .update-meta { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin:0; font-size:13px; color:#9fb4ce; }
#updates .update-tag { display:inline-flex; align-items:center; gap:10px; padding:9px 12px; border-radius:12px; background:#b7dfff12; color:#d2eaff; font-size:14px; }
#updates .update-card h3 { font-size:21px; line-height:1.45; margin:0 0 14px; }
#updates .update-card p, .update-highlights { color:#bdcee1; font-size:16px; line-height:1.75; margin:0; }
.update-highlights { padding-left:20px; }
.update-highlights li + li { margin-top:10px; }
.update-facts { display:grid; grid-template-columns:1fr 1.5fr; gap:18px; margin:0; padding:18px 0; border-top:1px solid #c7e3ff12; border-bottom:1px solid #c7e3ff12; }
.update-facts dt { font-size:13px; color:#8fa7c2; margin-bottom:8px; }
.update-facts dd { font-size:15px; line-height:1.5; color:#d7e7f8; margin:0; overflow-wrap:anywhere; }
.update-detail { background:#b7dfff05; border:1px solid #c7e3ff12; border-radius:14px; }
.update-detail summary { display:flex; align-items:center; justify-content:space-between; padding:16px; cursor:pointer; font-size:14px; color:#d2eaff; list-style:none; }
.update-detail summary::-webkit-details-marker { display:none; }
.update-detail[open] summary .sky-icon { transform:rotate(180deg); }
.update-changelog { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.75; padding:4px 18px 20px; color:#bdcee1; max-height:480px; overflow:auto; }
.update-source { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:13px; color:#8fa7c2; }
.update-source > span, .update-source a { display:inline-flex; gap:8px; align-items:center; }
.update-source .sky-icon { width:16px; height:16px; }
.update-source a { color:#c5e5ff; font-size:14px; }
.updates-empty { grid-column:1/-1; padding:40px 24px; background:#091423dd; border:1px solid #c7e3ff18; border-radius:22px; color:#bdcee1; line-height:1.7; }
@media(min-width:861px) {
 #social .whatsapp-layout > .social-thread-card { width:auto; height:calc(100dvh - 300px); min-height:430px; overflow:auto; }
 #social .whatsapp-layout > .social-chat-main { height:calc(100dvh - 300px); min-height:430px; display:flex; flex-direction:column; padding:0; }
 #social .social-chat-main .chat-log { flex:1; min-height:0; max-height:none; overflow:auto; }
 #social .social-chat-main .chat-form { flex-shrink:0; }
}
@media(max-width:860px) {
 #social .game-main { padding:14px; border-radius:22px; background:linear-gradient(#06101b55,#06101b33),url('/assets/sky-night-stars-v1.jpg') center / 750px auto repeat; }
 #social .game-main > .section-head { display:none; }
 #social .social-tabs { margin-bottom:16px; }
 #social .social-tab { font-size:14px; padding:12px 7px; }
 #social .social-thread-card { background:transparent; padding:0 !important; }
 #social .thread-row { border-radius:16px; padding:16px 12px; min-height:90px; background:#07142199; border:1px solid #c7e3ff10; margin-bottom:10px; }
 #social .thread-avatar { width:46px; height:46px; }
 #social.chat-focus { background:#050b14; }
 #social.chat-focus .game-main { padding:0; border:0; border-radius:0; }
 #social.chat-focus .social-chat-main { background:linear-gradient(#08142338,#07121e45),url('/assets/sky-night-stars-v1.jpg') center / 750px auto repeat; }
 #social .chat-log { padding:24px 16px; }
 #social .chat-card-head { padding:calc(14px + env(safe-area-inset-top)) 16px 14px; }
 #social .chat-message { max-width:87%; }
 #social .chat-form .chat-share-menu { position:absolute; bottom:100%; left:12px; right:12px; width:auto; max-height:50dvh; overflow:auto; }
 #ai .ai-main-panel { background:linear-gradient(#06101b33,#06101b22),url('/assets/sky-night-stars-v1.jpg') center / 750px auto repeat; }
 #ai .ai-turn { padding:16px; }
 #updates { padding:18px 14px; border-radius:22px; }
 #updates .section-head { align-items:flex-start; gap:18px; margin-bottom:20px; }
 #updates .section-head h2 { font-size:25px; }
 #updates .section-head .button-row { width:auto; }
 #updates .section-head button { font-size:13px; padding:10px 12px; }
 .update-toolbar { flex-direction:column; align-items:stretch; gap:12px; padding:14px; }
 .update-toolbar label { justify-content:space-between; }
 .update-toolbar select { flex:1; min-width:0; max-width:75%; }
 #updates .updates-board { grid-template-columns:1fr; gap:18px; }
 #updates .update-card { padding:20px 18px; gap:18px; }
 #updates .update-card h3 { font-size:20px; }
 .app-shell.mobile-menu-open .tabs { top:0; bottom:calc(73px + env(safe-area-inset-bottom)); height:auto; max-height:none; border-radius:0 24px 24px 0; }
 .mobile-dock button { font-size:12px; }
}
/* Match Sky AI's soft conversation surface instead of nested boxed cards. */
#social .whatsapp-layout > .social-thread-card { border:0; border-radius:0; background:transparent; box-shadow:none; }
#social .thread-row { background:transparent; border:0; border-bottom:1px solid #c7e3ff10; border-radius:0; margin:0; box-shadow:none; }
#social .thread-row.is-active { background:#b9dbff0c; border-color:#c7e3ff10; }
#social .thread-row:hover { background:#b9dbff09; }
#social .thread-avatar { border-radius:50%; background:#b4dfff15; color:#d8eeff; }
#social .social-chat-main { border:0; box-shadow:none; border-radius:20px; }
#social .chat-message { border-radius:20px 20px 20px 5px; background:#101d30e8; border:1px solid #c7e3ff18; box-shadow:0 8px 28px #0003; font-size:16px; line-height:1.75; }
#social .chat-message.is-mine { background:#1a354be8; border-color:#b9dbff26; border-radius:20px 20px 5px 20px; }
#social .chat-card-head { background:#0a1729d9; }
#social .chat-form { background:#0a1729e8; }
#social .chat-form input { border-radius:24px; background:#101e31; }
#social .chat-form .chat-plus { border-radius:50%; width:42px; height:42px; }
#social .empty-chat { border:0; background:transparent; box-shadow:none; }
#social .social-card:not(.social-chat-main):not(.social-thread-card) { background:transparent; border:0; box-shadow:none; border-radius:20px; }
@media(max-width:860px) {
 #social .thread-row { border:0; border-bottom:1px solid #c7e3ff10; border-radius:0; background:transparent; margin:0; }
 #social .thread-avatar { border-radius:50%; }
 #social.chat-focus .social-chat-main { border-radius:0; }
}
