/* Living story cast: responsive, readable, independent of the cover. */
.world-cast-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(135px,100%),1fr));gap:12px;margin:12px 0 16px}
.world-cast-card{min-width:0;display:flex;flex-direction:column;gap:7px;color:inherit;text-decoration:none;text-align:center}
.world-cast-card img,.world-cast-placeholder{display:block;width:100%;aspect-ratio:2/3;max-height:250px;object-fit:cover;object-position:50% 32%;border-radius:12px;background:#22202b}
.world-cast-placeholder{display:grid;place-items:center;color:var(--party-faint,#aea9bb);font-size:32px}
.world-cast-card b{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.world-chat-cast{display:flex;gap:10px;padding:7px 2px;overflow:auto;flex-shrink:0;scrollbar-width:thin;max-width:100%}
.world-chat-cast button,.world-chat-cast .world-chat-cast__empty{display:flex;align-items:center;gap:7px;flex:0 0 auto;max-width:200px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.04);color:inherit;padding:4px 8px 4px 4px;text-align:left;font:inherit}
.world-chat-cast img,.world-chat-cast__initial{width:38px;height:48px;object-fit:cover;object-position:50% 30%;border-radius:7px;flex-shrink:0}
.world-chat-cast__initial{display:grid;place-items:center;background:#262331}
.world-chat-cast b{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
@media(max-width:520px){.world-cast-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.world-cast-card img,.world-cast-placeholder{max-height:230px}.world-chat-cast{gap:6px}.world-chat-cast img,.world-chat-cast__initial{width:32px;height:40px}}

/* Keep a 3:2 story illustration intact instead of stretching its panel. */
.ai-story-page{width:100%;box-sizing:border-box;min-width:0}
.ai-story-hero{min-width:0;box-sizing:border-box;align-items:center}
.ai-story-hero__body{min-width:0;overflow-wrap:anywhere}
.ai-story-hero__art{min-width:0;min-height:0;max-height:none;aspect-ratio:3/2;width:100%;align-self:center}
.ai-story-hero__art img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain}
.ai-story-page .ai-hero__actions,.ai-story-page .wp-share{flex-wrap:wrap;min-width:0;max-width:100%}
@media(max-width:720px){.ai-story-hero{grid-template-columns:minmax(0,1fr);gap:16px}.ai-story-hero__body h1{font-size:clamp(26px,8vw,38px)}.ai-story-hero__art{border-radius:12px}.ai-story-page .ai-story-hero__body>p{overflow-wrap:anywhere}.ai-story-page .wp-free{overflow-wrap:anywhere}.ai-story-page .ai-story-kickers span,.ai-story-page .ai-story-facts span{max-width:100%;white-space:normal}}
