/* Counter-Strike 2 service theme. Scoped so the rest of the site keeps its original appearance. */
body.cs2-theme-page {
  position: relative;
  background-color: #070b16;
  background-image:
    linear-gradient(180deg, rgba(5, 8, 18, .74) 0%, rgba(7, 10, 22, .88) 36%, rgba(7, 10, 22, .97) 100%),
    url('assets/cs2-reference-wallpaper.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

body.cs2-theme-page::before,
body.cs2-theme-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.cs2-theme-page::before {
  background:
    radial-gradient(circle at 13% 22%, rgba(124, 92, 255, .16), transparent 31%),
    radial-gradient(circle at 84% 18%, rgba(255, 145, 38, .13), transparent 29%),
    linear-gradient(90deg, rgba(5, 10, 22, .38), transparent 42%, rgba(5, 10, 22, .32));
}

body.cs2-theme-page::after {
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

/* Keep the site's original header/logo intact while making the header readable over the themed background. */
body.cs2-theme-page .navbar {
  background: rgba(8, 12, 25, .92);
  border: 1px solid rgba(124, 92, 255, .18);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 36px rgba(124,92,255,.06);
  backdrop-filter: blur(16px);
}

body.cs2-theme-page .navbar .brand-logo,
body.cs2-theme-page .navbar img[src*='aref-logo'] {
  filter: none !important;
  opacity: 1 !important;
}

/* Existing cards stay recognizable as the main site theme, with only subtle CS2 atmosphere. */
body.cs2-theme-page .boost-panel,
body.cs2-theme-page .boost-card,
body.cs2-theme-page .rank-box,
body.cs2-theme-page .price-card,
body.cs2-theme-page .feature-card,
body.cs2-theme-page .boost-features,
body.cs2-theme-page .service-card,
body.cs2-theme-page .info-card,
body.cs2-theme-page .cart-dropdown,
body.cs2-theme-page .support-panel {
  backdrop-filter: blur(15px);
}

body.cs2-theme-page .boost-panel,
body.cs2-theme-page .boost-card,
body.cs2-theme-page .rank-box,
body.cs2-theme-page .price-card {
  box-shadow: 0 18px 48px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.025);
}

body.cs2-theme-page .boost-page,
body.cs2-theme-page .competitive-page,
body.cs2-theme-page main {
  position: relative;
  isolation: isolate;
}

/* A faint CS2 watermark uses the site's existing local CS2 asset without replacing the AREF logo. */
body.cs2-theme-page main::before {
  content: '';
  position: fixed;
  right: -30px;
  bottom: 4vh;
  width: min(32vw, 470px);
  height: min(32vw, 470px);
  background: url('assets/cs2.png') center/contain no-repeat;
  opacity: .025;
  filter: grayscale(1) brightness(1.4);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  body.cs2-theme-page {
    background-attachment: scroll;
    background-position: 58% top;
  }
  body.cs2-theme-page main::before {
    width: 280px;
    height: 280px;
    opacity: .018;
  }
}

/* CS2 rank option artwork: preserve the original cropped rank images without distortion. */
body.cs2-theme-page .rank-option img,
body.cs2-theme-page .rank-selected img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  filter: none !important;
  transform: none !important;
  image-rendering: auto;
}

/* Competitive / Wingman / Win rank art uses the original 210x82–84 crops. */
body.cs2-theme-page:not(.faceit-page) .rank-option img,
body.cs2-theme-page:not(.faceit-page) .rank-selected img {
  width: 92px !important;
  height: 38px !important;
  flex: 0 0 92px !important;
}

/* FACEIT icons are square source images; keep their original proportions. */
body.cs2-theme-page.faceit-page .rank-option img,
body.cs2-theme-page.faceit-page .rank-selected img {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

/* Premier/Seçkin rating bars are wide originals; never crop them. */
body.cs2-theme-page .premier-page .rank-option img,
body.cs2-theme-page .premier-page .rank-selected img,
body.cs2-theme-page [data-premier-select] .rank-option img,
body.cs2-theme-page [data-premier-select] .rank-selected img {
  width: 118px !important;
  height: 34px !important;
  flex: 0 0 118px !important;
  object-fit: contain !important;
  border-radius: 3px !important;
}

@media (max-width: 600px) {
  body.cs2-theme-page:not(.faceit-page) .rank-option img,
  body.cs2-theme-page:not(.faceit-page) .rank-selected img {
    width: 78px !important;
    height: 32px !important;
    flex-basis: 78px !important;
  }
  body.cs2-theme-page [data-premier-select] .rank-option img,
  body.cs2-theme-page [data-premier-select] .rank-selected img {
    width: 100px !important;
    height: 30px !important;
    flex-basis: 100px !important;
  }
}


/* CS2 wallpaper readability layer */
body.cs2-theme-page .navbar{
  background:rgba(8,11,18,.94);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body.cs2-theme-page .boost-panel,
body.cs2-theme-page .boost-card,
body.cs2-theme-page .rank-configurator,
body.cs2-theme-page .price-card,
body.cs2-theme-page .boost-features,
body.cs2-theme-page .service-card,
body.cs2-theme-page .info-card{
  background-color:rgba(9,14,25,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body.cs2-theme-page h1,
body.cs2-theme-page h2,
body.cs2-theme-page h3,
body.cs2-theme-page label,
body.cs2-theme-page .rank-selected{
  text-shadow:0 2px 12px rgba(0,0,0,.68);
}
@media(max-width:900px){
  body.cs2-theme-page{background-attachment:scroll}
}


/* Reference artwork visibility */
body.cs2-theme-page{
  background-image:
    linear-gradient(180deg,rgba(4,7,12,.44) 0%,rgba(5,8,14,.60) 38%,rgba(5,8,14,.84) 100%),
    url('assets/cs2-reference-wallpaper.webp') !important;
  background-size:cover !important;
  background-position:center top !important;
  background-attachment:fixed !important;
}
body.cs2-theme-page .competitive-main,
body.cs2-theme-page main{
  background:transparent !important;
}
body.cs2-theme-page .boost-card,
body.cs2-theme-page .rank-panel,
body.cs2-theme-page .pricing-card,
body.cs2-theme-page .config-card{
  background:rgba(7,11,18,.88) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
@media(max-width:900px){body.cs2-theme-page{background-attachment:scroll !important}}


/* Clearer CS2 category wallpaper */
body.cs2-theme-page{
  background-image:
    linear-gradient(180deg,rgba(3,6,10,.20) 0%,rgba(4,7,12,.30) 34%,rgba(5,8,14,.58) 100%),
    url('assets/cs2-category-wallpaper-hq.webp') !important;
  background-size:cover !important;
  background-position:center top !important;
  background-attachment:fixed !important;
}
body.cs2-theme-page .boost-card,
body.cs2-theme-page .rank-panel,
body.cs2-theme-page .pricing-card,
body.cs2-theme-page .config-card,
body.cs2-theme-page .boost-panel{
  background:rgba(7,11,18,.82) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
