:root {
  --gradient-primary: linear-gradient(135deg, #35d6ff, #9a5cff 52%, #ff4fd8);
  --gradient-secondary: linear-gradient(135deg, #45f6b0, #35d6ff 52%, #ffcf5a);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.18);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.42);
  --shadow-xl: 0 26px 70px rgba(0, 0, 0, 0.52);
}

#gameCarousel {
  position: relative;
  margin-top: -30px !important;
  border-bottom: 1px solid rgba(53, 214, 255, 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

#gameCarousel::before,
#gameCarousel::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

#gameCarousel::before {
  inset: 30px clamp(14px, 4vw, 70px);
  border: 1px solid rgba(53, 214, 255, 0.38);
  border-bottom-color: rgba(255, 79, 216, 0.38);
  clip-path: polygon(0 10%, 7% 10%, 10% 0, 90% 0, 93% 10%, 100% 10%, 100% 90%, 93% 90%, 90% 100%, 10% 100%, 7% 90%, 0 90%);
  filter: drop-shadow(0 0 14px rgba(53, 214, 255, 0.44));
}

#gameCarousel::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 19, 0.94));
}

.carousel-item {
  height: 620px;
  background: #030613;
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 74% 28%, rgba(255, 79, 216, 0.24), transparent 23rem),
    radial-gradient(circle at 18% 32%, rgba(53, 214, 255, 0.24), transparent 22rem),
    linear-gradient(90deg, rgba(1, 4, 15, 0.88) 0%, rgba(3, 6, 19, 0.38) 46%, rgba(3, 6, 19, 0.72) 100%);
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 6px, 6px 100%;
  opacity: 0.34;
}

.carousel-item img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: saturate(1.22) contrast(1.08) brightness(0.82);
  transform: scale(1.02);
}

.carousel-caption {
  position: absolute;
  right: 0;
  bottom: auto;
  left: 0;
  top: 45%;
  z-index: 5;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  color: #ffffff;
  text-align: left;
  transform: translateY(-45%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.carousel-caption::before {
  content: "";
  display: block;
  width: min(470px, 56vw);
  height: 30px;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(90deg, var(--vr-cyan), transparent 18%, transparent 82%, var(--vr-pink)) center / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(53, 214, 255, 0.2), rgba(255, 79, 216, 0.16));
  clip-path: polygon(0 50%, 9% 50%, 13% 0, 87% 0, 91% 50%, 100% 50%, 91% 100%, 13% 100%, 9% 50%);
  box-shadow: 0 0 20px rgba(53, 214, 255, 0.24);
}

.carousel-caption .hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.7rem;
  padding: 0.35rem 1rem;
  color: #ffffff;
  border: 1px solid rgba(53, 214, 255, 0.54);
  border-right-color: rgba(255, 79, 216, 0.58);
  background: rgba(5, 14, 38, 0.62);
  box-shadow: 0 0 18px rgba(53, 214, 255, 0.22), 0 0 18px rgba(255, 79, 216, 0.16);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 12px 50%);
  font-size: clamp(0.9rem, 2vw, 1.16rem);
  font-weight: 900;
  letter-spacing: 0;
}

.carousel-caption h1,
.carousel-caption h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(53, 214, 255, 0.45), 0 0 28px rgba(255, 79, 216, 0.32), 0 8px 20px rgba(0, 0, 0, 0.62);
}

.carousel-caption h1 span:first-child,
.carousel-caption h2 span:first-child {
  color: #d8f5ff;
}

.carousel-caption h1 span:last-child,
.carousel-caption h2 span:last-child {
  color: #ff9bec;
}

.carousel-caption p {
  max-width: 720px;
  margin-bottom: 1.25rem;
  color: rgba(232, 245, 255, 0.92);
  font-size: clamp(1rem, 2.1vw, 1.52rem);
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.45rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.56rem 1rem;
  color: #ffffff;
  border: 1px solid rgba(53, 214, 255, 0.42);
  border-radius: 6px;
  background: rgba(4, 12, 33, 0.72);
  box-shadow: inset 0 0 18px rgba(53, 214, 255, 0.09), 0 0 14px rgba(53, 214, 255, 0.14);
  font-weight: 850;
}

.hero-pill:nth-child(2) {
  border-color: rgba(255, 79, 216, 0.46);
  box-shadow: inset 0 0 18px rgba(255, 79, 216, 0.08), 0 0 14px rgba(255, 79, 216, 0.12);
}

.hero-pill:nth-child(3) {
  border-color: rgba(69, 246, 176, 0.42);
  box-shadow: inset 0 0 18px rgba(69, 246, 176, 0.08), 0 0 14px rgba(69, 246, 176, 0.12);
}

.carousel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1.15rem;
}

