* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  overflow: hidden;
  background: #d9e7f5;
  font-family: system-ui, sans-serif;
}
.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.device {
  position: relative;
  width: min(100vw, calc(100dvh * 1440 / 3040), 430px);
  aspect-ratio: 1440 / 3040;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(16, 42, 86, .26);
}
#screenImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}
#animations {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.anim {
  position: absolute;
  overflow: visible;
}
.anim svg { width: 100% !important; height: 100% !important; }
.hit {
  position: absolute;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.hit:active { background: rgba(21, 112, 239, .12); }
#toast {
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  z-index: 4;
  transform: translate(-50%, 18px);
  opacity: 0;
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 42, 86, .92);
  font-size: 13px;
  transition: .2s ease;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) {
  .device { width: 100vw; max-height: 100dvh; box-shadow: none; }
}
