:root {
  --wood: #b9793e;
  --wood-d: #8c5626;
  --cream: #fff8e7;
  --ink: #3b2a17;
  --muted: #7d6a52;
  --sun: #ffc93c;
  --ok: #3f9b3a;
  --err: #c8452f;
  --gem: #3b8fe0;
}
/* Теми оформлення: стіни, оздоблення, небо за вікном, підлога */
.theme-classic { --wall: #f6d9a8; --wall2: #f0cb90; --trim: #a9683a; --sky: #aee3ff; --sunc: #ffd95a; --hill: #8ccf5c; --floor: #4f8f86; --bulb: #ffe27a; }
.theme-paris { --wall: #f9d3d9; --wall2: #f3bcc6; --trim: #8a4f62; --sky: #cfe9ff; --sunc: #fff3b0; --hill: #b7d9a0; --floor: #8a5a6a; --bulb: #ffe27a; }
.theme-mint { --wall: #d3f1e2; --wall2: #b9e5cf; --trim: #3f8f78; --sky: #bfe9ff; --sunc: #ffd95a; --hill: #7cc98d; --floor: #3f7f6f; --bulb: #fff3b0; }
.theme-night { --wall: #40457a; --wall2: #363b6b; --trim: #23264a; --sky: #101433; --sunc: #f4f1d8; --hill: #1c2a45; --floor: #23264a; --bulb: #ffd36b; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--floor) url(/img/tiles.svg) 0 0 / 72px;
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  transition: background-color .4s;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
img.ic { width: 1.25em; height: 1.25em; vertical-align: -0.25em; }
img.ic.lg { width: 40px; height: 40px; flex: none; }
img.ic.xl { width: 56px; height: 56px; }
img.ic.xxl { width: 72px; height: 72px; }
img.huge { width: 84px; height: 84px; }
img.eq { width: 56px; height: 56px; flex: none; }
a { color: #2f6f1f; }
h1 { font-size: 22px; margin: 0; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
h2 { margin: 0 0 12px; font-size: 22px; }
h2.sec { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); font-size: 18px; margin: 18px 0 10px; }
small { display: block; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); font-size: 14px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; position: relative; }
.center .btn { margin: 6px 4px 0; }

/* Верхня панель */
.hud {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(#c98a4b, var(--wood));
  border-bottom: 4px solid var(--wood-d);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.logo img { width: 34px; height: 34px; }
.lvl { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 150px; max-width: 320px; }
.lvl > b { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sun); border: 3px solid #fff; display: grid; place-items: center; font-size: 15px; }
.lvl .bar { position: relative; flex: 1; height: 20px; border-radius: 10px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.lvl .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ffe27a, var(--sun)); border-radius: 10px; transition: width .4s; }
.lvl .bar span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 20px; color: #fff; text-shadow: 0 1px 2px #000; }
.money { display: flex; gap: 8px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border-radius: 20px; padding: 4px 12px 4px 6px; font-size: 15px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.pill img { width: 22px; height: 22px; }
.pill.gem i { font-style: normal; font-weight: 800; color: #fff; background: var(--ok); border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 14px; }
.snd { width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .22); display: grid; place-items: center; }
.snd img { width: 20px; height: 20px; }
.user { display: flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .22); color: #fff; border-radius: 20px; padding: 6px 14px; max-width: 170px; font-size: 14px; }
.user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user img { width: 18px; height: 18px; flex: none; }
.user img[hidden] { display: none; }

main { max-width: 860px; margin: 0 auto; padding: 14px 12px; }
.bar-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bar-top .muted { color: #fff; opacity: .9; flex: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.loading, .empty-note { background: var(--cream); border-radius: 14px; padding: 22px; text-align: center; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(#58b84f, var(--ok)); color: #fff; font-weight: 700;
  border-radius: 12px; padding: 11px 20px; box-shadow: 0 3px 0 #2c7028; white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #2c7028; }
.btn:disabled { background: #b9b2a3; box-shadow: 0 3px 0 #958d7d; }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: #eadfc8; color: var(--ink); box-shadow: 0 3px 0 #cdbf9f; }
.btn.danger { background: var(--err); box-shadow: 0 3px 0 #8f2d1c; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn.buy { background: linear-gradient(#ffb347, #f08a1c); box-shadow: 0 3px 0 #b3610c; font-size: 17px; padding: 12px 22px; }
.btn img.ic { width: 18px; height: 18px; vertical-align: middle; }

/* Кухня: інтерʼєр і печі */
.kitchen { position: relative; border-radius: 18px 18px 0 0; overflow: hidden; margin-bottom: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.scene { display: block; width: 100%; height: 190px; }
.sc-wall { fill: var(--wall); }
.sc-stripe { fill: var(--wall2); }
.sc-trim { fill: var(--trim); }
.sc-sky { fill: var(--sky); }
.sc-sun { fill: var(--sunc); }
.sc-hill { fill: var(--hill); }
.sc-curtain { fill: #fff; opacity: .75; }
.sc-counter { fill: #7a4b2a; }
.sc-lamp path:nth-child(2) { fill: #3b2a17; }
.sc-bulb { fill: var(--bulb); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .65; } }
.bar-top.over { position: absolute; left: 12px; right: 12px; bottom: 2px; margin: 0; align-items: center; }
.bar-top.over h1 { font-size: 18px; }
.field {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  background: rgba(0, 0, 0, .22); border-radius: 0 0 18px 18px; padding: 16px 14px 18px;
}
.oven { position: relative; min-width: 0; aspect-ratio: 1; display: block; transition: transform .1s; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.oven:active { transform: translateY(2px) scale(.98); }
.ov { display: block; width: 100%; height: 100%; }
.ov-leg { fill: #3b3f46; }
.ov-body { fill: #c7ced6; }
.ov-hi { fill: #fff; opacity: .55; }
.ov-panel { fill: #8b939c; }
.ov-knob { fill: #f4f6f8; stroke: #5d646c; stroke-width: 1.5; }
.ov-tick { stroke: #5d646c; stroke-width: 1.6; stroke-linecap: round; }
.ov-led { fill: #2a2f36; }
.ov-door { fill: #a9b1ba; }
.ov-glass { fill: #2a2f36; }
.ov-fire { fill: #ff9a2e; opacity: 0; transform-origin: 50% 83%; }
.ov-shine { fill: #fff; opacity: .16; }
.ov-handle { fill: #f4f6f8; stroke: #5d646c; stroke-width: 1.2; }
.oven.gold .ov-body { fill: #f2c14e; }
.oven.gold .ov-panel { fill: #c98f1c; }
.oven.gold .ov-door { fill: #e0a92f; }
.oven.gold .ov-knob, .oven.gold .ov-handle { stroke: #8f6510; fill: #fff6d6; }
.oven.on .ov-glass { fill: #6b2613; }
.oven.on .ov-led { fill: #ff7b3a; }
.oven.on .ov-fire { opacity: 1; animation: flick .5s ease-in-out infinite alternate; }
.oven.ready .ov-glass { fill: #ffe6a1; }
.oven.ready .ov-led { fill: #7be06a; }
.oven.ready { animation: ding 1.2s ease-in-out infinite; }
@keyframes flick { from { transform: scaleY(.8); fill: #ff9a2e; } to { transform: scaleY(1.1); fill: #ffcf4a; } }
@keyframes ding { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-2.5deg); } 16% { transform: rotate(2.5deg); } 24% { transform: rotate(0); } }
.oven .plus { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: rgba(255, 255, 255, .6); font-size: 30px; font-weight: 300; line-height: 1; }
.oven .food { position: absolute; left: 50%; top: 63%; width: 36%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.oven.on .food { opacity: .9; filter: sepia(.35) brightness(.9); }
.oven.ready .food { width: 44%; animation: bob 1s ease-in-out infinite; }
.oven.on .food { top: 58%; width: 30%; }
.oven .timer { position: absolute; left: 12%; right: 12%; bottom: 19%; text-align: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; white-space: nowrap; }
.oven .pbar { left: 19%; right: 19%; bottom: 13.5%; }
.oven.locked { opacity: .9; filter: grayscale(.9) drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.oven.locked .ov { opacity: .55; }
.oven.locked .lock { position: absolute; left: 50%; top: 46%; width: 30%; transform: translate(-50%, -50%); }
.oven.locked .cost { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px #000; }
.pbar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.pbar i { display: block; height: 100%; background: #ffb347; transition: width 1s linear; }
.steam { position: absolute; left: 0; right: 0; top: -6%; height: 30%; pointer-events: none; }
.steam i { position: absolute; bottom: 0; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: 0; animation: steam 2s ease-out infinite; }
.steam i:nth-child(1) { left: 30%; }
.steam i:nth-child(2) { left: 46%; animation-delay: .6s; }
.steam i:nth-child(3) { left: 62%; animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(60%) scale(.5); opacity: 0; } 30% { opacity: .75; } 100% { transform: translateY(-80%) scale(1.5); opacity: 0; } }
@keyframes bob { 50% { transform: translate(-50%, -58%) scale(1.06); } }
.mini-oven { width: 52px; height: 52px; flex: none; }
.mini-oven.gold .ov-body { fill: #f2c14e; }
.mini-oven.gold .ov-panel { fill: #c98f1c; }
.mini-oven.gold .ov-door { fill: #e0a92f; }

/* Картки й списки */
.card, .row, .seed {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.card { flex-wrap: wrap; }
.card.off, .seed.off { opacity: .6; }
.card.off .eq { filter: grayscale(1); }
.card-h { display: flex; align-items: center; gap: 10px; width: 100%; }
.card-h > div { flex: 1; min-width: 0; }
.card.promo { background: #fff1b8; }
.tag { background: #eadfc8; border-radius: 10px; padding: 4px 10px; font-size: 13px; white-space: nowrap; display: inline-block; }
.tag.ok { background: #d7efcf; color: #24631f; font-weight: 700; }
.animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; }
.animal { position: relative; background: #f1e6cc; border-radius: 12px; padding: 10px 6px 14px; display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.animal.hungry { outline: 2px dashed var(--wood); }
.animal.hungry .eq { opacity: .6; }
.animal.busy .eq { animation: work .6s ease-in-out infinite alternate; }
.animal.ready { background: #fff1b8; outline: 2px solid var(--sun); }
.animal .dish { position: absolute; top: 4px; right: 6px; width: 34px; height: 34px; animation: pulse 1s ease-in-out infinite; }
.animal .timer { font-weight: 600; color: var(--muted); }
@keyframes work { to { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes pulse { 50% { transform: scale(1.15); } }
.row.me { outline: 3px solid var(--sun); }
.place { width: 30px; height: 30px; border-radius: 50%; background: var(--wood); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.place.p1 { background: #f2b90f; } .place.p2 { background: #a9b1ba; } .place.p3 { background: #c8763a; }
.ava { width: 40px; height: 40px; flex: none; border-radius: 50%; }

/* Вітрина */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.good { position: relative; background: var(--cream); border-radius: 14px; padding: 14px 10px 10px; display: grid; justify-items: center; gap: 2px; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); border-bottom: 6px solid var(--wood); }
.good .qty { position: absolute; top: 8px; right: 8px; background: var(--err); color: #fff; font-weight: 700; font-size: 13px; min-width: 26px; height: 26px; line-height: 26px; border-radius: 13px; padding: 0 6px; }
.good .btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* Замовлення й завдання */
.orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.order { flex-direction: column; align-items: stretch; margin: 0; }
.order .who { display: flex; align-items: center; gap: 8px; border-bottom: 2px dashed #e0d2b1; padding-bottom: 8px; }
.order ul { list-style: none; margin: 0; padding: 0; }
.order li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.order li b { margin-left: auto; color: var(--err); }
.order li.ok b { color: var(--ok); }
.order .reward { margin: 4px 0; font-size: 17px; }
.order .btns { display: flex; gap: 8px; }
.order .btns .btn { flex: 1; }
.order.waiting { align-items: center; text-align: center; justify-content: center; background: rgba(255, 248, 231, .85); }
.quests { flex-direction: column; align-items: stretch; gap: 8px; }
.quest { display: flex; align-items: center; gap: 10px; }
.quest .grow { display: grid; gap: 4px; font-size: 14px; }
.quest.claimed { opacity: .55; }
.quest.bonus { border-top: 2px dashed #e0d2b1; padding-top: 8px; font-weight: 600; }
.qbar { display: block; height: 8px; border-radius: 4px; background: #e6d9bb; overflow: hidden; }
.qbar i { display: block; height: 100%; background: linear-gradient(#58b84f, var(--ok)); border-radius: 4px; transition: width .4s; }

/* Крамниця */
.offer { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 18px; padding: 16px; margin-bottom: 12px; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); overflow: hidden; }
.offer h2 { margin: 0 0 4px; font-size: 21px; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.offer p { margin: 0; font-size: 17px; }
.offer ul { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 15px; }
.offer small { color: rgba(255, 255, 255, .85); }
.offer.starter { background: linear-gradient(120deg, #e2574c, #f08a1c); }
.offer.pass { background: linear-gradient(120deg, #5b3fb0, #3b8fe0); }
.offer.pass.active { background: linear-gradient(120deg, #2f6660, #3f9b3a); }
.offer-art { animation: pulse 2.4s ease-in-out infinite; }
.ribbon { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 40px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.x2 { background: var(--err); color: #fff; font-size: 13px; border-radius: 10px; padding: 2px 10px; margin-left: 6px; text-shadow: none; vertical-align: middle; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pack { position: relative; overflow: hidden; background: var(--cream); border-radius: 16px; padding: 18px 8px 12px; display: grid; justify-items: center; gap: 2px; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); border: 3px solid transparent; }
.pack.p2, .pack.p3 { border-color: var(--sun); }
.pack .ribbon { font-size: 10px; top: 14px; right: -42px; }
.pack .gems { height: 50px; display: flex; align-items: flex-end; }
.pack .gems img { width: 36px; height: 36px; margin: 0 -7px; }
.pack .gems img:nth-child(2) { width: 46px; height: 46px; z-index: 1; }
.pack .gems.g3 img { width: 42px; height: 42px; } .pack .gems.g3 img:nth-child(2) { width: 54px; height: 54px; }
.pack b { font-size: 24px; }
.pack span { font-size: 13px; color: var(--muted); }
.pack s { opacity: .7; }
.pack em { font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(#ffb347, #f08a1c); border-radius: 10px; padding: 5px 16px; margin-top: 6px; box-shadow: 0 3px 0 #b3610c; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; width: 100%; }
.theme { background: #f1e6cc; border-radius: 12px; padding: 8px; display: grid; justify-items: center; gap: 3px; border: 3px solid transparent; }
.theme.cur { border-color: var(--ok); }
.theme .swatch { width: 100%; height: 44px; border-radius: 8px; background: linear-gradient(90deg, var(--wall) 0 50%, var(--wall2) 50%) 0 0 / 24px 100%; border-bottom: 10px solid var(--trim); }
.theme small img.ic { width: 14px; height: 14px; }
.fine { background: rgba(255, 248, 231, .92); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Нижнє меню */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  background: linear-gradient(#c98a4b, var(--wood)); border-top: 4px solid var(--wood-d);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { position: relative; flex: 1; min-width: 0; max-width: 130px; padding: 7px 2px 6px; display: grid; justify-items: center; gap: 1px; color: #fff; font-size: 12px; font-weight: 600; }
.tabs img { width: 28px; height: 28px; transition: transform .15s; }
.tabs button.on { background: rgba(0, 0, 0, .22); }
.tabs button.on img { transform: translateY(-2px) scale(1.12); }
.tabs em { position: absolute; top: 3px; left: calc(50% + 8px); background: var(--err); color: #fff; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; }
.tabs em[hidden] { display: none; }
.legal { text-align: center; font-size: 12px; color: #fff; opacity: .85; padding: 6px 12px 16px; }
.legal a { color: #fff; }

/* Вікна, сповіщення, ефекти */
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(40, 25, 10, .6); display: grid; place-items: center; padding: 12px; }
#modal[hidden] { display: none; }
.sheet { position: relative; background: var(--cream); border-radius: 18px; padding: 18px; width: 100%; max-width: 440px; max-height: calc(100vh - 24px); overflow: auto; border: 4px solid var(--wood); animation: pop .2s; }
.seeds { display: grid; gap: 8px; }
.seed { margin: 0; background: #f1e6cc; box-shadow: none; padding: 8px 10px; }
.lvl-badge { width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--sun) 60%, #e09a12); border: 5px solid #fff; box-shadow: 0 4px 0 #b3610c; display: grid; place-items: center; font-size: 40px; font-weight: 800; animation: pulse 1.2s ease-in-out infinite; }
.rewardline { font-size: 20px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.8s linear infinite; }
@keyframes fall { to { transform: translateY(420px) rotate(540deg); opacity: .2; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; border: 2px solid #d6c7a5; border-radius: 10px; background: #fff; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gem); outline-offset: 2px; }
label.chk { display: flex; gap: 8px; font-weight: 400; align-items: flex-start; }
label.chk input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
.toast { background: #3b2a17; color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); animation: pop .2s; }
.toast.ok { background: #2f7d2b; }
.toast.err { background: var(--err); }
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } }
.fly { position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, -100%); font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .6); white-space: nowrap; animation: fly 1.1s ease-out forwards; }
.fly img.ic { width: 20px; height: 20px; }
@keyframes fly { to { transform: translate(-50%, -260%); opacity: 0; } }

@media (max-width: 640px) {
  .field { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 10px 14px; }
  .scene { height: 150px; }
  .logo span { display: none; }
  .hud { gap: 8px; padding: 6px 8px; }
  .lvl { order: 5; flex-basis: 100%; max-width: none; }
  .tabs button { font-size: 10px; }
  .tabs img { width: 24px; height: 24px; }
  .offer .btn.buy { width: 100%; }
  .oven .timer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.offer.starter .btn.buy { margin: 22px 30px 0 0; }
.oven.on .food { top: 55%; }
.quest.bonus .grow { display: block; }
.checkout { display: grid; gap: 4px; background: #f1e6cc; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.checkout b { font-size: 18px; }
.checkout em { font-style: normal; font-weight: 800; font-size: 22px; color: #b3610c; }
.paylogos { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 10px; }
.paylogos img { height: 40px; filter: brightness(0) invert(1); opacity: .9; }
.paylogos img.lp { filter: none; height: 30px; background: #fff; border-radius: 6px; padding: 4px 8px; }
/* Посилання на документи завжди внизу екрана, над меню */
body { display: flex; flex-direction: column; }
main { width: 100%; flex: none; }
.legal { margin-top: auto; padding-top: 24px; }

/* Майстерність, хіт дня, покращення */
.stars { color: #e09a12; letter-spacing: -1px; font-size: 13px; }
.hit { background: var(--err); color: #fff; font-size: 11px; font-weight: 700; border-radius: 8px; padding: 1px 7px; white-space: nowrap; }
.good .hit { position: absolute; top: 8px; left: 8px; }
.seed .qbar { margin-top: 4px; }
.seed.me { outline: 3px solid var(--sun); }
/* Ярмарок */
.lg-head { color: #fff; }
.lg-head small { color: rgba(255, 255, 255, .85); }
.lg-head.t0 { background: linear-gradient(120deg, #a9683a, #d99a5b); }
.lg-head.t1 { background: linear-gradient(120deg, #7d8894, #b9c3cd); }
.lg-head.t2 { background: linear-gradient(120deg, #c98f1c, #f2c14e); }
.lg-head.t3 { background: linear-gradient(120deg, #3b8fe0, #7ad0f5); }
.row { padding: 8px 12px; margin-bottom: 6px; }
.row.up { border-left: 6px solid var(--ok); }
.row.down { border-left: 6px solid var(--err); }
.row > b:last-child { font-size: 17px; }
.ava.npc { display: grid; place-items: center; background: #eadfc8; }
.ava.npc img { width: 24px; height: 24px; }
.kitchen .bar-top.over .btn.ghost { margin-left: auto; }
.kitchen .bar-top.over .muted { flex: none; }