.carousel-buttons .btn {
  min-width: 148px;
  padding: 0.8rem 1.45rem;
  border-radius: 6px;
  font-weight: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-buttons .btn-primary {
  border: 1px solid rgba(53, 214, 255, 0.56);
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.92), rgba(154, 92, 255, 0.9), rgba(255, 79, 216, 0.86));
  box-shadow: 0 0 18px rgba(53, 214, 255, 0.36);
}

.carousel-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(53, 214, 255, 0.55), 0 0 20px rgba(255, 79, 216, 0.36);
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 6;
  width: 6%;
  color: #ffffff;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  text-shadow: 0 0 14px rgba(53, 214, 255, 0.9);
}

.carousel-indicators {
  z-index: 7;
  bottom: 20px;
}

.carousel-indicators li {
  width: 46px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(159, 176, 201, 0.42);
}

.carousel-indicators .active {
  background: linear-gradient(90deg, var(--vr-cyan), var(--vr-pink));
  box-shadow: 0 0 12px rgba(53, 214, 255, 0.68);
}

.features-section {
  position: relative;
  margin-top: 2.25rem;
  margin-bottom: 2.25rem !important;
  z-index: 8;
}

.feature-grid > [class*="col-"] {
  display: flex;
}

.feature-card {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 1.55rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(53, 214, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 22, 52, 0.9), rgba(5, 12, 31, 0.88)),
    radial-gradient(circle at 18% 0%, rgba(53, 214, 255, 0.18), transparent 12rem);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--vr-cyan), transparent 22%, transparent 78%, var(--vr-pink)) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(53, 214, 255, 0.1), transparent);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 216, 0.58);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.44), 0 0 22px rgba(53, 214, 255, 0.22), 0 0 20px rgba(255, 79, 216, 0.18);
}

.feature-icon {
  display: flex;
  width: 78px;
  height: 78px;
  margin: 0 auto 1.2rem;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 214, 255, 0.26), rgba(154, 92, 255, 0.34) 58%, rgba(255, 79, 216, 0.24));
  box-shadow: 0 0 22px rgba(53, 214, 255, 0.42), inset 0 0 22px rgba(255, 255, 255, 0.08);
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 0.7rem;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.5rem;
}

.feature-card p {
  margin-bottom: 0;
}

.category-card {
  display: block;
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(53, 214, 255, 0.3);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--vr-cyan), transparent 18%, transparent 82%, var(--vr-pink)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.quest-card {
  background-image:
    linear-gradient(100deg, rgba(4, 9, 25, 0.85), rgba(6, 14, 38, 0.48)),
    url("/img/banner310-card.jpg");
}

.steam-card {
  background-image:
    linear-gradient(100deg, rgba(4, 9, 25, 0.86), rgba(7, 18, 42, 0.48)),
    url("/img/banner210-card.jpg");
}

.source-card {
  background-image:
    linear-gradient(100deg, rgba(4, 9, 25, 0.86), rgba(7, 18, 42, 0.48)),
    url("/img/banner110-1280.jpg");
}

@supports (background-image: image-set(url("/img/banner210-card.webp") type("image/webp"))) {
  .quest-card {
    background-image:
      linear-gradient(100deg, rgba(4, 9, 25, 0.85), rgba(6, 14, 38, 0.48)),
      image-set(url("/img/banner310-card.webp") type("image/webp"), url("/img/banner310-card.jpg") type("image/jpeg"));
  }

  .steam-card {
    background-image:
      linear-gradient(100deg, rgba(4, 9, 25, 0.86), rgba(7, 18, 42, 0.48)),
      image-set(url("/img/banner210-card.webp") type("image/webp"), url("/img/banner210-card.jpg") type("image/jpeg"));
  }

  .source-card {
    background-image:
      linear-gradient(100deg, rgba(4, 9, 25, 0.86), rgba(7, 18, 42, 0.48)),
      image-set(url("/img/banner110-1280.webp") type("image/webp"), url("/img/banner110-1280.jpg") type("image/jpeg"));
  }
}

.category-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 79, 216, 0.26), transparent 14rem),
    linear-gradient(180deg, rgba(3, 6, 19, 0.08), rgba(3, 6, 19, 0.72));
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 0.82;
}

.category-card:hover,
.category-card:focus {
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 79, 216, 0.58);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.48), 0 0 24px rgba(53, 214, 255, 0.24), 0 0 22px rgba(255, 79, 216, 0.18);
}

.category-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  color: #ffffff;
}

.category-icon {
  margin-bottom: 1rem;
  color: var(--vr-cyan);
  font-size: 3rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 10px rgba(53, 214, 255, 0.58));
}

.category-info h3 {
  margin-bottom: 0.85rem;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 950;
  text-shadow: 0 0 16px rgba(53, 214, 255, 0.32);
}

