/* Shared content page image utilities */
.content-media {
  display: block;
  height: auto;
}

.content-media--center {
  margin: 0 auto;
}

.content-media--hero {
  max-width: 80%;
}

.content-media--full {
  max-width: 100%;
}

.content-media--rounded {
  border-radius: 8px;
}

@media (max-width: 600px) {
  .content-media--hero {
    max-width: 95%;
  }
}

/* Homepage content enhancements */

/* kinetic-marquee */
.ci-marquee-wrap {
  overflow: hidden;
  background: linear-gradient(135deg, #c19e38, #ffcb35);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ci-mq-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.ci-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding: 0 24px;
  flex-shrink: 0;
}

.ci-mq-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.ci-stats-bar {
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgb(255 202 0 / 30%);
  border-bottom: 2px solid rgb(255 202 0 / 30%);
  padding: 40px 24px;
  margin: 32px 0;
  background-image: url("https://maaxwin.buzz/img/slide.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ci-mesh-canvas {
  display: none !important;
}

.ci-stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 35%);
  z-index: 0;
  pointer-events: none;
}

.ci-stats-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ci-stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgb(255 220 26 / 25%);
}

.ci-stat-item:last-child {
  border-right: none;
}

.ci-odometer {
  font-family: monospace;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #ffcb35 !important;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  height: 1.15em;
  line-height: 1.15em;
  overflow: hidden;
  white-space: nowrap;
}

.ci-odo-digit {
  display: inline-block;
  height: 1.15em;
  line-height: 1.15em;
  overflow: hidden;
  vertical-align: top;
}

.ci-odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ci-odo-strip span {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
}

.ci-stat-suffix {
  font-family: monospace;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 700;
  color: #ffcb35 !important;
  line-height: 1.15em;
  display: inline-block;
}

.ci-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff !important;
  margin-top: 6px;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .ci-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .ci-stat-item:nth-child(2) {
    border-right: none;
  }
}

/* gradient reveal h2 headings */
.reveal-h2 {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #c19e38 50%, #ffcb35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-h2::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffcb35, #fff16c, #ffcb35);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-h2.is-visible::after {
  transform: scaleX(1);
}

.reveal-h2-wrap {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-h2-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* spotlight-border on cards */
.features-grid .feature-card,
.games-grid .game-card {
  position: relative;
  overflow: hidden;
}

.features-grid .feature-card::before,
.games-grid .game-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle 160px at var(--mx, 50%) var(--my, 50%),
    rgba(26, 111, 255, 0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.features-grid .feature-card:hover::before,
.games-grid .game-card:hover::before {
  opacity: 1;
}

.features-grid .feature-card > *,
.games-grid .game-card > * {
  position: relative;
  z-index: 1;
}

/* particle-button */
.ci-pb-particle {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
}

.ci-pb-confetti {
  position: fixed;
  width: 6px;
  height: 11px;
  pointer-events: none;
  z-index: 99999;
  border-radius: 2px;
}

.ci-pb-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  border: 2px solid;
  opacity: 0;
}

/* hero CTA buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.btn.btn-register {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffcb35, #c19e38);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 18px rgb(255 227 26 / 55%),
    0 4px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s;
}

.btn.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: ciShimmer 2.2s ease-in-out infinite;
}

.btn.btn-register:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 30px rgba(26, 111, 255, 0.8),
    0 6px 28px rgba(0, 0, 0, 0.4);
}

.btn.btn-register:active {
  transform: scale(0.97);
}

.btn.btn-download {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 10px;
  background: transparent;
  color: #4d94ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #ffcb35;
  box-shadow:
    0 0 12px rgb(255 202 0 / 30%),
    inset 0 0 12px rgba(26, 111, 255, 0.06);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s,
    background 0.18s,
    color 0.18s;
  animation: ciPulseGlow 2.5s ease-in-out infinite;
}

.btn.btn-download:hover {
  background: rgba(26, 111, 255, 0.12);
  color: #c19e38;
  box-shadow:
    0 0 28px rgb(255 223 26 / 60%),
    inset 0 0 18px rgba(26, 111, 255, 0.1);
  transform: translateY(-2px) scale(1.03);
  animation: none;
}

.btn.btn-download:active {
  transform: scale(0.97);
}

.btn.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(255 202 0 / 30%);
  backdrop-filter: blur(8px);
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
}

.btn.btn-login:hover {
  background: rgba(26, 111, 255, 0.15);
  color: #fff;
  border-color: rgba(26, 111, 255, 0.7);
  transform: translateY(-2px) scale(1.03);
}

.btn.btn-login:active {
  transform: scale(0.97);
}

/* navbar CTA buttons */
.nav-btn.download,
.nav-btn.login,
.mobile-buttons .btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.18s,
    background 0.18s;
}

