/* Shared slate grain and angled metal trim for both ranking views. */
.raid-hall-of-fame, .raid-hall-page {
    --hall-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='108'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.48' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.14' filter='url(%23n)' d='M0 0h108v108H0z'/%3E%3C/svg%3E");
}
.rd-mini-rankings.raid-hall-of-fame {
    border: 4px double #b9945d;
    border-radius: 16px 16px 12px 12px;
    background: linear-gradient(140deg, #221912, #101218 38%, #161315);
    box-shadow: inset 0 0 0 3px #090b0f, inset 0 0 0 4px #edb76d38, 0 0 22px #e4872238, 0 12px 34px #0009;
    overflow: hidden;
}
.raid-hall-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,3.4fr) minmax(0,1fr);
    align-items: center;
    gap: 18px;
    min-height: 200px;
    padding: 28px clamp(15px,4vw,60px) 48px;
    border: 1px solid #b58046;
    border-radius: 12px 12px 3px 3px;
    background: radial-gradient(ellipse at 50% 68%,#b937145c,transparent 58%),
        linear-gradient(0deg,#100a0f 0%,#090c1460 58%,#090c1470),
        url('/assets/design/raidmu-rankings-banner.webp') center 42%/cover;
    box-shadow: 0 2px 15px #e991294a;
    text-align: center;
}
.raid-hall-banner::after {
    content: '';
    position: absolute;
    inset: auto 16% 12px;
    height: 19px;
    background: linear-gradient(90deg,transparent,#ff7c2694 28%,#ffe096 50%,#ff7c2694 72%,transparent);
    clip-path: polygon(0 46%,45% 46%,50% 0,55% 46%,100% 46%,100% 54%,55% 54%,50% 100%,45% 54%,0 54%);
}
.raid-hall-logo {
    width: min(100%,145px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px #000c) drop-shadow(0 0 10px #ff742066);
}
.raid-hall-banner-title p {
    margin: 0 0 8px;
    color: #ffe5aa;
    font: 700 clamp(.7rem,2vw,1.05rem)/1.1 Cinzel,Georgia,serif;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.raid-hall-banner-title :is(h1,h2) {
    margin: 0;
    color: #ffce73;
    font: 700 clamp(1.8rem,5.5vw,4.75rem)/1 Cinzel,'Noto Serif Georgian',Georgia,serif;
    text-transform: uppercase;
    text-shadow: 0 2px #663014, 0 0 17px #ff7e2e80, 0 5px 11px #000;
}
.raid-hall-limit {
    justify-self: end;
    padding: 8px 14px;
    border: 1px solid #f3b958;
    background: linear-gradient(#731c15,#270d18);
    box-shadow: inset 0 0 9px #f0562470, 0 0 10px #fd760a58;
    color: #fff1be;
    font: 700 .83rem Georgia,serif;
    text-transform: uppercase;
    white-space: nowrap;
}
.raid-hall-page .raid-rankings-shell { max-width: 1320px; width: 100%; }
.raid-hall-page .raid-hall-banner { margin-bottom: 22px; }
.raid-hall-page .raid-ranking-board,
.raid-hall-of-fame .rd-mini-body {
    background: var(--hall-texture,none),linear-gradient(145deg,#1e1c1b,#0d1118 39%,#111014);
}
.raid-hall-page .raid-ranking-board { border-color: #9b7243; box-shadow: inset 0 0 0 2px #090a11,0 8px 24px #0008; }
.raid-hall-of-fame .rd-mini-body { padding: clamp(9px, 1.6vw, 20px); }
.raid-hall-of-fame .rd-mini-tabs { gap: 10px; margin-bottom: 14px; }
.raid-hall-of-fame .rd-mini-tabs button,
.raid-hall-page .raid-ranking-tabs [role="tab"] {
    padding: 10px 6px;
    border: 1px solid #bc915b;
    clip-path: polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);
    background: var(--hall-texture,none),linear-gradient(#252731,#0a0c12 58%,#1b1517);
    box-shadow: inset 0 1px #f2c17a45, inset 0 -2px #b28a4c33;
    font: 700 clamp(.71rem, 1.5vw, 1rem)/1.15 Cinzel, 'Noto Serif Georgian', Georgia, serif;
    color: #ecd7b5;
}
.raid-hall-of-fame .rd-mini-tabs button[aria-selected="true"],
.raid-hall-page .raid-ranking-tabs [aria-selected="true"] {
    border-color: #ffcb70;
    color: #fff1be;
    background: var(--hall-texture,none),radial-gradient(ellipse at bottom,#f8420f,#7c1109 43%,transparent 76%),linear-gradient(#650b0e,#26070a);
    box-shadow: inset 0 1px #fff0aa, inset 0 -2px #ffb343, inset 0 0 13px #ff4f1c77, 0 0 15px #ff591e70;
    text-shadow: 0 1px 2px #2c0606,0 0 10px #ffab4266;
}
.raid-hall-of-fame .rd-mini-tabs button span, .raid-tab-icon { color: #e3b980; margin-inline-end: .25em; }
.raid-hall-of-fame .raid-rank-home .raid-hall-table { background: transparent; }
.raid-hall-table .raid-rank-table { border-collapse: separate; border-spacing: 0 7px; }
.raid-hall-table .raid-rank-table th {
    border-block: 1px solid #c193505c;
    color: #ffe0a0;
    background: #13151b;
    font: 700 .82rem Cinzel, 'Noto Serif Georgian', Georgia, serif;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-align: start;
}
.raid-hall-table .raid-rank-table :is(th,td) { padding: .61rem .9rem; }
.raid-hall-table .raid-rank-table.raid-player-table thead th:first-child { text-align: center; }
.raid-hall-table .raid-rank-table .raid-col-guild_name { text-align: start; }
.raid-hall-table .raid-rank-table tbody tr {
    --row-rim: #65686b;
    --row-bright: #797e83;
    --row-halo: #0000;
    --row-tint: #cdd5ee10;
    --cut: 10px;
    --plate: polygon(var(--cut) 0,calc(100% - var(--cut)) 0,100% var(--cut),100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,var(--cut) 100%,0 calc(100% - var(--cut)),0 var(--cut));
    position: relative;
    isolation: isolate;
}
.raid-hall-table .raid-rank-table tbody tr > td:first-child::before,
.raid-hall-table .raid-rank-table tbody tr > td:first-child::after {
    content: '';
    position: absolute;
    clip-path: var(--plate);
    pointer-events: none;
}
.raid-hall-table .raid-rank-table tbody tr > td:first-child::before {
    z-index: -2;
    inset: 0;
    background: linear-gradient(106deg,var(--row-bright),var(--row-rim) 7%,var(--row-bright) 46%,var(--row-rim) 78%,var(--row-bright));
}
.raid-hall-table .raid-rank-table tbody tr > td:first-child::after {
    z-index: -1;
    inset: 2px;
    background: radial-gradient(ellipse at 0 0,var(--row-tint),transparent 54%),
        radial-gradient(ellipse at 100% 100%,var(--row-tint),transparent 55%),
        var(--hall-texture,none),
        linear-gradient(#17171b,#090c10 54%,#161614);
}
.raid-hall-table .raid-rank-table tbody tr:hover > td:first-child::after {
    background-color: #221910;
    background-blend-mode: screen,screen,normal,normal;
}
.raid-hall-table .raid-rank-table tbody td,
.raid-hall-table .raid-rank-table tbody tr:hover td {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff1d9;
}
.raid-hall-table .raid-rank-table tbody td:first-child {
    border: 0;
    border-radius: 0;
    text-align: center;
}
.raid-hall-table .raid-rank-table tbody td:last-child { border: 0; border-radius: 0; }
.raid-hall-table .raid-rank-table [data-rank-placement="1"] { --row-rim:#df8b29; --row-bright:#fff2a2; --row-halo:#ffad43ad; --row-tint:#b972303e; }
.raid-hall-table .raid-rank-table [data-rank-placement="2"] { --row-rim:#688bb4; --row-bright:#eff9ff; --row-halo:#9acbff8c; --row-tint:#729dcc37; }
.raid-hall-table .raid-rank-table [data-rank-placement="3"] { --row-rim:#d0784e; --row-bright:#ffe0c4; --row-halo:#f08c5b90; --row-tint:#a25b3b43; }
.raid-hall-table .raid-rank-table :is([data-rank-placement="1"],[data-rank-placement="2"],[data-rank-placement="3"]) {
    filter: drop-shadow(0 0 3px var(--row-halo));
}
.raid-hall-table .raid-rank-table [data-rank-placement="1"] .raid-rank-medal { color: #ffcb4e; }
.raid-hall-table .raid-rank-table [data-rank-placement="2"] .raid-rank-medal { color: #aee1ff; }
.raid-hall-table .raid-rank-table [data-rank-placement="3"] .raid-rank-medal { color: #ff965e; }
.raid-hall-table .raid-rank-portrait {
    width: 47px; height: 47px; border: 1px solid #d3a86b;
    clip-path: polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
    background: #261d17;
}
.raid-hall-table .raid-rank-table :is(.raid-col-resets,.raid-col-grand_resets,.raid-col-level) { font-family: Georgia,serif; }
.raid-hall-table tbody :is(.raid-col-resets,.raid-col-grand_resets,.raid-col-level) { font-size: 1.12rem; font-weight: 700; }
.raid-hall-table .raid-rank-character {
    color: #ffdfaa;
    font: 700 clamp(.95rem, 1.5vw, 1.18rem)/1.1 Georgia, 'Noto Serif Georgian', serif;
    text-decoration: none;
}
.raid-hall-table .raid-rank-character:hover { text-decoration: underline; }
.raid-hall-table .raid-rank-character:focus-visible { outline: 2px solid #ffcf81; outline-offset: 3px; }
.raid-hall-table .raid-rank-medal { filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 10px currentColor); }
.raid-hall-table .raid-rank-medal.is-gold::before {
    content: '♛';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font: 700 15px/1 Georgia,serif;
}
.raid-hall-table .raid-rank-table :is(.raid-col-level,.raid-col-resets,.raid-col-grand_resets) { text-align: center; }
.raid-level-value, .raid-grand-value {
    display: inline-block;
    min-width: 2.35rem;
    padding: 3px 6px;
    border: 1px solid #a58354;
    clip-path: polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
    background: linear-gradient(#39291a,#0d0e13 52%,#241b18);
    text-align: center;
    font-weight: 700;
}
.raid-grand-value { color: #efd5ff; border-color: #bb8ae6; box-shadow: inset 0 0 10px #9c58ca4f; }
.raid-class-mark, .raid-player-guild { display: inline-flex; align-items: center; gap: 8px; }
.raid-class-mark > span { color: var(--class-color, #d7b47e); font-size: 1.2rem; }
.raid-player-guild { color: #f4dab1; font-weight: 600; }
.raid-player-guild .mu-gmark { border-color: #ba934f; border-radius: 3px; overflow: hidden; }
.raid-hall-table .raid-rank-identity .mu-rank-online:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-inline-start: .42rem;
    color: #81ff99;
    font: 600 .69rem/1 Inter,sans-serif;
}
.raid-hall-table .raid-rank-identity .mu-rank-online:not([hidden])::before {
    content: '';
    width: 5px;
    height: 5px;
    background: currentColor;
    box-shadow: 0 0 6px #28e95e88;
    border-radius: 50%;
}
.raid-hall-table .raid-rank-identity .raid-mobile-class { display: none; }
@media (max-width: 760px) {
    .raid-hall-banner { grid-template-columns: minmax(0,1fr) auto; min-height: 130px; padding: 16px 12px 32px; gap: 8px; text-align: start; }
    .raid-hall-limit { font-size: .68rem; padding: 6px; }
    .raid-hall-logo { display: none; }
    .raid-hall-table .raid-rank-table :is(th,td) { padding-inline: .55rem; }
    .raid-hall-table .raid-col-class_id { display: none; }
    .raid-hall-table tbody :is(.raid-col-resets,.raid-col-grand_resets,.raid-col-level) { font-size: .95rem; }
    .raid-hall-table .raid-rank-identity .raid-mobile-class { display: block; }
    .raid-hall-table .raid-rank-portrait { width: 34px; height: 34px; }
}

@media (max-width: 520px) {
    .raid-hall-table .raid-player-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .raid-hall-table .raid-player-table, .raid-hall-table .raid-player-table tbody { display: block; }
    .raid-hall-table .raid-player-table tbody tr {
        display: grid;
        grid-template-columns: 44px repeat(3,minmax(0,1fr));
        margin-bottom: 8px;
        --cut: 7px;
    }
    .raid-hall-table .raid-player-table tbody tr td:nth-child(n) {
        border: 0; border-radius: 0; background: transparent; box-shadow: none;
        padding: .35rem; min-width: 0;
    }
    .raid-hall-table .raid-player-table td:first-child { align-self: center; }
    .raid-hall-table .raid-player-table td:nth-child(2) { grid-column: 2/-1; }
    .raid-hall-table .raid-player-table .raid-col-resets { grid-column: 2; }
    .raid-hall-table .raid-player-table td[data-label]::before {
        content: attr(data-label); display: block; color: #dfc299; font-size: .65rem; white-space: normal;
    }
    .raid-hall-table .raid-player-table .raid-col-guild_name { grid-column: 2/-1; text-align: start; }
    .raid-hall-table .raid-player-table .raid-col-guild_name::before { display: none; }
    .raid-hall-table .raid-player-table .raid-rank-medal { width: 31px; height: 31px; }
    .raid-hall-table .raid-player-table .raid-rank-medal svg { width: 25px; height: 25px; }
}
