/* Light query-page headers. Embedded room profiles inherit the room's dark theme. */
html:not(.room-profile) .profile{
 background:linear-gradient(110deg,#fff 25%,#f1f6f7 100%);
 color:#233d50;border:1px solid #d8e3e9;
 box-shadow:0 3px 12px #233d5004;
}
html:not(.room-profile) .profile::before{
 content:'';position:absolute;top:0;left:32px;width:44px;height:3px;
 background:#eb5b69;border-radius:0 0 2px 2px;pointer-events:none;
}
html:not(.room-profile) .profile.has-profile-map{
 background-image:linear-gradient(90deg,#fffffff7 0%,#fffffff0 45%,#f1f6f761 70%,#f1f6f7e6 100%),var(--profile-map);
 background-size:cover;background-position:center;
}
html:not(.room-profile) .profile.has-profile-map::after{
 background:linear-gradient(90deg,#ffffffd9 0%,#ffffffa6 45%,#ffffff00 65%);
}
html:not(.room-profile) .profile::after{
 background:linear-gradient(90deg,#ffffffed 10%,#ffffffa6 35%,#ffffff00 58%,#f1f6f733 88%,#f1f6f77a 100%);
 pointer-events:none;
}
html:not(.room-profile) .profile-art{opacity:.82;filter:saturate(.95)}
html:not(.room-profile) .profile-agent{
 background:linear-gradient(145deg,#e2edef,#f6f9fa);border-color:#cbdce2;
 box-shadow:0 2px 6px #23445508;
}
html:not(.room-profile) .profile-kicker{color:#617b8c}
html:not(.room-profile) .profile :is(.player-tag,.profile-meta){color:#506b7c}
html:not(.room-profile) .profile :is(.profile-created,.profile-update,.rank-caption,.rank-peak){color:#647d8d}
html:not(.room-profile) .profile .level-badge{color:#456274;background:#eaf1f4;border-color:#d2e0e6}
html:not(.room-profile) .profile-rank{border-color:#dce7eb}
html:not(.room-profile) .profile .rank-rr{color:#42736e}
html:not(.room-profile) .profile .copy-game-id:hover{color:#207668}
html:not(.room-profile) .profile .copy-game-id:focus-visible{outline-color:#397f76}
html:not(.room-profile) .profile .copy-game-id-icon{color:#668391}
html:not(.room-profile) .profile .profile-copy-status{color:#227563}

html:not(.room-profile) .match-hero{
 height:auto;min-height:162px;background:#f4f7f9;color:#233d50;
 border-bottom:1px solid #dce6ec;
}
html:not(.room-profile) .match-hero::before{
 background-image:linear-gradient(90deg,#fff 0%,#fffffff0 30%,#edf4f67a 68%,#edf4f633 100%),var(--hero-map,none);
}
html:not(.room-profile) .match-hero .hero-agent{opacity:.76;filter:saturate(.8)}
html:not(.room-profile) .match-hero .hero-eyebrow{color:#5d7688}
html:not(.room-profile) .match-hero .hero-mode{color:#405e73}
html:not(.room-profile) .match-hero .hero-time{color:#60788b}
html:not(.room-profile) .match-hero .hero-score .own{color:#227b68}
html:not(.room-profile) .match-hero .hero-score .opponent{color:#bd5364}
html:not(.room-profile) .match-hero .hero-score .colon{color:#7b909e}
html:not(.room-profile) .match-hero .hero-rank{color:#4c687b}
html:not(.room-profile) .match-hero .hero-rank small{color:#277c69}
html:not(.room-profile) .match-hero .hero-rank small.negative{color:#ba4c60}

/* Keep map landmarks visible in both the full and compact match selector. */
html:not(.room-profile) .match-option::before{
 background-image:linear-gradient(90deg,#ffffffe6 0%,#ffffffd1 35%,#ffffff7a 68%,#ffffff2e 100%),var(--map-image,none);
}
html:not(.room-profile) .match-option.selected::before{
 background-image:linear-gradient(90deg,#eaf6f1e6 0%,#eff8f5d1 35%,#eff8f57a 68%,#eff8f52e 100%),var(--map-image,none);
}
html:not(.room-profile) .match-option.loss.selected::before{
 background-image:linear-gradient(90deg,#fcf0f1e6 0%,#fcf2f3d1 35%,#fcf2f37a 68%,#fcf2f32e 100%),var(--map-image,none);
}
/* Feather the map into the card edge, without a separate badge or hard boundary. */
html:not(.room-profile) .match-option::after{
 content:'';position:absolute;inset:0 0 0 auto;width:96px;z-index:-1;
 background:linear-gradient(90deg,#ffffff00 0%,#ffffffb8 62%,#ffffffe0 100%);
 pointer-events:none;
}
html:not(.room-profile) .match-option .match-side{
 color:#345064;text-shadow:0 1px 2px #ffffffe6;
}
html:not(.room-profile) .match-option :is(.match-result,.match-rr){font-weight:700}
html:not(.room-profile) .match-option :is(.match-result,.positive){color:#12654f}
html:not(.room-profile) .match-option :is(.match-result.loss,.negative),
html:not(.room-profile) .match-option.loss .match-result{color:#a1263e}
html:not(.room-profile) .match-option .match-result.unknown,
html:not(.room-profile) .match-option .match-result.draw{color:#425c73}
html:not(.room-profile) .match-option .match-date{color:#526b7d;text-shadow:0 1px 2px #ffffffd9}
@media(max-width:1000px){
 html:not(.room-profile) .profile-art{opacity:.5}
}
@media(max-width:600px){
 html:not(.room-profile) .profile::before{left:20px}
 html:not(.room-profile) .profile-art{opacity:.34}
 html:not(.room-profile) .match-hero{min-height:156px}
 html:not(.room-profile) .match-hero::before{
  background-image:linear-gradient(90deg,#fffffff5 5%,#ffffffd9 50%,#edf4f66b 100%),var(--hero-map,none);
 }
 html:not(.room-profile) .match-hero .hero-agent{opacity:.2}
}
