* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #05080d;
  --panel: #0a0f15;
  --panel-2: #11161d;
  --border: #232b36;
  --text: #f3f5f7;
  --muted: #8c96a4;
  --accent-orange: #f29a2e;
}

*::selection {
  background: rgba(47, 124, 255, 0.25);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #05080d 0%, #070b10 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* GAME BONUSES SECTION */
.game-bonuses-section {
  width: min(1080px, 100%);
  margin: 0 auto 34px;
}

.game-bonuses-head {
  margin-bottom: 18px;
}

.game-bonuses-subtitle {
  margin-top: 12px;
  color: #c9d3de;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.game-bonuses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-bonus-card {
  position: relative;
  min-height: 340px;
  padding: 84px 20px 20px;
  background: linear-gradient(180deg, #2f333c 0%, #3a3e47 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  overflow: visible; /* важно */
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.game-bonus-thumb {
  position: absolute;
  top: -18px;
  right: 18px;
  width: 178px;
  height: 86px;
  object-fit: cover;
  border-radius: 18px;
  transform: rotate(-4deg);
  transform-origin: center;
  z-index: 3;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.game-bonus-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-bonus-body h3 {
  margin: 0 0 12px;
  padding-right: 165px; /* чтобы заголовок не упирался в картинку */
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.game-bonus-deadline {
  margin-bottom: 10px;
  color: #d7bc8a;
  font-size: 14px;
  font-weight: 700;
}

.game-bonus-body p {
  margin: 0 0 20px;
  color: #f1f3f6;
  font-size: 15px;
  line-height: 1.55;
}

.game-bonus-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  padding: 0 22px;
  background: linear-gradient(180deg, #f9b14b 0%, #f4a137 100%);
  color: #111;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.game-bonus-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

@media (max-width: 1100px) {
  .game-bonuses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .game-bonuses-grid {
    grid-template-columns: 1fr;
  }

  .game-bonus-card {
    min-height: 320px;
  }

  .game-bonus-thumb {
    width: 150px;
    height: 74px;
  }

  .game-bonus-body h3 {
    max-width: calc(100% - 135px);
    font-size: 18px;
  }

  .game-bonus-btn {
    font-size: 16px;
    min-height: 46px;
  }
}

/* SIDEBAR */
.sidebar {
  width: 350px;
  background: #050a10;
  margin-left: 5%;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  font-family: "Segoe UI", Arial, sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 34px;
  color: #ffffff;
}

.logo-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8edf5;
  font-size: 20px;
  padding: 10px 14px;
  z-index: 1;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  transition: color 0.2s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  right: -14px;
  background: var(--accent-orange);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.nav-item span {
  transition: font-weight 0.2s ease;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-item:hover,
.nav-item.active {
  color: #111111;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-item:hover::before,
.nav-item.active::before {
  opacity: 1;
}

.nav-item:hover span,
.nav-item.active span {
  font-weight: 700;
}

/* MAIN */
.main-content {
  flex: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOP BANNER */
.top-banner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 32px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.top-banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.top-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 13, 0.12) 0%,
    rgba(5, 8, 13, 0.68) 100%
  );
  pointer-events: none;
}

.top-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  padding: 32px;
}

.top-banner-title {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.top-banner-subtitle {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #e4ebf3;
  max-width: 680px;
}

.daily-bonus-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 32px;
}

.daily-bonus-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.daily-bonus-gallery img:hover {
  transform: scale(1.02);
}

.bonus-types-block {
  margin: 40px 0 44px;
  padding: 28px 30px 32px;
  background: linear-gradient(135deg, #313542 0%, #3a3f4d 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.bonus-types-block h2 {
  margin-top: 0;
}


.image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(5, 8, 13, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}



.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 15, 21, 0.82);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.image-lightbox-close:hover {
  background: rgba(242, 154, 46, 0.95);
  color: #111111;
}

body.lightbox-open {
  overflow: hidden;
}

/* ARTICLE */
.article {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  color: #dfe6ee;
  width: min(1080px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.article h1,
.article h2,
.article h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  line-height: 1.2;
  scroll-margin-top: 50px;
}

.article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.article h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
}

.article p {
  margin-bottom: 16px;
}

/* ACCENT TITLES */
.accent-title {
  margin: 30px 0 16px;
}

.accent-title span {
  display: inline-block;
  position: relative;
  padding: 10px 20px 10px 16px;
  color: #111111;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
}

.accent-title span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-orange);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  z-index: -1;
}

/* BONUS CARDS */
.bonus-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 28px 0 40px;
}

.bonus-card {
  position: relative;
  padding-bottom: 26px;
}

.bonus-card-toggle {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding: 0;
  background: #0b131d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.bonus-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.bonus-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px 24px 98px;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 13, 0.42) 0%,
    rgba(5, 8, 13, 0.68) 45%,
    rgba(5, 8, 13, 0.88) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bonus-card-overlay h3 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.1;
  color: #ffffff;
}

.bonus-card-overlay p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #e6ecf3;
}

.bonus-card-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.bonus-card-label span {
  position: relative;
  display: block;
  padding: 12px 18px 12px 16px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
  z-index: 1;
}

.bonus-card-label span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-orange);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  z-index: -1;
}