.category-info p {
  max-width: 88%;
  margin-bottom: 1.25rem;
  color: rgba(232, 245, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.category-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #ffffff;
  font-size: 0.88rem;
  opacity: 1;
}

.category-stats span {
  display: inline-flex;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(53, 214, 255, 0.28);
  border-radius: 6px;
  background: rgba(5, 14, 35, 0.62);
}

.section-header {
  position: relative;
  margin: 4.5rem auto 1.5rem;
}

.section-header::before {
  content: "";
  display: block;
  width: min(520px, 86vw);
  height: 1px;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, transparent, var(--vr-cyan), var(--vr-pink), transparent);
  box-shadow: 0 0 14px rgba(53, 214, 255, 0.42);
}

.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(53, 214, 255, 0.42), 0 0 22px rgba(255, 79, 216, 0.26);
}

.section-title svg,
.bi-fire {
  color: var(--vr-cyan);
  filter: drop-shadow(0 0 10px rgba(53, 214, 255, 0.62));
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--vr-muted);
  font-size: 1.06rem;
}

.hot-games,
.latest-games {
  position: relative;
}

.hot-games::before,
.latest-games::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: 5.2rem;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(53, 214, 255, 0.3), transparent);
}

@media (max-width: 1199.98px) {
  .carousel-caption {
    max-width: 960px;
  }
}

@media (max-width: 991.98px) {
  .carousel-caption {
    max-width: 720px;
  }
}

@media (max-width: 767.98px) {
  .carousel-caption {
    max-width: 540px;
  }
}

@media (max-width: 575.98px) {
  .carousel-caption {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .carousel-item,
  .carousel-item img {
    height: 540px;
  }
}

@media (max-width: 850px) {
  .carousel-item,
  .carousel-item img {
    height: 470px;
  }

  .carousel-caption {
    transform: translateY(-42%);
  }

  .hero-pills {
    gap: 0.5rem;
  }

  .hero-pill {
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
  }

  .carousel-buttons .btn {
    min-width: 122px;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  #gameCarousel::before {
    inset: 22px 14px;
  }

  .carousel-item,
  .carousel-item img {
    height: 430px;
  }

  .carousel-caption {
    width: 100%;
  }

  .carousel-caption::before {
    height: 28px;
    margin-bottom: 0.55rem;
  }

  .carousel-caption .hero-kicker {
    min-height: 32px;
    padding: 0.28rem 0.85rem;
  }

  .carousel-caption p {
    max-width: 94%;
  }

  .carousel-buttons {
    gap: 0.55rem;
  }

  .category-card {
    height: 255px;
  }

  .category-content {
    padding: 1.5rem;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .category-info h3 {
    font-size: 1.45rem;
  }

  .category-info p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .feature-card {
    padding: 1.35rem 1rem;
  }

  .feature-icon {
    width: 62px;
    height: 62px;
    font-size: 1.55rem;
  }
}

@media (max-width: 767.98px) {
  .feature-grid > [class*="col-"] + [class*="col-"] {
    margin-top: 1rem;
  }

  .feature-card.text-center {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.9rem;
    min-height: 116px;
    text-align: left !important;
  }

  .feature-card .feature-icon {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 1.35rem;
  }

  .feature-card .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .feature-card h3 {
    margin-bottom: 0.32rem;
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .feature-card p {
    grid-column: 2;
    font-size: 0.92rem;
    line-height: 1.45;
  }
}

@media (max-width: 576px) {
  #gameCarousel {
    margin-top: -20px !important;
  }

  #gameCarousel::before {
    inset: 18px 10px;
    clip-path: polygon(0 5%, 12% 5%, 17% 0, 83% 0, 88% 5%, 100% 5%, 100% 95%, 88% 95%, 83% 100%, 17% 100%, 12% 95%, 0 95%);
  }

  .carousel-item,
  .carousel-item img {
    height: 390px;
  }

  .carousel-item::before {
    background:
      radial-gradient(circle at 82% 24%, rgba(255, 79, 216, 0.22), transparent 14rem),
      radial-gradient(circle at 18% 32%, rgba(53, 214, 255, 0.24), transparent 14rem),
      linear-gradient(90deg, rgba(1, 4, 15, 0.9), rgba(3, 6, 19, 0.62));
  }

  .carousel-caption {
    top: 48%;
    width: 100%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    gap: 0.25rem 0.85rem;
    margin-bottom: 0.65rem;
    font-size: clamp(2.16rem, 11.5vw, 2.72rem);
  }

  .carousel-caption p {
    margin-bottom: 0.75rem;
  }

  .hero-pills {
    margin-bottom: 0.85rem;
  }

  .hero-pill {
    min-height: 32px;
    padding: 0.32rem 0.52rem;
    font-size: 0.78rem;
  }

  .carousel-buttons .btn {
    min-width: auto;
    padding: 0.5rem 0.68rem;
    font-size: 0.82rem;
  }

  .carousel-indicators {
    bottom: 12px;
  }

  .carousel-indicators li {
    width: 28px;
  }

  .features-section {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem !important;
  }

  .section-header {
    margin-top: 3.2rem;
  }

  .hot-games::before,
  .latest-games::before {
    left: 0;
    right: 0;
  }
}
