* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: #222; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body { -webkit-text-size-adjust: 100%; }
a { color: #222; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; }
h2 { margin: 0; font-size: 16px; font-weight: 600; }
.screen { min-height: 100vh; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1 1 0; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: #666; font-size: 14px; line-height: 1.4; }
.small { font-size: 12px; }
.spacer { margin-top: auto; }

.scene { height: 240px; border: 1.5px dashed #999; background: #ececec; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; color: #555; }
.info { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.btn { min-height: 44px; padding: 0 14px; border: 1.5px solid #333; background: #fff; color: #222; font: inherit; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.btn:active { background: #ececec; }
.btn.on { background: #222; color: #fff; border-color: #222; }
.btn.solid { background: #222; color: #fff; border-color: #222; }
.btn.dash { border-style: dashed; border-color: #999; color: #444; }
.btn.big { min-height: 52px; font-size: 15px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.left { justify-content: flex-start; text-align: left; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { border: 1.5px solid #333; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card.taken { border-style: dashed; border-color: #999; background: #f3f3f3; color: #666; }
.card .t { font-size: 14px; line-height: 1.3; word-break: break-word; }
.card .btn { font-size: 13px; padding: 0 8px; }
.ph { height: 96px; background: #ececec; border: 1.5px dashed #999; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #555; object-fit: cover; width: 100%; }
.bar { height: 8px; background: #ddd; }
.bar i { display: block; height: 8px; background: #555; }
.badge { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #999; color: #555; font-size: 13px; padding: 0 6px; }

.box { border: 1.5px solid #333; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.box.dash { border-style: dashed; border-color: #999; }
.item { display: flex; align-items: center; gap: 12px; border: 1.5px solid #333; padding: 8px 8px 8px 12px; }
.item > .grow { flex: 1 1 0; min-width: 0; font-size: 14px; word-break: break-word; }
.list { display: flex; flex-direction: column; gap: 8px; }
.field { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid #333; background: #fff; color: #222; font: inherit; font-size: 14px; border-radius: 0; }
.area { padding: 10px 12px; min-height: 72px; resize: vertical; }
.prog { display: flex; gap: 12px; font-size: 14px; line-height: 1.4; }
.prog .time { flex: none; width: 64px; color: #666; }
.back { min-height: 44px; display: flex; align-items: center; color: #444; font-size: 14px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 16px; font-size: 14px; max-width: 90%; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.toast.show { opacity: 1; }

/* ===== Стиль: кислотный зелёный, розовый, чёрный (под коллаж) ===== */
@font-face { font-family: HeroOs; font-weight: 700; src: url(/static/fonts/oswald.woff2) format('woff2'); unicode-range: U+0400-04FF; font-display: swap; }
@font-face { font-family: HeroOs; font-weight: 700; src: url(/static/fonts/oswald-l.woff2) format('woff2'); unicode-range: U+0000-00FF; font-display: swap; }
@font-face { font-family: HeroMk; src: url(/static/fonts/marck.woff2) format('woff2'); unicode-range: U+0400-04FF; font-display: swap; }
@font-face { font-family: HeroMk; src: url(/static/fonts/marck-l.woff2) format('woff2'); unicode-range: U+0000-00FF; font-display: swap; }

:root { --g: #a8d634; --p: #ff28b4; --y: #ffee00; --ink: #111; }
html, body { background: var(--g); color: var(--ink); }
a { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero { position: relative; margin: -24px -24px 0; aspect-ratio: 3 / 5; background: #a8d634 url(/static/hero.jpg?v=11) center top / 100% 100% no-repeat; overflow: hidden; }
.hero-text { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text text { fill: var(--ink); stroke: #fff; paint-order: stroke fill; stroke-linejoin: round; stroke-linecap: round; }
.hero-title { font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; stroke-width: 12px; }
.hero-date { font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; stroke-width: 9px; }
.hero-addr { font-family: HeroMk, "Marck Script", cursive; stroke-width: 8px; }
.hero-star { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.info .place { font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.muted { color: #222; }
h1, h2 { font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }

.box, .card, .item { background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.box.dash { border-style: solid; border-color: var(--ink); }
.card.taken { background: #e9efd6; border: 2px dashed #555; box-shadow: none; color: #444; }
.field { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn { border: 2px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 600; }
.btn:active { background: var(--y); box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--p); }
.btn.on { background: var(--p); color: var(--ink); border-color: var(--ink); }
.btn.dash { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--y); }
.badge { border: 2px dashed #555; color: #222; background: #e9efd6; }
.bar { background: #fff; border: 2px solid var(--ink); height: 12px; }
.bar i { background: var(--p); height: 8px; }
.ph { background: #e9efd6; border: 2px dashed #555; }
.back { color: var(--ink); font-weight: 600; }
.toast { background: var(--ink); box-shadow: 4px 4px 0 var(--p); }
.prog .time { color: #444; }

/* ===== Рукописная типографика ===== */
body { font-family: HeroMk, "Marck Script", "Segoe Script", cursive; font-size: 17px; line-height: 1.35; }
.field, textarea, input { font-family: HeroMk, "Marck Script", cursive; font-size: 17px; }
.field::placeholder { color: #555; }
.muted { font-size: 16px; }
.muted.small, .small { font-size: 14px; }
.info { font-size: 18px; }
.card .t, .item > .grow, .prog { font-size: 17px; }
.prog .time { width: 72px; font-family: HeroOs, Oswald, sans-serif; font-weight: 700; font-size: 16px; }
.btn, .btn.big, .card .btn { font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.card .btn { font-size: 15px; }
.badge { font-family: HeroMk, "Marck Script", cursive; font-size: 15px; }
h1, h2, .place { filter: url(#wob); }
h1 { font-size: 36px; line-height: 1.05; }
h2 { font-size: 24px; line-height: 1.1; }
.info .place { font-size: 28px; line-height: 1.05; }
.wd { display: inline-block; white-space: nowrap; }
.lt { display: inline-block; }
.toast { font-family: HeroMk, "Marck Script", cursive; font-size: 16px; }
.wd { margin-right: .3em; }
.wd:last-child { margin-right: 0; }

/* ===== Читаемость: на белом всё ровное ===== */
body, .field, textarea, input, .badge, .toast { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-size: 15px; line-height: 1.4; }
.field, textarea, input { font-size: 15px; }
.field::placeholder { color: #666; }
.muted { font-size: 14px; }
.small, .muted.small { font-size: 12px; }
.info { font-size: 16px; }
.card .t, .item > .grow, .prog { font-size: 15px; }
.prog .time { font-size: 15px; width: 64px; }
.badge { font-size: 13px; }
.toast { font-size: 14px; }
.box h2, .card h2, .item h2 { filter: none; font-size: 20px; }
.btn, .btn.big { font-size: 15px; letter-spacing: .02em; }
.card .btn { font-size: 14px; }
.info .muted { color: #111; }

/* ===== Единый стиль: везде тот же Oswald, заголовки рукописные ===== */
@font-face { font-family: HeroOs; font-weight: 400; src: url(/static/fonts/oswald-400.woff2) format('woff2'); unicode-range: U+0400-04FF; font-display: swap; }
@font-face { font-family: HeroOs; font-weight: 400; src: url(/static/fonts/oswald-400-l.woff2) format('woff2'); unicode-range: U+0000-00FF; font-display: swap; }
body, .field, textarea, input, .badge, .toast { font-family: HeroOs, Oswald, "Arial Narrow", sans-serif; font-weight: 400; }
body { font-size: 17px; line-height: 1.35; letter-spacing: .01em; }
.field, textarea, input { font-size: 17px; }
.muted { font-size: 16px; }
.small, .muted.small { font-size: 14px; }
.info { font-size: 18px; }
.card .t, .item > .grow, .prog { font-size: 17px; }
.prog .time { font-size: 17px; font-weight: 700; }
.badge { font-size: 15px; }
.toast { font-size: 16px; }
.box h2, .card h2, .item h2 { filter: url(#wob); font-size: 24px; }
.btn, .btn.big { font-size: 17px; }
.card .btn { font-size: 15px; }
.row > .btn { font-size: 15px; padding: 0 6px; white-space: nowrap; }
.hero-fb { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 16px; text-align: center; background: linear-gradient(transparent, rgba(255,255,255,.92) 30%); font-family: HeroOs, Oswald, Impact, sans-serif; font-weight: 700; color: #111; }
.hero-fb div:first-child { font-size: 34px; text-transform: uppercase; }
.hero-fb div + div { font-size: 18px; }

/* фото подарков: квадрат вместо узкой полосы */
.ph { height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-style: solid; }
