/* CONTAINED_EMBLEMS_V3 BRANCH_VISIBILITY_NOV1: readable labels and one clear artwork area. */
.md-branch-emblem { display: none; pointer-events: none; }

html:not([data-halloween]):not([data-theme="orange"]) .case-branch-nav {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 12px;
    padding: 0 0 4px;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0;
}
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-link {
    position: relative;
    isolation: isolate;
    min-height: 90px;
    padding: 14px;
    border-color: #39464d;
    border-radius: 16px;
    background: linear-gradient(130deg, #182125, #0b1114 75%);
    box-shadow: inset 0 1px 0 #ffffff0b, 0 5px 15px #0002;
    filter: grayscale(.5) brightness(.72);
    transition: filter .45s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
    overflow: clip;
}
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-link:is(:hover,:focus-visible) {
    filter: grayscale(0) brightness(1);
}
/* The original case thumbnail duplicated the server emblem and crowded the title. */
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-icon { display: none; }
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 0 84px 0 0;
    gap: 4px;
    text-align: left;
}
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text b {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.35px;
    text-shadow: 0 1px 3px #0008;
}
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text small {
    color: #c4cdd2;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}
html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem {
    display: block;
    position: absolute;
    z-index: 1;
    right: -4px;
    top: 50%;
    width: 108px;
    height: 100px;
    translate: 0 -50%;
    transform: perspective(360px) rotateY(8deg) rotate(-8deg);
    transform-origin: center;
    opacity: .92;
    filter: brightness(1.12) drop-shadow(-3px 4px 4px #0006);
    mask-image: none;
    transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .55s ease;
}
html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
}
html:not([data-halloween]):not([data-theme="orange"]) .case-branch-link:is(:hover,:focus-visible) .md-branch-emblem {
    opacity: 1;
    filter: brightness(1.2) drop-shadow(-3px 4px 4px #0006);
    transform: perspective(360px) rotateY(4deg) rotate(-5deg) translateX(-2px);
}
html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem--stack {
    right: -2px;
    width: 86px;
    height: 82px;
}
html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem--stack > img {
    position: absolute;
    width: 54px;
    height: 54px;
    left: calc(var(--emblem-index) * 14px);
    top: calc(var(--emblem-index) * 14px);
    object-view-box: inset(8% 9% 42% 9%);
    border-radius: 8px;
    background: #10151b;
    box-shadow: -3px 2px 6px #0006;
    transform: rotate(calc(-8deg + var(--emblem-index) * 6deg));
}
html:not([data-halloween]):not([data-theme="orange"]) .live-sidebar .live-header { align-items: center; gap: 7px; }
html:not([data-halloween]):not([data-theme="orange"]) .live-sidebar .live-header .live-feed-logo {
    width: 1.2em !important;
    height: 1.2em !important;
    flex: 0 0 1.2em !important;
    align-self: center;
    overflow: visible;
}
@media (min-width: 1700px) {
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text b { font-size: 21px; }
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text small { font-size: 13px; }
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-link { min-height: 96px; padding-inline: 16px; }
    html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem { right: 0; width: 120px; height: 108px; }
    html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem--stack { right: 2px; width: 104px; height: 94px; }
    html:not([data-halloween]):not([data-theme="orange"]) .md-branch-emblem--stack > img { width: 62px; height: 62px; left: calc(var(--emblem-index) * 17px); top: calc(var(--emblem-index) * 16px); }
}
@media (max-width: 768px) {
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-nav { grid-template-columns: repeat(5, 224px); gap: 10px; }
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-link { min-height: 88px; padding: 12px 14px; }
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text b { font-size: 18px; }
    html:not([data-halloween]):not([data-theme="orange"]) .case-branch-text small { font-size: 12px; }
}
html:not([data-halloween]):not([data-theme="orange"]):is([data-reduced-motion],[data-quality="performance"]) .md-branch-emblem { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .md-branch-emblem { transition: none !important; } }
