/* snaps-v1 — Silly Snaps styles: big touch targets for little fingers. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #14141f; color: #fff; user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: #14141f; }
#cam { position: fixed; left: -9999px; top: 0; width: 10px; height: 10px; opacity: 0; pointer-events: none; }

#topbar {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 12px;
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  background: rgba(0,0,0,.35); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none;
}

#hint {
  position: fixed; top: 22%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); border-radius: 28px; padding: 18px 34px;
  font-size: 26px; font-weight: 700; pointer-events: none;
  animation: bob 1.6s ease-in-out infinite;
}
#hint .big { font-size: 64px; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
#flash.go { opacity: .9; transition: opacity .05s; }

#controls {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: linear-gradient(transparent, rgba(0,0,0,.72) 34%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
#strip { display: flex; gap: 8px; max-width: 100vw; overflow-x: auto; padding: 2px 10px; min-height: 4px; scrollbar-width: none; }
#strip::-webkit-scrollbar { display: none; }
#strip img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; border: 3px solid #fff; flex: 0 0 auto; }

#cats { display: flex; gap: 10px; }
#cats .cat {
  font-size: 30px; width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#cats .cat.on { border-color: #ffd166; background: rgba(255,209,102,.3); transform: scale(1.12); }

#picker { display: flex; gap: 10px; max-width: 100vw; overflow-x: auto; padding: 2px 12px; scrollbar-width: none; }
#picker::-webkit-scrollbar { display: none; }
#picker .pick {
  font-size: 34px; width: 64px; height: 64px; border-radius: 20px; flex: 0 0 auto;
  border: 3px solid rgba(255,255,255,.3); background: rgba(255,255,255,.14); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#picker .pick.on { border-color: #ff5d8f; background: rgba(255,93,143,.35); transform: scale(1.1); }

#actionrow { display: flex; align-items: center; gap: 26px; }
#shutter {
  width: 92px; height: 92px; border-radius: 50%; cursor: pointer;
  border: 6px solid #fff;
  background: radial-gradient(circle at 35% 30%, #ff8fb3, #ff2f6d 70%);
  box-shadow: 0 4px 18px rgba(255,47,109,.55);
}
#shutter:active { transform: scale(.92); }
.round {
  width: 60px; height: 60px; border-radius: 50%; font-size: 28px; cursor: pointer;
  border: 3px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: #fff;
}
.round.small { width: 46px; height: 46px; font-size: 20px; opacity: .75; }
.round:active { transform: scale(.92); }

.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: linear-gradient(160deg, #2b2b4d, #14141f);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.overlay.hidden { display: none; }
.overlay p { font-size: 24px; font-weight: 700; text-align: center; padding: 0 30px; }
.overlay .big { font-size: 84px; }
#startBtn {
  font-size: 84px; width: 190px; height: 190px; border-radius: 50%; cursor: pointer;
  border: 8px solid #fff; background: radial-gradient(circle at 35% 30%, #ff8fb3, #ff2f6d 70%);
  box-shadow: 0 8px 40px rgba(255,47,109,.6); animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.spin { font-size: 84px; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#retryBtn, #closeParents {
  font-size: 22px; font-weight: 700; color: #fff; cursor: pointer;
  background: #ff2f6d; border: none; border-radius: 999px; padding: 14px 34px;
}
#parents .card {
  background: #fff; color: #222; border-radius: 24px; padding: 28px; margin: 0 24px; max-width: 460px;
  display: flex; flex-direction: column; gap: 14px;
}
#parents .card h2 { font-size: 26px; }
#parents .card p { font-size: 17px; line-height: 1.45; font-weight: 400; padding: 0; text-align: left; }
.hidden { display: none !important; }
