/* Гість (js/guest.js, js/demo.js, js/tour.js, 2026-11-29): картка-запрошення, плашка «Режим перегляду», позначка «Приклад», екскурсія */
/* Гість лише переглядає (js/guest.js, 2026-11-29): картка-запрошення — глибокий синій, як план дня, зі світлом і склом */
.gg-card{position:relative;overflow:hidden;isolation:isolate;background:var(--hero-grad);border:1px solid var(--hero-edge);color:#fff;border-radius:28px;padding:24px 20px 20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 18px 40px -18px rgba(23,45,110,.55),inset 0 1px 0 rgba(255,255,255,.14)}
.gg-card.compact{padding:20px 18px 18px;gap:14px;border-radius:24px}
.gg-glow{position:absolute;z-index:-1;width:260px;height:260px;right:-90px;top:-110px;border-radius:50%;background:radial-gradient(circle,rgba(150,180,255,.45) 0%,rgba(150,180,255,0) 70%);pointer-events:none}
.gg-glow::after{content:"";position:absolute;width:180px;height:180px;left:-160px;top:260px;border-radius:50%;background:radial-gradient(circle,rgba(120,150,255,.25) 0%,rgba(120,150,255,0) 70%)}
.gg-top{display:flex;align-items:center;gap:14px}
.gg-mark{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px -10px rgba(0,0,0,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.gg-card.compact .gg-mark{width:46px;height:46px;border-radius:14px}
.gg-head{min-width:0}
.gg-kicker{font-size:var(--fs-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--hero-dim)}
.gg-title{margin:2px 0 0;font-family:var(--font-head);font-weight:400;font-size:26px;line-height:1.12;letter-spacing:-.01em;color:#fff;overflow-wrap:anywhere}
.gg-card.compact .gg-title{font-size:21px}
.gg-pitch{margin:0;font-size:15px;line-height:1.5;color:rgba(255,255,255,.9)}
.gg-perks{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.gg-perks li{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10)}
.gg-pi{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.12);color:#fff}
.gg-perks b{display:block;font-weight:600;font-size:15px;line-height:1.3;color:#fff}
.gg-perks small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--hero-dim)}
.gg-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:4px}
.gg-cta{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 20px;border-radius:16px;background:#fff;color:#172D6E;font-weight:700;font-size:16px;text-decoration:none;border:0;box-shadow:0 10px 24px -12px rgba(0,0,0,.55);transition:transform .15s ease,box-shadow .15s ease}
.gg-cta:active{transform:scale(.98)}
.gg-cta .ico{color:#24449E}
.gg-link{align-self:center;padding:6px 8px;font-size:14px;color:var(--hero-dim);text-decoration:none}
.gg-link b{color:#fff;font-weight:600}
.gg-note{margin:0;text-align:center;font-size:13px;color:var(--hero-dim)}
.gg-back{display:inline-flex;align-items:center;gap:8px;align-self:center;padding:10px 14px;border-radius:12px;font-size:14px;font-weight:600;color:var(--ink-dim);text-decoration:none}
html.kbd .gg-cta:focus-visible,html.kbd .gg-link:focus-visible,html.kbd .gg-back:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.gg-cta{transition:none}}
/* Режим перегляду (гість): плашка над нижньою панеллю й шторка «Зареєструйтеся» */
.gg-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--quickbar-h) + var(--safe-b) + 12px);z-index:31;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 32px);padding:6px 6px 6px 14px;border-radius:999px;background:color-mix(in srgb,var(--hero) 92%,transparent);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 28px -12px rgba(11,21,48,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);white-space:nowrap}
.gg-bar-ic{display:grid;place-items:center;color:var(--hero-dim)}
.gg-bar-t{font-size:13px;font-weight:600;color:#fff;overflow:hidden;text-overflow:ellipsis}
.gg-bar-cta{flex:none;padding:7px 14px;border-radius:999px;background:#fff;color:#172D6E;font-size:13px;font-weight:700;text-decoration:none}
body.gg-reader #view{padding-bottom:calc(var(--quickbar-h) + var(--safe-b) + 72px)}
.gg-nudge{gap:12px}
.gg-nudge .gg-card{box-shadow:none}
.gg-more{min-height:48px}
/* плашка: «?» — екскурсія (дотик 44×44 за рахунок невидимого поля) */
.gg-bar{min-height:44px}
.gg-bar-help{position:relative;flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gg-bar-help::after,.gg-bar-cta::after{content:"";position:absolute;inset:-7px}
.gg-bar-cta{position:relative;min-height:30px;display:inline-flex;align-items:center}
html.kbd .gg-bar-help:focus-visible,html.kbd .gg-bar-cta:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:340px){.gg-bar{gap:6px;padding-left:10px}.gg-bar-t{font-size:12px}}

/* «Приклад» — дані на сторінці не учня, а зразок */
.gg-sample{display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:0 auto 14px;padding:5px 12px;border-radius:999px;border:1px dashed var(--line-strong,var(--line));color:var(--ink-dim);font-size:12.5px;font-weight:600;line-height:1.3}
.gg-sample .ico{flex:none}

/* ---------- Екскурсія (js/tour.js) ---------- */
.tour{position:fixed;inset:0;z-index:90;pointer-events:none;animation:tour-in .28s ease both}
.tour.out{animation:tour-out .2s ease both}
.tour-block{position:fixed;inset:0;pointer-events:auto;touch-action:none;overscroll-behavior:contain;-webkit-tap-highlight-color:transparent}
.tour-hole{position:fixed;left:0;top:0;width:0;height:0;border-radius:20px;pointer-events:none;
  box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 0 6px rgba(120,150,255,.35),0 0 0 200vmax rgba(5,10,26,.66);
  transition:transform .42s cubic-bezier(.22,.8,.24,1),width .42s cubic-bezier(.22,.8,.24,1),height .42s cubic-bezier(.22,.8,.24,1),border-radius .42s ease;will-change:transform}
.tour-card{position:fixed;left:0;top:0;pointer-events:auto;isolation:isolate;overflow:hidden;box-sizing:border-box;
  display:flex;flex-direction:column;gap:12px;padding:18px 18px 16px;border-radius:24px;color:#fff;background:var(--hero-grad);border:1px solid var(--hero-edge);
  box-shadow:0 24px 48px -18px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.14);font-family:var(--font-body,Onest),system-ui,sans-serif;
  transition:transform .42s cubic-bezier(.22,.8,.24,1),opacity .25s ease;outline:none}
.tour.moving .tour-card{opacity:.0}
.tour-glow{position:absolute;z-index:-1;width:220px;height:220px;right:-80px;top:-100px;border-radius:50%;background:radial-gradient(circle,rgba(150,180,255,.42) 0%,rgba(150,180,255,0) 70%);pointer-events:none}
.tour-top{display:flex;align-items:center;gap:12px}
.tour-mark{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.tour-head{min-width:0;display:flex;flex-direction:column;gap:2px}
.tour-count{font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--hero-dim)}
.tour-title{margin:0;font-family:var(--font-head);font-weight:400;font-size:20px;line-height:1.15;color:#fff;overflow-wrap:anywhere}
.tour-text{margin:0;font-size:15px;line-height:1.5;color:rgba(255,255,255,.92)}
.tour-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tour-dots{display:flex;gap:6px;align-items:center}
.tour-dots i{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.3);transition:width .3s ease,background .3s ease}
.tour-dots i.past{background:rgba(255,255,255,.6)}
.tour-dots i.on{width:18px;background:#fff}
.tour-acts{display:flex;gap:6px;align-items:center;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.tour-skip,.tour-next{min-height:44px;border:0;border-radius:14px;font:inherit;font-size:15px;cursor:pointer;-webkit-tap-highlight-color:transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.tour-skip{padding:0 12px;background:transparent;color:var(--hero-dim);font-weight:600}
.tour-next{padding:0 18px;background:#fff;color:#172D6E;font-weight:700;box-shadow:0 10px 22px -12px rgba(0,0,0,.55);transition:transform .15s ease}
.tour-next .ico{color:#24449E}
.tour-next:active{transform:scale(.97)}
.tour-skip:focus-visible,.tour-next:focus-visible{outline:2px solid #fff;outline-offset:2px}
@keyframes tour-in{from{opacity:0}to{opacity:1}}
@keyframes tour-out{from{opacity:1}to{opacity:0}}
/* без анімацій — за налаштуванням системи */
.tour.still,.tour.still .tour-hole,.tour.still .tour-card,.tour.still .tour-dots i{animation:none;transition:none}
@media (prefers-reduced-motion:reduce){.tour,.tour.out,.tour-hole,.tour-card,.tour-dots i,.tour-next{animation:none;transition:none}}
/* під час екскурсії плашка не реагує на дотик (вона видна в підсвічуванні, а дія — на картці) */
html.tour-on .gg-bar{pointer-events:none}
@media (max-width:360px){.tour-card{padding:16px 14px 14px;gap:10px}.tour-title{font-size:18px}.tour-text{font-size:14px}.tour-next{padding:0 14px}}
.tour.first .tour-hole,.tour.first .tour-card{transition:none}
