/* Royal Inferno / Home lower sections. Scoped to home content only. */
.rm-reference .rd-main {
  --ri-navy:#0b101d;--ri-panel:#151e2d;--ri-red:#ab3544;--ri-gold:#e6ad53;--ri-text:#f5ecdd;--ri-muted:#b8b4c0;
  position:relative;isolation:isolate;padding:38px 0 100px;
  background:radial-gradient(ellipse 63% 12% at 50% 0%,#6f304032,transparent),linear-gradient(180deg,#0b101d,#101626 45%,#0a101d);
  color:var(--ri-text);
}
.rm-reference .rd-main .container{width:min(1350px,calc(100% - 48px));max-width:1350px}
.rm-reference .rd-main .rd-section{padding-block:56px 8px}
.rm-reference .rd-main > .rd-section:first-child{padding-top:38px}
.rm-reference .rd-main .section-heading{margin:0 auto 25px;text-align:left;position:relative}
.rm-reference .rd-main .section-heading .section-kicker,
.rm-reference .rd-main .section-kicker{display:block;color:var(--ri-gold);letter-spacing:.19em;font:800 11px/1.4 Inter,Arial,sans-serif;text-transform:uppercase;margin-bottom:10px}
.rm-reference .rd-main .section-heading h2{font:850 clamp(29px,3.2vw,44px)/1.16 Inter,'Noto Sans Georgian',sans-serif;letter-spacing:-.035em;color:#f8f2e9;margin:0}
.rm-reference .rd-main .section-heading h2 strong{font-weight:900;color:var(--ri-gold)}
.rm-reference .rd-main .section-heading p{color:var(--ri-muted);font:500 14px/1.7 Inter,'Noto Sans Georgian',sans-serif;margin:10px 0 0}
.rm-reference .rd-main .separator{display:none}
/* Why RaidMU: six compact premium panels, not old repeating art thumbnails. */
.rm-reference .rd-main .rd-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rm-reference .rd-main a.rd-feature.panel{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:194px;
  padding:25px 25px 22px;border:1px solid #80624f8c;border-radius:17px;
  background:radial-gradient(ellipse at 90% 100%,#7b354039,transparent 48%),linear-gradient(140deg,#1a2334,#101827 80%)!important;
  box-shadow:inset 0 1px #f6cc8d0a,0 12px 30px #0005;overflow:hidden;text-decoration:none;
  transition:transform .22s,border-color .22s,box-shadow .22s;
}
.rm-reference .rd-main a.rd-feature.panel::after{content:'';position:absolute;right:-32px;bottom:-72px;width:180px;height:180px;border:1px solid #e6ad5317;border-radius:50%;pointer-events:none}
.rm-reference .rd-main a.rd-feature.panel:hover{transform:translateY(-4px);border-color:#daa45eb0;box-shadow:0 17px 38px #0008,0 0 22px #a93b4430}
.rm-reference .rd-main .rd-feature-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #e6ad534f;border-radius:13px;background:linear-gradient(145deg,#433024,#211b25);font-size:28px;line-height:1;color:var(--ri-gold)!important;text-shadow:none}
.rm-reference .rd-main .rd-feature-icon.crimson{color:#fa9b9c!important;border-color:#b7585f70;background:linear-gradient(135deg,#522330,#251b2c)}
.rm-reference .rd-main .rd-feature-icon.blue{color:#e6ad53!important}
.rm-reference .rd-main .rd-feature h3{font:850 17px/1.35 Inter,'Noto Sans Georgian',sans-serif;color:#fff1db;margin:19px 0 8px}
.rm-reference .rd-main .rd-feature p{max-width:42ch;margin:0;color:#bab6c1;font:500 12px/1.7 Inter,'Noto Sans Georgian',sans-serif}
/* Classes: taller portraits with dramatic stage lighting and real assets. */
.rm-reference .rd-main .rd-class-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.rm-reference .rd-main details.rd-class-card.panel{border:1px solid #81604e9e;border-radius:17px;overflow:hidden;background:linear-gradient(180deg,#1e2738,#101827 72%)!important;min-width:0;box-shadow:0 14px 30px #0005;transition:border-color .2s,transform .2s}
.rm-reference .rd-main details.rd-class-card.panel:hover,.rm-reference .rd-main details.rd-class-card.panel[open]{transform:translateY(-3px);border-color:#dcab6a;box-shadow:0 18px 38px #0008}
.rm-reference .rd-main .rd-class-card summary{display:block;cursor:pointer;list-style:none;text-align:left;padding:0 0 18px}
.rm-reference .rd-main .rd-class-card summary::-webkit-details-marker{display:none}
.rm-reference .rd-main .rd-class-art{position:relative;display:grid;place-items:center;height:clamp(220px,22vw,320px);margin-bottom:17px;border-bottom:1px solid #87604853;background:radial-gradient(ellipse at 50% 72%,#9e4d5257,transparent 53%),radial-gradient(ellipse at 50% 90%,#aa7a3d36,transparent 64%),linear-gradient(170deg,#1c2738,#0c1424)!important}
.rm-reference .rd-main .rd-class-card:nth-child(2n) .rd-class-art{background:radial-gradient(ellipse at 50% 70%,#6c4c8f66,transparent 55%),linear-gradient(165deg,#1b2537,#0c1424)!important}
.rm-reference .rd-main .rd-class-card:nth-child(3n) .rd-class-art{background:radial-gradient(ellipse at 50% 70%,#8b563c65,transparent 55%),linear-gradient(165deg,#202738,#0c1424)!important}
.rm-reference .rd-main .rh-class-portrait img{object-fit:contain!important;object-position:center bottom!important;padding:7px 4px 0;filter:drop-shadow(0 12px 17px #000b);transition:transform .25s}
.rm-reference .rd-main .rd-class-card:hover .rh-class-portrait img{transform:scale(1.05)}
.rm-reference .rd-main .rd-class-card h3{font:850 14px/1.4 Cinzel,Inter,serif;color:#f6ddb0;margin:0 17px 6px}
.rm-reference .rd-main .rd-class-card summary>p{font-size:12px;color:#b9b7c3;margin:0 17px 13px}
.rm-reference .rd-main .rd-class-hint{display:inline-block;margin:0 17px;border:1px solid #9b745750;border-radius:99px;padding:7px 11px;color:#e6bd82;font:700 11px Inter,'Noto Sans Georgian',sans-serif;background:#161724}
.rm-reference .rd-main .rd-class-description{padding:4px 17px 20px!important;margin:0!important;color:#d0c3bb!important;line-height:1.7!important;font-size:12px!important;text-align:left}
/* News as horizontal newsroom cards */
.rm-reference .rd-main .rd-data{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:30px;width:min(1350px,calc(100% - 48px));max-width:1350px;padding-top:65px}
.rm-reference .rd-main .rd-data #news{order:0!important;min-width:0}
.rm-reference .rd-main .rd-data #news .section-head{display:flex;align-items:end;justify-content:space-between;gap:15px;padding:0 0 17px;margin:0;border:0;border-bottom:1px solid #9874505e;border-radius:0;background:transparent}
.rm-reference .rd-main .rd-data #news .section-title{font:850 clamp(28px,3vw,40px)/1.2 Inter,'Noto Sans Georgian',sans-serif;color:#f5ecdd;margin:0}
.rm-reference .rd-main .rd-data #news .section-kicker{display:block;margin-bottom:8px}
.rm-reference .rd-main .rd-data #news .view-all{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border:1px solid #a6815d70;border-radius:999px;color:#f0c585;background:#211b24;font-weight:800;font-size:12px;text-decoration:none}
.rm-reference .rd-main .rd-data #news>.panel{padding:12px 20px!important;background:linear-gradient(160deg,#161e2e,#101724)!important;border:1px solid #80634d87!important;border-top:0!important;border-radius:0 0 16px 16px!important;min-height:0!important}
.rm-reference .rd-main .rd-data #news .news-item{padding:18px 0!important;border-bottom:1px solid #a5865a30!important;gap:18px;grid-template-columns:130px minmax(0,1fr)}
.rm-reference .rd-main .rd-data #news .news-item:last-child{border-bottom:0!important}
.rm-reference .rd-main .rd-data #news .news-art{min-height:92px!important;border-radius:11px;border:1px solid #a47c4b80;overflow:hidden}
.rm-reference .rd-main .rd-data #news .news-item h3{font-size:16px;color:#fff0db;margin:5px 0 8px}
.rm-reference .rd-main .rd-data #news .news-item p{font-size:12px;line-height:1.65;color:#bab7c2}
.rm-reference .rd-main .rd-data #news .news-meta{font-size:10px;color:#d4b48b}
/* Hall of fame rankings: prominent wide scoreboard */
.rm-reference .rd-main .rd-data #rankings{order:1!important;width:100%;min-width:0;margin:0;border:1px solid #94704a90!important;border-radius:18px!important;background:#111a2b!important;box-shadow:0 20px 44px #0007;overflow:hidden}
.rm-reference .rd-main #rankings .rd-mini-body{padding:19px 21px 23px}
.rm-reference .rd-main #rankings .rd-mini-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.rm-reference .rd-main #rankings .rd-mini-tabs button{min-height:47px;border:1px solid #8b6b4d6b;border-radius:10px;background:linear-gradient(#212739,#111c2b);font:800 12px Inter,Arial,sans-serif;color:#d6cbd3;letter-spacing:.04em}
.rm-reference .rd-main #rankings .rd-mini-tabs button[aria-selected=true]{border-color:#e6ad53;background:linear-gradient(145deg,#673344,#3b243a);color:#ffe4b7;box-shadow:inset 0 1px #ffffff18}
.rm-reference .rd-main #rankings .rd-mini-row{border:1px solid #a7834c30;border-radius:10px;min-height:61px;background:linear-gradient(90deg,#1c2536,#121b2b);padding:9px 14px;gap:14px;margin-bottom:6px}
.rm-reference .rd-main #rankings .rd-mini-row[data-rank-position='1']{background:linear-gradient(90deg,#5b3a2b,#202131 75%);border-color:#e6ad5380}
.rm-reference .rd-main #rankings .rd-mini-place,.rm-reference .rd-main #rankings .rd-mini-score strong{color:#e6ad53}
.rm-reference .rd-main #rankings .rd-mini-footer{margin-top:15px}
.rm-reference .rd-main #rankings .rd-mini-footer a{padding:9px 14px;border-radius:9px;background:#241e26;color:#f0cb8e}
/* keep subsequent sections visually cohesive */
.rm-reference .rd-main .rd-steps{gap:16px}
.rm-reference .rd-main .rd-step.panel{border:1px solid #80634a8c;border-radius:16px;background:linear-gradient(160deg,#192233,#111927)!important;box-shadow:0 12px 30px #0004}
@media(max-width:1080px){.rm-reference .rd-main .rd-features{grid-template-columns:repeat(2,minmax(0,1fr))}.rm-reference .rd-main .rd-class-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){
.rm-reference .rd-main{padding-top:12px}
.rm-reference .rd-main .container,.rm-reference .rd-main .rd-data{width:calc(100% - 28px)}
.rm-reference .rd-main .rd-section{padding-top:39px}
.rm-reference .rd-main .rd-features{grid-template-columns:1fr;gap:11px}
.rm-reference .rd-main a.rd-feature.panel{min-height:155px;padding:20px}
.rm-reference .rd-main .rd-class-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rm-reference .rd-main .rd-class-art{height:220px}
.rm-reference .rd-main .rd-class-card h3{font-size:12px;margin-inline:10px}
.rm-reference .rd-main .rd-class-card summary>p{margin-inline:10px}
.rm-reference .rd-main .rd-class-hint{margin-inline:10px}
.rm-reference .rd-main .rd-data{padding-top:45px}
.rm-reference .rd-main .rd-data #news>.panel{padding:5px 12px!important}
.rm-reference .rd-main .rd-data #news .news-item{grid-template-columns:86px minmax(0,1fr);gap:12px}
.rm-reference .rd-main .rd-data #news .news-art{min-height:77px!important}
.rm-reference .rd-main #rankings .rd-mini-body{padding:12px}
.rm-reference .rd-main #rankings .rd-mini-tabs{gap:5px}
.rm-reference .rd-main #rankings .rd-mini-tabs button{font-size:10px;padding:8px 4px}
}
@media(max-width:380px){.rm-reference .rd-main .rd-class-grid{grid-template-columns:1fr 1fr}.rm-reference .rd-main .rd-class-art{height:180px}}
@media(prefers-reduced-motion:reduce){.rm-reference .rd-main a.rd-feature.panel,.rm-reference .rd-main details.rd-class-card.panel,.rm-reference .rd-main .rh-class-portrait img{transition:none}}


/* === Full-screen class selection stage === */
.rm-reference .rd-class-stage{
    position:relative;
    min-height:100vh;
    padding:0;
    margin:34px 0 0;
    overflow:hidden;
    background:#091018 url('/assets/design/raidmu-home/class-stage-bg.png') center center / cover no-repeat;
    border-top:1px solid rgba(210,168,101,.18);
    border-bottom:1px solid rgba(210,168,101,.18);
}
.rm-reference .rd-class-stage::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.38) 22%, rgba(0,0,0,.30) 56%, rgba(0,0,0,.64) 100%),
        linear-gradient(90deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.10) 22%, rgba(0,0,0,.10) 78%, rgba(0,0,0,.24) 100%);
    pointer-events:none;
}
.rm-reference .rd-class-stage::after{
    content:'';
    position:absolute;
    left:0; right:0; bottom:0;
    height:28%;
    background:linear-gradient(180deg, transparent, rgba(5,7,10,.94));
    pointer-events:none;
}
.rm-reference .rd-class-stage-inner{
    position:relative;
    z-index:1;
    min-height:100vh;
    width:min(1400px, calc(100% - 40px));
    margin:0 auto;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:32px 0 26px;
}
.rm-reference .rd-class-stage-heading{
    max-width:720px;
    margin:0 auto;
    text-align:center;
    padding:16px 26px;
    border:1px solid rgba(231,180,95,.18);
    border-radius:20px;
    background:linear-gradient(180deg, rgba(18,25,35,.70), rgba(12,17,25,.52));
    backdrop-filter:blur(4px);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}
.rm-reference .rd-class-stage-heading .section-kicker{color:#e9c476;}
.rm-reference .rd-class-stage-heading h2{margin-top:8px;color:#fff3db;font-size:clamp(34px, 4vw, 58px);}
.rm-reference .rd-class-stage-heading p{max-width:520px;margin:8px auto 0;color:#f4eee5;font-size:16px;line-height:1.55;}
.rm-reference .rd-class-stage .separator{color:#f0cb84;}

.rm-reference .rd-class-stage .rd-class-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    align-items:end;
    gap:10px;
    width:100%;
    min-height:clamp(430px, 54vh, 620px);
    padding:0 10px 12px;
}
.rm-reference .rd-class-stage .rd-class-card{
    position:relative;
    align-self:end;
    border:0 !important;
    background:none !important;
    box-shadow:none !important;
    overflow:visible !important;
    min-width:0;
}
.rm-reference .rd-class-stage .rd-class-card[open]{z-index:5;}
.rm-reference .rd-class-stage .rd-class-card summary{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    min-height:clamp(410px, 52vh, 570px);
    padding:0;
    cursor:pointer;
    list-style:none;
}
.rm-reference .rd-class-stage .rd-class-card summary::-webkit-details-marker{display:none;}
.rm-reference .rd-class-stage .rd-class-plate{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    display:grid;
    gap:4px;
    min-width:min(220px, 92%);
    padding:11px 16px 10px;
    border:1px solid rgba(247,246,240,.72);
    border-radius:10px;
    background:linear-gradient(180deg, rgba(19,20,23,.92), rgba(7,8,10,.92));
    box-shadow:0 12px 24px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.10);
    text-align:center;
}
.rm-reference .rd-class-stage .rd-class-plate strong{
    color:#fff9ef;
    font:800 clamp(15px, 1.15vw, 18px)/1.12 Inter, Arial, sans-serif;
    letter-spacing:.03em;
}
.rm-reference .rd-class-stage .rd-class-plate small{
    color:#f0c96e;
    font:500 clamp(12px, .88vw, 14px)/1.2 Inter, Arial, sans-serif;
}
.rm-reference .rd-class-stage .rd-class-art{
    position:relative;
    width:100%;
    height:clamp(310px, 44vh, 480px);
    margin:0;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    background:none !important;
    border:0 !important;
}
.rm-reference .rd-class-stage .rh-class-portrait{
    background:none !important;
    overflow:visible;
    isolation:isolate;
}
.rm-reference .rd-class-stage .rh-class-portrait img{
    position:relative;
    inset:auto;
    width:auto;
    max-width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
    mix-blend-mode:screen;
    filter:drop-shadow(0 12px 18px rgba(0,0,0,.68)) drop-shadow(0 2px 1px rgba(0,0,0,.40)) saturate(1.02) contrast(1.04);
    transition:transform .25s ease, filter .25s ease;
}
.rm-reference .rd-class-stage .rd-class-card:hover .rh-class-portrait img,
.rm-reference .rd-class-stage .rd-class-card[open] .rh-class-portrait img{
    transform:translateY(-4px) scale(1.03);
    filter:drop-shadow(0 16px 22px rgba(0,0,0,.74)) drop-shadow(0 0 10px rgba(244,197,111,.14)) saturate(1.04) contrast(1.06);
}
.rm-reference .rd-class-stage .rh-art-fallback{
    font-size:42px;
    color:#ebdfcb;
    opacity:.55;
}
.rm-reference .rd-class-stage .rd-class-description{
    position:absolute;
    left:50%;
    bottom:8px;
    transform:translateX(-50%);
    width:min(300px, calc(100vw - 36px));
    margin:0;
    padding:14px 16px;
    border:1px solid rgba(231,180,95,.54);
    border-radius:14px;
    background:linear-gradient(180deg, rgba(21,25,33,.96), rgba(12,15,21,.97));
    color:#f2ede4 !important;
    font-size:13px !important;
    line-height:1.6 !important;
    text-align:left;
    box-shadow:0 18px 38px rgba(0,0,0,.34);
}
.rm-reference .rd-class-stage .rd-class-stage-footnote{
    margin:8px auto 0;
    color:#efe5d6;
    font:700 13px/1.4 Inter, Arial, sans-serif;
    text-align:center;
    text-shadow:0 2px 6px rgba(0,0,0,.42);
}
/* class-specific stance tweaks */
.rm-reference .rd-class-stage .rd-class-dw .rd-class-art img,
.rm-reference .rd-class-stage .rd-class-mg .rd-class-art img{height:98%;}
.rm-reference .rd-class-stage .rd-class-fe .rd-class-art img{height:96%;}
.rm-reference .rd-class-stage .rd-class-dl .rd-class-art img{height:97%;}

@media (max-width: 1180px){
    .rm-reference .rd-class-stage .rd-class-grid{grid-template-columns:repeat(3, minmax(0, 1fr)); row-gap:18px; min-height:auto;}
    .rm-reference .rd-class-stage-inner{padding-bottom:40px;}
}
@media (max-width: 760px){
    .rm-reference .rd-class-stage{min-height:auto; background-position:center center;}
    .rm-reference .rd-class-stage-inner{min-height:auto; padding:22px 0 26px; width:min(100%, calc(100% - 20px));}
    .rm-reference .rd-class-stage-heading{padding:14px 18px;}
    .rm-reference .rd-class-stage .rd-class-grid{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px 8px; padding:10px 0 0;}
    .rm-reference .rd-class-stage .rd-class-card summary{min-height:290px;}
    .rm-reference .rd-class-stage .rd-class-art{height:240px;}
    .rm-reference .rd-class-stage .rd-class-plate{min-width:min(170px, 95%); padding:9px 12px 8px;}
    .rm-reference .rd-class-stage .rd-class-plate strong{font-size:13px;}
    .rm-reference .rd-class-stage .rd-class-plate small{font-size:11px;}
    .rm-reference .rd-class-stage .rd-class-description{position:static; transform:none; width:100%; margin-top:10px;}
}
@media (max-width: 420px){
    .rm-reference .rd-class-stage .rd-class-grid{grid-template-columns:1fr;}
}


/* Class scene heading — floating game title, not a boxed website card. */
body.rm-reference .rd-main #classes .rd-class-stage-heading {
    position: relative;
    width: min(94%, 780px);
    max-width: 780px;
    margin: 4px auto 0;
    padding: 8px 16px 18px;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center;
    isolation: isolate;
}
body.rm-reference .rd-main #classes .rd-class-stage-heading::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(86vw, 740px);
    height: 180px;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.52) 0%, rgba(0,0,0,.20) 44%, transparent 75%);
}
body.rm-reference .rd-main #classes .rd-class-stage-heading .section-kicker {
    display: block;
    margin: 0 auto 6px;
    color: #f6c36c;
    font: 850 clamp(11px, .85vw, 14px)/1.3 Inter, Arial, sans-serif;
    letter-spacing: .34em;
    text-shadow: 0 2px 8px rgba(0,0,0,.92);
}
body.rm-reference .rd-main #classes .rd-class-stage-heading h2 {
    margin: 0;
    color: #fff7e8;
    font: 900 clamp(43px, 4.2vw, 73px)/1.02 Cinzel, Georgia, serif;
    letter-spacing: -.035em;
    text-shadow: 0 2px 0 rgba(20,12,5,.8), 0 6px 14px rgba(0,0,0,.95), 0 13px 28px rgba(0,0,0,.65);
}
body.rm-reference .rd-main #classes .rd-class-stage-heading h2 strong {
    color: #f2bf69;
    font-weight: 900;
    text-shadow: 0 2px 0 #6a3c20, 0 6px 17px rgba(0,0,0,.90);
}
body.rm-reference .rd-main #classes .rd-class-stage-heading p {
    margin: 10px auto 0;
    max-width: 500px;
    color: #f5e9d6;
    font: 600 clamp(13px, 1vw, 16px)/1.5 Inter, Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,1), 0 4px 16px rgba(0,0,0,.85);
}
body.rm-reference .rd-main #classes .rd-class-stage-heading .separator {
    display: block;
    width: min(65%, 350px);
    margin: 12px auto 0;
    color: #eeb76a;
    font-size: 12px;
    letter-spacing: .35em;
    text-shadow: 0 1px 10px #000;
}
@media (max-width: 700px) {
    body.rm-reference .rd-main #classes .rd-class-stage-heading {
        width: 100%;
        padding-inline: 8px;
    }
    body.rm-reference .rd-main #classes .rd-class-stage-heading h2 {
        font-size: clamp(36px, 9vw, 54px);
    }
    body.rm-reference .rd-main #classes .rd-class-stage-heading .section-kicker {
        letter-spacing: .22em;
    }
}


/* STAGE REPAIR: outrank legacy #classes rules from home.css and theme.css.
   These selectors deliberately include the ID. Do not use blend modes for transparent PNGs. */
body.rd-theme.rm-reference .rd-main section#classes.rd-class-stage {
  display:block !important;
  position:relative !important;
  isolation:isolate;
  min-height:100vh !important;
  min-height:100svh !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  background-color:#101a18 !important;
  background-image:url('/assets/design/raidmu-home/class-stage-bg.png') !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
}
body.rd-theme.rm-reference .rd-main section#classes.rd-class-stage::before {
  z-index:0 !important;
  background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.31) 42%,rgba(0,0,0,.46) 100%) !important;
}
body.rd-theme.rm-reference .rd-main section#classes.rd-class-stage::after {
  z-index:0 !important;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.45)) !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-stage-inner {
  position:relative !important;
  z-index:1 !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-grid {
  position:relative !important;
  z-index:2 !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card,
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card summary,
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card .rd-class-art,
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card .rh-class-portrait,
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card:nth-child(2n) .rd-class-art,
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card:nth-child(3n) .rd-class-art {
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card {
  overflow:visible !important;
  transform:none;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card .rh-class-portrait {
  position:relative !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:visible !important;
  isolation:auto !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card .rh-class-portrait img[data-home-portrait] {
  position:relative !important;
  inset:auto !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  height:100% !important;
  max-height:100% !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 auto !important;
  object-fit:contain !important;
  object-position:center bottom !important;
  background:transparent !important;
  mix-blend-mode:normal !important;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.58)) !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rh-class-portrait.has-image .rh-art-fallback {
  display:none !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card .rd-class-plate {
  border:1px solid rgba(247,246,240,.72) !important;
  background:linear-gradient(180deg,rgba(19,20,23,.96),rgba(7,8,10,.96)) !important;
  box-shadow:0 12px 24px rgba(0,0,0,.26) !important;
}
body.rd-theme.rm-reference .rd-main section#classes .rd-class-card[open] .rd-class-description {
  z-index:10;
}
@media(max-width:760px){
  body.rd-theme.rm-reference .rd-main section#classes.rd-class-stage {min-height:100svh !important;}
}



/* ============================================================
   HALL OF FAME V8 — ONE IMAGE / CORRECT 2:3 PROPORTIONS
   All old ranking background rules replaced, not overridden.
   Visual asset: 1024x1536. Never stretch it with 100% 100%.
   ============================================================ */
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage {
  position:relative !important;
  isolation:isolate;
  display:block !important;
  box-sizing:border-box;
  width:100% !important;
  max-width:none !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 0 clamp(70px,13vw,165px) !important;
  border:0 !important; border-radius:0 !important;
  overflow:hidden !important; box-shadow:none !important;
  background-color:#080d17 !important;
  background-image:
    radial-gradient(ellipse 26% 38% at 5% 32%, rgba(222,113,42,.18), transparent 75%),
    radial-gradient(ellipse 26% 38% at 95% 32%, rgba(222,113,42,.18), transparent 75%),
    radial-gradient(ellipse 42% 60% at 50% 100%, rgba(18,28,47,.35), transparent 84%),
    url('/assets/design/raidmu-home/raidmu-hall-of-fame-long.webp') !important;
  background-repeat:no-repeat !important;
  background-size:100% 100%,100% 100%,100% 100%,min(1100px, 100%) auto !important;
  background-position:center top !important;
}
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::before,
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::after {content:none !important;display:none !important;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-inner {
  position:relative !important; z-index:1;
  display:flex !important; align-items:flex-end !important; justify-content:center !important;
  box-sizing:border-box;
  height:clamp(490px,76vw,835px) !important;
  min-height:0 !important;
  width:min(1100px, 100%) !important; max-width:1100px !important;
  margin:0 auto !important;
  padding:0 3% clamp(48px,8vw,95px) !important;
  background:transparent !important;
  background-image:none !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-inner::before,
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-inner::after {content:none !important;display:none !important;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-podium {
  position:relative; z-index:2; width:100% !important; padding:0 !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-grid {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:clamp(7px,1.5vw,18px) !important; align-items:end !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card,
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-1,
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-2,
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-3 {
  display:flex !important; flex-direction:column !important; align-items:center !important;
  justify-content:flex-end !important; transform:none !important;
  min-width:0; padding:0 !important; border:0 !important;
  border-radius:0 !important; box-shadow:none !important; background:none !important;
  overflow:visible !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure {
  display:flex !important; position:relative; align-items:flex-end; justify-content:center;
  width:100%;height:clamp(145px,22vw,275px) !important; pointer-events:none;
}
body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure {
  height:clamp(195px,29vw,350px) !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure::after {
  content:'';position:absolute;bottom:0;left:20%;right:20%;height:12px;border-radius:50%;background:#0008;filter:blur(8px);
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure img {
  position:relative;z-index:1;display:block;width:auto !important;height:100% !important;
  max-width:100% !important;object-fit:contain !important;object-position:center bottom !important;
  mix-blend-mode:normal !important;background:none !important;
  filter:drop-shadow(0 8px 8px rgba(0,0,0,.8));
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-guildmark {
  display:grid;place-items:center;width:96px;height:96px;
  border:2px solid #d6a259;border-radius:12px;background:rgba(8,12,20,.9);
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-label {
  box-sizing:border-box; width:100% !important;max-width:315px; min-height:104px;
  padding:10px 7px !important; margin:0 !important;
  border:1px solid rgba(228,178,100,.78) !important;border-radius:10px !important;
  background:linear-gradient(180deg,rgba(8,13,23,.93),rgba(8,12,19,.96)) !important;
  text-align:center;box-shadow:0 10px 22px #0009 !important;
}
body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-label {border-color:#ffda84 !important;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-rank {
  display:inline-flex;gap:5px;align-items:center;padding:3px 8px;
  background:rgba(246,193,91,.13);color:#ffd17c;border:1px solid #c49a4f55;border-radius:99px;
  font:800 11px Inter,Arial,sans-serif;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-name {
  display:block;margin:4px 0;color:#fff0d4;text-decoration:none;
  font:900 clamp(14px,1.8vw,25px)/1.15 Cinzel,Georgia,serif;overflow-wrap:anywhere;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card p {margin:3px 0;color:#f3dec0;font:600 clamp(9px,.9vw,12px)/1.3 Inter,Arial,sans-serif;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-stats {
  display:flex; flex-wrap:wrap;justify-content:center;gap:4px;margin-top:6px;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-stats span {
  padding:4px 6px;border:1px solid #b48c4a55;border-radius:99px;
  color:#f8eacb;background:#121725;font:800 clamp(9px,.72vw,11px)/1 Inter,Arial,sans-serif;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-board {
  position:relative !important;z-index:3;
  box-sizing:border-box;
  width:min(1012px, calc(100% - 36px)) !important; max-width:1012px !important;
  margin:0 auto !important; padding:0 !important;
  border:1px solid rgba(226,176,100,.62) !important;
  border-radius:10px !important;
  background:rgba(8,13,22,.85) !important;
  box-shadow:0 12px 28px #0007 !important; overflow:hidden;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-boardhead {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 16px;border-bottom:1px solid #c3925b44;
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-kicker {font:800 10px Inter,Arial,sans-serif;letter-spacing:.17em;color:#f0c075;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-boardhead h3 {margin:4px 0 0;color:#ffedc7;font:800 21px Cinzel,Georgia,serif;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-all {color:#f8ddb0;background:#2d2118;border:1px solid #bc9157;border-radius:8px;padding:9px 11px;text-decoration:none;white-space:nowrap;font-weight:800;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-body {padding:10px 13px 14px !important;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-tabs button {min-height:40px;border-radius:7px;background:#1d2638;border:1px solid #8d6c44;color:#f2e6d3;font-weight:800;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-tabs button[aria-selected="true"] {background:linear-gradient(#c38e45,#805629) !important;border-color:#e8ba6e !important;color:#fff8e7 !important;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-footer {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;}
body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-footer a {padding:8px 12px;border:1px solid #b99150;background:#302319;color:#f8d49b;border-radius:8px;text-decoration:none;}
/* Table remains dynamic: do not bake names or scores into artwork. */
@media(max-width:760px) {
  body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage {width:100% !important;padding-bottom:35px !important;background-size:100% 100%,100% 100%,100% 100%,100% auto !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-inner {height:clamp(350px,80vw,580px) !important;padding:0 2% 20px !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure {height:clamp(95px,22vw,150px) !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure {height:clamp(110px,25vw,178px) !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-label {min-height:110px;padding:6px 3px !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-name {font-size:clamp(11px,2.5vw,16px);}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card p {font-size:9px;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-stats span {font-size:9px;padding:3px;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-board {width:calc(100% - 18px) !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-tabs {gap:4px;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-tabs button {font-size:10px;padding:6px 3px;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-stage-boardhead {padding:9px;}
  body.rd-theme.rm-reference .rd-main section#rankings .rd-mini-body {padding:7px !important;}
}

/* V9: ambient light outside the CENTERED Hall of Fame scene.
   Effects are CSS-only, respect reduced motion, and never block interaction. */
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::before,
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::after {
  content:"" !important;
  display:block !important;
  position:absolute;
  top:130px;
  bottom:0;
  width:max(0px, calc((100% - 1100px)/2));
  opacity:.78;
  pointer-events:none;
  z-index:0;
  background-image:
    radial-gradient(circle at 28% 16%, rgba(255,197,96,.62) 0 2px, transparent 4px),
    radial-gradient(circle at 70% 39%, rgba(255,174,74,.48) 0 1px, transparent 3px),
    radial-gradient(circle at 40% 68%, rgba(255,192,95,.34) 0 2px, transparent 4px),
    radial-gradient(ellipse at 50% 47%, rgba(199,87,26,.16), transparent 72%);
  background-size:310px 520px, 360px 460px, 420px 580px, 100% 100%;
  animation:hofAmbientDrift 24s ease-in-out infinite alternate;
}
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::before {left:0;}
body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::after {right:0;transform:scaleX(-1);animation-delay:-12s;}
@keyframes hofAmbientDrift {
  from {background-position:0 0,0 0,0 0,0 0; opacity:.5;}
  to {background-position:0 -35px,0 -24px,0 -42px,0 0; opacity:.9;}
}
/* The gold champion should dominate without dislodging the other podiums. */
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-1 .rd-ranking-winner-figure img {
  filter:drop-shadow(0 12px 13px rgba(0,0,0,.87)) drop-shadow(0 0 14px rgba(250,188,76,.21));
}
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-2 .rd-ranking-winner-figure img,
body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-3 .rd-ranking-winner-figure img {
  filter:drop-shadow(0 9px 11px rgba(0,0,0,.80));
}
@media(max-width:1130px){
  body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::before,
  body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::after{display:none !important;}
}
@media(max-width:760px){
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure{height:clamp(95px,22vw,150px) !important;}
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure{height:clamp(125px,30vw,190px) !important;}
}
@media(prefers-reduced-motion:reduce){
  body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::before,
  body.rd-theme.rm-reference .rd-main section#rankings.rd-ranking-stage::after{animation:none !important;}
}


/* V10 — precise podium placement; independent of label height.
   The landscape and cards stay untouched. Character feet follow the
   visible podium decks rather than the HTML label boxes. */
@media (min-width: 761px) {
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-grid {
    align-items:end !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card {
    position:relative !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure,
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure {
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    margin:0 !important;
    z-index:4 !important;
    pointer-events:none !important;
  }
  /* The silver and bronze podium decks sit visibly lower than gold. */
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-2 .rd-ranking-winner-figure,
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-3 .rd-ranking-winner-figure {
    height:clamp(172px, 16vw, 242px) !important;
    bottom:calc(100% + clamp(110px, 9.3vw, 173px)) !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure {
    height:clamp(205px, 20vw, 290px) !important;
    bottom:calc(100% + clamp(145px, 12vw, 220px)) !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-figure img {
    position:relative !important;
    display:block !important;
    opacity:1 !important;
    visibility:visible !important;
    height:100% !important;
    width:auto !important;
    max-width:100% !important;
    object-fit:contain !important;
    object-position:center bottom !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-winner-label {
    position:relative !important;
    z-index:5 !important;
  }
}
/* Tablets: keep figures over decks without covering the heading. */
@media (min-width: 761px) and (max-width: 1100px) {
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-2 .rd-ranking-winner-figure,
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-3 .rd-ranking-winner-figure {
    height:clamp(155px,21vw,210px) !important;
    bottom:calc(100% + clamp(90px,12vw,145px)) !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings .is-rank-1 .rd-ranking-winner-figure {
    height:clamp(180px,25vw,255px) !important;
    bottom:calc(100% + clamp(115px,15vw,190px)) !important;
  }
}


/* V11: champion visible independently of legacy absolute positioning. */
@media (min-width:761px) {
 body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-1 .rd-ranking-winner-figure {
   display:flex !important;
   visibility:visible !important;
   opacity:1 !important;
   overflow:visible !important;
   z-index:10 !important;
 }
 body.rd-theme.rm-reference .rd-main section#rankings .rd-ranking-podium-card.is-rank-1 .rd-ranking-winner-figure img {
   display:block !important;
   visibility:visible !important;
   opacity:1 !important;
   mix-blend-mode:normal !important;
   filter:drop-shadow(0 12px 12px rgba(0,0,0,.7)) !important;
   position:relative !important;
   width:auto !important;
   height:100% !important;
   max-width:100% !important;
   object-fit:contain !important;
 }
}


/* V13: position only the portrait containers. No image transforms and
   no changes to existing image loading, source, or first-place styling. */
@media (min-width:761px) {
  body.rd-theme.rm-reference .rd-main section#rankings
  .rd-ranking-podium-card.is-rank-2 .rd-ranking-winner-figure {
    left:clamp(12px, 2.0vw, 30px) !important;
    right:auto !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings
  .rd-ranking-podium-card.is-rank-3 .rd-ranking-winner-figure {
    left:clamp(-30px, -2.0vw, -12px) !important;
    right:auto !important;
  }
}
@media (max-width:760px) {
  body.rd-theme.rm-reference .rd-main section#rankings
  .rd-ranking-podium-card.is-rank-2 .rd-ranking-winner-figure {
    left:7px !important;
    right:auto !important;
  }
  body.rd-theme.rm-reference .rd-main section#rankings
  .rd-ranking-podium-card.is-rank-3 .rd-ranking-winner-figure {
    left:-7px !important;
    right:auto !important;
  }
}
