/* One aligned status row across all three desktop themes. */
@media(min-width:951px){
 body.desktop-play.faithful-target{--status-height:60px;display:grid!important;grid-template-rows:204px minmax(0,1fr)!important}
 body.desktop-play.faithful-target header{height:204px!important}
 body.desktop-play.faithful-target header:before{display:none!important}
 body.desktop-play.faithful-target #desktop-event-ribbon:not([hidden]){position:absolute!important;left:24px!important;right:auto!important;top:130px!important;width:min(760px,calc(100% - 420px))!important;height:var(--status-height);padding:0!important;margin:0!important;background:none!important;z-index:8;display:block!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current{height:100%;min-height:0!important;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 16px!important;background:linear-gradient(110deg,#f8ead1e8,#e7c99bc9)!important;border:1px solid var(--copper,#ac8958);border-radius:9px;color:var(--ink,#35281c);box-sizing:border-box;text-align:left}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current>img{width:40px!important;height:40px!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-copy{display:block;min-width:0}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-copy>strong{display:block;font-size:14px!important;line-height:18px!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-effect{display:block;font-size:12px!important;line-height:15px!important;margin-top:3px;white-space:normal;overflow:visible;text-overflow:clip}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-next,body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-copy>small{display:none}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-delta{font-size:14px;white-space:nowrap;align-self:center}
 body.desktop-play.faithful-target #desktop-phase{position:absolute!important;left:auto!important;right:134px!important;top:130px!important;width:248px;height:var(--status-height);display:flex;align-items:center;justify-content:center;gap:10px;padding:8px!important;margin:0;box-sizing:border-box;border:1px solid var(--copper,#ac8958);border-radius:9px;background:var(--surface,#f4e5cc);font-size:13px;pointer-events:auto}
 body.desktop-play.faithful-target #desktop-phase #phase{padding:0;background:none;border:0;font-size:13px;white-space:nowrap}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state{font-size:13px!important;min-height:44px;padding:5px 8px;display:flex;flex-direction:column;justify-content:center;gap:3px}
 body.desktop-play.faithful-target #online-toolbar-open{position:absolute!important;left:auto!important;right:24px!important;top:138px!important;min-height:44px!important;width:98px;margin:0;padding:5px 8px!important;font-size:13px!important}
}
@media(min-width:951px) and (max-width:1250px){
 body.desktop-play.faithful-target{--status-height:84px;grid-template-rows:228px minmax(0,1fr)!important}
 body.desktop-play.faithful-target header{height:228px!important}
 body.desktop-play.faithful-target #online-toolbar-open{top:150px!important}
}
@media(min-width:951px){
 body.desktop-play.faithful-target #desktop-event-ribbon:not([hidden]){max-width:none!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current{width:100%;max-width:none;background-image:none!important}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players{height:112px!important;align-items:stretch}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players .player{height:112px!important;min-height:0!important;padding:6px 9px!important;display:flex;flex-direction:column;justify-content:center;gap:2px}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players .company-title{font-size:20px!important;line-height:24px}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players .company-symbol{width:28px!important;height:28px!important}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players .player>small:not(.player-income){font-size:14px!important;line-height:18px;padding:0}
 body.desktop-play.faithful-target:is([data-desktop-view='star-map'],[data-desktop-view='command']) #players .player-income{font-size:12px!important;line-height:16px!important;padding:2px 0!important;margin:0!important}
 body.desktop-play.faithful-target #players .online-player-name{font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:14px}
}

