/* GoPlay! arcade home & competitions banner + mobile menu promo */

.home-goplay-widget {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Master banner card styling matching the GoPlay hub */
.home-goplay-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(245, 196, 81, 0.28);
  background-color: #0c0f18;
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(209, 32, 38, 0.35) 0%, rgba(12, 15, 24, 0.95) 60%),
    linear-gradient(180deg, rgba(12, 15, 24, 0.82) 0%, rgba(8, 10, 16, 0.95) 100%),
    var(--home-goplay-bg, none);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(209, 32, 38, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 1.85rem 2rem;
}

.home-goplay-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d12026, #f5c451, #00e676, #00e5ff);
  z-index: 2;
}

.home-goplay-banner__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 280px;
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(209, 32, 38, 0.4), rgba(245, 196, 81, 0.18) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.home-goplay-banner__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 85% 30%, rgba(245, 196, 81, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 50% 80%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.home-goplay-banner__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-goplay-banner__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-goplay-banner__title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.home-goplay-banner__top-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.home-goplay-badge--mobile-top {
  display: none;
}

/* Kicker pill */
.home-goplay-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #120e03;
  background: linear-gradient(135deg, #ffd978 0%, #f5c451 45%, #e2a829 100%);
  border: 1.5px solid #fff2a8;
  border-bottom: 3px solid #b88114;
  box-shadow:
    0 2px 0 #946408,
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(245, 196, 81, 0.35);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

.home-goplay-kicker i {
  color: #c92026;
  font-size: 1em;
}

.home-goplay-banner__title-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Bold GoPlay Display Title */
.home-goplay-title {
  margin: 0;
  font-family: 'Titan One', 'Bungee', cursive, sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 15%, #ffe494 65%, #f5c451 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 20px rgba(245, 196, 81, 0.3));
}

.home-goplay-title__dot {
  color: #d12026;
  -webkit-text-fill-color: #d12026;
  text-shadow: 0 3px 0 #850005, 0 0 20px rgba(209, 32, 38, 0.8);
}

.home-goplay-tagline {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.home-goplay-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-goplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.home-goplay-badge--pulse {
  background: rgba(0, 230, 118, 0.14);
  border-color: rgba(0, 230, 118, 0.38);
  color: #00e676;
}

.home-goplay-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  display: inline-block;
  animation: goplay-blink 1.4s ease-in-out infinite;
}

@keyframes goplay-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.home-goplay-banner__desktop-cta {
  flex-shrink: 0;
}

/* Master CTA Button (The only link in this section) */
.home-goplay-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #d12026 0%, #ff3b42 100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-bottom: 4px solid #8e0e13;
  box-shadow:
    0 4px 0 #730a0e,
    0 8px 24px rgba(209, 32, 38, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.home-goplay-cta-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 6px 0 #730a0e,
    0 12px 28px rgba(209, 32, 38, 0.6);
}

.home-goplay-cta-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #730a0e,
    0 4px 12px rgba(209, 32, 38, 0.4);
}

.home-goplay-banner__mobile-footer {
  display: none;
}

/* Mini Cabinets Strip - Display showcase, non-interactive */
.home-goplay-strip-wrapper {
  container-type: inline-size;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  padding-bottom: 0.35rem;
}

.home-goplay-strip-wrapper::-webkit-scrollbar {
  height: 6px;
}

.home-goplay-strip-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.home-goplay-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
}

.home-goplay-mini-cabinet {
  flex: 0 0 228px;
  width: 228px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  user-select: none;
  pointer-events: none; /* Non-clickable: user asked for only the CTA button to be a link */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(175deg, rgba(22, 27, 44, 0.85) 0%, rgba(12, 15, 26, 0.95) 100%);
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

/* Desktop: four cabinets visible in the viewport, scroll for the rest */
@media (min-width: 992px) {
  .home-goplay-mini-cabinet {
    flex: 0 0 calc((100cqw - 3 * 1rem) / 4);
    width: calc((100cqw - 3 * 1rem) / 4);
  }
}

/* Cabinet marquee bar */
.home-goplay-mini-cabinet__marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.95rem;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Fredoka', sans-serif;
}

.home-goplay-mini-cabinet__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.home-goplay-mini-cabinet__icon {
  font-size: 1.1rem;
}

.home-goplay-mini-cabinet__live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #00e676;
  color: #052611;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

.home-goplay-mini-cabinet__live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #052611;
}

/* Cabinet screen with playing preview webm */
.home-goplay-mini-cabinet__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #080a14;
  overflow: hidden;
}

.home-goplay-mini-cabinet__preview,
.home-goplay-mini-cabinet__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile Menu Widget */
.home-goplay-card--menu {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.home-goplay-menu-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(209, 32, 38, 0.18) 0%, rgba(245, 196, 81, 0.1) 100%);
  border: 1px solid rgba(245, 196, 81, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-goplay-menu-promo:hover,
.home-goplay-menu-promo:focus-visible {
  background: linear-gradient(135deg, rgba(209, 32, 38, 0.28) 0%, rgba(245, 196, 81, 0.16) 100%);
  border-color: rgba(245, 196, 81, 0.45);
  color: inherit;
  transform: translateY(-1px);
}

.home-goplay-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #d12026 0%, #ff3b42 100%);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(209, 32, 38, 0.4);
}

.home-goplay-menu-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-goplay-menu-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-color, #fff);
}

.home-goplay-menu-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-goplay-menu-play {
  flex-shrink: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d12026 0%, #ff3b42 100%);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(209, 32, 38, 0.35);
}

.home-goplay-widget--mobile-menu {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
  .home-goplay-widget--mobile-menu {
    display: none;
  }
}

