/* grow.css — конкурс «Позовём котов во Двор» (16.10.2026), веб. Близнец
   стилей десктопа (keriteri/app/src/style.css, блок «Конкурс»): арт ночной,
   поэтому цвета свои, одинаковые в светлой и тёмной теме. */


/* ── шкала (общая разметка для трёх мест) ── */
.gs-track { position: relative; display: block; height: 10px; margin: 10px 12px 18px;
  border-radius: 99px; background: rgba(8, 5, 20, .55);
  box-shadow: inset 0 0 0 1px rgba(199, 178, 255, .28), 0 0 12px rgba(143, 123, 214, .25); }
.gs-track.big { height: 16px; margin: 18px 14px 30px; }
.gs-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, #8f7bd6, #c7b2ff 35%, #ffd36a 60%, #c7b2ff 80%, #8f7bd6);
  background-size: 260% 100%; animation: gs-flow 4.5s linear infinite;
  box-shadow: 0 0 14px rgba(255, 211, 106, .65), 0 0 4px rgba(255, 255, 255, .6) inset;
  transition: width 1.2s cubic-bezier(.22, 1, .36, 1); }
.gs-glint { position: absolute; top: 0; bottom: 0; width: 40%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  animation: gs-glint 2.6s ease-in-out infinite; }
@keyframes gs-flow { to { background-position: 260% 0; } }
@keyframes gs-glint { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.gs-mark { position: absolute; top: 50%; width: 0; height: 0; }
.gs-star { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  background: #4a3d74; transition: background .4s, transform .4s; }
.gs-track.big .gs-star { left: -12px; top: -12px; width: 24px; height: 24px; }
.gs-mark.on .gs-star { background: #ffe9a6; filter: drop-shadow(0 0 6px #ffd36a);
  animation: gs-twinkle 1.8s ease-in-out infinite; }
@keyframes gs-twinkle { 50% { transform: scale(1.35) rotate(45deg); } }
.gs-num { position: absolute; top: 9px; transform: translateX(-50%); font-size: 12px;
  font-weight: 900; color: #cfc4f4; letter-spacing: .02em; }
.gs-track.big .gs-num { top: 14px; font-size: 12px; }
.gs-mark.on .gs-num { color: #ffd36a; text-shadow: 0 0 8px rgba(255, 211, 106, .7); }
.gs-mark:last-child .gs-num { transform: translateX(-80%); }
.gs-gift { display: none; }

/* ── полоса в подвале домика ── */
.grow-strip { position: relative; flex: none; display: block; width: auto; margin: 8px -6px -4px;
  padding: 8px 10px 4px; border: 1px solid rgba(255, 211, 106, .45); border-radius: 14px;
  overflow: hidden; cursor: pointer; text-align: left; color: #f4f1ff; font: inherit;
  background: linear-gradient(90deg, rgba(19, 14, 33, .78), rgba(19, 14, 33, .35)),
    var(--grow-art) center 60% / cover, #1d1534;
  box-shadow: 0 0 0 1px rgba(143, 123, 214, .25), 0 0 18px rgba(255, 211, 106, .18);
  animation: gst-pulse 3.2s ease-in-out infinite; transition: transform .25s; }

.grow-strip::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 200, .22) 48%, transparent 66%);
  background-size: 250% 100%; animation: gst-sheen 5s ease-in-out infinite; }
@keyframes gst-pulse { 50% { box-shadow: 0 0 0 1px rgba(255, 211, 106, .35), 0 0 26px rgba(255, 211, 106, .35); } }
@keyframes gst-sheen { 0%, 40% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.gst-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gst-top { position: relative; display: flex; align-items: baseline; gap: 8px; }
.gst-title { flex: 1; min-width: 0; font-weight: 900; font-size: 12.5px; color: #ffe2a0;
  text-shadow: 0 0 10px rgba(255, 211, 106, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gst-count { flex: none; font-size: 12px; font-weight: 800; color: #e4dbff; }
.gst-scale { position: relative; display: block; }
.gst-scale .gs-track { margin: 7px 8px 20px; height: 8px; }
.gst-me { position: relative; display: block; margin: 0; font-size: 12px; font-weight: 700;
  color: #cfc4f4; text-align: center; }

/* ── большая карточка внизу Ошейника ── */
.grow-card { position: relative; display: block; width: 100%; margin: 14px 0 6px; padding: 0;
  min-height: 210px; border: 1px solid rgba(255, 211, 106, .5); border-radius: 18px; overflow: hidden;
  cursor: pointer; text-align: left; font: inherit; color: #f4f1ff; background: #1d1534;
  box-shadow: 0 10px 30px rgba(10, 6, 24, .45), 0 0 24px rgba(255, 211, 106, .18);
  animation: gst-pulse 3.6s ease-in-out infinite; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }

.gc-art { position: absolute; inset: 0; background: var(--grow-art) center / cover;
  animation: gc-drift 22s ease-in-out infinite alternate; }
@keyframes gc-drift { to { transform: scale(1.08) translate(-2%, -1%); } }
.grow-card::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(19, 14, 33, .15) 0%, rgba(19, 14, 33, .2) 40%, rgba(19, 14, 33, .92) 100%); }
.grow-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .18) 50%, transparent 65%);
  background-size: 260% 100%; animation: gst-sheen 6s ease-in-out infinite; }
.gc-dust { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.gc-body { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 14px 16px 12px; }
.gc-kicker { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #ffd36a; }
.gc-title { margin: 3px 0 2px; font-size: 21px; font-weight: 900; line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6), 0 0 18px rgba(199, 178, 255, .5); }
.gc-sub { font-size: 12px; color: #e4dbff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.gc-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.gc-num { flex: none; font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 0 12px rgba(255, 211, 106, .7); }
.gc-scale { flex: 1; min-width: 0; }
.gc-go { align-self: flex-end; margin-top: -2px; font-size: 12px; font-weight: 900; color: #ffd36a; }

/* ── экран конкурса ── */
.grow-page { display: grid; gap: 12px; padding-bottom: 14px; }
/* Колонка по ширине экрана, а не по самому широкому ребёнку: на 360 страница
   конкурса распирала окно до 369 px (сдвиг вбок, подписи вкладок пропадали). */
.grow-page { grid-template-columns: minmax(0, 1fr); }
.gp-hero { position: relative; height: 170px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 211, 106, .45); box-shadow: 0 0 22px rgba(255, 211, 106, .15); }
.gp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: gc-drift 26s ease-in-out infinite alternate; }
.gp-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-hero-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(19, 14, 33, .9)); }
.gp-kicker { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #ffd36a; }
.gp-hero h3 { margin: 2px 0 0; font-size: 21px; font-weight: 900; color: #fff;
  text-shadow: 0 0 16px rgba(199, 178, 255, .6); }
.gp-pitch2 { padding-left: 10px; border-left: 3px solid #ffd36a; }
.gp-box { padding: 12px 12px 10px; border-radius: 14px; background: var(--raise-2);
  border: 1px solid var(--line); }
.gp-box h4 { margin: 0 0 6px; font-size: 14px; font-weight: 900; }
.gp-box p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; }
.gp-scalebox { background: linear-gradient(170deg, #241a44, #160f2a); border-color: rgba(255, 211, 106, .35); color: #f4f1ff; }
.gp-scalebox .fld-note { color: #cfc4f4; }
.gp-count { text-align: center; font-size: 12.5px; color: #e4dbff; }
.gp-count b { display: block; font-size: 34px; line-height: 1.05; color: #fff; text-shadow: 0 0 18px rgba(255, 211, 106, .6); }
.gp-goals, .gp-miles, .gp-raffle { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-goal { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 12px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(199, 178, 255, .18); }
.gp-goal.on { border-color: rgba(255, 211, 106, .6); box-shadow: 0 0 12px rgba(255, 211, 106, .2); }
.gp-goal-n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 900; color: #ffd36a; background: radial-gradient(circle, rgba(255, 211, 106, .18), transparent 70%);
  border: 1px solid rgba(255, 211, 106, .4); }
.gp-goal-tx { flex: 1; min-width: 0; display: grid; font-size: 12.5px; }
.gp-goal-tx small { color: #cfc4f4; font-size: 12px; }
.gp-goal-st { flex: none; font-size: 12px; font-weight: 900; color: #ffd36a; }
.gp-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.gp-me span { display: grid; font-size: 12px; color: var(--ink-mid); padding: 6px 2px;
  border-radius: 10px; background: var(--raise-2); }
.gp-next { font-weight: 800; color: var(--lav) !important; }
.gp-mile { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.gp-mile-n { flex: none; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px;
  font-weight: 900; font-size: 12px; background: var(--raise-2); color: var(--lav); }
.gp-mile.done .gp-mile-n { background: #ffd36a; color: #2a1b00; box-shadow: 0 0 10px rgba(255, 211, 106, .6); }
.gp-raffle li { font-size: 12.5px; }
.gp-link { display: flex; gap: 6px; margin-top: 8px; }
.gp-link .fld-input { flex: 1; min-width: 0; }
.gp-site { justify-self: center; }

@media (prefers-reduced-motion: reduce) {
  .grow-strip, .grow-card, .gs-fill, .gs-glint, .gs-mark.on .gs-star, .gc-art, .gp-art,
  .grow-strip::after, .grow-card::after { animation: none !important; }
}
/* веб: плашка над лентой и ссылки-карточки */
.grow-strip { margin: 0 12px 12px; text-decoration: none; }
.grow-card { margin: 16px 0 8px; text-decoration: none; }
.grow-page { padding: 0 var(--gutter, 14px) 24px; }
.gp-hero h2 { margin: 2px 0 0; font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 0 16px rgba(199, 178, 255, .6); }
.gp-box h3 { margin: 0 0 6px; font-size: 15px; font-weight: 900; }
.gp-note { font-size: 12px !important; color: var(--ink-mid); }
.gp-scalebox .gp-note { color: #cfc4f4; }
.gp-link-in { flex: 1; min-width: 0; padding: 9px 11px; font: inherit; font-size: 16px; color: var(--panel-fg);
  background: var(--sink, rgba(0,0,0,.2)); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 700px) { .gp-hero { height: 260px; } .grow-card, .gc-body { min-height: 260px; } }
.gp-pitch { margin: 0; font-size: 14px; line-height: 1.5; color: var(--panel-fg); }
.gp-me b { font-size: 20px; color: var(--panel-fg); }

/* правки 16.10 (замечания Ангела): карточка уже, чтобы подъём при наведении
   не резался краями; пыль снаружи карточки; картинка экрана — тоньше. */
.grow-card-wrap { position: relative; margin: 18px 10px 10px; }
.grow-card-wrap .grow-card { margin: 0; }
/* Подъём при наведении — только там, где есть мышь: на телефоне :hover
   «залипал» после касания и карточка оставалась приподнятой. Для пальца —
   короткое нажатие (:active). */
@media (hover: hover) {
  .grow-strip:hover { transform: translateY(-1px); }
  .grow-card:hover { transform: translateY(-2px) scale(1.02); }
}
.grow-strip:active, .grow-card:active { transform: scale(.98); transition-duration: .08s; }
.gc-dust-out { position: absolute; left: -20px; top: -20px; width: calc(100% + 40px);
  height: calc(100% + 40px); pointer-events: none; z-index: 5; }
.gp-hero { height: 110px; }
@media (min-width: 700px) { .gp-hero { height: 170px !important; } }
.gp-art { object-position: center 35%; }
.gp-mile-tx { flex: 1; min-width: 0; }
.gp-mile-st { flex: none; font-size: 12px; font-weight: 900; color: #c99a1c; }
.gp-me { margin-top: 10px; }
.gp-next { font-weight: 700; color: var(--panel-fg) !important; line-height: 1.5; }

/* ═══ Витрина окрасов-наград (16.10.2026): живой кот в золотой рамке ═══════ */
.gx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gx-coat { position: relative; margin: 0; padding: 10px 8px 10px; border-radius: 16px; text-align: center;
  background: radial-gradient(90% 70% at 50% 35%, #2c2156 0%, #160f2a 75%);
  border: 1.5px solid rgba(255, 211, 106, .7); overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 3px rgba(255, 211, 106, .12), 0 0 18px rgba(255, 211, 106, .25), inset 0 0 24px rgba(143, 123, 214, .25); }
.gx-coat::before { content: ""; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 226, 160, .35) 80%, transparent 90%);
  animation: gxSpin 7s linear infinite; }
.gx-coat::after { content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 13px;
  background: radial-gradient(90% 70% at 50% 35%, #2c2156 0%, #160f2a 75%); }
@keyframes gxSpin { to { transform: rotate(1turn); } }
.gx-stage { position: relative; display: block; width: 96px; height: 96px; margin: 2px auto 6px; }
.gx-cat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.gx-stars { position: absolute; inset: 0; z-index: 2; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gx-stars .pst { animation: starFall 4.2s linear infinite; }
.gx-holo { position: absolute; inset: 0; z-index: 0; }
.gx-holo .holo-cat { animation: holoPeek 10s ease-in-out infinite; }
.gx-coat figcaption { display: grid; gap: 1px; color: #f4f1ff; }
.gx-at { justify-self: center; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 900;
  letter-spacing: .04em; color: #2a1b00; background: linear-gradient(90deg, #ffd36a, #ffe9a6); }
.gx-coat b { font-size: 14px; margin-top: 3px; }
.gx-coat small { font-size: 12px; color: #cfc4f4; line-height: 1.3; }
.gx-note { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--ink-mid); }
@media (prefers-reduced-motion: reduce) { .gx-coat::before { animation: none; } }

/* кадры звёзд/голограмм — близнецы десктопных (keriteri/app/src/style.css) */
.pst { position: absolute; top: -10%; width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 5px 2px #fff3c4, 0 0 12px 3px rgba(199, 178, 255, .9); opacity: 0; }
.pst::after { content: ""; position: absolute; left: 2px; top: 1px; width: 26px; height: 2px;
  transform-origin: 0 50%; transform: rotate(-55deg);
  background: linear-gradient(90deg, rgba(255, 243, 196, .9), transparent); border-radius: 2px; }
.pst.s1 { left: 44%; top: 8%;  animation-delay: 0s !important; }
.pst.s2 { left: 74%; top: 34%; animation-delay: -0.8s !important; }
.pst.s3 { left: 58%; top: 48%; animation-delay: -1.6s !important; }
.pst.s4 { left: 80%; top: 14%; animation-delay: -2.4s !important; }
.pst.s5 { left: 40%; top: 56%; animation-delay: -3.1s !important; }
.pst.s6 { left: 66%; top: 22%; animation-delay: -3.9s !important; }
.pst.s7 { left: 70%; top: 62%; animation-delay: -4.6s !important; }
@keyframes starFall {
  0%   { opacity: 0; transform: translate(0, 0); }
  6%   { opacity: 1; }
  40%  { opacity: 1; transform: translate(-28px, 40px); }
  48%, 100% { opacity: 0; transform: translate(-34px, 48px); }
}
.holo-cat { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; mix-blend-mode: screen;
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 2px, rgba(0,0,0,.45) 2px 3px);
          mask-image: repeating-linear-gradient(0deg, #000 0 2px, rgba(0,0,0,.45) 2px 3px);
  transform-origin: 50% 85%; filter: var(--hf); }
.holo-cat.h1 { --hx: -30%; --hy: -6%;  --hr: -16deg; --hf: hue-rotate(-60deg) saturate(1.6) brightness(1.5)  drop-shadow(0 0 6px #8fe8ff); }
.holo-cat.h2 { --hx: 30%;  --hy: -10%; --hr: 15deg;  --hf: hue-rotate(80deg) saturate(1.8) brightness(1.6)   drop-shadow(0 0 6px #ffd36a); animation-delay: -2.5s !important; }
.holo-cat.h3 { --hx: -20%; --hy: -26%; --hr: -9deg;  --hf: hue-rotate(160deg) saturate(1.6) brightness(1.5)  drop-shadow(0 0 6px #ff9ad8); animation-delay: -5s !important; }
.holo-cat.h4 { --hx: 20%;  --hy: -28%; --hr: 10deg;  --hf: hue-rotate(-150deg) saturate(1.5) brightness(1.6) drop-shadow(0 0 6px #9dffb8); animation-delay: -7.5s !important; }
@keyframes holoPeek {
  0%, 6%   { opacity: 0;   transform: translate(0, 4%) scale(.72) rotate(0deg); }
  14%      { opacity: .55; transform: translate(var(--hx), var(--hy)) scale(.78) rotate(var(--hr)); }
  17%      { opacity: .32; transform: translate(var(--hx), var(--hy)) scale(.78) rotate(var(--hr)); }
  19%      { opacity: .55; transform: translate(var(--hx), var(--hy)) scale(.78) rotate(var(--hr)); }
  24%      { opacity: .5;  transform: translate(calc(var(--hx) * 1.04), var(--hy)) scale(.78) rotate(calc(var(--hr) * 1.2)); }
  31%, 100%{ opacity: 0;   transform: translate(0, 4%) scale(.72) rotate(0deg); }
}
.gx-row { gap: 12px; }
.gx-stage { width: 110px; height: 110px; }

/* кот в рамке крупнее: спрайт занимает лишь середину кадра */
.gx-stage { transform: scale(1.35); transform-origin: 50% 78%; margin-top: 12px; margin-bottom: 14px; }
