/* 958: approved HUD finish; keep authoritative data, canvas maps and controls. */
body.hud-modern #gameStage #roundHudLayer{--modern-hud-surface:linear-gradient(135deg,#19384bf5,#091d2bf7);--modern-hud-border:#60879f;--modern-hud-shadow:inset 0 1px #e1f6ff15,0 5px 18px #0005}
body.hud-modern #gameStage #roundHudLayer :is(#playerTeamBadge,#teamProgressHud,#missionHud,#minimapWrap,#agentAbilityBar,#guardAbilityBar,#roundChat){box-sizing:border-box!important;border:1px solid var(--modern-hud-border)!important;border-radius:15px!important;background:var(--modern-hud-surface)!important;box-shadow:var(--modern-hud-shadow)!important}
body.hud-modern #gameStage #roundHudLayer :is(#playerTeamBadge,#teamProgressHud,#missionHud,#minimapWrap,#agentAbilityBar,#guardAbilityBar,#roundChat,#hud)::before{display:none!important;border-image:none!important}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge{display:flex;align-items:center;justify-content:center;width:260px!important;height:84px!important;padding:4px 10px!important;border-color:#4d96b1!important}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge[hidden]{display:none!important}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge[data-team=guard]{border-color:#a8737e!important}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge>img{display:block;width:238px!important;height:74px!important;max-width:100%;object-fit:contain!important}
body.hud-modern #gameStage #roundHudLayer #teamProgressHud{width:560px!important;height:49px!important;padding:11px 16px 0!important;min-height:0!important;border-bottom:0!important;border-radius:15px 15px 0 0!important;overflow:visible!important}
body.hud-modern #gameStage #roundHudLayer #teamProgressBar{position:relative;height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.hud-modern #gameStage #roundHudLayer #teamProgressBar::after{content:'';position:absolute;left:0;right:0;bottom:3px;height:6px;background:#06111b;border:1px solid #3e6073;border-radius:7px;z-index:0}
body.hud-modern #gameStage #roundHudLayer #teamProgressFill{position:absolute!important;left:1px;bottom:4px;top:auto!important;height:4px!important;min-width:0;border-radius:5px!important;background:linear-gradient(90deg,#41b4df,#79e5ff)!important;box-shadow:0 0 6px #57d7ff35;z-index:1}
body.hud-modern #gameStage #roundHudLayer #extractionProgressLabel{position:absolute;left:0;right:0;top:0!important;bottom:auto!important;transform:none!important;text-align:left;font:750 11px/18px system-ui!important;letter-spacing:.6px;color:#bbdff0!important;text-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer .team-phase-marker{top:auto!important;bottom:4px!important;height:4px!important;z-index:2;opacity:.4}
body.hud-modern #gameStage #roundHudLayer #teamProgressHud[data-extraction-ice=true] #teamProgressFill{background:linear-gradient(90deg,#258955,#6fe2a0)!important}
body.hud-modern #gameStage #roundHudLayer #teamProgressHud[data-extraction-countdown=true] #teamProgressFill{background:linear-gradient(90deg,#c19437,#ffe29a)!important}
body.hud-modern #gameStage #roundHudLayer #teamProgressHud[data-extraction-countdown=true] #extractionProgressLabel{color:#ffe8a9!important}
body.hud-modern #gameStage #roundHudLayer #msg{box-sizing:border-box!important;width:560px!important;min-height:35px;padding:8px 16px 12px!important;border:1px solid #60879f!important;border-top:0!important;border-radius:0 0 15px 15px!important;background:linear-gradient(135deg,#173347f5,#091d2bf7)!important;box-shadow:0 6px 14px #0003!important;color:#eff8fc!important;font:800 16px/1.35 system-ui!important;text-shadow:none!important;white-space:normal;overflow-wrap:anywhere}
body.hud-modern #gameStage #roundHudLayer #minimapWrap{padding:12px 12px 9px!important;width:max-content!important;min-width:0;overflow:visible!important;border-radius:18px!important}
body.hud-modern #gameStage #roundHudLayer #agentMinimap{border:2px solid #80a4b4!important;background:#14271f!important;box-shadow:0 0 0 4px #081b27,0 0 0 5px #3d6278}
body.hud-modern #gameStage #roundHudLayer #agentMinimapFrame{margin:2px}
body.hud-modern #gameStage #roundHudLayer #minimapWrap #hud{display:flex!important;flex-wrap:wrap;justify-content:center;gap:7px 13px;margin:12px auto 0!important;padding:0!important;min-height:22px!important;height:auto!important;max-width:284px!important;white-space:normal!important;background:none!important;border:0!important;box-shadow:none!important;color:#b6d3e3!important;font:650 11px/18px system-ui!important}
body.hud-modern #gameStage #roundHudLayer #hud .round-info{z-index:100;white-space:normal;line-height:1.5}
body.hud-modern #gameStage #roundHudLayer #hud .round-time,body.hud-modern #gameStage #roundHudLayer #hud .round-ping{font-size:13px!important;color:#e1f1fb}
body.hud-modern #gameStage #roundHudLayer :is(#agentMapPlus,#agentMapMinus){border-radius:50%!important;background:#1b3b4f!important;border-color:#7096aa!important}
body.hud-modern #gameStage #roundHudLayer #missionHud{width:380px!important;padding:14px 17px!important;min-height:0!important}
body.hud-modern #gameStage #roundHudLayer #missionHud .pro-kicker{font:750 10px/1.4 system-ui!important;letter-spacing:1.5px;color:#a7c6d9}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-heading{gap:9px;margin-top:10px!important;align-items:center}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-heading>b{display:flex;align-items:center;gap:10px;font:800 16px/1.2 system-ui!important}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-heading>b::before{content:'◇';display:grid;place-items:center;width:29px;height:29px;border:1px solid #5c9ab6;border-radius:8px;background:#12384d;color:#7ce2ff;font-size:22px}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-heading>span{background:none!important;border:0!important;color:#82dfff!important;font:850 19px/1.2 system-ui!important;padding:0!important}
body.hud-modern #gameStage #roundHudLayer #missionListCollapse{width:27px;height:27px;border:1px solid #6c8d9f;border-radius:8px;background:#1f3d50;color:#bddbea;font-size:19px}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-progress{height:4px!important;margin:11px 0 4px;background:#344e5f;border:0;border-radius:6px;overflow:hidden}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-progress i{background:#72dbff!important;border-radius:5px}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-row{border-color:#7497ab25;color:#b6ccdc;padding:7px 1px}
body.hud-modern #gameStage #roundHudLayer #missionHud .mission-overview-row.completed{color:#9edbb6}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar){width:440px;padding:10px 10px 9px!important;border-radius:16px!important;isolation:isolate}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot{height:89px;aspect-ratio:auto;min-width:0;border:1px solid color-mix(in srgb,var(--skill-accent) 65%,#193247);border-radius:10px;background:linear-gradient(140deg,color-mix(in srgb,var(--skill-accent) 11%,#163147),#0a1e2d);box-shadow:inset 0 2px color-mix(in srgb,var(--skill-accent) 65%,transparent);padding:0;overflow:hidden}
body.hud-modern #gameStage #roundHudLayer .ability-slot .skill-art{position:absolute;inset:8px auto auto 50%;transform:translateX(-50%);width:43px;height:43px;object-fit:contain}
body.hud-modern #gameStage #roundHudLayer .ability-slot kbd{left:5px;top:5px;font:750 9px/13px system-ui!important;min-width:15px;padding:0 3px;background:#173248!important;color:#c7e6f5!important;border:1px solid #7193a466!important;border-radius:4px;box-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer .skill-caption{left:1px;right:1px;bottom:6px;gap:2px;padding:0;background:none!important;border-radius:0}
body.hud-modern #gameStage #roundHudLayer .ability-label{font:800 8px/10px system-ui!important;letter-spacing:0!important;color:#e4f2fa!important;white-space:nowrap}
body.hud-modern #gameStage #roundHudLayer .ability-slot small{font:850 9px/11px system-ui!important;color:var(--skill-ready-text)!important;letter-spacing:.25px}
body.hud-modern #gameStage #roundHudLayer .ability-slot:is(.is-depleted,.is-cooldown) small{color:#94adbd!important}
body.hud-modern #gameStage #roundHudLayer .ability-slot:disabled:not(.is-cooldown,.scan-active,.boost-active) .skill-art{opacity:.65}
body.hud-modern #gameStage #roundHudLayer .skill-countdown{z-index:6}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) #staminaHud{position:static!important;display:flex!important;align-items:center;gap:8px;width:100%!important;height:auto!important;min-height:0!important;margin:9px 0 0!important;padding:0!important;transform:none!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:hidden}
body.hud-modern #gameStage #roundHudLayer #staminaHud>div:first-child{position:static!important;inset:auto!important;margin:0!important;width:auto!important;flex:none;color:#a8c6d7;font:750 8px/12px system-ui!important;white-space:nowrap}
body.hud-modern #gameStage #roundHudLayer #staminaHud>div:nth-child(2){flex:1;height:6px!important;border:1px solid #65738c55;border-radius:6px;background:#112231!important;overflow:hidden}
body.hud-modern #gameStage #roundHudLayer #staminaBar{height:100%!important;background:linear-gradient(90deg,#cdaa50,#f6db7c)!important}
body.hud-modern #gameStage #roundHudLayer #roundChat{padding:13px 15px!important}
body.hud-modern #gameStage #roundHudLayer #roundChat.chat-collapsed{min-width:194px!important;min-height:46px!important}
body.hud-modern #gameStage #roundHudLayer #roundChat .round-chat-heading{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;color:#e5f3fb}
body.hud-modern #gameStage #roundHudLayer #roundChat .round-chat-heading::before{content:'';display:block;width:23px;height:23px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h14a2 2 0 012 2v10a2 2 0 01-2 2H9l-6 4V6a2 2 0 012-2zM7 9h10M7 13h7' fill='none' stroke='%2399d5f1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
body.hud-modern #gameStage #roundHudLayer #roundChat input{background:#0c2232!important;border-color:#567b92!important;color:#e5f4fc!important}
body.hud-modern #gameStage #roundHudLayer :is(#skillTooltip,#spectatorStatusCard){background:var(--modern-hud-surface)!important;border:1px solid #60879f!important;border-radius:12px;box-shadow:var(--modern-hud-shadow)!important}
/* Match the real widget finish in the HUD editor. */
body.hud-modern #hudPreviewStage .hud-preview-team-logo{box-sizing:border-box;width:260px;height:84px;padding:4px 10px;border:1px solid #4d96b1;border-radius:15px;background:linear-gradient(135deg,#19384bf5,#091d2bf7);object-fit:contain}
body.hud-modern #hudPreviewStage[data-preview-team=catcher] .hud-preview-team-logo{border-color:#a8737e}
body.hud-modern #hudPreviewStage .hud-sample-status{width:560px;padding:12px 16px;border:1px solid #60879f;border-radius:15px;background:linear-gradient(135deg,#19384bf5,#091d2bf7)}
body.hud-modern #hudPreviewStage .hud-sample-status .hud-preview-progress{height:7px;border-radius:6px;background:#06111b;margin:21px 0 12px;overflow:visible}
body.hud-modern #hudPreviewStage .hud-sample-status .hud-preview-progress b{position:absolute;top:-23px;left:0;width:100%;text-align:left;font:750 11px/18px system-ui;color:#bbdff0}
body.hud-modern #hudPreviewStage .hud-sample-status p{font:800 16px/1.35 system-ui}
body.hud-modern #hudPreviewStage .hud-sample-skills{width:440px;padding:10px;border:1px solid #60879f;border-radius:16px;background:linear-gradient(135deg,#19384bf5,#091d2bf7)}
body.hud-modern #hudPreviewStage .hud-preview-skills{gap:7px}
body.hud-modern #hudPreviewStage .hud-preview-skills>.ability-slot{height:89px;border:1px solid var(--ability-color,#7196a7);border-radius:10px;background:#102b3e;box-shadow:inset 0 2px var(--ability-color,#7196a7)}
body.hud-modern #hudPreviewStage .hud-preview-skills img{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:43px;height:43px;object-fit:contain}
body.hud-modern #hudPreviewStage .hud-preview-skills small{bottom:9px;font:800 8px/11px system-ui;background:none!important;color:#e7f5fc;letter-spacing:0}
body.hud-modern #hudPreviewStage .hud-preview-stamina{height:7px;overflow:hidden;color:transparent;background:linear-gradient(90deg,#cdaa50,#f6db7c);margin-top:10px}
@media(prefers-reduced-motion:reduce){body.hud-modern #gameStage #roundHudLayer .ability-slot{transition:none!important}}

/* Some Catcher/final phases intentionally have no central objective text. */
body.hud-modern #gameStage #roundHudLayer #msg:empty{display:none!important}
body.hud-modern #gameStage #roundHudLayer:has(#msg:empty) #teamProgressHud{border-bottom:1px solid #60879f!important;border-radius:15px!important}
body.hud-modern #gameStage #roundHudLayer #minimapWrap #hunterMinimapPanel{border:0!important;border-radius:0;background:none!important;box-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer #minimapWrap #hunterMinimapPanel::before{display:none!important}

/* Reuse the existing preparation-menu sun/moon symbols without another image request. */
#minimapDayNight{position:absolute;left:8px;top:3px;z-index:6;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #8da6b566;border-radius:50%;background:#102735ed;color:#f6d58b;cursor:help;font:19px/1 system-ui;box-shadow:0 1px 4px #0005}
#minimapDayNight[data-time-of-day=night]{color:#c5d8ff}
#minimapDayNight .day-night-symbol{display:block;line-height:1;pointer-events:none}
#minimapDayNightTip{position:absolute;left:-82px;top:36px;box-sizing:border-box;width:300px;padding:9px 11px;border:1px solid #7597ad;border-radius:9px;background:#0b1d2af5;color:#edf6ff;font:600 12px/1.5 system-ui;text-align:left;white-space:normal;visibility:hidden;opacity:0;pointer-events:none;box-shadow:0 3px 12px #0007}
#minimapDayNightTip .day-night-note{display:block;margin-top:5px;white-space:nowrap}
#minimapDayNight:is(:hover,:focus-visible) #minimapDayNightTip{visibility:visible;opacity:1}
#minimapDayNight:focus-visible{outline:2px solid #d8ebff;outline-offset:2px}
#minimapWrap #hunterMinimapPanel{padding-top:30px}
/* 959: fixed map shell and timing space; text changes must not resize its frame. */
body.hud-modern #gameStage #roundHudLayer #minimapWrap{width:242px!important}
body.hud-modern #gameStage #roundHudLayer #minimapWrap[data-map-team=catcher]{width:286px!important}
body.hud-modern #gameStage #roundHudLayer #minimapWrap #hud{width:100%!important;max-width:100%!important;height:38px!important;min-height:38px!important;margin:0 auto!important;align-content:flex-start;column-gap:10px;row-gap:2px;font-variant-numeric:tabular-nums}
/* A fixed frame must not shimmer between enabled, observed and active states. */
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot{
 border:1px solid color-mix(in srgb,var(--skill-accent) 65%,#193247)!important;
 outline:0!important;box-shadow:inset 0 2px color-mix(in srgb,var(--skill-accent) 65%,transparent)!important;
 transition:none!important;
}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot::after{transition:none!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:is(.selected,.boost-active,.scan-active){box-shadow:inset 0 0 0 1px var(--skill-accent)!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:focus-visible{outline:2px solid var(--skill-accent)!important;outline-offset:2px}
body.hud-modern #gameStage #roundHudLayer .skill-cooldown-fill,body.hud-modern #gameStage #roundHudLayer .skill-cooldown-edge{inset:5px;border-radius:5px}
body.hud-modern #gameStage #roundHudLayer .skill-cooldown-edge::before{box-shadow:none}
/* 970: composite the static frame independently of animated cooldown content. */
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot{border-color:transparent!important;box-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot::before{content:"";position:absolute;inset:0;z-index:10;border:2px solid color-mix(in srgb,var(--skill-accent) 65%,#193247);border-radius:9px;box-shadow:inset 0 2px color-mix(in srgb,var(--skill-accent) 65%,#182229);pointer-events:none;transform:translateZ(0)}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:is(.selected,.boost-active,.scan-active)::before{box-shadow:inset 0 0 0 1px var(--skill-accent)}
body.hud-modern #gameStage #roundHudLayer #teamProgressBar{height:35px!important}

/* 972: remaining effect time follows the rounded button perimeter, clockwise from noon. */
.ability-slot>svg.skill-effect-duration{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:11;transform:translateZ(0)}
.skill-effect-duration .skill-duration-stroke{fill:none;stroke:var(--skill-accent);stroke-width:2;stroke-linecap:butt;stroke-dasharray:2.4 1.6}
.skill-effect-duration .skill-duration-mask{fill:none;stroke:white;stroke-width:6;stroke-linecap:butt;stroke-dasharray:100 100}
body.hud-modern #gameStage #roundHudLayer .ability-slot.has-effect-duration .skill-effect-duration{display:block}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot.has-effect-duration::before{border-color:color-mix(in srgb,var(--skill-accent) 22%,#193247);box-shadow:none}

/* Active time takes precedence over recharge fill until the effect ends. */
body.hud-modern #gameStage #roundHudLayer .ability-slot.has-effect-duration .skill-cooldown-fill{display:block;transform:scaleY(var(--skill-effect-remaining));transition:none}
body.hud-modern #gameStage #roundHudLayer .ability-slot.has-effect-duration .skill-cooldown-edge{display:block;transform:translateY(calc((1 - var(--skill-effect-remaining)) * 100%));transition:none}

/* 975: bright ready surfaces and neutral unavailable/cooldown surfaces, both teams. */
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:not(.is-cooldown,.is-depleted,.has-effect-duration){background:linear-gradient(145deg,color-mix(in srgb,var(--skill-accent) 38%,#153243),color-mix(in srgb,var(--skill-accent) 15%,#091b28))!important;box-shadow:0 0 10px color-mix(in srgb,var(--skill-accent) 22%,transparent)!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:not(.is-cooldown,.is-depleted,.has-effect-duration)::before{border-color:var(--skill-accent);box-shadow:inset 0 2px color-mix(in srgb,var(--skill-accent) 75%,white),inset 0 0 15px color-mix(in srgb,var(--skill-accent) 18%,transparent)}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:not(.is-cooldown,.is-depleted) .skill-art{filter:saturate(1.2) brightness(1.18)!important;opacity:1!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:not(.is-cooldown,.is-depleted) small{color:#fff6c7!important;text-shadow:0 0 6px var(--skill-accent)}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:is(.is-cooldown,.is-depleted):not(.has-effect-duration){background:linear-gradient(145deg,#30383e,#172027)!important;box-shadow:none!important}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot:is(.is-cooldown,.is-depleted):not(.has-effect-duration)::before{border-color:#71818b;box-shadow:inset 0 2px #87959d}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot.is-cooldown:not(.has-effect-duration) .skill-cooldown-fill{background:linear-gradient(to top,#aebbc340,#c5d0d322)}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot.is-cooldown:not(.has-effect-duration) .skill-cooldown-edge::before{background:#bdc9ce;box-shadow:none}
body.hud-modern #gameStage #roundHudLayer :is(#agentAbilityBar,#guardAbilityBar) .ability-slot.is-depleted:not(.has-effect-duration) .skill-art{filter:grayscale(1) brightness(.42)!important}

/* Ranked: fixed squad identity beneath the current Runner/Catcher role. */
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge[data-ranked-team]{height:112px!important;flex-direction:column;gap:1px}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge .ranked-team-label{display:block;font:800 19px/24px system-ui;color:#ffe199;letter-spacing:.5px}
body.hud-modern #gameStage #roundHudLayer #playerTeamBadge .ranked-team-label[hidden]{display:none!important}

/* 1101: quiet championship trim, only while the live Ranked HUD is present. */
body.hud-modern.ranked-hud #gameStage #roundHudLayer{
 --modern-hud-border:#a58d5d;
 --modern-hud-surface:linear-gradient(135deg,#1a3548f5,#0a1b2bf7);
 --modern-hud-shadow:inset 0 1px #ffe5a52b,inset 0 -1px #b99b5218,0 5px 18px #0005;
}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #playerTeamBadge{border-color:#9eaa82!important}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #playerTeamBadge[data-team=guard]{border-color:#ac9474!important}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #msg{
 border-color:#a58d5d!important;
 background:linear-gradient(135deg,#193346f5,#0a1b2bf7)!important;
 box-shadow:inset 0 -1px #b99b5218,0 6px 14px #0003!important;
}
body.hud-modern.ranked-hud #gameStage #roundHudLayer:has(#msg:empty) #teamProgressHud{border-color:#a58d5d!important}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #rankedHud{
 position:relative;padding-top:28px;
 border-color:#af945d;
 background:linear-gradient(145deg,#203646,#0d2030);
 box-shadow:inset 0 1px #ffe8a72b,inset 0 0 0 1px #d5b4660b;
}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #rankedHud::before{
 content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
 width:96px;height:30px;
 background:url("assets/ranked-hud-crest-1101.webp") center/contain no-repeat;
 pointer-events:none;
}
body.hud-modern.ranked-hud #gameStage #roundHudLayer #rankedHud>small:first-child{color:#d8c796}

/* 1126: breathing room under the score, matching the timing row above it. */
body.hud-modern #gameStage #roundHudLayer #minimapWrap:has(#rankedHud:not([hidden])){padding-bottom:20px!important}
/* Additional visual reduction combines with each player's saved HUD scale. */
body.hud-modern #gameStage #roundHudLayer #roundChat.chat-collapsed{transform:scale(.75)!important;transform-origin:bottom right!important}
body.hud-modern #roundChat.outro-chat.chat-collapsed{transform:scale(calc(var(--outro-chat-scale,1) * .75));transform-origin:bottom right}

/* 1129: a growing, single-column prison roster within the shared left HUD. */
body.hud-modern #gameStage #roundHudLayer #prisonHud.prison-summary{box-sizing:border-box;width:260px;padding:10px 12px!important;border:1px solid var(--modern-hud-border)!important;border-radius:15px!important;background:var(--modern-hud-surface)!important;box-shadow:var(--modern-hud-shadow)!important;display:flex;flex-direction:column;overflow:hidden}
body.hud-modern #gameStage #roundHudLayer #prisonHud::before{display:none!important}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-heading{flex:none;font:800 13px/20px system-ui;color:#e2eef6}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-roster{display:flex;flex-direction:column;gap:4px;margin-top:8px;min-height:0;max-height:none;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#56768a transparent}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-roster:empty{display:none!important}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-person{flex:none;box-sizing:border-box;min-height:40px;height:40px;padding:2px 0;gap:10px;background:#31576a38;border-radius:7px}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-avatar{position:relative;display:block;flex:0 0 36px;width:36px;height:36px;overflow:hidden;background:#10242b;border-radius:7px}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-face{position:relative;display:block;width:36px;height:36px;border:0;border-radius:7px;object-fit:contain}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-bars{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;pointer-events:none}
body.hud-modern #gameStage #roundHudLayer #prisonHud .prison-summary-name{min-width:0;font:750 14px/18px system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