.nav-btn.download,
.mobile-buttons .btn:last-child {
  background: linear-gradient(135deg, #ffcb35, #c19e38);
  color: #fff !important;
  border: none;
  box-shadow: 0 0 14px rgb(255 176 26 / 50%);
}

.nav-btn.download::before,
.mobile-buttons .btn:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: ciShimmer 2.2s ease-in-out infinite;
}

.nav-btn.download:hover,
.mobile-buttons .btn:last-child:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(26, 111, 255, 0.75);
}

.nav-btn.login,
.mobile-buttons .btn:first-child {
  background: transparent;
  color: #4d94ff !important;
  border: 2px solid #ffcb35;
  box-shadow: 0 0 10px rgb(255 220 26 / 25%);
  animation: ciPulseGlow 2.5s ease-in-out infinite;
}

.nav-btn.login:hover,
.mobile-buttons .btn:first-child:hover {
  background: rgba(26, 111, 255, 0.12);
  color: #c19e38 !important;
  box-shadow: 0 0 22px rgb(255 227 26 / 55%);
  transform: translateY(-2px) scale(1.04);
  animation: none;
}

.nav-btn.download:active,
.nav-btn.login:active,
.mobile-buttons .btn:active {
  transform: scale(0.97);
}

@keyframes ciShimmer {
  0% {
    left: -100%;
  }

  60%,
  100% {
    left: 160%;
  }
}

@keyframes ciPulseGlow {
  0%,
  100% {
    box-shadow:
      0 0 12px rgb(255 202 0 / 30%),
      inset 0 0 12px rgba(26, 111, 255, 0.06);
  }

  50% {
    box-shadow:
      0 0 22px rgb(255 227 26 / 55%),
      inset 0 0 18px rgba(26, 111, 255, 0.1);
  }
}

/* glowing hero h1 */
.hero h1 {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  background: linear-gradient(135deg, #ffffff 0%, #c19e38 55%, #ffcb35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 18px rgb(255 227 26 / 55%))
    drop-shadow(0 0 40px rgb(255 220 26 / 25%));
  animation: ciH1Glow 3s ease-in-out infinite;
}

@keyframes ciH1Glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 14px rgb(255 176 26 / 50%))
      drop-shadow(0 0 32px rgba(26, 111, 255, 0.2));
  }

  50% {
    filter:
      drop-shadow(0 0 28px rgb(255 187 26 / 85%))
      drop-shadow(0 0 60px rgba(26, 111, 255, 0.35));
  }
}

/* typewriter hero subtitle */
.ci-type-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #4d94ff;
  vertical-align: middle;
  margin-left: 2px;
  animation: ciCursorBlink 0.7s step-end infinite;
}

@keyframes ciCursorBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#ci-hero-subtitle {
  min-height: 1.5em;
}

/* coverflow section */
.ci-cf-section {
  padding: 20px 0 40px;
  perspective: 1200px;
  overflow: hidden;
  user-select: none;
}

.ci-cf-track {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
}

.ci-cf-item {
  position: absolute;
  width: 260px;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(26, 111, 255, 0.18);
}

.ci-cf-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.ci-cf-item-content {
  position: relative;
  z-index: 2;
}

.ci-cf-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ci-cf-item p {
  font-size: 13px;
  color: rgba(200, 220, 255, 0.8);
  line-height: 1.4;
}

.ci-cf-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.ci-cf-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #ffcb35;
  background: transparent;
  color: #4d94ff;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-cf-btn:hover {
  background: rgba(26, 111, 255, 0.2);
  color: #fff;
}

.ci-cf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ci-cf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 202 0 / 30%);
  transition:
    background 0.3s,
    transform 0.3s;
  cursor: pointer;
}

.ci-cf-dot.active {
  background: #ffcb35;
  transform: scale(1.4);
}

@media (max-width: 600px) {
  .ci-cf-item {
    width: 200px;
    height: 240px;
    padding: 18px;
  }

  .ci-cf-track {
    height: 270px;
  }
}

.promo-patterns-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: promo-patterns;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.promo-patterns-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid rgb(255 161 26 / 22%);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(45 39 10 / 78% 78% ), rgb(26 22 4 / 92%));
  color: #edf4ff;
  line-height: 1.55;
  min-height: 100%;
}

.promo-patterns-list li::before {
  counter-increment: promo-patterns;
  content: counter(promo-patterns);
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffcb35, #f7fb0a);
  color: #00112d;
  font-size: 0.82rem;
  font-weight: 700;
}

.promo-patterns-list--compact {
  margin-top: 1rem;
}

.promo-patterns-list--compact li {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  font-size: 0.96rem;
}

@media (max-width: 768px) {
  .promo-patterns-list {
    grid-template-columns: 1fr;
  }
}
