body { background: var(--mint); font-size: 12px; padding-bottom: 32px; }
.hero {
  background: var(--pink); border-bottom: var(--px) solid var(--black);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-kitty { width: 48px; height: 48px; object-fit: contain; }
.hero .sticker-emoji { font-size: 36px; }
.hero h1 { font-size: 14px; margin: 0; color: var(--white); text-shadow: 3px 3px 0 var(--black); line-height: 1.5; }
main { padding: 20px 16px; max-width: 480px; margin: 0 auto; }
.panel { background: var(--cream); padding: 16px; }
label, .label { display: block; font-size: 10px; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; /* >=16px, иначе iOS зумит поле */
  padding: 10px; border: var(--px) solid var(--black); border-radius: 0;
  background: var(--white); -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--pink); }
textarea { resize: none; }
.counter { text-align: right; font-size: 9px; color: #666; margin-top: 4px; }
.stickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* minmax(0,1fr) + min-width:0 — иначе Safari растягивает колонки под 128px картинку и сетка вылезает за панель */
.sticker {
  min-width: 0; width: 100%; aspect-ratio: 1 / 1; background: var(--white); border: var(--px) solid var(--black);
  padding: 6px; margin: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font: inherit; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.sticker img { display: block; width: 100%; height: auto; max-width: 100%; }
.sticker .sticker-emoji { font-size: 28px; }
.sticker.selected { background: var(--yellow); box-shadow: inset 0 0 0 4px var(--pink-dark); }
.error { color: #c0392b; font-size: 10px; margin: 12px 0 0; line-height: 1.5; }
.done { text-align: center; font-size: 12px; line-height: 1.8; }
.done-cake { width: 96px; height: 96px; object-fit: contain; animation: bounce .6s steps(2) infinite alternate; }
.done .sticker-emoji { font-size: 64px; animation: bounce .6s steps(2) infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.hint { text-align: center; font-size: 8px; color: #456; margin-top: 18px; }

/* фото */
.photo-row { display: flex; gap: 10px; align-items: flex-start; }
.photo-btn { margin-top: 0; min-height: 52px; font-size: 11px; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.photo-preview { position: relative; flex: none; }
#photo-canvas { display: block; width: 96px; height: auto; border: var(--px) solid var(--black); image-rendering: pixelated; background: var(--white); }
.photo-clear { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; font: inherit; font-size: 12px; background: var(--pink); border: 3px solid var(--black); color: var(--white); cursor: pointer; padding: 0; }
/* эффект на стене: три кнопки как стикеры, выбор один или ничего */
.reaction-row { display: flex; gap: 10px; }
.reaction { flex: 1; aspect-ratio: 1; min-width: 0; background: var(--white); border: var(--px) solid var(--black); padding: 10px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.reaction img { width: 100%; height: auto; display: block; }
.reaction.selected { background: var(--yellow); box-shadow: inset 0 0 0 4px var(--pink-dark); }
.hint-inline { font-size: 8px; color: #456; margin: 6px 0 0; }
