* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #8fd3ff;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#homeBtn {
  --p: 0;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  padding: 11px;
  color: #ffffffcc;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.18) 58%, transparent 60%),
    conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, 0.25) 0);
  opacity: 0.6;
  z-index: 5;
}

#homeBtn svg {
  width: 100%;
  height: 100%;
}

#start {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

#start.hidden {
  display: none;
}

#playBtn {
  width: min(40vw, 40vh, 220px);
  height: min(40vw, 40vh, 220px);
  border-radius: 50%;
  border: 6px solid #fff;
  background: radial-gradient(circle at 35% 30%, #ffd6ec, #ff7eb6 70%);
  box-shadow: 0 10px 30px rgba(255, 90, 160, 0.45);
  animation: pulse 1.6s ease-in-out infinite;
  cursor: pointer;
}

#playBtn svg {
  width: 100%;
  height: 100%;
}

.hint {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

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