/* Light theme overrides */
html.light-theme .home-goplay-banner,
body.light-theme .home-goplay-banner {
  border-color: rgba(201, 160, 58, 0.35);
  background-color: #f6f8fc;
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(209, 32, 38, 0.14) 0%, rgba(244, 246, 252, 0.95) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 244, 252, 0.98) 100%),
    var(--home-goplay-bg, none);
  box-shadow:
    0 14px 34px rgba(26, 31, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html.light-theme .home-goplay-title,
body.light-theme .home-goplay-title {
  background: linear-gradient(180deg, #ff3b42 0%, #d12026 50%, #900d11 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 3px 0 rgba(144, 13, 17, 0.2));
}

html.light-theme .home-goplay-tagline,
body.light-theme .home-goplay-tagline {
  color: #252e42;
  text-shadow: none;
}

html.light-theme .home-goplay-badge,
body.light-theme .home-goplay-badge {
  background: rgba(26, 31, 51, 0.05);
  border-color: rgba(26, 31, 51, 0.12);
  color: #1e2538;
}

html.light-theme .home-goplay-badge--pulse,
body.light-theme .home-goplay-badge--pulse {
  background: rgba(0, 200, 83, 0.12);
  border-color: rgba(0, 200, 83, 0.3);
  color: #056828;
}

html.light-theme .home-goplay-mini-cabinet,
body.light-theme .home-goplay-mini-cabinet {
  background: linear-gradient(175deg, #ffffff 0%, #f4f6fb 100%);
  border-color: rgba(26, 31, 51, 0.1);
  box-shadow: 0 6px 18px rgba(26, 31, 51, 0.06);
}

html.light-theme .home-goplay-mini-cabinet__marquee,
body.light-theme .home-goplay-mini-cabinet__marquee {
  background: #ffffff;
  border-bottom-color: rgba(26, 31, 51, 0.08);
}

html.light-theme .home-goplay-mini-cabinet__title,
body.light-theme .home-goplay-mini-cabinet__title {
  color: #1a2236;
}

html.light-theme .home-goplay-widget--mobile-menu,
body.light-theme .home-goplay-widget--mobile-menu {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html.light-theme .home-goplay-menu-promo,
body.light-theme .home-goplay-menu-promo {
  background: linear-gradient(135deg, rgba(209, 32, 38, 0.08) 0%, rgba(245, 196, 81, 0.12) 100%);
  border-color: rgba(201, 160, 58, 0.35);
}

html.light-theme .home-goplay-menu-title,
body.light-theme .home-goplay-menu-title {
  color: #1a2236;
}

html.light-theme .home-goplay-menu-sub,
body.light-theme .home-goplay-menu-sub {
  color: #64748b;
}

html.light-theme .home-goplay-mobile-chip,
body.light-theme .home-goplay-mobile-chip {
  background: rgba(26, 31, 51, 0.05);
  border-color: rgba(26, 31, 51, 0.1);
  color: #334155;
}

/* ==========================================================================
   Mobile-First & Tablet Responsive UI / UX
   ========================================================================== */

@media (max-width: 991px) {
  .home-goplay-banner {
    padding: 1.35rem 1.25rem;
  }

  .home-goplay-pills-row--desktop {
    display: none;
  }

  .home-goplay-badge--mobile-top {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .home-goplay-widget {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .home-goplay-banner {
    padding: 1.15rem 0.95rem 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }

  .home-goplay-banner__main {
    gap: 0.95rem;
  }

  .home-goplay-banner__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .home-goplay-banner__top-meta {
    margin-bottom: 0.4rem;
    width: 100%;
    justify-content: space-between;
  }

  .home-goplay-kicker {
    font-size: 0.72rem;
    padding: 0.22rem 0.65rem;
    gap: 0.35rem;
  }

  .home-goplay-title {
    font-size: 1.95rem;
    line-height: 1;
  }

  .home-goplay-tagline {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
  }

  .home-goplay-banner__desktop-cta {
    display: none;
  }

  .home-goplay-strip-wrapper {
    margin: 0.25rem -0.95rem 0;
    padding: 0 0.95rem;
    scrollbar-width: none;
  }

  .home-goplay-strip-wrapper::-webkit-scrollbar {
    display: none;
  }

  .home-goplay-strip {
    gap: 0.65rem;
  }

  .home-goplay-mini-cabinet {
    width: 215px;
    flex: 0 0 215px;
    border-radius: 12px;
  }

  .home-goplay-mini-cabinet__marquee {
    padding: 0.4rem 0.65rem;
  }

  .home-goplay-mini-cabinet__title {
    font-size: 0.78rem;
  }

  .home-goplay-mini-cabinet__icon {
    font-size: 0.95rem;
  }

  .home-goplay-mini-cabinet__live {
    font-size: 0.58rem;
    padding: 0.12rem 0.4rem;
  }

  .home-goplay-mini-cabinet__screen {
    aspect-ratio: 16 / 10;
  }

  /* Mobile footer CTA + benefit chips */
  .home-goplay-banner__mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.2rem;
  }

  .home-goplay-mobile-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .home-goplay-mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
  }

  .home-goplay-mobile-chip i {
    color: #f5c451;
    font-size: 0.7rem;
  }

  .home-goplay-cta-btn--mobile {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .home-goplay-mini-cabinet {
    width: 190px;
    flex: 0 0 190px;
  }

  .home-goplay-title {
    font-size: 1.75rem;
  }
}

.home-goplay-cta-btn--webview {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}

.home-goplay-menu-promo--webview .home-goplay-menu-play {
  font-size: 0.58rem;
  padding: 0.35rem 0.5rem;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: normal;
  text-align: center;
  max-width: 5.5rem;
  line-height: 1.15;
}
