/* =====================================================================
 * „ღრუბელა მოგზაურობს“ (თამაში 17). ჩარჩო და ღილაკები: mascot-games.css.
 * ===================================================================== */
.mg-shell:has(.gh) > .mg-say { display: none; }
.mg-stage--ghrubela { align-items: stretch; }
.gh { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 680px; margin: 0 auto; }
/* თამაშის ბარათი: 8 ვარსკვლავი პატარაა და ღილაკი ქვემოთ ეტევა */
.mascot-games a.mg-tile[href="#tamashi-ghrubela"] .mg-tile__foot { flex-wrap: wrap; }
.mascot-games a.mg-tile[href="#tamashi-ghrubela"] .mg-tile__stars span { font-size: 15px; }
.gh-emoji, .gh-emoji-svg { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }
.gh-art { display: block; width: 100%; height: 100%; }

/* ---------- ზედა ზოლი: პასპორტი ---------- */
.gh-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gh-top__title { font-family: 'Mascot Mtavruli', var(--m-font-head, 'Noto Sans Georgian'), sans-serif; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; font-size: 15px; color: var(--mg-indigo, #475095); }
.mascot-games .gh-passbtn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 0; border-radius: 999px;
	background: var(--mg-deep, #3A3E85); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.gh-passbtn__book { display: inline-flex; }
.gh-passicon { display: block; width: 24px; height: 29px; }
.gh-bubble__icon .gh-passicon { width: 32px; height: 38px; }
.gh-passbtn__dots { display: inline-flex; gap: 4px; }
.gh-passbtn__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.gh-passbtn__dots span.is-on { background: var(--c); box-shadow: 0 0 0 2px #fff; }

/* ---------- ღრუბელა და ბუშტი ---------- */
.gh-talk { display: flex; align-items: center; gap: 10px; }
.mascot-games .gh-me { flex: none; width: 92px; height: 92px; padding: 0; border: 0; background: none; }
.gh-cloud { display: block; width: 100%; height: 100%; overflow: visible; }
.gh-c-eyes { animation: gh-blink 4.6s infinite; transform-origin: 59px 64px; }
@keyframes gh-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.gh-me .gh-cloud { animation: gh-float 3.2s ease-in-out infinite; }
@keyframes gh-float { 50% { transform: translateY(-5px); } }
.gh-me.is-talk .gh-cloud { animation: gh-talk .5s ease, gh-float 3.2s ease-in-out .5s infinite; }
@keyframes gh-talk { 40% { transform: scale(1.12) rotate(-4deg); } }
.gh-c-fall { animation: gh-fall 1s linear infinite; }
@keyframes gh-fall { from { transform: translateY(-6px); opacity: 1; } to { transform: translateY(10px); opacity: .2; } }
.gh-c-steam { animation: gh-steam 1.4s ease-in-out infinite; }
@keyframes gh-steam { from { transform: translateY(4px); opacity: .9; } to { transform: translateY(-6px); opacity: 0; } }

.gh-bubble {
	position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 12px 52px 12px 16px;
	border-radius: 22px; background: var(--mg-paper, #FBF8F3); box-shadow: inset 0 0 0 2px var(--mg-rule, #E7E1D6);
	font-weight: 700; font-size: 1.12em; line-height: 1.35; color: var(--mg-ink, #23264F);
}
.gh-bubble:before { content: ''; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: inherit; transform: rotate(45deg); box-shadow: -2px 2px 0 0 var(--mg-rule, #E7E1D6); }
.gh-bubble__icon { flex: none; font-size: 34px; line-height: 1; }
.gh-bubble__icon .gh-art { width: 40px; height: 40px; }
.mascot-games .gh-repeat { position: absolute; right: 8px; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: #fff; font-size: 18px; box-shadow: 0 2px 0 rgba(0,0,0,.12); }

/* ---------- დაფა ---------- */
.gh-board { position: relative; width: 100%; border-radius: 22px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.gh-map { display: block; width: 100%; height: auto; }
.gh-map [data-zone] { cursor: pointer; }
.gh-globe { max-width: 560px; margin: 0 auto; touch-action: none; }
.gh-land { transition: fill .4s ease; }

.gh-start { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 16px 30px; background: radial-gradient(circle at 50% 30%, #fff, #EEF2FF); border-radius: 22px; }
.gh-start__icon { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px var(--mg-tone, #26CAEF); font-size: 58px; }
.gh-start__icon .gh-stamp__geo { width: 86px; }
.mascot-games .gh-start__title { margin: 0 !important; font-family: 'Mascot Mtavruli', var(--m-font-head, 'Noto Sans Georgian'), sans-serif; font-weight: 800; letter-spacing: .03em; font-size: 22px; color: var(--mg-ink, #23264F); text-align: center; }
.mascot-games .gh-go { min-height: 60px; padding: 12px 34px; font-size: 22px; }

/* მფრინავი ღრუბელა */
.gh-fly { position: absolute; z-index: 2; width: 17%; max-width: 120px; aspect-ratio: 1; transform: translate(-50%, -50%); transition: left .9s cubic-bezier(.45,.05,.3,1), top .9s cubic-bezier(.45,.05,.3,1), opacity .6s, transform .6s; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(35,38,79,.18)); }
.gh-fly.is-tap { pointer-events: auto; cursor: pointer; }
.gh-fly.is-hidden { opacity: 0; transform: translate(-50%, 10%) scale(.3); pointer-events: none; }
.gh-fly.is-born { animation: gh-born 1.6s ease; }
@keyframes gh-born { from { opacity: 0; transform: translate(-50%, 30%) scale(.3); } }
.gh-fly.is-rain { animation: gh-wobble .5s ease 3; }
@keyframes gh-wobble { 50% { transform: translate(-50%, -50%) rotate(-5deg); } }

/* ანთება (მინიშნება) და სწორი პასუხი */
.gh-glow { animation: gh-glow 1s ease 3; }
@keyframes gh-glow { 50% { filter: drop-shadow(0 0 10px #FFD43B) drop-shadow(0 0 4px #FFD43B) brightness(1.15); opacity: 1; } }
.gh-flash { animation: gh-flash .8s ease; }
@keyframes gh-flash { 40% { filter: brightness(1.3) drop-shadow(0 0 8px #fff); } }
.gh-beacon { animation: gh-beacon 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gh-beacon { 50% { transform: scale(1.18); filter: drop-shadow(0 0 8px #FFD43B); } }
.gh-dim { opacity: .35; }
.gh-hit { transition: filter .2s; }

/* მდინარის დინება */
.gh-flow { animation: gh-flow 1.2s linear infinite; }
@keyframes gh-flow { to { stroke-dashoffset: -24; } }

/* ---------- ქვედა ზოლი: ნივთები გადასათრევად ---------- */
.gh-tray { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; min-height: 0; }
.gh-tray:empty { display: none; }
.mascot-games .gh-token {
	display: grid; place-items: center; width: 88px; height: 88px; padding: 6px; border: 0; border-radius: 24px; background: #fff;
	box-shadow: inset 0 0 0 3px var(--mg-rule, #E7E1D6), 0 6px 0 rgba(35,38,79,.08); font-size: 52px; touch-action: none; transition: transform .15s;
}
.mascot-games .gh-piece { padding: 0; border: 0; background: none; touch-action: none; min-width: 60px; transition: transform .15s; }
.gh-piece svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 4px rgba(35,38,79,.2)); }
.gh-drag { cursor: grab; }
.gh-drag.is-drag { position: relative; z-index: 20; cursor: grabbing; transition: none; }
.gh-drag.is-picked { transform: translateY(-8px) scale(1.08); box-shadow: inset 0 0 0 4px var(--m-yellow, #FFD43B), 0 10px 18px -8px rgba(35,38,79,.4); }
.gh-piece.is-picked { box-shadow: none; filter: drop-shadow(0 0 8px #FFD43B); }
.gh-drag.is-done { visibility: hidden; pointer-events: none; }
.gh-placed { display: grid; place-items: center; width: 90px; height: 90px; font-size: 64px; animation: gh-pop .45s ease; }
.gh-placed .gh-art { width: 78px; height: 78px; }
@keyframes gh-pop { from { transform: scale(.3); } 70% { transform: scale(1.15); } }

/* ---------- დონე 1 ---------- */
.gh-l1 { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 18px; background: linear-gradient(#DFF6FD, #fff); border-radius: 22px; }
.gh-l1__card { width: 180px; height: 180px; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 4px var(--m-orange, #EF9024), 0 14px 24px -14px rgba(35,38,79,.5); }
.gh-l1__card.is-flip { animation: gh-flip .6s ease; }
@keyframes gh-flip { 50% { transform: rotateX(80deg); } }
.gh-l1__arrow { font-size: 34px; }
.gh-l1__opts { display: flex; gap: 12px; }
.mascot-games .gh-opt { width: 112px; height: 112px; padding: 10px; border: 0; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 3px var(--mg-rule, #E7E1D6), 0 6px 0 rgba(35,38,79,.08); }
.gh-opt.is-right { box-shadow: inset 0 0 0 4px #2E7D32, 0 0 0 6px #C8EDB0; }

/* ---------- დონე 7: დღე და ღამე ---------- */
.gh-kid { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 30px; font-weight: 700; transition: background .4s; }
.gh-kid__flag { font-size: 14px; margin-right: 4px; }
.gh-kid.is-day { background: #FFF4C2; color: var(--mg-ink, #23264F); }
.gh-kid.is-night { background: #2A2D6B; color: #fff; }
.mascot-games .gh-spin { min-height: 52px; font-size: 20px; }

/* დონე 6: ხელი */
.gh-hand { position: absolute; left: 50%; top: 56%; font-size: 44px; pointer-events: none; animation: gh-hand 1.6s ease-in-out infinite; }
@keyframes gh-hand { 0% { transform: translateX(-40px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(40px); opacity: 0; } }

/* ---------- დონე 8: წყლის წრე ---------- */
.gh-vapor { opacity: 0; }
.gh-wc.is-vapor .gh-vapor { animation: gh-vapor 1.6s ease-in infinite; }
@keyframes gh-vapor { from { opacity: 0; transform: translateY(0); } 30% { opacity: .9; } to { opacity: 0; transform: translateY(-120px); } }
.gh-wc .gh-river { stroke-width: 4px; stroke-dasharray: 2 9; opacity: .45; transition: opacity .8s, stroke-width .8s; }
.gh-wc .gh-flow { display: none; }
.gh-wc.is-river .gh-river { stroke-width: 10px; stroke-dasharray: none; opacity: 1; }
.gh-wc.is-flow .gh-flow { display: inline; }

/* ---------- პასპორტი ---------- */
.gh-pass {
	position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: auto; padding: 18px 14px;
	border-radius: 22px; background: #2F6E57; background: linear-gradient(160deg, #3A3E85, #2A2D6B); color: #fff; animation: gh-pop .4s ease;
}
.mascot-games .gh-pass__title { margin: 0 !important; font-family: 'Mascot Mtavruli', var(--m-font-head, 'Noto Sans Georgian'), sans-serif; font-weight: 800; letter-spacing: .05em; font-size: 22px; color: var(--m-yellow, #FFD43B) !important; }
.gh-pass__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 620px; padding: 16px; border-radius: 18px; background: #FBF8F3; }
.mascot-games .gh-stamp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; border: 0; background: none; color: var(--mg-ink, #23264F); }
.mascot-games .gh-stamp[disabled] { cursor: default; opacity: .55; }
.gh-stamp__ring { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 4px dashed #C9C4B8; font-size: 36px; }
.gh-stamp.is-on .gh-stamp__ring { border: 4px double var(--c); background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); transform: rotate(-8deg); }
.gh-stamp.is-fresh .gh-stamp__ring { animation: gh-stamp .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes gh-stamp { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } }
.gh-stamp__n { font-size: 22px; font-weight: 800; color: #B5AFA2; }
.gh-stamp__geo { width: 58px; height: auto; }
.gh-stamp__t { font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.mascot-games .gh-pass__learn { max-width: 620px; margin: 0 !important; font-size: 15px; line-height: 1.45; text-align: center; color: #fff !important; }
.gh-pass__actions { margin: 0 !important; }

@media (max-width: 640px) {
	.mascot-games .gh-me { width: 64px; height: 64px; }
	.gh-bubble { min-height: 56px; padding: 10px 46px 10px 12px; font-size: 1em; border-radius: 18px; }
	.gh-bubble__icon { font-size: 26px; }
	.mascot-games .gh-repeat { width: 34px; height: 34px; margin-top: -17px; font-size: 15px; }
	.gh-board { border-radius: 16px; }
	.mascot-games .gh-token { width: 70px; height: 70px; font-size: 42px; border-radius: 18px; }
	.gh-l1 { gap: 10px; padding: 12px; }
	.gh-l1__card { width: 130px; height: 130px; }
	.gh-l1__arrow { font-size: 24px; }
	.gh-l1__opts { gap: 8px; width: 100%; justify-content: center; }
	.mascot-games .gh-opt { width: 30%; max-width: 100px; height: auto; aspect-ratio: 1; }
	.gh-pass__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 6px; }
	.gh-stamp__ring { width: 56px; height: 56px; font-size: 26px; }
	.gh-stamp__geo { width: 44px; }
	.gh-stamp__t { font-size: 10px; }
	.gh-kid { font-size: 24px; padding: 6px 12px; }
	.gh-placed { width: 70px; height: 70px; font-size: 50px; }
}
@media (prefers-reduced-motion: reduce) {
	.gh-me .gh-cloud, .gh-c-eyes, .gh-flow, .gh-beacon, .gh-hand, .gh-c-fall, .gh-c-steam { animation: none !important; }
	.gh-fly { transition-duration: .01s; }
}

/* პასპორტის ნავიგაცია: დიდი ღილაკები ბავშვისა და მშობლისთვის */
.gh-pass__nav { position: sticky; bottom: -18px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: calc(100% + 28px); margin: auto -14px -18px; padding: 14px 14px 18px; background: linear-gradient(180deg, rgba(42,45,107,0), #2A2D6B 30%); }
.mascot-games .gh-nav { min-height: 56px; padding: 12px 26px; font-size: 18px; border-radius: 999px; }
.mascot-games .gh-nav--next { min-width: 220px; background: var(--m-yellow, #FFD43B); color: var(--mg-ink, #23264F); box-shadow: 0 5px 0 #D9A900; }
.mascot-games .gh-pass .mg-btn--ghost.gh-nav { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); background: transparent; }
@media (max-width: 640px) { .gh-pass__nav { gap: 8px; } .mascot-games .gh-nav { flex: 1 1 0; min-height: 48px; padding: 10px 12px; font-size: 15px; } .mascot-games .gh-nav--next { order: -1; flex: 1 1 100%; min-height: 56px; font-size: 18px; } }

/* შეცდომა: ✗ შეხების ადგილზე; მინიშნება: ხელი სწორ პასუხზე */
.gh-wrong { position: absolute; z-index: 7; width: 54px; height: 54px; margin: -27px 0 0 -27px; pointer-events: none; animation: gh-wrong 1.4s ease forwards; }
.gh-wrong svg { width: 100%; height: 100%; display: block; }
.gh-wrong circle { fill: #fff; stroke: #E5484D; stroke-width: 3.5; }
.gh-wrong path { fill: none; stroke: #E5484D; stroke-width: 5; stroke-linecap: round; }
@keyframes gh-wrong { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.gh-hand { position: absolute; z-index: 7; font-size: 46px; line-height: 1; margin: 2px 0 0 -16px; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(35,38,79,.35)); animation: gh-hand .7s ease-in-out infinite alternate; }
@keyframes gh-hand { from { transform: translateY(6px); } to { transform: translateY(-6px); } }
.gh-answer { animation: gh-glow 1s ease infinite !important; }
@media (prefers-reduced-motion: reduce) { .gh-hand, .gh-answer { animation: none !important; } }

/* ტელეფონმა ხმა თუ დაბლოკა */
.mascot-games .gh-unmute { align-self: center; min-height: 52px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--m-yellow, #FFD43B); color: var(--mg-ink, #23264F); font-weight: 800; font-size: 17px; box-shadow: 0 4px 0 #D9A900, 0 8px 18px rgba(35,38,79,.25); animation: gh-hand .7s ease-in-out infinite alternate; }
.mascot-games .gh-unmute[hidden] { display: none; }
