/**
 * Elite666 - Home Page Stylesheet (PRD v1.2)
 */

/* Home Top Banner Carousel */
.home-banner-wrapper {
  position: relative;
  margin: 8px 14px 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  aspect-ratio: 2.35 / 1;
  background: transparent;
}

.banner-slide {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dot.active {
  background: #FFFFFF;
  width: 16px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Notice Strip with Speaker Icon & Gold "More" Pill */
.notice-strip {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--radius-full);
  margin: 0 14px 12px;
  padding: 5px 12px;
  font-size: 12px;
  border: 1px solid var(--line);
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.notice-speaker {
  font-size: 15px;
  color: var(--gold-3);
}

.notice-scroller {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.notice-more-pill {
  background: var(--bg-gold-light);
  border: 1px solid var(--gold-2);
  color: var(--gold-3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* Sleek Luxury Daily Winners Ticker Strip */
.winners-ticker-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 5px 8px;
  margin: 0 14px 10px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  height: 52px;
}

.winners-ticker-badge {
  background: linear-gradient(135deg, var(--bg-gold-light) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 68px;
  cursor: pointer;
}

.badge-title {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 900;
  color: #8C6D1F;
  letter-spacing: 0.3px;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.live-text {
  font-size: 8px;
  font-weight: 800;
  color: #2E8B57;
  letter-spacing: 0.4px;
}

.live-dot-pulsing {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2E8B57;
  display: inline-block;
  box-shadow: 0 0 6px rgba(46, 139, 87, 0.6);
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 139, 87, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(46, 139, 87, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
}

.winners-ticker-track-wrap {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: center;
}

.winners-ticker-track-wrap::-webkit-scrollbar {
  display: none;
}

.winners-ticker-track {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.winner-mini-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.winner-mini-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-2);
  transform: translateY(-1px);
}

.winner-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.winner-mini-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.winner-mini-user {
  display: flex;
  align-items: center;
  gap: 4px;
}

.winner-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.winner-vip {
  font-size: 8px;
  font-weight: 900;
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #FFFFFF;
  padding: 0.5px 3px;
  border-radius: 3px;
  line-height: 1;
}

.winner-mini-sub {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.winner-mini-amount {
  font-size: 11px;
  font-weight: 900;
  color: #2E8B57;
  margin-left: 2px;
  white-space: nowrap;
}

/* Side-by-Side Luxury Graphic Promo Cards (Lucky Wheel & VIP Privileges) */
.promo-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 14px 10px;
}

.promo-card-banner {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  background: var(--bg-card);
  display: flex;
  border: 1px solid var(--line);
}

.promo-card-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(212, 175, 55, 0.2);
}

.promo-card-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 369;
  object-fit: cover;
  display: block;
}

/* Category Sections with 2-Column Game Tile Grid */
.category-section {
  padding: 6px 14px 14px;
}

.cat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cat-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-see-all {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-3);
  cursor: pointer;
}

/* 3-Column Compact Game Tile Grid (1 Row 3 Games) */
.game-grid-2col,
.game-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.game-tile-card {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-tile-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-2);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.22);
}

.game-tile-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-tile-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #FF416C, #FF4B2B);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.game-tile-info {
  padding: 5px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.game-tile-name {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.game-tile-provider {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ============ DESKTOP LAYOUT (PC) - 2026-12-03 ============ */
@media (min-width: 768px) {
  .home-banner-wrapper {
    margin: 12px 24px 14px;
    aspect-ratio: 3.2 / 1;
  }
  .notice-strip,
  .winners-ticker-wrap {
    margin-left: 24px;
    margin-right: 24px;
  }
  .promo-tiles-grid {
    margin: 0 24px 14px;
  }
  .category-section {
    padding: 6px 24px 18px;
  }
  .game-grid-2col,
  .game-grid-3col {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1100px) {
  .home-banner-wrapper {
    aspect-ratio: 3.8 / 1;
  }
  .game-grid-2col,
  .game-grid-3col {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
}