.bonus-card-label:hover {
  filter: brightness(1.05);
}

.bonus-card:hover .bonus-card-image,
.bonus-card.is-open .bonus-card-image {
  transform: scale(1.05);
  filter: blur(4px) brightness(0.55);
}

.bonus-card:hover .bonus-card-overlay,
.bonus-card.is-open .bonus-card-overlay {
  opacity: 1;
}

.bonus-card:hover .bonus-card-label,
.bonus-card.is-open .bonus-card-label {
  transform: translateY(20px);
}

/* LOOTBOX */
.lootbox-demo {
  width: 100%;
  max-width: none;
  margin: 16px 0 40px;
  padding: 20px 0;
}

.lootbox-stage {
  position: relative;
  width: 100%;
  margin: 0 0 24px;
}

.lootbox-window {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 18px;
  background: #070b10;
  border: 2px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
}

.lootbox-track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  will-change: transform;
  transform: translateX(0);
}

.loot-item {
  width: 170px;
  min-width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loot-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.lootbox-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.lootbox-btn {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.lootbox-btn img {
  width: 260px;
  height: auto;
  display: block;
  transition: transform 0.12s ease;
}

.lootbox-btn:active img {
  transform: scale(0.95);
}

.lootbox-btn:disabled {
  opacity: 0.8;
  cursor: default;
}

/* ARTICLE CAROUSEL */
.article-carousel {
  position: relative;
  margin: 32px 0 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.article-carousel-track-wrap {
  overflow: hidden;
  border-radius: 20px;
}

.article-carousel-track {
  position: relative;
  min-height: 520px;
}

.article-carousel-slide {
  display: none;
}

.article-carousel-slide.active {
  display: block;
}

.article-carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.article-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 12, 18, 0.78);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-carousel-btn:hover {
  background: rgba(242, 154, 46, 0.95);
  color: #111111;
}

.article-carousel-btn.prev {
  left: 18px;
}

.article-carousel-btn.next {
  right: 18px;
}

.article-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.article-carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.article-carousel-dots .dot.active {
  background: var(--accent-orange);
  transform: scale(1.15);
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 34px 20px;
  margin-top: auto;
}

.footer-bottom {
  border-top: none;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  color: #747f8d;
  font-size: 12px;
  max-width: 480px;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .sidebar {
    width: 240px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-item {
    font-size: 15px;
  }

  .lootbox-frame {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 900px) {
  
   .daily-bonus-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-bonus-gallery img {
    height: 200px;
  } 
  
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-left: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: relative;
    top: auto;
    height: auto;
    align-self: stretch;
    padding: 18px 18px 20px;
  }

  .main-content {
    padding: 16px;
  }

  .bonus-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bonus-card-toggle {
    min-height: 320px;
  }

  .bonus-card-label span {
    font-size: 20px;
  }

  .bonus-card:hover .bonus-card-label,
  .bonus-card.is-open .bonus-card-label {
    transform: translateY(16px);
  }

  .lootbox-window {
    height: 180px;
  }

  .loot-item {
    width: 150px;
    min-width: 150px;
    height: 150px;
  }

  .lootbox-frame {
    width: 200px;
    height: 200px;
  }

  .lootbox-btn img {
    width: 230px;
  }

  .top-banner {
    margin: 0 0 24px;
    border-radius: 18px;
  }

  .top-banner img {
    height: 380px;
  }

.top-banner-content {
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  max-width: none;
}

  .top-banner-title {
    font-size: 38px;
    line-height: 1.05;
    margin-bottom: 10px;
    max-width: 900px;
    margin: 0 auto 12px;
  }

  .top-banner-subtitle {
    font-size: 17px;
    line-height: 1.45;
    max-width: 760px;
    margin: 0 auto;
  }

  .article-carousel-track {
    min-height: 380px;
  }

  .article-carousel-slide img {
    height: 380px;
  }

  .article-carousel-btn.prev {
    left: 16px;
  }

  .article-carousel-btn.next {
    right: 16px;
  }
}

@media (max-width: 600px) {
  
  
  .image-lightbox {
    padding: 20px;
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .image-lightbox-img {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 14px;
  }
  
  .daily-bonus-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .daily-bonus-gallery img {
    height: auto;
  }
  
  .sidebar {
    padding: 14px 14px 16px;
  }

  .logo {
    font-size: 16px;
    gap: 10px;
    margin-bottom: 18px;
  }

  .logo-icon {
    width: 52px;
    height: 52px;
  }

  .nav-item {
    font-size: 14px;
    padding: 8px 10px;
  }

  .nav-icon-img {
    width: 16px;
    height: 16px;
  }

  .top-banner {
    border-radius: 16px;
  }

  .top-banner img {
    height: 480px;
    object-position: center;
  }

  .top-banner::after {
    background: linear-gradient(
      180deg,
      rgba(5, 8, 13, 0.08) 0%,
      rgba(5, 8, 13, 0.30) 38%,
      rgba(5, 8, 13, 0.82) 100%
    );
  }

.top-banner-content {
  top: 50%;
  left: 18px;
  right: 18px;
  transform: translateY(-50%);
  max-width: none;
}

  .top-banner-title {
    font-size: 28px;
    line-height: 1.04;
    margin-bottom: 10px;
  }

  .top-banner-subtitle {
    font-size: 14px;
    line-height: 1.4;
    max-width: none;
  }

  .article {
    font-size: 17px;
    line-height: 1.65;
  }

  .article h2 {
    font-size: 22px;
  }

  .accent-title span {
    padding: 8px 16px 8px 14px;
  }

  .bonus-card-toggle {
    min-height: 290px;
    border-radius: 18px;
  }

  .bonus-card-overlay {
    padding: 20px 18px 86px;
  }

  .bonus-card-overlay h3 {
    font-size: 22px;
  }

  .bonus-card-overlay p {
    font-size: 14px;
    line-height: 1.45;
  }

  .bonus-card-label {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .bonus-card-label span {
    font-size: 18px;
    padding: 10px 16px 10px 14px;
  }

  .bonus-card:hover .bonus-card-label,
  .bonus-card.is-open .bonus-card-label {
    transform: translateY(16px);
  }

  .lootbox-window {
    height: 160px;
  }

  .loot-item {
    width: 130px;
    min-width: 130px;
    height: 130px;
  }

  .lootbox-frame {
    width: 180px;
    height: 180px;
  }

  .lootbox-btn img {
    width: 210px;
  }

  .article-carousel-track {
    min-height: 250px;
  }

  .article-carousel-slide img {
    height: 250px;
  }

  .article-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}