/* Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: #fff;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
}

/* Backgrounds */
.bg {
  background: url("chart-bg.gif") no-repeat center center/cover;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  filter: saturate(110%) contrast(105%);
}
@media (max-width: 768px) {
  .bg { background: url("chart-bg-mobile.gif") no-repeat center center/cover; }
}

.overlay {
  background: rgba(0, 0, 0, 0.55);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 80px;
}

/* Logo & Typography */
.logo {
  margin-top: 40px;
  max-width: 180px;
  width: 35vw;
  max-height: 120px;
  object-fit: contain;
  animation: fadeIn 2s ease-in;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-top: 20px;
  animation: bounce 2s infinite;
}

p {
  font-size: clamp(16px, 2.5vw, 20px);
  margin: 15px auto;
  color: #ECE3DC; /* Satin Linen */
  max-width: 600px;
}

/* Fun crane */
.crane {
  font-size: 64px;
  animation: swing 2s infinite alternate ease-in-out;
  display: inline-block;
  margin-top: 24px;
}

/* Button */
.button {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  background: #CEDBFE; /* Hawkes Blue */
  color: #410016;      /* Bulgarian Rose */
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.button:hover {
  background: #ECE3DC; /* Satin Linen */
  transform: translateY(-2px) scale(1.04);
}

/* Bottom mini-candles animation */
.candles {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-bottom: 18px;
}
.candle {
  width: 12px;
  height: 50px;
  animation: flicker .6s infinite alternate;
}
.candle.red { background: #410016; }
.candle.green { background: #B3BA56; }

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #CEDBFE;
  font-size: 1.1em;
  font-weight: 700;
}
.spinner {
  border: 6px solid #333;
  border-top: 6px solid #B3BA56;
  border-radius: 50%;
  width: 54px; height: 54px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
body.loaded #loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

/* Animations */
@keyframes flicker {
  from { transform: scaleY(.8); opacity: .7; }
  to   { transform: scaleY(1.2); opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes swing {
  0%   { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
