@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(fonts/BebasNeue-400.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url(fonts/Montserrat.woff2) format('woff2'); }

:root { --teal: #5E8088; --mist: #A6C4C6; --sage: #B1BA96; --moss: #88A093; --ink: #1d2b2e; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #eef3f3; }
body { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink); font-size: 17px; }
main { max-width: 520px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
header { background: var(--teal); color: #fff; margin: 0 -16px 14px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h1 { white-space: nowrap; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 34px; letter-spacing: .04em; margin: 0; }
.store { font-size: 12px; font-weight: 600; opacity: .9; text-align: right; }

.preview-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
#story { width: 56%; max-width: 270px; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--moss);
  box-shadow: 0 4px 18px rgba(0,0,0,.25); }

.step { margin-bottom: 14px; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid var(--teal); border-radius: 16px; background: #fff; color: var(--teal);
  font: 700 18px 'Montserrat', system-ui, sans-serif; cursor: pointer; text-align: center; }
.btn.big { min-height: 68px; font-size: 21px; }
.btn.primary { background: var(--teal); color: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.listening { background: #c4453b; border-color: #c4453b; color: #fff; }
.row { display: flex; gap: 12px; margin-top: 12px; }
.hint { margin: 0 0 8px; font-size: 14px; color: #4a5f63; }
.lbl, .field label { display: block; font-size: 13px; font-weight: 600; color: #4a5f63; margin: 10px 0 4px; }
textarea, input:not([type=file]) { width: 100%; padding: 12px; font: 600 18px 'Montserrat', system-ui, sans-serif;
  border: 2px solid var(--mist); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--teal); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field.wide { grid-column: 1 / -1; }
.field label { margin-top: 6px; }
.status { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; color: #2f5b4f; text-align: center; }
.status.err { color: #a73328; }
