/* miniapp/base/unlock.css — постепенное открытие игры и обучение (base/unlock.js). */
/* Закрытое пока не показываем: плитки слева и значки сбора над зданиями */
.game[data-lock~="build"] .g-build,.game[data-lock~="build"] .g-collect{display:none!important}
.game[data-lock~="quests"] .g-quests{display:none!important}
.game[data-lock~="friends"] .g-friends{display:none!important}

/* «Открылось…» — карточка над кнопками снизу */
.g-unlock{position:absolute;z-index:9;left:50%;bottom:calc(var(--g-bottom) + 84px);transform:translateX(-50%);width:min(340px,calc(100% - 28px));
  padding:14px 16px;border-radius:18px;color:#fff;cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.25);
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.02) 55%),rgba(26,23,19,.58);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(255,255,255,.06),0 14px 34px -12px rgba(0,0,0,.5);animation:g-unlock-in .4s cubic-bezier(.2,.8,.2,1) both}
.g-unlock b{display:block;font-size:14px;font-weight:600;margin-bottom:4px;color:#ffc46b}
.g-unlock span{display:block;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.86)}
@keyframes g-unlock-in{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translateX(-50%)}}

/* Обучение: затемнение, кольцо вокруг нужного места, карточка с текстом */
.g-tour{position:absolute;inset:0;z-index:20;background:rgba(14,12,10,.45)}
.g-tour-ring{position:absolute;border-radius:22px;box-shadow:0 0 0 3px #ffb347,0 0 0 9999px rgba(14,12,10,.25);pointer-events:none;
  animation:g-ring 1.6s ease-in-out infinite}
@keyframes g-ring{50%{box-shadow:0 0 0 6px #ffb347,0 0 0 9999px rgba(14,12,10,.25)}}
.g-tour-card{position:absolute;left:50%;bottom:calc(var(--g-bottom) + 96px);transform:translateX(-50%);width:min(340px,calc(100% - 28px));
  padding:16px 16px 12px;border-radius:20px;background:var(--g-sheet);color:var(--g-sheet-ink);box-shadow:0 20px 50px -16px rgba(0,0,0,.6)}
.g-tour-card.up{bottom:auto;top:calc(var(--g-top) + 70px)}
/* шаг без подсвеченного места — по центру экрана: внизу карточка закрывала «+ Доход» и подсказку (06.10) */
.g-tour-card.mid{bottom:auto;top:50%;transform:translate(-50%,-50%)}
/* пока идёт обучение — подсказка «Начните отсюда» молчит (иначе две карточки друг на друге), панель «Сводка»
   затемнена вместе с городом и не нажимается (home-sheet.js) */
.game:has(.g-tour) .g-hint{visibility:hidden}
body:has(.g-tour) :is(.hs,.hs-dock,.hs-tab){filter:brightness(.55);pointer-events:none}
/* на компьютере шаг «+ Доход» подсвечивает форму дохода в панели «Сейчас» — её не затемняем */
body:has(.g-tour-ring.in-dock) .hs-dock{filter:none}
.g-tour-ring.in-dock{box-shadow:0 0 0 3px #ffb347}   /* без «затемни всё вокруг» — фон и так затемнён */
.g-tour-card small{display:block;font-size:11px;letter-spacing:.08em;color:var(--g-sheet-mut);margin-bottom:4px}
.g-tour-card b{display:block;font-size:16px;font-weight:600;margin-bottom:6px}
.g-tour-card span{display:block;font-size:13px;line-height:1.5}
.g-tour-btns{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.g-tour-btns button{min-height:44px;padding:0 16px;border-radius:12px;border:0;cursor:pointer;font:600 13px 'Unbounded',system-ui,sans-serif;
  background:transparent;color:var(--g-sheet-mut)}
.g-tour-btns .go{color:#fff;background:linear-gradient(180deg,#ffae45 0%,#fb8a12 55%,#ec6f00 100%)}
@media(prefers-reduced-motion:reduce){.g-unlock,.g-tour-ring{animation:none}}
