/* 🌳 Сад сакуры — главный экран мини-аппа (27.09.2026).
 *
 * Перенесено из утверждённого макета (CLAUDE_GARDEN.md, раздел 6б):
 * статичный фон + живая сакура по центру, поверх — простые тёмные панели.
 * Значков нет, кроме стрелки «назад». Шрифт — Jost, как во всей игре (--garden).
 * Экран во весь телефон: нижней панели вкладок в саду нет, выход — стрелкой.
 */

/* У экранов игры есть анимация появления со сдвигом (transform). Любой
   transform у предка превращает position:fixed в «fixed внутри предка», и сад
   сжимался до высоты 0. Экрану сада сдвиг не нужен вовсе. */
#screen-garden { transform: none !important; animation: none !important; }

.gd {
  --g-ink: #f4e9f4; --g-dim: #c3aec9; --g-faint: #93809b; --g-pink: #ff8fd0;
  position: fixed; inset: 0; z-index: 25; overflow: hidden; background: #08060d;
  font-family: var(--garden, "Jost", -apple-system, "Segoe UI", sans-serif); color: var(--g-ink);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.gd[hidden] { display: none; }
.gd canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gd button { font-family: inherit; color: inherit; }

/* Панель: тёмная полупрозрачная, без стекла и бликов (решение владельца). */
.gd .gp { position: relative; background: rgba(16,10,28,.80); border: 1px solid rgba(255,255,255,.11);
          box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.gd button.gp { cursor: pointer; }
.gd button.gp:active { transform: scale(.97); }

/* ---------------------------------------------------------------- шапка */
.gd-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 26px;
  background: linear-gradient(to bottom, rgba(6,4,12,.8), transparent);
  display: flex; flex-direction: column; gap: 8px;
}
.gd-row1 { position: relative; display: flex; align-items: center; min-height: 32px; }
.gd-back { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center;
           justify-content: center; padding: 0 2px 0 0; }
.gd-back svg { width: 16px; height: 16px; }
.gd-season { position: absolute; left: 44px; right: 44px; text-align: center; pointer-events: none;
             font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
             text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.gd-season b { color: var(--g-pink); font-weight: 700; }
.gd-pair { display: flex; gap: 8px; }
.gd-pair > button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
                    padding: 8px 10px; border-radius: 999px; font-size: 12px; }
.gd-pair b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gd-pair small { color: var(--g-dim); font-size: 11px; white-space: nowrap; }
.gd-pair u { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; text-decoration: none;
             background: #ff4d7d; box-shadow: 0 0 7px rgba(255,77,125,.9); }
.gd-pair .all-done { box-shadow: inset 0 0 0 1px rgba(255,143,208,.55); }
.gd-pair .all-done small { color: var(--g-pink); }

/* --------------------------------------------------------- окошко сведений */
.gd-info {
  position: absolute; left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 128px); z-index: 8;
  border-radius: 18px; padding: 14px 16px 15px; max-height: calc(100% - 330px); overflow-y: auto;
  background: rgba(18,11,32,.96); border: 1px solid rgba(255,143,208,.35); box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.gd-info[hidden] { display: none; }
.gd-x { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 0;
        background: rgba(255,255,255,.08); color: var(--g-dim); font-size: 16px; line-height: 1; cursor: pointer; }
.gd-info h4 { margin: 0 30px 4px 0; font-size: 15px; font-weight: 700; }
.gd-info .kind { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-pink); margin-bottom: 3px; }
.gd-info p { margin: 0 0 8px; font-size: 12.5px; color: var(--g-dim); line-height: 1.45; white-space: pre-line; }
.gd-info ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.gd-info li { font-size: 12px; padding-left: 12px; position: relative; }
.gd-info li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%;
                      background: var(--g-pink); }
