* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "TH Sarabun New", sans-serif;
  color: #111;
  background: radial-gradient(1200px 800px at 50% -200px, #f7f7fb 0%, #e9ecf5 60%, #e2e6f2 100%);
}

.app {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.title {
  margin: 8px 0 4px;
  font-size: 28px;
  letter-spacing: 0.2px;
}

/* Device body (red circle) */
.device {
  position: relative;
  width: min(94vw, 380px);
  height: min(94vw, 380px);
  border-radius: 50%;
  background: radial-gradient(120% 100% at 30% 30%, #ff6b6b 0%, #e0272e 60%, #c81820 100%);
  box-shadow: inset 0 6px 14px rgba(255,255,255,.35), inset 0 -10px 20px rgba(0,0,0,.2), 0 18px 40px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  margin-top: 8px;
}

/* Small circular window */
.device .window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #f2f2f2;
  box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 2px 6px rgba(0,0,0,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.device .window img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* White plunger button */
.plunger {
  position: absolute;
  top: -22px;
  width: 68px;
  height: 68px;
  border-radius: 50% 50% 18px 18px;
  border: none;
  background: linear-gradient(#ffffff, #eaeaea);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  cursor: pointer;
}
.plunger:active { transform: translateY(2px) scale(.98); }
.plunger:disabled { opacity: .7; cursor: default; }

/* Device shake animation when pressed */
.device.press {
  animation: jiggle .35s ease-in-out 1;
}
@keyframes jiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
  100% { transform: rotate(0deg); }
}

/* Mobile tuning */
@media (max-width: 480px) {
  .device {
    width: 96vw;
    height: 96vw;
  }
  .device .window {
    width: 62%;
    height: 62%;
    border-width: 6px;
  }
}
