*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe6b5, #ffd1ec 50%, #fff4c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.app-shell {
  background: #fffaf2;
  border-radius: 32px;
  padding: 24px 28px;
  box-shadow: 0 18px 40px rgba(255, 137, 102, 0.25);
  max-width: 1080px;
  width: 100%;
}

.app-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.app-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #ff7c5c;
  text-shadow: 0 2px 0 rgba(255, 167, 133, 0.6);
}

.tagline {
  font-size: 0.9rem;
  color: #f19ab2;
}

.camera-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.viewfinder-shell {
  background: linear-gradient(145deg, #ffe6b5, #ffd1ec);
  border-radius: 24px;
  padding: 18px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viewfinder-frame {
  position: relative;
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.viewfinder-frame video,
.viewfinder-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewfinder-frame img {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.viewfinder-frame img.visible {
  opacity: 1;
}

.viewfinder-overlay .corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.viewfinder-overlay .corner.tl {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}
.viewfinder-overlay .corner.tr {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}
.viewfinder-overlay .corner.bl {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}
.viewfinder-overlay .corner.br {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.viewfinder-frame img.visible + .viewfinder-overlay + .btn-delete {
  display: block;
}

.btn-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn-delete:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

.btn-delete svg {
  width: 100%;
  height: 100%;
}

.polaroid-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.polaroid-preview {
  background: #fffef7;
  border-radius: 12px;
  padding: 8px 8px 14px;
  width: 140px;
  box-shadow: 0 8px 16px rgba(156, 81, 40, 0.18);
}

.polaroid-preview img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}

.polaroid-label {
  margin-top: 6px;
  font-size: 0.75rem;
  text-align: center;
  color: #9b5a3d;
}

.status-pill {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  color: #6b7280;
}

.control-panel {
  background: linear-gradient(160deg, #ffe0f3, #ffcba3);
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.bunny-mascot {
  position: relative;
  width: 90px;
  height: 90px;
}

.bunny-face {
  position: absolute;
  inset: 20px 8px 0;
  background: #66c6ff;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0, 83, 151, 0.25);
}

.bunny-ear {
  position: absolute;
  width: 26px;
  height: 50px;
  background: #ff9ad7;
  border-radius: 999px;
  top: 0;
}

.bunny-ear.left {
  left: 4px;
  transform: rotate(-8deg);
  background: linear-gradient(180deg, #ffd1f0, #ff9ad7);
}

.bunny-ear.right {
  right: 4px;
  transform: rotate(8deg);
  background: linear-gradient(180deg, #ffd1f0, #ff9ad7);
}

.bunny-eye {
  position: absolute;
  top: 26px;
  width: 9px;
  height: 9px;
  background: #1f2933;
  border-radius: 50%;
}

.bunny-eye.left {
  left: 22px;
}

.bunny-eye.right {
  right: 22px;
}

.bunny-smile {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 26px;
  height: 16px;
  border-bottom: 3px solid #1f2933;
  border-radius: 0 0 26px 26px;
  transform: translateX(-50%);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  width: 100%;
  max-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.06s ease-out, box-shadow 0.06s ease-out,
    filter 0.12s ease-out, opacity 0.15s ease-out;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.btn:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  filter: brightness(0.96);
}

.btn-shutter {
  background: radial-gradient(circle at 20% 20%, #fff5d0, #ff7c5c);
}

.btn-ai {
  background: radial-gradient(circle at 20% 20%, #ffe4ff, #c45bff);
}

.btn-label {
  letter-spacing: 0.02em;
}

.hint-text {
  font-size: 0.85rem;
  text-align: center;
  color: #6b21a8;
  margin-top: 4px;
}

@media (max-width: 780px) {
  .app-shell {
    border-radius: 0;
    max-width: 100%;
    min-height: 100vh;
  }

  .camera-layout {
    grid-template-columns: 1fr;
  }
}


