/* Studio World feed: retro-RPG styling shared by /world/ and /world/feed/.
   Chats = minimal text bubbles (small round avatar + soft gray bubble).
   Convos = stacked dialogue boxes with a location header.
   Move/work = old-timey game event-log rows. */
.wf-row{list-style:none}
.wf-row.fresh{animation:wfslide .45s ease}
@keyframes wfslide{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.row-time{font-size:12px;color:#aaa;flex-shrink:0;margin-left:auto}

/* --- RPG dialogue box, minimal lines (Dave's call Oct 3) --- */
.dlg-line{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.dlg-line:last-child{margin-bottom:0}
.wf-convo .dlg-line{margin-bottom:5px;gap:8px}
.dlg-line.right{flex-direction:row-reverse}
.dlg-portrait{width:40px;height:40px;object-fit:cover;flex-shrink:0;border-radius:50%;background:#f1f1f4;display:block}
.dlg-bubble{position:relative;flex:0 1 auto;min-width:0;max-width:62%;background:#f1f1f4;border:0;border-radius:16px;padding:9px 13px 10px}
.dlg-line:not(.right) .dlg-bubble:before{content:'';position:absolute;top:12px;left:-5px;border:6px solid transparent;border-right-color:#f1f1f4;border-left:0}
.dlg-line.right .dlg-bubble:before{content:'';position:absolute;top:12px;right:-5px;border:6px solid transparent;border-left-color:#f1f1f4;border-right:0}
.dlg-line.right .dlg-name{text-align:right}
.dlg-line.right .dlg-text{text-align:right}
.dlg-line.right .dlg-bubble{flex:0 1 auto;max-width:78%;margin-left:auto}
.dlg-name{font-size:11px;font-weight:700;letter-spacing:.6px;color:#8a8a93;text-transform:uppercase;margin-bottom:2px}
.dlg-text{font-size:17px;color:#111;line-height:1.45;overflow-wrap:break-word}
.dlg-top{display:flex;align-items:flex-start;gap:8px;padding:12px 14px}
.dlg-top .dlg-line{flex:1;margin-bottom:0}
.dlg-top .row-time{padding-top:4px}

/* --- Conversation: two characters talking, own card so separate threads read as separate (Dave's call Oct 3) --- */
.wf-convo{background:#fff;padding:14px clamp(16px,8%,56px);margin:14px 12px;border:1px solid #e8e8ee;border-radius:18px;box-shadow:0 3px 14px rgba(20,20,40,0.05)}
#world-feed-preview .wf-convo,#full-feed .wf-convo{border-bottom:1px solid #e8e8ee}
/* Convos: first speaker left, responders' avatars on the right (Dave's call Oct 3) */
/* Tight thread: bubbles pulled toward center (Dave's call Oct 3) */
.wf-convo .dlg-line{margin-left:0;margin-right:12%}
.wf-convo .dlg-line.right{flex-direction:row-reverse;margin-left:12%;margin-right:0}
.wf-convo .dlg-line.right .dlg-bubble{text-align:left;max-width:78%}
.wf-convo .dlg-line.right .dlg-name{text-align:left}
.wf-convo .dlg-line.right .dlg-text{text-align:left}
.convo-loc{display:flex;align-items:center;font-size:13px;font-weight:800;color:#555;letter-spacing:.4px;margin-bottom:12px}

/* --- Game event log: something happened --- */
.wf-log{display:flex;align-items:center;gap:12px;padding:14px 16px;flex-wrap:wrap}
.log-imgs{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:2px 0 0 50px}
.log-imgs img{width:100%;height:auto;display:block;border-radius:10px;border:1px solid #eee}
.wf-log[data-type="move"]{background:#fff9e6}
/* Work rows: terminal readout, a little more technical (Dave's call Oct 4) */
.wf-log[data-type="work"]{background:#0d1117;border-radius:12px}
.wf-log[data-type="work"] .log-text{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,"Liberation Mono",monospace;font-size:13.5px;font-weight:400;color:#d4d4d8}
.wf-log[data-type="work"] .log-text::before{content:"$ ";color:#7ee787}
.wf-log[data-type="work"] .log-mark{color:#7ee787}
.wf-log[data-type="work"] .log-sprite{border-color:#30363d}
.wf-log[data-type="work"] .row-time{color:#6e7681}
.log-sprite{width:38px;height:38px;object-fit:cover;flex-shrink:0;border-radius:50%;border:1px solid #eee;display:block}
.log-mark{font-size:13px;color:#b8860b;flex-shrink:0}
.log-text{flex:1;min-width:0;font-size:16px;font-weight:600;color:#111;line-height:1.4}
.log-badge{font-size:10px;font-weight:800;letter-spacing:.4px;border-radius:6px;padding:2px 7px;white-space:nowrap;flex-shrink:0}
.log-move{background:#fef9e7;color:#9a7d0a}

/* --- Universe-wide event banner --- */
.wf-event{padding:12px 14px}
.event-banner{background:linear-gradient(135deg,#fff8e1 0%,#ffffff 70%);border:1px solid #f0d98c;border-radius:14px;padding:12px 14px}
.event-head{display:flex;align-items:center;font-size:11px;font-weight:800;letter-spacing:1.2px;color:#b8860b;margin-bottom:4px}
.event-head .row-time{margin-left:auto}
.event-text{font-size:15px;font-weight:700;color:#111;line-height:1.45}
.event-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
/* Embedded Llama tweet card: clean white embed, like a real tweet embed. */
.wf-tweet{padding:10px 14px}
.tweet-card{position:relative;background:transparent;border:none;border-radius:0;padding:12px 14px 12px 110px;margin-bottom:32px}
/* Dave's call Oct 4: break the character out of the box. Avatar 2x, straddling the card's left edge. */
.tweet-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.tweet-avatar{position:absolute;left:-48px;top:8px;width:128px;height:128px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.25);display:block;animation:none}
@keyframes facemove{0%,100%{transform:translateY(0) rotate(0deg)}30%{transform:translateY(-3px) rotate(-1.6deg)}60%{transform:translateY(-2px) rotate(1.2deg)}}
@media (prefers-reduced-motion:reduce){.tweet-avatar{animation:none}}

.tweet-nm{flex:1;min-width:0;font-size:14px}
.tweet-nm b{font-weight:700}
.tweet-nm span{color:#777;font-weight:400}
.tweet-nm a.tweet-author{color:#111;text-decoration:none;font-weight:700}
.tweet-nm a.tweet-author:hover{text-decoration:underline}
.tweet-head a.row-time{margin-left:auto;flex-shrink:0;color:#657786;text-decoration:none;cursor:pointer}
.tweet-head a.row-time:hover{text-decoration:underline;color:#1d9bf0}
.tweet-text{font-size:15px;color:#111;line-height:1.45;margin:2px 0 10px;overflow-wrap:break-word}
.tweet-foot{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#555}
.tweet-foot a{color:#1d9bf0;text-decoration:none;font-weight:700;flex-shrink:0}
.tweet-img{width:100%;border-radius:10px;margin:2px 0 10px;display:block}
.tweet-vid{width:100%;border-radius:10px;margin:2px 0 10px;display:block;background:#000}
/* Dave's embedded reply under a tweet (Dave's call Oct 4) */
.tweet-reply{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px;padding:8px 10px;background:#f7f7f5;border-radius:10px}
.tweet-reply-ava{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0;display:block}
.tweet-reply-body{min-width:0}
.tweet-reply-name{font-size:13px;font-weight:700;color:#111;text-decoration:none}
.tweet-reply-name:hover{text-decoration:underline}
.tweet-reply-time{font-weight:400;color:#536471;text-decoration:none}
.tweet-reply-time:hover{text-decoration:underline}
.tweet-reply-text{font-size:14px;color:#111;line-height:1.4}
.tweet-stats{font-size:13px;color:#536471;margin:0 0 10px}
.ts-replies{font-weight:600}
/* 90s RPG stat popup, e.g. +50 MORALE */
.buff{display:inline-block;font-family:'Courier New',Courier,monospace;font-weight:800;font-size:13px;letter-spacing:1px;color:#ffe14d;background:#1a1a2e;border:2px solid #ffe14d;border-radius:4px;padding:3px 8px;margin-left:8px;flex-shrink:0;box-shadow:2px 2px 0 #000;animation:buffpop .45s steps(3)}
@keyframes buffpop{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
.event-chip{display:inline-block;background:#fff;border:1px solid #e8e8ed;border-radius:999px;padding:6px 12px;font-size:13px;color:#111;text-decoration:none}
.event-chip:active{background:#f1f1f4}

/* row separators live on the containers */
#world-feed-preview .wf-row,#full-feed .wf-row{border-bottom:1px solid #f4f4f6}
#world-feed-preview .wf-row:last-child,#full-feed .wf-row:last-child{border-bottom:none}
#world-feed-preview,#full-feed{list-style:none}

/* Activity highlight rows (Dave's call, cleaned up Oct 4): soft beige tint on move
   rows so it's clear an event is happening, no more bleed past the feed box. */
.feed-wrap,.chat-wrap{overflow:visible}
#full-feed .wf-log[data-type="move"],#world-feed-preview .wf-log[data-type="move"]{border-radius:12px}
#full-feed .wf-row:first-child,#world-feed-preview .wf-row:first-child{border-top-left-radius:16px;border-top-right-radius:16px}
#full-feed .wf-row:last-child,#world-feed-preview .wf-row:last-child{border-bottom-left-radius:16px;border-bottom-right-radius:16px}

/* iMessage-style chat bubbles (Dave's call Oct 3, trying it, may revert):
   right side = iPhone blue with white text, left side = Apple gray. */
.dlg-line:not(.right) .dlg-bubble{background:#E9E9EB}
.dlg-line:not(.right) .dlg-bubble:before{border-right-color:#E9E9EB}
.dlg-line.right .dlg-bubble{background:#007AFF}
.dlg-line.right .dlg-bubble:before{border-left-color:#007AFF}
.dlg-line.right .dlg-name{color:rgba(255,255,255,.8);text-align:left}
.dlg-line.right .dlg-text{color:#fff;text-align:left}

/* True iMessage group-chat look (Dave's call Oct 3): sender name above the gray
   bubble, no name on blue, avatar bottom-aligned, brighter iOS blue. */
.dlg-line{align-items:flex-end}
.dlg-col{display:flex;flex-direction:column;min-width:0;flex:0 1 auto;max-width:62%}
.dlg-line.right .dlg-col{margin-left:auto;max-width:78%}
.dlg-bubble{max-width:100%;border-radius:20px;padding:12px 16px 13px}
.dlg-name{font-size:13px;font-weight:400;letter-spacing:0;text-transform:none;color:#8e8e93;margin:0 0 3px 14px}
.dlg-line.right .dlg-bubble{background:#0A84FF}
.dlg-line.right .dlg-bubble:before{border-left-color:#0A84FF}
.dlg-top{align-items:flex-end}

/* Crew avatar stack in the header: small overlapping avatars (Dave's call Oct 4) */
.who-stack{display:flex;align-items:center;margin:6px 0 22px}
.who-stack a{width:44px;height:44px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.14);margin-left:-12px;overflow:hidden;background:#fff;flex-shrink:0}
.who-stack a:first-child{margin-left:0}
.who-stack img{width:100%;height:100%;object-fit:cover;display:block}

/* Person filter (Dave's call Oct 4): selected crew avatar gets a ring. */
.who-stack a{cursor:pointer}
.who-stack a.sel{position:relative;z-index:10}
@media(max-width:768px){.tweet-avatar{left:-14px;width:64px;height:64px;border-width:3px}.tweet-card{padding:12px 12px 12px 76px}} /* Dave's call Oct 5: avatar closer to content on mobile; extended to 768px so it never leaves the viewport */

.feed-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.feed-head h1{margin:0}
.live-beacon{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e8e8ed;border-radius:99px;padding:5px 12px;font-size:12px;font-weight:800;letter-spacing:1.2px;color:#111}
.live-dot{width:8px;height:8px;border-radius:50%;background:#e5484d;animation:blink 1.6s infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}

.convo-gavatar{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.15);margin-right:8px;vertical-align:middle}



/* Muse Take editorial header (Dave's call Oct 5) */
.mt-head{padding:40px 0 8px}
.mt-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.14em;color:#6e6e73;text-transform:uppercase;margin-bottom:20px}
.mt-dot{width:8px;height:8px;border-radius:50%;background:#34c759;animation:mt-pulse 2s ease-in-out infinite}
@keyframes mt-pulse{0%,100%{opacity:.4;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
.mt-title{font-size:56px;font-weight:800;letter-spacing:-2px;line-height:1.05;margin:0 0 16px}
.mt-title em{font-style:normal;color:#8e8e93}
.mt-lede{font-size:18px;color:#6e6e73;max-width:520px;margin:0 0 28px}
.mt-lede a{color:#1d1d1f;font-weight:700;font-size:14px;text-decoration:none;border-bottom:2px solid #e8e8ed;white-space:nowrap}
.mt-lede a:hover{border-color:#1d1d1f}
.mt-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:8px}
.mt-avatars{margin:0!important}
.mt-links{display:flex;gap:20px;font-size:14px}
.mt-links a{color:#1d1d1f;text-decoration:none;font-weight:600;border-bottom:2px solid #e8e8ed;padding-bottom:2px}
.mt-links a:hover{border-color:#1d1d1f}
@media(max-width:640px){.mt-title{font-size:40px}}

/* v3: image lightbox */
#wfLightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;cursor:zoom-out}
#wfLightbox .wf-lb-overlay{position:absolute;inset:0;background:rgba(0,0,0,.92)}
#wfLightbox .wf-lb-img{position:relative;max-width:94vw;max-height:90vh;object-fit:contain;border-radius:8px;z-index:1}
#wfLightbox .wf-lb-close{position:absolute;top:calc(12px + env(safe-area-inset-top));right:16px;z-index:2;background:rgba(255,255,255,.15);color:#fff;border:none;border-radius:50%;width:40px;height:40px;font-size:24px;cursor:pointer;line-height:1}
.tweet-img{cursor:zoom-in}

/* Dave's call Oct 5: breakout posts break out wide with a yellow announcement */
.wf-breakout .tweet-card{max-width:900px;margin:0 auto}
.breakout-note{background:#fef3c7;border:1px solid #fcd34d;border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:14px;color:#92400e}
.breakout-note .bn-icon{margin-right:6px}
@media(max-width:640px){.wf-breakout .tweet-card{max-width:100%}}
