* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #1c1b1a;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  user-select: none;
  overflow: hidden;
}

/* Safe area (notch) */
body {
  padding: env(safe-area-inset-top)
           env(safe-area-inset-right)
           env(safe-area-inset-bottom)
           env(safe-area-inset-left);
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  background: radial-gradient(circle at center, #2a2928, #141312);
  align-items: center;
  justify-content: center;
  position: relative;
}

.frame {
  width: 88%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  background: #000;
  position: relative;
}

/* Photo */
#photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 1.6s ease;
}

/* Text */
#text {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  line-height: 1.3;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 1.6s ease;
}

/* Audio button */
#audio-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
}
