*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html,body{
  margin:0;
  height:100%;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
  background:radial-gradient(circle at top,#111,#000);
  color:#fff;
}

body{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* FLASH */
#flash{
  position:fixed;
  inset:0;
  background:white;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.5s ease;
  z-index:999;
}
#flash.active{ opacity:1; }

/* APP */
.app{
  width:100%;
  max-width:420px;
  padding:32px 24px;
  text-align:center;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px);
  border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}

/* TITLE */
.title{
  margin:0 0 24px;
  font-size:clamp(22px,5vw,28px);
  letter-spacing:0.5px;
}

/* STAGE */
.stage{
  width:100%;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;
}

.stage img{
  width:65%;
  max-width:220px;
  transform-origin:center;
}

/* BOMB ANIMATION */
@keyframes swing{
  from{ transform:rotate(-6deg); }
  to{ transform:rotate(6deg); }
}
.swing{
  animation:swing 0.9s ease-in-out infinite alternate;
}

.explosion{
  transition:transform 0.5s ease, opacity 0.5s ease;
  transform:scale(1);
  opacity:1;
}

/* BUTTON */
.controls{
  display:flex;
  justify-content:center;
}

.btn{
  width:100%;
  padding:16px;
  font-size:18px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active{
  transform:scale(0.97);
}

.primary{
  background:linear-gradient(135deg,#ff3d00,#ff9100);
  color:#fff;
  box-shadow:0 10px 30px rgba(255,80,0,0.45);
}

/* RESPONSIVE */
@media (max-width:420px){
  .app{
    border-radius:0;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
}
