/* DEVIL Season22 v20 — remove raster frames that already contain text/buttons.
   Keep real PHP/DB labels, links, ranking data and the right-hand event artwork.
   This stylesheet must load after devil_reference_exact_fix_v19.css. */
html body:has(.dr-page) :is(.dr-rank,.dr-online,.s22-status,.s22-gallery,.dr-boards>.dr-board){
 background-image:none!important;
 background-color:#100306!important;
 background-repeat:no-repeat!important;
 border:2px solid #ff8d21!important;
 border-radius:11px!important;
 box-shadow:0 0 0 1px rgba(116,14,7,.8),0 0 9px 1px rgba(255,72,8,.8),inset 0 0 10px rgba(125,17,4,.32)!important;
 box-sizing:border-box!important;
 overflow:hidden!important;
}
/* Keep original positioning, but no embedded rank screenshot behind real data. */
html body:has(.dr-page) .dr-rank{padding:0!important;background:linear-gradient(180deg,#220507,#0b0205 38%,#120305)!important;}
html body:has(.dr-page) .dr-online{padding:0!important;background:linear-gradient(180deg,#240508,#100305)!important;}
html body:has(.dr-page) .s22-status{padding:10px!important;background:linear-gradient(180deg,#2b0709,#100305)!important;}
html body:has(.dr-page) .s22-gallery{background:#100306!important;}
html body:has(.dr-page) .dr-boards>.dr-board{background:#0d0306!important;}
/* The heading should be the only heading band, not a second framed panel. */
html body:has(.dr-page) :is(.dr-rank,.dr-online,.s22-status,.dr-board) > h3{
 background:linear-gradient(180deg,#610c0d 0%,#2b0507 60%,#140305 100%)!important;
 border:0!important;border-bottom:1px solid #b53a17!important;
 border-radius:0!important;box-shadow:none!important;
 box-sizing:border-box!important;
}
html body:has(.dr-page) .s22-gallery .s22-section-head{
 background:linear-gradient(180deg,#5e0b0c,#1a0305)!important;
 border:0!important;border-bottom:1px solid #b53a17!important;
 box-shadow:none!important;
}
/* Prevent any older decorative pseudo-frame from reappearing. */
html body:has(.dr-page) :is(.dr-rank,.dr-online,.s22-status,.s22-gallery,.dr-boards>.dr-board)::before,
html body:has(.dr-page) :is(.dr-rank,.dr-online,.s22-status,.s22-gallery,.dr-boards>.dr-board)::after{
 content:none!important;display:none!important;background:none!important;
}
/* Center the live ranking link; it must not inherit image-position padding. */
html body:has(.dr-page) .dr-rank .dr-more{left:50%!important;right:auto!important;transform:translateX(-50%)!important;}
/* The top logo and hero remain single-layer from v19. Right-side event untouched. */
