/* ==========================================================================
   IMFORU369 — PREMIUM HOMEPAGE UI/UX REDESIGN DESIGN SYSTEM
   File: assets/css/homepage-redesign.css
   Scope: STRICTLY SCOPED TO HOMEPAGE (index.php)
   Theme: Premium Futuristic Gaming Experience (Obsidian Navy, Cyber Cyan, Gold, Emerald, Purple)
   ========================================================================== */

:root {
  /* Brand Palette */
  --hp-bg-base: #060912;
  --hp-bg-surface: #0a0f1d;
  --hp-bg-card: rgba(15, 23, 42, 0.82);
  --hp-bg-card-hover: rgba(22, 34, 60, 0.92);
  --hp-bg-glass: rgba(12, 19, 35, 0.72);
  
  /* Accents */
  --hp-cyan: #00f0ff;
  --hp-cyan-glow: rgba(0, 240, 255, 0.35);
  --hp-cyan-border: rgba(0, 240, 255, 0.22);
  --hp-blue: #0072ff;
  --hp-royal: #2563eb;
  --hp-gold: #ffb800;
  --hp-gold-glow: rgba(255, 184, 0, 0.35);
  --hp-emerald: #00ff9d;
  --hp-emerald-glow: rgba(0, 255, 157, 0.35);
  --hp-purple: #a855f7;
  --hp-purple-glow: rgba(168, 85, 247, 0.35);
  --hp-rose: #f43f5e;

  /* Typography Colors */
  --hp-text-white: #ffffff;
  --hp-text-secondary: #cbd5e1;
  --hp-text-muted: #94a3b8;
  --hp-text-dim: #64748b;

  /* Borders & Shadows */
  --hp-border-subtle: rgba(255, 255, 255, 0.08);
  --hp-border-cyan: rgba(0, 240, 255, 0.22);
  --hp-border-glow: 0 0 16px rgba(0, 240, 255, 0.18);
  --hp-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
  --hp-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);

  /* Radius */
  --hp-radius-sm: 8px;
  --hp-radius-md: 14px;
  --hp-radius-lg: 18px;
  --hp-radius-xl: 24px;
  --hp-radius-full: 9999px;

  /* Transitions */
  --hp-trans: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --hp-trans-bounce: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   HOMEPAGE SHELL & CONTAINER STRATEGY
   ========================================================================== */
body.homepage-lobby {
  background-color: var(--hp-bg-base) !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(0, 255, 157, 0.05) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
  color: var(--hp-text-secondary) !important;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 100vh;
  overflow-x: hidden;
}

.home-main-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-main-container {
    max-width: 780px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .home-main-container {
    max-width: 1140px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================================
   HEADER REFINEMENT (HOMEPAGE SCOPED)
   ========================================================================== */
.platform-header.home-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 9, 18, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 240, 255, 0.12) !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-header .platform-header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
}

@media (min-width: 768px) {
  .home-header .platform-header-inner {
    max-width: 780px;
    padding: 0 6px;
  }
}

@media (min-width: 1024px) {
  .home-header .platform-header-inner {
    max-width: 1140px;
    padding: 0 10px;
  }
}

.home-header .brand-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
}

.home-header .brand-logo-box {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 114, 255, 0.2)) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-header .brand-wrapper:hover .brand-logo-box {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.home-header .brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-header .brand-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.home-header .brand-title {
  font-family: 'Exo 2', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.home-header .brand-tagline {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  background: linear-gradient(90deg, #00f0ff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2 !important;
}

.home-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-shrink: 0 !important;
}

/* Header Action Buttons */
.home-header .hp-header-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 11px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: var(--hp-radius-full) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--hp-trans) !important;
  white-space: nowrap !important;
}

.home-header .hp-btn-vip {
  background: linear-gradient(135deg, #ffc700 0%, #d97706 100%) !important;
  color: #07090e !important;
  box-shadow: 0 3px 12px rgba(255, 184, 0, 0.35) !important;
}

.home-header .hp-btn-vip:hover {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 18px rgba(255, 184, 0, 0.55) !important;
  transform: translateY(-1px) scale(1.02);
}

.home-header .hp-btn-login {
  background: rgba(0, 240, 255, 0.08) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #00f0ff !important;
}

.home-header .hp-btn-login:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: #00f0ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35) !important;
  transform: translateY(-1px);
}

.home-header .hp-btn-apk {
  background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%) !important;
  color: #07090e !important;
  box-shadow: 0 3px 12px rgba(0, 240, 255, 0.32) !important;
}

