/* ===================================================
   SC88 - Truy Tìm Kho Báu
   Build Template CSS
=================================================== */

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #000;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 100%;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
}

/* --- Splash Screen Custom --- */
#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #2c1a0b 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Đảm bảo nằm trên cùng */
}

.logo-container {
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
}

.logo-text {
    color: #ffcc00 !important; /* Màu vàng kim */
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
    display: block;
}

.progress-container {
    width: 70%;
    max-width: 450px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.8);
    transition: width 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Ẩn mọi thẻ img lạ (logo Cocos) nếu Engine cố tình chèn vào */
#splash img {
    display: none !important;
}