.gd-main { width: 100%; border: 0; border-radius: 12px; padding: 10px; cursor: pointer; font-size: 13px; font-weight: 700;
           color: #fff; background: linear-gradient(135deg, #e0559f, #9a6bff); }
.gd-main:disabled { opacity: .5; }
.gd-info .done { font-size: 12.5px; color: var(--g-pink); margin: 2px 0 0; }

/* Задания и достижения — строки с полоской прогресса и наградой справа. */
.gd-goals { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.gd-goal { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
           padding: 7px 9px; border-radius: 11px; background: rgba(255,255,255,.04); }
.gd-goal .gn { font-size: 12.5px; font-weight: 600; min-width: 0; }
.gd-goal .gd-d { grid-column: 1; font-size: 11px; color: var(--g-dim); line-height: 1.3; }
.gd-goal .gr { grid-row: 1 / span 2; grid-column: 2; font-size: 12px; font-weight: 700; color: var(--g-pink);
               font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.gd-goal .gr small { display: block; font-size: 10px; font-weight: 400; color: var(--g-dim); }
.gd-goal .gb { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.gd-goal .gb i { display: block; height: 100%; background: linear-gradient(90deg, #e0559f, #ff8fd0); }
.gd-goal.ok { background: rgba(224,85,159,.14); }
.gd-goal.ok .gr { color: #fff; }
.gd-goal.lock { opacity: .45; }
.gd-tabs { display: flex; gap: 6px; margin: 4px 0 2px; flex-wrap: wrap; }
.gd-tabs button { border: 0; border-radius: 9px; padding: 5px 9px; font-size: 11.5px; color: var(--g-dim);
                  background: rgba(255,255,255,.06); cursor: pointer; }
.gd-tabs button.on { color: #fff; background: rgba(224,85,159,.35); }
.gd-trophies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 4px; }
.gd-trophies div { padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.05); text-align: center; }
.gd-trophies b { display: block; font-size: 16px; color: var(--g-pink); font-variant-numeric: tabular-nums; }
.gd-trophies span { font-size: 10.5px; color: var(--g-dim); line-height: 1.2; }
.gd-trgroup { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.gd-trhead { font-size: 12px; font-weight: 700; margin-top: 4px; }
.gd-trhead i { font-style: normal; font-weight: 400; color: var(--g-pink); margin-left: 4px; }
.gd-trfrom { font-size: 10.5px; color: var(--g-dim); margin-top: -4px; }

/* ------------------------------------------------------------------ низ */
.gd-bottom { position: absolute; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
             z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.gd-brow { display: flex; gap: 8px; align-items: stretch; }
.gd-status { flex: 1 1 auto; min-width: 0; padding: 8px 12px 9px; border-radius: 18px; }
.gd-stage { font-size: 13px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-grow { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--g-faint); margin-bottom: 4px; }
.gd-grow b { color: var(--g-pink); font-weight: 500; font-variant-numeric: tabular-nums; }
.gd-bar { height: 7px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.10);
          box-shadow: inset 0 1px 2px rgba(0,0,0,.45); }
.gd-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #e0559f, #ff8fd0);
            transition: width .5s ease; }
.gd-mini { display: flex; gap: 8px; margin: 7px 0 0; }
.gd-mini > div { flex: 1; min-width: 0; }
.gd-mini .lb { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-size: 9.5px;
               color: var(--g-faint); margin-bottom: 3px; }
.gd-mini u { text-decoration: none; color: var(--g-dim); font-variant-numeric: tabular-nums; }
.gd-mini .gd-bar { height: 5px; }
.gd-bar.wet i { background: linear-gradient(90deg, #3d8fd6, #71c4ff); }
.gd-bar.nut i { background: linear-gradient(90deg, #b0703a, #ffc07a); }
.gd-bar.hp i  { background: linear-gradient(90deg, #c04a7e, #ff9ec7); }

.gd-side { position: relative; flex: 0 0 82px; display: flex; flex-direction: column; gap: 6px; }
.gd-side > button { flex: 1 1 0; border-radius: 14px; font-size: 13px; font-weight: 700;
                    display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.gd-side > button.open { border-color: rgba(255,143,208,.6); }
.gd .gd-drop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 6; width: 168px; padding: 5px;
           border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.gd-drop[hidden] { display: none; }
.gd-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; border: 0;
          background: transparent; cursor: pointer; font-size: 12.5px; text-align: left; }
.gd-row:active { background: rgba(255,255,255,.08); }
.gd-row .price { margin-left: auto; font-size: 11px; color: var(--g-dim); font-variant-numeric: tabular-nums; }
.gd-row .price.gift { color: #fff; background: rgba(224,85,159,.55); border-radius: 7px; padding: 1px 7px; }
.gd-row .price.wait { color: var(--g-faint); }

.gd-gift { align-self: flex-start; padding: 5px 11px; border-radius: 12px; font-size: 11.5px; color: #fff;
           background: rgba(150,40,110,.55); border: 1px solid rgba(255,143,208,.55); }
.gd-gift b { font-weight: 700; color: #ffd0ea; }
.gd-gift[hidden] { display: none; }
.gd-harvest { align-self: flex-end; padding: 6px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.gd-harvest[hidden] { display: none; }
.gd-harvest small { font-weight: 400; color: var(--g-dim); margin-left: 4px; }
.gd-chips { display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; min-height: 0; }

.gd-notice { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 7; padding: 9px 13px;
             border-radius: 14px; font-size: 12.5px; line-height: 1.4; white-space: pre-line;
             background: rgba(18,11,32,.95); border: 1px solid rgba(255,143,208,.35);
             transition: opacity .3s, transform .3s; }
.gd-notice.off { opacity: 0; transform: translateY(6px); pointer-events: none; }
.gd-notice b { color: var(--g-pink); }
.gd-shop > .gd-notice { bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); left: 12px; right: 12px; z-index: 6; }
.gd-notice .gd-ask { display: flex; gap: 8px; margin-top: 8px; }
.gd-notice .gd-ask button { flex: 1; border: 0; border-radius: 10px; padding: 8px; font-size: 12.5px; cursor: pointer;
                            background: rgba(255,255,255,.08); }
.gd-notice .gd-ask button.yes { background: linear-gradient(135deg, #e0559f, #9a6bff); color: #fff; font-weight: 700; }

.gd-float { position: absolute; z-index: 9; pointer-events: none; font-size: 13px; font-weight: 700; color: #fff;
            text-shadow: 0 1px 6px rgba(0,0,0,.7); animation: gd-float 1.1s ease-out forwards; }
@keyframes gd-float { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-38px); opacity: 0; } }

/* --------------------------------------------------------------- магазин */
.gd-shop { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column;
           background: rgba(8,5,14,.97); padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 0; }
.gd-shop[hidden] { display: none; }
.gd-shop-head { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 8px; }
.gd-shop-head h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 700; text-align: center; }
.gd-shop-head .gd-bal { font-size: 12px; color: var(--g-dim); white-space: nowrap; }
.gd-shop-head .gd-bal b { color: var(--g-pink); font-variant-numeric: tabular-nums; }
.gd-shop-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gd-shop-tabs button { border: 0; border-radius: 9px; padding: 6px 10px; font-size: 12px; color: var(--g-dim);
                       background: rgba(255,255,255,.06); cursor: pointer; }
.gd-shop-tabs button.on { color: #fff; background: rgba(224,85,159,.35); }
.gd-shop-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
                padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
.gd-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; padding: 10px 12px;
           border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.gd-item b { font-size: 13px; font-weight: 600; }
.gd-item span { grid-column: 1; font-size: 11.5px; color: var(--g-dim); line-height: 1.35; }
.gd-item button { grid-row: 1 / span 2; grid-column: 2; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer;
                  font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #e0559f, #9a6bff);
                  white-space: nowrap; font-variant-numeric: tabular-nums; }
.gd-item button:disabled { background: rgba(255,255,255,.08); color: var(--g-faint); font-weight: 500; }
.gd-item.lock { opacity: .5; }
/* донат-товары со значком (16.10.2026): значок слева, текст посередине, цена справа */
.gd-item.has-ico { grid-template-columns: 44px 1fr auto; }
.gd-item.has-ico .gd-ico { grid-row: 1 / span 2; grid-column: 1; width: 40px; height: 40px; display: block; }
.gd-item.has-ico .gd-ico svg { width: 40px; height: 40px; display: block; filter: drop-shadow(0 0 6px rgba(255,143,208,.28)); }
/* нарисованные картинки лавки (gs_*, прозрачный фон): крупнее значков (25.10.2026) */
.gd-item.has-ico:has(.gd-ico.pic) { grid-template-columns: 62px 1fr auto; }
.gd-item.has-ico .gd-ico.pic { width: 58px; height: 58px; }
.gd-item.has-ico .gd-ico.pic img { width: 58px; height: 58px; max-width: none; object-fit: contain; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.gd-item.lock .gd-ico.pic img { opacity: .72; filter: grayscale(.4) drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.gd-item.has-ico b, .gd-item.has-ico span { grid-column: 2; }
.gd-item.has-ico button { grid-column: 3; }
.gd-route { font-style: normal; color: var(--g-faint); }
.gd-route.ok { color: #ffd27a; }
.gd-btns { grid-row: 1 / span 2; grid-column: 2; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.gd-item.has-ico .gd-btns { grid-column: 3; }
.gd-btns button { grid-row: auto; grid-column: auto; }
.gd-btns .gd-free { background: linear-gradient(135deg, #c98a2e, #ffd27a); color: #2a1a05; font-size: 11px; }
.gd-tab-ico { width: 18px; height: 18px; flex: 0 0 auto; }
/* 19.10.2026: донат за звёзды выделен — золотая кнопка на всю ширину, золотые карточки и цены */
#gdShopTabs .gd-donate { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-align: left; color: #fff4c2;
  background: linear-gradient(135deg, rgba(201, 138, 46, .28), rgba(255, 210, 122, .12)); border: 1px solid rgba(255, 210, 122, .5); box-shadow: 0 0 14px rgba(255, 210, 122, .16); }
#gdShopTabs .gd-donate.on { background: linear-gradient(135deg, rgba(201, 138, 46, .5), rgba(255, 210, 122, .24)); border-color: #ffd27a; box-shadow: 0 0 18px rgba(255, 210, 122, .32); }
#gdShopTabs .gd-donate .gd-tab-ico { width: 26px; height: 26px; }
.gd-donate-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.gd-donate-t b { font-size: 13.5px; font-weight: 700; }
.gd-donate-t small { font-size: 11px; color: rgba(255, 244, 194, .75); }
#gdShopTabs .gd-donate em { font-style: normal; font-size: 18px; }
.gd-donate-banner { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; color: #ffe9a0; background: rgba(255, 210, 122, .1); border: 1px solid rgba(255, 210, 122, .4); }
.gd-donate-banner b { font-size: 13.5px; }
.gd-donate-banner span { font-size: 11.5px; color: rgba(255, 244, 194, .8); line-height: 1.35; }
.gd-donate-note { font-size: 12px; color: var(--g-dim); padding: 2px 4px 6px; line-height: 1.4; }
.gd-item.gd-star { border-color: rgba(255, 210, 122, .35); background: linear-gradient(135deg, rgba(255, 210, 122, .08), rgba(255, 255, 255, .04)); }
.gd-item.gd-star button:not(:disabled) { background: linear-gradient(135deg, #c98a2e, #ffd27a); color: #2a1a05; }
#gdShopTabs button { display: inline-flex; align-items: center; gap: 6px; }
.gd-empty { text-align: center; color: var(--g-dim); font-size: 13px; padding: 30px 0; }
.gd-err { position: absolute; left: 20px; right: 20px; top: 40%; z-index: 4; text-align: center; color: var(--g-dim);
          font-size: 13px; }

/* ---- «!» у заданий и достижений и кнопка «Забрать» (09.10.2026) ---- */
.gd-bang { display: none; position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; place-items: center;
  font: 700 12px/1 var(--serif, serif); font-style: normal; color: #2a0e22; background: linear-gradient(135deg, #ffe08a, #ffc65c);
  border: 1.5px solid rgba(12,8,19,.85); box-shadow: 0 0 10px rgba(255,198,92,.7); animation: gdBang 1.6s ease-in-out infinite; }
.gd-pair .has-claim .gd-bang { display: grid; }
.gd-pair .has-claim { box-shadow: inset 0 0 0 1px rgba(255,198,92,.55); }
@keyframes gdBang { 50% { transform: scale(1.14); box-shadow: 0 0 16px rgba(255,198,92,.95); } }
.gd-goal.ready { background: rgba(255,198,92,.12); box-shadow: inset 0 0 0 1px rgba(255,198,92,.45); }
.gd-claim { grid-row: 1 / span 2; grid-column: 2; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 12px; color: #2a0e22; background: linear-gradient(135deg, #ffe08a, #ffc65c);
  box-shadow: 0 4px 14px rgba(255,198,92,.35); white-space: nowrap; }
.gd-claim:disabled { opacity: .55; }
.gd-claim.all { display: block; width: 100%; margin: 8px 0 4px; padding: 11px; font-size: 13px; border-radius: 12px; }

/* 21.10.2026 (владелица: «не слишком ли вырвиглаз?»): кнопки «Забрать» в окнах сада спокойнее — тёмная подложка, золотая рамка и золотой текст;
   «Забрать всё» — глубокое золото с тёмным текстом, без сильного свечения */
.gd-claim { background: rgba(255, 198, 92, .14) !important; color: #ffd98a !important; box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .55) !important; text-shadow: none !important; }
.gd-claim:active { background: rgba(255, 198, 92, .24) !important; }
.gd-claim.all { background: linear-gradient(135deg, #c8902f, #a9701f) !important; color: #fff4d6 !important; box-shadow: 0 2px 10px rgba(169, 112, 31, .35) !important; }
.gd-goal.ready { background: rgba(255, 198, 92, .07); box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .28); }

/* 22.10.2026: плашка «петалы сада» справа в шапке сада — нажатие открывает обмен на обычные петалы */
.gd-wallet { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
             font-size: 13px; font-variant-numeric: tabular-nums; border-color: rgba(198, 168, 255, .45) !important; }
.gd-wallet b { font-weight: 700; color: #e4d6ff; }
.gd-wallet .gd-wmark { display: inline-flex; }
.gd-wallet .icon-inline { width: 16px; height: 16px; }
.gd-season { right: 112px; }


.sheet-line .qty { white-space: nowrap; }
.sheet-line .qty .icon-inline { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-left: 4px; }
.gd-shop-head .gd-bal .icon-inline { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-left: 3px; }


/* ================================================= обмен петал (22.10.2026) — свой экран, не общий лист */
.gd-xch { position: absolute; inset: 0; z-index: 12; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.gd-xch.on { opacity: 1; }
.gd-xch[hidden] { display: none; }
.gd-xch.top { position: fixed; z-index: 1600; }          /* открыт из профиля, поверх всего приложения */
.gx-back { position: absolute; inset: 0; background: rgba(6, 3, 12, .62); backdrop-filter: blur(3px); }
.gx { position: relative; width: 100%; max-width: 520px; box-sizing: border-box; padding: 10px 18px calc(env(safe-area-inset-bottom, 0px) + 20px);
      border-radius: 26px 26px 0 0; border: 1px solid rgba(198, 168, 255, .28); border-bottom: 0;
      background: radial-gradient(70% 38% at 50% 0%, rgba(198, 168, 255, .20), transparent 72%),
                  radial-gradient(60% 30% at 88% 6%, rgba(255, 143, 208, .14), transparent 70%),
                  linear-gradient(180deg, rgba(30, 18, 52, .98), rgba(13, 8, 24, .99));
      box-shadow: 0 -18px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(198, 168, 255, .10) inset; transform: translateY(22px); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.gd-xch.on .gx { transform: none; }
.gx-grab { display: block; width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin: 0 auto 12px; }
.gx-x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
        background: rgba(255, 255, 255, .06); color: var(--g-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.gx h3 { margin: 2px 0 14px; text-align: center; font-family: var(--serif, inherit); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.gx-pair { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 6px; }
.gx-tok { display: grid; justify-items: center; gap: 5px; padding: 14px 8px 12px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .10); min-width: 0; }
.gx-tok.g { background: linear-gradient(160deg, rgba(198, 168, 255, .20), rgba(198, 168, 255, .05)); border-color: rgba(198, 168, 255, .35); }
.gx-tok.r { background: linear-gradient(160deg, rgba(255, 143, 208, .18), rgba(255, 143, 208, .04)); border-color: rgba(255, 143, 208, .32); }
.gx-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.gx-svg { width: 22px; height: 22px; }
.gx-tok b { font-size: 21px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-tok small { font-size: 11px; color: var(--g-dim); }
.gx-mid { display: grid; justify-items: center; gap: 4px; color: #e4d6ff; }
.gx-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); animation: gx-nudge 2.2s ease-in-out infinite; }
.gx-arrow svg { width: 16px; height: 16px; }
.gx-mid em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--g-pink); letter-spacing: .04em; }
@keyframes gx-nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
.gx-amt { margin-top: 16px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.gx-row, .gx-get { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--g-dim); }
.gx-row b { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.gx-row b .icon-inline, .gx-get b .icon-inline { width: 20px; height: 20px; }
.gx-get { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .12); }
.gx-get b { font-size: 20px; font-weight: 800; color: #ffb3dd; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.gx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 10px 0 4px; background: transparent; --p: 100%; cursor: pointer; }
.gx-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #c6a8ff 0, #ff8fd0 var(--p), rgba(255, 255, 255, .14) var(--p)); }
.gx-range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.gx-range::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #c6a8ff, #ff8fd0); }
.gx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid #ff8fd0; box-shadow: 0 0 14px rgba(255, 143, 208, .7); }
.gx-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #ff8fd0; box-shadow: 0 0 14px rgba(255, 143, 208, .7); }
.gx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gx-chip { flex: 1 1 0; min-width: 64px; padding: 8px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #e8dcff; font-size: 12.5px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.gx-chip.on { border-color: rgba(255, 143, 208, .7); background: rgba(255, 143, 208, .18); color: #fff; }
.gx-need { margin-top: 16px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.gx-need p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--g-dim); text-align: center; }
.gx-need p b { color: #e4d6ff; }
.gx-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gx-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #c6a8ff, #ff8fd0); }
.gx-go { width: 100%; margin-top: 16px; padding: 15px 16px; border-radius: 16px; border: 0; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
         background: linear-gradient(135deg, #e2479e, #8f5cff); box-shadow: 0 8px 24px rgba(143, 92, 255, .35); }
.gx-go:active { transform: scale(.98); }
.gx-go:disabled { opacity: .42; box-shadow: none; cursor: default; }
@media (prefers-reduced-motion: reduce) { .gx-arrow { animation: none; } .gx { transition: none; } }

/* 22.10.2026: в лавке сада две кнопки оплаты — основная за петалы чата, рядом поменьше за петалы сада */
.gd-pay { display: grid; gap: 5px; justify-items: stretch; flex: 0 0 auto; }
.gd-pay button { display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.gd-pay .gd-pay-chat { padding: 8px 12px; font-size: 14px; color: #fff; border: 0; background: linear-gradient(135deg, #e2479e, #9a6bff); box-shadow: 0 4px 14px rgba(226, 71, 158, .3); }
.gd-pay .gd-pay-garden { padding: 5px 10px; font-size: 11.5px; color: #e4d6ff; background: rgba(198, 168, 255, .10); border: 1px solid rgba(198, 168, 255, .38); }
.gd-pay .icon-inline { width: 14px; height: 14px; }
.gd-pay .poor { opacity: .5; }
.gd-shop-head .gd-bal { display: flex; align-items: center; gap: 4px; }
.gd-bal-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .22); margin: 0 5px; }
.gd-bal .gd-bal-g { color: #cdb6ff; }

.gd-item .gd-pay { grid-column: 3; grid-row: 1 / span 2; }
.gd-item:not(.has-ico) .gd-pay { grid-column: 2; }
.gd-item .gd-pay button { grid-row: auto; grid-column: auto; }

/* ------------------------------------------------------------ сад гостя */
/* 09.11.2026 (владелица: «зайти прямо в сад, увидеть вживую сакуру человека и просьбу о помощи»): тот же экран, но в чужом саду — без денег, заданий,
   ухода и магазина; остаются сцена, шкалы, подпись «Сад · ник» и кнопка «Помочь», если хозяин просил. */
.gd.visit .gd-wallet, .gd.visit .gd-pair, .gd.visit #gdCare, .gd.visit #gdShopBtn, .gd.visit #gdDrop, .gd.visit #gdHarvest { display: none !important; }
.gd.visit .gd-season { left: 52px; right: 52px; }
.gd-side .gd-help { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
                    border-color: rgba(255, 214, 150, .65); background: linear-gradient(135deg, rgba(128, 56, 112, .92), rgba(62, 30, 90, .92));
                    box-shadow: 0 0 16px rgba(255, 200, 120, .35); animation: gd-help-pulse 2.2s ease-in-out infinite; }
.gd-side .gd-help[hidden] { display: none; }
.gd-side .gd-help b { font-size: 14px; color: #ffe7b8; }
.gd-side .gd-help small { font-size: 11px; color: var(--g-dim); }
.gd-side .gd-help:disabled { opacity: .6; animation: none; }
@keyframes gd-help-pulse { 0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 120, .25); } 50% { box-shadow: 0 0 22px rgba(255, 200, 120, .6); } }