/* Rise of Legends v2.20.169 - existing-asset restoration and framing only.
   No image generation, new artwork, font, content, gameplay or layout rework. */
body[data-rol-theme="archlord160"] .rol159-hero-ambience{
  background-image:url('/assets/archlord169/hero-composite.webp') !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
  image-rendering:auto !important;
}
body[data-rol-theme="archlord160"] .rol159-story-side{
  background-image:url('/assets/archlord169/story-side.webp') !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
}
/* Portraits are new *crops of existing files*, without their baked-in,
   mismatching corner textures. One common border is drawn by CSS. */
body[data-rol-theme="archlord160"] .rol159-classes-grid{
  align-items:stretch;
}
body[data-rol-theme="archlord160"] .rol159-classes-grid>.rol159-class-card{
  box-sizing:border-box !important;
  min-height:0;
  overflow:hidden !important;
  border:1px solid #bd965c !important;
  box-shadow:inset 0 0 0 2px #0b1219,0 0 0 2px #080c12 !important;
  isolation:isolate;
}
body[data-rol-theme="archlord160"] .rol159-class-card img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center 17% !important;
  image-rendering:auto !important;
  filter:none !important;
  transform:none !important;
  backface-visibility:visible !important;
}
body[data-rol-theme="archlord160"] .rol159-class-card::before{
  content:"";
  position:absolute;
  inset:4px;
  z-index:2;
  pointer-events:none;
  border:1px solid #c8a16a55;
  background:
    linear-gradient(135deg,#f3d5a0 0,#8f683c 55%,transparent 56%) top left/19px 19px no-repeat,
    linear-gradient(225deg,#f3d5a0 0,#8f683c 55%,transparent 56%) top right/19px 19px no-repeat,
    linear-gradient(45deg,#e0b77c 0,#8f683c 55%,transparent 56%) bottom left/12px 12px no-repeat,
    linear-gradient(315deg,#e0b77c 0,#8f683c 55%,transparent 56%) bottom right/12px 12px no-repeat;
}
body[data-rol-theme="archlord160"] .rol159-class-card .rol159-class-label{
  z-index:3;
}
/* The older enlargement used GPU resampling which emphasizes blur. Let the
   browser downsample our edited, properly encoded local assets normally. */
body[data-rol-theme="archlord160"] .rol159-siege-art img,
body[data-rol-theme="archlord160"] .rol159-city-grid img,
body[data-rol-theme="archlord160"] .rol159-map-art img{
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  image-rendering:auto !important;
  transform:none !important;
  filter:none !important;
}
/* Keep the existing mobile navigation and horizontal class scroller. */
@media(max-width:640px){
  body[data-rol-theme="archlord160"] .rol159-class-card{flex-shrink:0;}
}

body[data-rol-theme="archlord160"] .rol159-story-image img{display:block;width:100% !important;object-fit:cover !important;image-rendering:auto !important;transform:none !important;filter:none !important}


/* v2.20.170: native high-detail originals, no layout changes.
   Keep existing image slots and cards exactly as they were. */
body[data-rol-theme="archlord160"] .rol159-story-side{
  background-image:url('/assets/archlord170/castle-hd.webp?v=2.20.170') !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  background-size:cover !important;
}
body[data-rol-theme="archlord160"] .rol159-story-image img{
  width:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  image-rendering:auto !important;
  transform:none !important;
}
body[data-rol-theme="archlord160"] .rol159-siege-art img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  image-rendering:auto !important;
  transform:none !important;
}
body[data-rol-theme="archlord160"] .rol159-class-card img,
body[data-rol-theme="archlord160"] .rol159-city-grid img,
body[data-rol-theme="archlord160"] .rol159-map-art img{
  object-fit:cover !important;
  image-rendering:auto !important;
}
/* Ultra-wide: prevent the 2048px hero crop from being enlarged to 4K.
   Blend its native-width center into high-resolution original castle ambience. */
@media (min-width:2050px){
 body[data-rol-theme="archlord160"] .rol159-hero-ambience{
   background-image:
     linear-gradient(90deg,#08121c 0%,transparent 24%,transparent 76%,#08121c 100%),
     url('/assets/archlord169/hero-composite.webp'),
     url('/assets/archlord170/castle-hd.webp?v=2.20.170') !important;
   background-size:100% 100%,2048px auto,cover !important;
   background-position:center center,center center,center center !important;
   background-repeat:no-repeat,no-repeat,no-repeat !important;
 }
}