@media(min-width:951px){
 body.desktop-play.faithful-target #desktop-phase{background:var(--surface,#f4e5cc);border:1px solid var(--copper,#ac8958);padding:4px 8px!important;box-shadow:0 2px 5px #0002}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state{background:transparent;box-shadow:none;border:0;padding:3px 7px;min-height:36px}
 body.desktop-play.faithful-target[data-desktop-view='tabletop'] #desktop-event-ribbon .event-current{background:transparent url(visuals/faithful/action-paper.svg) center/100% 100% no-repeat!important;border:0;border-radius:0;box-shadow:none;padding-left:28px!important;padding-right:65px!important}
 body.desktop-play.faithful-target[data-desktop-view='star-map'] #desktop-event-ribbon .event-current{background:linear-gradient(110deg,#29232bdb,#211c28b8)!important;color:#f3e5cd}
 body.desktop-play.faithful-target[data-desktop-view='star-map'] #desktop-event-ribbon .event-ribbon-effect{color:#e1d3c0}
 body.desktop-play.faithful-target[data-desktop-view='command'] #desktop-event-ribbon .event-current{background:linear-gradient(110deg,#fff4dedb,#ead3afb8)!important;box-shadow:inset 0 0 0 3px #fff4df55}
}
/* Keep the planet summary compact; full mechanics live in context windows. */
@media(min-width:951px){
 body.desktop-play.faithful-target #selected .worldportrait{height:80px!important;flex:none}
 body.desktop-play.faithful-target #selected h2{font-size:26px;line-height:1.1;margin:0 0 7px}
 body.desktop-play.faithful-target #selected .world-lore{font-size:13px;line-height:1.25;margin:3px 0 6px}
 body.desktop-play.faithful-target #selected .faithful-production{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:6px 0}
 body.desktop-play.faithful-target #selected .faithful-production>span{margin:0;font-size:14px}
 body.desktop-play.faithful-target #selected .faithful-production strong{font-size:20px;line-height:24px}
 body.desktop-play.faithful-target #selected .faithful-production strong>.sw-symbol{width:22px;height:22px}
 body.desktop-play.faithful-target #selected .faithful-colonies{padding:6px 0 2px}
 body.desktop-play.faithful-target #selected .faithful-colonies>span{font-size:14px;margin-bottom:2px}
 body.desktop-play.faithful-target #selected .faithful-owner{min-height:0!important}
 body.desktop-play.faithful-target #selected .faithful-owner>.painted-piece{height:38px!important}
 body.desktop-play.faithful-target #selected .faithful-owner>small{font-size:12px;line-height:16px}
}
@media(min-width:951px){
 body.desktop-play.faithful-target dialog#modal{padding-bottom:90px!important}
 body.desktop-play.faithful-target dialog#modal .close{top:68px!important;right:54px!important}
}
/* Approved A: one translucent band, event artwork and inline online status. */
@media(min-width:951px){
 body.desktop-play.faithful-target header::after{content:'';position:absolute;left:24px;right:24px;top:130px;height:var(--status-height);box-sizing:border-box;border:1px solid #ae875866;border-radius:10px;background:linear-gradient(110deg,#fff0d4b8,#ecd1a78c);backdrop-filter:blur(7px);pointer-events:none;z-index:7}
 body.desktop-play.faithful-target[data-desktop-view='star-map'] header::after{background:linear-gradient(110deg,#292030b8,#241b2b8c);border-color:#bc945b77}
 body.desktop-play.faithful-target #desktop-event-ribbon:not([hidden]){left:34px!important;width:calc(100% - 530px)!important}
 body.desktop-play.faithful-target:is([data-desktop-view='tabletop'],[data-desktop-view='star-map'],[data-desktop-view='command']) #desktop-event-ribbon .event-current{background:transparent!important;border:0;box-shadow:none;border-radius:0;padding:6px 8px!important;clip-path:none}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current>img{filter:none;opacity:1;border-radius:50%;object-fit:cover}
 body.desktop-play.faithful-target #desktop-phase{right:128px!important;width:360px;background:transparent;border:0;box-shadow:none;gap:12px;padding:0!important;justify-content:flex-end}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;gap:12px;padding:0 8px;min-height:36px}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state>span:last-child{display:inline-flex;align-items:center;gap:6px}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state>span:last-child:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.6}
 body.desktop-play.faithful-target #online-toolbar-open{right:34px!important;width:82px;min-height:34px!important;top:143px!important;border-radius:7px}
}
@media(min-width:951px) and (max-width:1250px){
 body.desktop-play.faithful-target #desktop-phase{width:320px;font-size:12px}
 body.desktop-play.faithful-target #desktop-phase #phase,body.desktop-play.faithful-target #desktop-phase .online-compact-state{font-size:12px!important}
 body.desktop-play.faithful-target #desktop-phase .online-compact-state{gap:8px}
 body.desktop-play.faithful-target #desktop-event-ribbon:not([hidden]){width:calc(100% - 490px)!important}
 body.desktop-play.faithful-target #online-toolbar-open{top:155px!important}
}
@media(min-width:951px){
 body.desktop-play.faithful-target{--status-height:48px}
 body.desktop-play.faithful-target header::after{top:140px;background:linear-gradient(110deg,#fff0d49c,#ecd1a770);backdrop-filter:blur(5px)}
 body.desktop-play.faithful-target[data-desktop-view='star-map'] header::after{background:linear-gradient(110deg,#2920309c,#241b2b70)}
 body.desktop-play.faithful-target #desktop-event-ribbon:not([hidden]),body.desktop-play.faithful-target #desktop-phase{top:140px!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current{grid-template-columns:32px minmax(0,1fr) auto;padding-block:4px!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-current>img{width:32px!important;height:32px!important}
 body.desktop-play.faithful-target #desktop-event-ribbon .event-ribbon-effect{margin-top:1px}
 body.desktop-play.faithful-target #online-toolbar-open{top:147px!important}
}
@media(min-width:951px) and (max-width:1250px){
 body.desktop-play.faithful-target{--status-height:72px}
 body.desktop-play.faithful-target #online-toolbar-open{top:159px!important}
}
