/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Body: full black background ===== */
html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* ===== Phone wrapper: fixed 390×844 centered ===== */
.phone-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: #1a0000;
}

/* ===== Background layer ===== */
.bg-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-area .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ===== Logo ===== */
.logo-area {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.logo-area .logo {
  width: 120px;
  height: auto;
}

/* ===== Coin overlay (sway left-right) ===== */
.coin-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 5;
  pointer-events: none;
}

.coin-area .coin {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: coinSway 1.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes coinSway {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(12px, 0, 0); }
  50%  { transform: translate3d(0, 0, 0); }
  75%  { transform: translate3d(-12px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ===== Content text (subtle scale pulse) ===== */
.content-area {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  z-index: 8;
  text-align: center;
}

.content-area .content {
  width: 100%;
  height: auto;
  animation: contentPulse 1.8s ease-in-out infinite;
}

@keyframes contentPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ===== CTA Button (scale pulse) ===== */
.btn-area {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.cta-link {
  display: inline-block;
  text-decoration: none;
}

.cta-btn {
  width: 260px;
  height: auto;
  animation: btnPulse 0.9s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(255, 180, 0, 0.6));
  cursor: pointer;
  transition: filter 0.2s;
}

.cta-btn:hover {
  filter: drop-shadow(0 4px 30px rgba(255, 200, 0, 0.9));
}

@keyframes btnPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ===== Mobile breakpoint: on actual small screens, fill the screen ===== */
@media (max-width: 430px) {
  .phone-wrapper {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
  }
}