.home-header .hp-btn-apk:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.55) !important;
  transform: translateY(-1px) scale(1.02);
}

@media (max-width: 480px) {
  .home-header .brand-logo-box {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
  .home-header .brand-title {
    font-size: 0.98rem !important;
  }
  .home-header .brand-tagline {
    font-size: 0.58rem !important;
  }
  .home-header .header-actions {
    gap: 6px !important;
  }
  .home-header .hp-header-btn {
    padding: 0 9px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }
}

@media (max-width: 350px) {
  .home-header .brand-tagline {
    display: none !important;
  }
  .home-header .brand-title {
    font-size: 0.92rem !important;
  }
  .home-header .hp-header-btn {
    padding: 0 7px !important;
    font-size: 0.68rem !important;
  }
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.08);
  border: 1px solid var(--hp-cyan-border);
  margin-top: 14px;
  background: #080c16;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  background: #070a12;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 1024px) {
  .hero-slide img {
    max-height: 520px;
  }
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--hp-radius-full);
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--hp-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--hp-trans);
}

.hero-prev:hover, .hero-next:hover {
  background: var(--hp-cyan);
  color: #07090e;
  box-shadow: 0 0 16px var(--hp-cyan);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

@media (max-width: 480px) {
  .hero-prev, .hero-next {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 10;
  padding: 4px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--hp-radius-full);
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: var(--hp-trans);
}

.hero-dot.active {
  width: 24px;
  height: 8px;
  background: var(--hp-cyan);
  box-shadow: 0 0 10px var(--hp-cyan);
}

/* ==========================================================================
   LIVE ANNOUNCEMENT TICKER
   ========================================================================== */
.announcement-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(14, 22, 40, 0.92) 0%, rgba(8, 14, 26, 0.96) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 12px;
  padding: 7px 12px;
  margin-top: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--hp-radius-full);
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid rgba(0, 255, 157, 0.45);
  color: var(--hp-emerald);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-emerald);
  box-shadow: 0 0 8px var(--hp-emerald);
  animation: hpPulseDot 1.6s infinite ease-in-out;
}

@keyframes hpPulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--hp-emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.ticker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
}

.ticker-hl {
  color: var(--hp-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   PLAYER HUD / GUEST WELCOME CARD
   ========================================================================== */
.player-hud-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 25, 46, 0.88) 0%, rgba(9, 14, 28, 0.94) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--hp-radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hud-player-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hud-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 114, 255, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--hp-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hud-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hud-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hud-stat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--hp-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: var(--hp-radius-full);
  padding: 4px 6px 4px 12px;
  flex-shrink: 0;
}

.hud-wallet-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hud-wallet-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--hp-text-muted);
  line-height: 1;
}

.hud-wallet-balance {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hp-emerald);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.hud-curr {
  font-size: 0.85rem;
}

.hud-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
  color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.4);
  transition: var(--hp-trans);
}

.hud-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 14px rgba(0, 240, 255, 0.6);
  color: #070a12;
}

/* Guest Welcome Card */
.guest-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 25, 46, 0.88) 0%, rgba(9, 14, 28, 0.94) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--hp-radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.guest-welcome-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.guest-icon-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.35);
  color: var(--hp-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.guest-text-wrap {
  display: flex;
  flex-direction: column;
}

.guest-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.guest-desc {
  font-size: 0.76rem;
  color: var(--hp-text-muted);
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--hp-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--hp-trans);
}

.hp-btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--hp-radius-sm);
  background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
  color: #07090e;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 240, 255, 0.35);
  transition: var(--hp-trans);
}

.hp-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
  color: #07090e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.55);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.hgr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.hgr-section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.hgr-section-title i {
  color: var(--hp-cyan);
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.hgr-section-subtitle {
  font-size: 0.78rem;
  color: var(--hp-text-muted);
  margin: 2px 0 0 0;
}

.hgr-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hp-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--hp-radius-full);
  text-decoration: none;
  transition: var(--hp-trans);
}

.hgr-view-all:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--hp-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   PLAY GAMES GALLERY (HIGHEST PRIORITY SECTION)
   ========================================================================== */
.hgr-games-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 560px) {
  .hgr-games-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .hgr-games-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Master Game Card */
.hgr-game-card {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.88) 0%, rgba(10, 16, 30, 0.96) 100%);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.hgr-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.2);
}

.hgr-game-card.hgr-card-soon {
  border-color: rgba(168, 85, 247, 0.28);
  background: linear-gradient(180deg, rgba(24, 18, 44, 0.88) 0%, rgba(12, 10, 26, 0.96) 100%);
}

