/* --- FULLSCREEN BACKGROUND VIDEO --- */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* --- BASE SETUP & BACKGROUND --- */
html, body {
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: transparent !important;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* GLOBAL LINK COLOR OVERRIDES */
a, a:visited, a:hover, a:active {
  color: #ffffff;
  text-decoration: none;
}

/* --- FLOATING TOP SOCIAL ICONS --- */
.top-social-float {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 14px;
  position: relative;
  z-index: 20;
}

.top-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #43c6cb;
  text-decoration: none;
  transition: all 0.25s ease;
  opacity: 0.9;
}

.top-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.top-social-icon:hover {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(67, 198, 203, 0.9));
}

/* --- TOP HEADER & LOGO --- */
.top-header-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 15px 0 10px 0;
  position: relative;
  z-index: 10;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  position: relative;
}

@keyframes homeLogoPulse {
  0% { 
    transform: scale(0.97); 
    filter: drop-shadow(0 0 18px rgba(100, 220, 230, 0.5)); 
  }
  50% { 
    transform: scale(1.03); 
    filter: drop-shadow(0 0 30px rgba(100, 220, 230, 0.8)); 
  }
  100% { 
    transform: scale(0.97); 
    filter: drop-shadow(0 0 18px rgba(100, 220, 230, 0.5)); 
  }
}

.logo {
  width: 240px !important;
  height: auto !important;
  aspect-ratio: auto;
  display: block;
  opacity: 1 !important;
  transform-origin: center center;
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  animation: homeLogoPulse 3s infinite ease-in-out;
}

/* --- BACK NAVIGATION --- */
.back-nav {
    text-align: center;
    margin: 12px auto;
    max-width: 900px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.back-btn {
    display: inline-block;
    background: rgba(20, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(30, 80, 110, 0.8);
    border-color: rgba(100, 220, 230, 0.8);
    transform: translateY(-2px);
}

/* --- GAMES PAGE CONTAINER & CARD STYLES --- */
.games-container {
    max-width: 900px;
    margin: 12px auto 30px auto;
    padding: 0 15px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
}

.game-card {
    background: rgba(20, 30, 60, 0.45);
    backdrop-filter: blur(12px);         
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 35px 40px;
    color: #ffffff;
    text-align: left;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2), 
        0 8px 25px rgba(0, 0, 0, 0.5);         
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.game-card:hover {
    border-color: rgba(100, 220, 230, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(80, 200, 220, 0.3);
}

.game-status {
    font-size: 0.85rem;
    color: rgba(100, 220, 230, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.game-card h1 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.game-card h3 {
    margin: 25px 0 10px 0;
    font-size: 1.3rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.game-card p {
    margin: 0 0 15px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Embedded Video Container for the game preview */
.game-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

.game-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li span {
    color: #64dce6;
    font-weight: bold;
}

/* Play / Action Button */
.action-btn-container {
    margin-top: 25px;
    text-align: left;
}

.play-btn {
    display: inline-block;
    background: rgba(40, 140, 160, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 220, 230, 0.6);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    background: rgba(60, 180, 200, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(100, 220, 230, 0.5);
}

/* --- FOOTER LOGOS --- */
.bottom-logos-container {
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 4px;
}

.bottom-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* --- MOBILE RESPONSIVE MEDIA QUERY --- */
@media only screen and (max-width: 767px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
    .game-card {
        padding: 20px 20px;
    }
    .games-container, .back-nav {
        padding: 0 12px;
    }
}