.hgr-game-card.hgr-card-soon:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(168, 85, 247, 0.25);
}

/* Card Artwork Box */
.hgr-art-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060912;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hgr-art-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.hgr-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hgr-game-card:hover .hgr-art-img {
  transform: scale(1.04);
}

/* Badge System */
.hgr-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--hp-radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hgr-badge-live {
  background: rgba(5, 24, 18, 0.88);
  border: 1px solid rgba(0, 255, 157, 0.5);
  color: var(--hp-emerald);
}

.hgr-badge-soon {
  background: rgba(26, 12, 42, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #e9d5ff;
}

.hgr-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: hpPulseDot 1.6s infinite ease-in-out;
}

/* Card Body */
.hgr-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.hgr-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hgr-card-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.hgr-game-card:hover .hgr-card-title {
  color: var(--hp-cyan);
}

.hgr-card-soon:hover .hgr-card-title {
  color: #d8b4fe;
}

.hgr-genre-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--hp-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.hgr-genre-soon {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
}

/* Entry / Tags */
.hgr-entry-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.hgr-entry-label {
  color: var(--hp-text-muted);
  font-weight: 600;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hgr-entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hgr-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--hp-radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--hp-cyan);
  transition: var(--hp-trans);
}

a.hgr-chip:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--hp-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.hgr-chip-static {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.hgr-chip-soon {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.28);
  color: #d8b4fe;
}

/* Card Action Area & Surgical Alignment */
.hgr-card-action {
  margin-top: auto;
  padding-top: 4px;
}

.hgr-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 800;
  border-radius: var(--hp-radius-md);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--hp-trans);
}

.hgr-btn:focus-visible {
  outline: 2px solid var(--hp-cyan);
  outline-offset: 3px;
}

.hgr-btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
  color: #07090e;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
}

.hgr-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.55);
  color: #07090e;
  transform: translateY(-2px);
}

.hgr-btn-soon {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

.hgr-btn-soon:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.7);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

/* Featured 5th Card (Coming Soon Showcase) */
@media (min-width: 560px) {
  .hgr-game-card.hgr-card-featured-soon {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .hgr-game-card.hgr-card-featured-soon {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
  
  .hgr-game-card.hgr-card-featured-soon .hgr-art-box {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .hgr-game-card.hgr-card-featured-soon .hgr-card-body {
    padding: 22px;
    justify-content: center;
  }
}

/* ==========================================================================
   HOW IT WORKS SECTION (REBUILT CLEAN DEDICATED SECTION)
   ========================================================================== */
.hgr-how-it-works-section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.hgr-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .hgr-steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.hgr-step-card {
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--hp-radius-md);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--hp-trans);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hgr-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 240, 255, 0.12);
}

.hgr-step-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--hp-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--hp-radius-sm);
  padding: 1px 6px;
}

.hgr-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(0, 114, 255, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--hp-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-top: 14px;
  margin-bottom: 10px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  transition: var(--hp-trans);
}

.hgr-step-card:hover .hgr-step-icon {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.hgr-step-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.hgr-step-desc {
  font-size: 0.74rem;
  color: var(--hp-text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ==========================================================================
   VIDEO TUTORIALS SECTION
   ========================================================================== */
.hgr-tutorials-section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.hgr-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hgr-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.hgr-video-card {
  background: linear-gradient(180deg, rgba(18, 26, 44, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: var(--hp-trans);
}

.hgr-video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.15);
}

.hgr-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.hgr-video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.hgr-video-meta {
  padding: 12px 14px;
}

.hgr-video-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hp-rose);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 2px 7px;
  border-radius: var(--hp-radius-full);
  margin-bottom: 4px;
}

.hgr-video-caption {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* ==========================================================================
   TRUST / SECURITY / SUPPORT PANEL
   ========================================================================== */
.hgr-trust-section {
  margin-top: 36px;
  margin-bottom: 32px;
}

.hgr-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .hgr-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.hgr-trust-card {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.82) 0%, rgba(9, 13, 24, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--hp-radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--hp-trans);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hgr-trust-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hgr-trust-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-icon-cyan {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--hp-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.trust-icon-emerald {
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.3);
  color: var(--hp-emerald);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.15);
}

.trust-icon-purple {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--hp-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.hgr-trust-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hgr-trust-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 2px;
}

.hgr-trust-desc {
  font-size: 0.74rem;
  color: var(--hp-text-muted);
  line-height: 1.35;
}

/* Bottom dock clearance spacer */
.dock-clearance-spacer {
  height: 60px;
  width: 100%;
  display: block;
  clear: both;
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
