/* =====================================================================
 * „მასკოტი“ — თამაშები
 * ფერები და შრიფტები მოდის ადმინი → Mascot → ფერები და შრიფტები-დან.
 * ===================================================================== */
.mascot-games {
	--mg-ink: var(--m-ink, #23264F); --mg-paper: var(--m-paper, #FBF8F3); --mg-rule: var(--m-rule, #E7E1D6);
	--mg-indigo: var(--m-indigo, #475095); --mg-deep: var(--m-deep, #3A3E85);
	--mg-tone: var(--m-blue, #26CAEF);
	margin: 0 0 32px; font-family: var(--m-font-body, system-ui, sans-serif); font-size: max(16px, var(--m-kids-size, 18px)); line-height: 1.4;
}
.mascot-games *, .mascot-games *:before, .mascot-games *:after { box-sizing: border-box; }
.mascot-games :where(button) { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascot-games button:focus-visible, .mascot-games a:focus-visible, .mascot-games [tabindex]:focus-visible { outline: 3px solid var(--m-blue, #26CAEF); outline-offset: 3px; }

.mg-tone-blue { --mg-tone: var(--m-blue, #26CAEF); }
.mg-tone-orange { --mg-tone: var(--m-orange, #EF9024); }
.mg-tone-green { --mg-tone: var(--m-green, #83D44B); }
.mg-tone-purple { --mg-tone: var(--m-purple, #7A3F8B); }
.mg-tone-pink { --mg-tone: var(--m-pink, #EF53B6); }
.mg-tone-yellow { --mg-tone: var(--m-yellow, #FFD43B); }

/* სათაურები მთავრულით */
.mascot-games .mg-group__title, .mascot-games .mg-title, .mg-tile__title, .mg-win__title, .mg-age__name, .mascot-games .mg-cw__h {
	font-family: 'Mascot Mtavruli', var(--m-font-head, 'Noto Sans Georgian'), sans-serif; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}

/* ---------- თამაშების ბარათები ---------- */
.mg-group { margin: 0 0 40px; }
.mascot-games .mg-group__title { margin: 0 0 18px !important; padding: 0 !important; font-family: var(--m-font-head, Georgia, serif); font-size: clamp(24px, 2.6vw, 32px) !important; color: #fff; }
.mg-group__title:after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--m-rainbow, linear-gradient(90deg, #EF9024, #EF53B6, #FFD43B, #26CAEF, #83D44B)); margin-top: 12px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.mascot-games a.mg-tile {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--m-radius, 24px);
	background: #fff; color: var(--mg-ink) !important; text-decoration: none !important; border-top: 6px solid var(--mg-tone);
	box-shadow: var(--m-shadow, 0 22px 44px -24px rgba(10,12,52,.65)); transition: transform .18s ease, box-shadow .18s ease;
}
.mascot-games a.mg-tile:hover { transform: translateY(-4px); }
.mg-tile__icon {
	display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%;
	background: var(--mg-tone); font-size: 34px; line-height: 1; color: #fff; font-weight: 700; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12);
}
.mg-tile__skill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--mg-paper); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.mg-tile__title { font-family: var(--m-font-head, Georgia, serif); font-size: 21px; font-weight: 700; line-height: 1.25; }
.mg-tile__desc { font-size: 15px; color: #5A5E80; flex: 1; }
.mg-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.mg-tile__stars span, .mg-win__stars span { color: #D9DBE6; font-size: 22px; }
.mg-tile__stars span.is-on, .mg-win__stars span.is-on { color: var(--m-yellow, #FFD43B); text-shadow: 0 1px 0 #E0A800; }
.mg-tile__go { padding: 8px 16px; border-radius: 999px; background: var(--m-yellow, #FFD43B); font-weight: 700; font-size: 15px; box-shadow: 0 3px 0 rgba(0,0,0,.12); }

/* ---------- თამაშის ჩარჩო ---------- */
.mg-shell {
	position: relative; overflow: hidden; padding: 18px 18px 26px; border-radius: 26px; background: #fff; color: var(--mg-ink);
	border-top: 8px solid var(--mg-tone); box-shadow: var(--m-shadow, 0 22px 44px -24px rgba(10,12,52,.65));
}
.mg-shell.is-won { min-height: 560px; }
.mg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.mascot-games .mg-title { flex: 1; margin: 0 !important; padding: 0 !important; font-family: var(--m-font-head, Georgia, serif); font-size: clamp(22px, 2.4vw, 28px) !important; color: var(--mg-ink) !important; }
.mg-level { padding: 4px 12px; border-radius: 999px; background: var(--mg-paper); font-weight: 600; font-size: 15px; }
.mg-level:empty { display: none; }
.mg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px;
	background: var(--m-yellow, #FFD43B); font-weight: 700 !important; box-shadow: 0 4px 0 rgba(0,0,0,.14); transition: transform .12s ease;
}
.mg-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.14); }
.mg-btn--ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mg-rule); }
.mg-sound { min-width: 48px; padding: 8px 12px; font-size: 20px; }
.mg-say { min-height: 1.6em; margin: 8px 0 14px !important; padding: 0 !important; text-align: center; font-weight: 600; font-size: 1.1em; color: var(--mg-ink) !important; }
.mg-say.is-good { color: #2E7D32 !important; }
.mg-say.is-try { color: #B25E00 !important; }
.mg-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mg-art-svg { display: block; width: 100%; height: 100%; }
.mg-emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; line-height: 1; }
.mg-emoji--xl { font-size: clamp(84px, 16vw, 128px); }
.mg-fact { max-width: 620px; min-height: 3em; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--mg-ink) !important; }
.mg-fact:empty { visibility: hidden; }
.mg-fact__art { flex: none; display: grid; place-items: center; width: 52px; height: 52px; font-size: 40px; }

/* შექება და შეცდომა */
.mg-shake { animation: mg-shake .45s ease; }
@keyframes mg-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.mg-pop { animation: mg-pop .4s ease; }
@keyframes mg-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.mg-hint { animation: mg-glow 1.1s ease-in-out infinite; }
@keyframes mg-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,59,.0); } 50% { box-shadow: 0 0 0 8px rgba(255,212,59,.75); } }

/* ბარათები, არჩევანი */
.mg-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mg-choice {
	display: grid; place-items: center; width: 108px; height: 108px; padding: 10px; border: 3px solid var(--mg-rule); border-radius: 22px; background: #fff;
	font-size: 60px; transition: transform .12s ease, border-color .12s ease;
}
.mg-choice:hover { border-color: var(--mg-tone); transform: translateY(-2px); }
.mg-choice.is-right { border-color: var(--m-green, #83D44B); background: #F1FBE8; }
.mg-letter { font-family: var(--m-font-head, Georgia, serif); font-size: 56px; font-weight: 700; color: var(--mg-indigo); }
.mg-choices--wide { flex-direction: column; align-items: stretch; width: min(100%, 460px); }
.mg-choice--text { display: flex; align-items: center; gap: 14px; width: auto; height: auto; min-height: 72px; padding: 12px 18px; font-size: 1.05em; font-weight: 600; text-align: left; }
.mg-choice--text .mg-emoji { font-size: 38px; }
.mg-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 200px; padding: 18px 28px; border-radius: 26px; background: var(--mg-paper); }
.mg-hero--small { flex-direction: row; min-width: 0; padding: 10px 20px; }
.mg-hero--small .mg-art-svg { width: 64px; height: 64px; }
.mg-hero__name { font-family: var(--m-font-head, Georgia, serif); font-size: 1.3em; font-weight: 700; }
.mg-hero__count { position: absolute; top: 10px; right: 14px; font-size: 13px; font-weight: 600; color: #8A8EAA; }
.mg-hero.is-going { opacity: .45; transform: scale(.92); transition: all .5s ease; }

/* 1. წყვილები */
.mg-cards { display: grid; gap: 12px; width: min(100%, 460px); grid-template-columns: repeat(3, 1fr); }
.mg-cards--8, .mg-cards--12 { width: min(100%, 540px); }
.mg-cards--8 { grid-template-columns: repeat(4, 1fr); }
.mg-cards--12 { grid-template-columns: repeat(4, 1fr); }
.mg-card { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 18px; background: transparent; perspective: 800px; }
.mg-card > span {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px;
	border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s ease;
}
.mg-card__back { background: var(--mg-indigo); color: var(--m-yellow, #FFD43B); font-size: 42px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.15);
	background-image: radial-gradient(circle at 20% 25%, rgba(255,255,255,.25) 0 2px, transparent 3px), radial-gradient(circle at 75% 70%, rgba(255,255,255,.2) 0 2px, transparent 3px); }
.mg-card__front { transform: rotateY(180deg); background: #fff; border: 3px solid var(--mg-rule); }
.mg-card.is-open .mg-card__back { transform: rotateY(-180deg); }
.mg-card.is-open .mg-card__front { transform: rotateY(0); }
.mg-card.is-found .mg-card__front { border-color: var(--m-green, #83D44B); background: #F1FBE8; }
.mg-card__front .mg-emoji { font-size: clamp(40px, 7vw, 64px); }
.mg-card__front .mg-art-svg { width: 70%; height: auto; }
.mg-card__name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; }

/* 2. პლანეტები */
.mg-orbit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 18px; border-radius: 22px;
	background: var(--mg-deep); background-image: radial-gradient(circle at 12% 30%, rgba(255,255,255,.5) 0 1px, transparent 2px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.45) 0 1px, transparent 2px), radial-gradient(circle at 40% 15%, rgba(255,255,255,.4) 0 1px, transparent 2px); }
.mg-orbit__sun { display: flex; flex-direction: column; align-items: center; width: 92px; color: #fff; font-weight: 700; font-size: 14px; }
.mg-orbit__sun .mg-art-svg { width: 84px; height: 84px; }
.mg-orbit__slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 96px; border: 2px dashed rgba(255,255,255,.35); border-radius: 18px; color: #fff; }
.mg-orbit__slot .mg-art-svg { width: 60px; height: 60px; }
.mg-orbit__slot.is-filled { border-style: solid; border-color: rgba(255,255,255,.15); }
.mg-orbit__num { font-size: 22px; font-weight: 700; opacity: .55; }
.mg-orbit__name { font-size: 12px; font-weight: 600; }
.mg-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mg-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 106px; padding: 8px 4px 10px; border: 3px solid var(--mg-rule); border-radius: 20px; background: #fff; font-size: 13px; font-weight: 600; }
.mg-chip .mg-art-svg { width: 62px; height: 62px; }
.mg-chip:hover { border-color: var(--mg-tone); }

/* 3. სახლები */
.mg-homes { display: grid; gap: 12px; width: min(100%, 720px); grid-template-columns: repeat(2, 1fr); }
.mg-homes--3 { grid-template-columns: repeat(3, 1fr); }
.mg-homes--4 { grid-template-columns: repeat(4, 1fr); }
.mg-home { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 120px; padding: 14px 8px; border: 0; border-radius: 22px; font-weight: 700; color: var(--mg-ink); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.mg-home .mg-emoji { font-size: 46px; }
.mg-home--ocean { background: #D3F3FB; }
.mg-home--forest { background: #E2F5D2; }
.mg-home--desert { background: #FCEBCB; }
.mg-home--ice { background: #EEF1FA; }

/* 4. ჩრდილი */
.mg-silhouette { filter: brightness(0); opacity: .82; transition: filter .5s ease, opacity .5s ease; }
.mg-silhouette.is-shown { filter: none; opacity: 1; }

/* 5. წერტილები */
.mg-dots { width: min(100%, 520px); height: auto; aspect-ratio: 1; border-radius: 22px; background: var(--mg-paper); touch-action: manipulation; }
.mg-dots__fill { fill: transparent; transition: fill .4s ease; }
.mg-dots__line { fill: none; stroke: var(--mg-indigo); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-dots--33 .mg-dots__line { stroke-width: .9; }
.mg-dot { cursor: pointer; outline: none; }
.mg-dot__hit { fill: transparent; }
.mg-dot__pt { fill: var(--mg-ink); }
.mg-dot__label { fill: var(--mg-indigo); font-weight: 700; text-anchor: middle; font-family: var(--m-font-head, Georgia, serif); pointer-events: none; }
.mg-dot.is-done .mg-dot__pt { fill: var(--m-pink, #EF53B6); }
.mg-dot.is-done .mg-dot__label { fill: #B4B7C8; }
.mg-dot.mg-hint { animation: none; }
.mg-dot.mg-hint .mg-dot__hit { fill: rgba(255,212,59,.6); animation: mg-blink 1s ease-in-out infinite; }
.mg-dot:focus-visible .mg-dot__hit { fill: rgba(38,202,239,.35); }
@keyframes mg-blink { 50% { fill: rgba(255,212,59,.1); } }
.mg-strip { min-height: 1.4em; margin: 0 !important; padding: 0 !important; font-family: var(--m-font-head, Georgia, serif); font-size: 1.15em; letter-spacing: .08em; text-align: center; color: var(--mg-indigo) !important; }
.mg-palette { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.mg-swatch { width: 48px; height: 48px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--mg-rule); }

/* 6. სიტყვა */
.mg-word { font-family: var(--m-font-head, Georgia, serif); font-size: 1.6em; letter-spacing: .06em; color: var(--mg-indigo); }
.mg-word b { color: var(--m-pink, #EF53B6); }

/* 7. სუფრა */
.mg-mat {
	display: grid; width: min(100%, 520px); aspect-ratio: 16 / 10; padding: 16px; gap: 6px; border-radius: 26px;
	background: #FCE7F3; background-image: repeating-linear-gradient(45deg, rgba(239,83,182,.08) 0 12px, transparent 12px 24px);
	grid-template-columns: 1fr 2.4fr 1fr 1fr; grid-template-rows: 1fr 2.4fr;
	grid-template-areas: ". . top top" "left center right right2";
}
.mg-mat__slot { display: grid; place-items: center; padding: 6px; border: 2.5px dashed rgba(35,38,79,.25); border-radius: 18px; background: rgba(255,255,255,.55); }
.mg-mat__slot.is-filled { border-color: transparent; background: transparent; }
.mg-mat__slot--top { grid-area: top; justify-self: center; width: 70%; }
.mg-mat__slot--left { grid-area: left; }
.mg-mat__slot--center { grid-area: center; border-radius: 50%; aspect-ratio: 1; justify-self: center; height: 100%; }
.mg-mat__slot--right { grid-area: right; }
.mg-mat__slot--right2 { grid-area: right2; }
.mg-mat__slot .mg-art-svg { max-height: 100%; }
.mg-quiz { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.mg-quiz__q { margin: 0 !important; padding: 0 !important; font-family: var(--m-font-head, Georgia, serif); font-size: 1.35em; font-weight: 700; text-align: center; color: var(--mg-ink) !important; }

/* 8. მწკრივი */
.mg-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px; border-radius: 22px; background: var(--mg-paper); }
.mg-seq__item { display: grid; place-items: center; width: 58px; height: 58px; }
.mg-seq__q { border: 3px dashed var(--mg-tone); border-radius: 16px; font-size: 32px; font-weight: 700; color: var(--mg-tone); }

/* 9. ლაბირინთი */
.mg-maze-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.mg-maze { width: min(100%, 480px); height: auto; aspect-ratio: 1; padding: 8px; border-radius: 22px; background: var(--mg-deep); touch-action: none; }
.mg-maze__walls { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.mg-maze__trail { fill: none; stroke: var(--m-yellow, #FFD43B); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.mg-maze__goal { fill: var(--m-yellow, #FFD43B); }
.mg-maze__hero { transition: transform .15s ease; }
.mg-pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 64px); gap: 8px; grid-template-areas: ". up ." "left down right"; }
.mg-pad__btn { border: 0; border-radius: 18px; background: var(--m-yellow, #FFD43B); font-size: 28px; font-weight: 700; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.mg-pad__btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.14); }
.mg-pad__btn--up { grid-area: up; } .mg-pad__btn--left { grid-area: left; } .mg-pad__btn--down { grid-area: down; } .mg-pad__btn--right { grid-area: right; }

/* ---------- ასაკები ---------- */
.mg-ages { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.mascot-games .mg-age, .mascot-learn .mg-age {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 150px; padding: 10px 16px 10px 10px;
	border: 0; border-radius: 20px; background: #fff; color: var(--m-ink, #23264F) !important; text-align: left; text-decoration: none !important;
	box-shadow: inset 0 0 0 2px rgba(35,38,79,.08), 0 10px 22px -16px rgba(10,12,52,.6); transition: transform .15s ease;
}
.mg-age:hover { transform: translateY(-2px); }
.mg-age__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mg-tone, #26CAEF); font-size: 24px; line-height: 1;
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.mg-age__name { font-weight: 700; font-size: 16px; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.mg-age__range { font-size: 13px; color: #5A5E80; line-height: 1.2; }
.mascot-games .mg-age.is-on, .mascot-learn .mg-age.is-on { background: var(--m-yellow, #FFD43B); box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.mg-age.is-on .mg-age__icon { background: #fff; }
.mg-age.is-on .mg-age__range { color: var(--m-ink, #23264F); }
.mg-age-text, .mascot-learn__text { max-width: 720px; margin: 0 auto 26px !important; padding: 0 !important; text-align: center; font-size: 1.05em; }
.mg-tile__ages { position: absolute; top: 18px; right: 18px; display: flex; gap: 2px; font-size: 18px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.mascot-learn { --mg-ink: var(--m-ink, #23264F); }
.mascot-learn .mascot-games { margin-top: 8px; }
/* მშობლის ზონა: ღია ფონი */
body.mascot-parent-zone .mascot-games .mg-group__title, .mascot-sec--paper .mascot-games .mg-group__title { color: var(--m-ink, #23264F) !important; }
body.mascot-parent-zone .mg-age-text { color: var(--m-ink, #23264F); }

/* 10. დათვლა */
.mg-count__items { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 10px 14px; min-height: 80px; font-size: 52px; }
.mg-count__items--few { grid-template-columns: repeat(5, auto); }
.mg-count__items .mg-emoji { font-size: clamp(40px, 7vw, 58px); }
.mg-num { display: flex; flex-direction: column; gap: 4px; }
.mg-num__digit { font-family: var(--m-font-head, Georgia, serif); font-size: 48px; font-weight: 700; line-height: 1; color: var(--mg-indigo); }
.mg-num__name { font-size: 16px; font-weight: 600; }

/* 11. ფერები */
.mg-sample__art { display: grid; place-items: center; width: 110px; height: 110px; }
.mg-sample__blob { display: block; width: 92px; height: 92px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); }

/* 12. კროსვორდი */
.mg-cw-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px; width: 100%; }
.mg-cw-main { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 520px); }
.mg-cw { display: grid; gap: 2px; width: min(100%, calc(var(--cw-cols, 10) * 42px)); outline: none; }
.mg-cw:focus-visible { outline: 3px solid var(--m-blue, #26CAEF); outline-offset: 4px; border-radius: 6px; }
.mg-cw__cell { position: relative; aspect-ratio: 1; }
.mg-cw__cell.is-open {
	display: grid; place-items: center; background: #fff; border: 2px solid #C9CCDA; border-radius: 5px; cursor: pointer;
	font-family: var(--m-font-head, Georgia, serif); font-weight: 700; font-size: clamp(13px, 3.4vw, 22px); color: var(--mg-ink); line-height: 1;
}
.mg-cw__cell[data-num]:before { content: attr(data-num); position: absolute; top: 1px; left: 3px; font-family: var(--m-font-body, sans-serif); font-size: 9px; font-weight: 700; color: #8A8EAA; line-height: 1; }
.mg-cw__cell.is-word { background: #FFF6CC; border-color: #E8C33A; }
.mg-cw__cell.is-cur { background: var(--m-yellow, #FFD43B); border-color: #D9A800; }
.mg-cw__cell.is-bad { color: #D93025; background: #FDE8E6; }
.mg-cw__cell.is-hint { color: var(--m-blue-dark, #0E8FB0); }
.mg-cw__now { min-height: 1.4em; margin: 0 !important; padding: 0 !important; text-align: center; font-weight: 600; color: var(--mg-indigo) !important; }
.mg-cw__clues { display: flex; flex-direction: column; gap: 14px; width: min(100%, 360px); text-align: left; }
.mascot-games .mg-cw__h { margin: 0 0 6px !important; padding: 0 !important; font-size: 17px !important; color: var(--mg-ink) !important; }
.mg-cw__list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.mg-cw__clue { margin: 0 0 4px; padding: 6px 10px; border-radius: 10px; font-size: 15px; line-height: 1.35; cursor: pointer; }
.mg-cw__clue span { color: #8A8EAA; }
.mg-cw__clue:hover { background: var(--mg-paper); }
.mg-cw__clue.is-on { background: #FFF6CC; }
.mg-kb { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
.mg-kb__row { display: flex; justify-content: center; gap: 4px; width: 100%; }
.mg-kb__key { flex: 0 1 42px; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 9px; background: var(--mg-paper); box-shadow: 0 2px 0 rgba(0,0,0,.12); font-family: var(--m-font-head, Georgia, serif); font-size: 18px; font-weight: 700; }
.mg-kb__key:active { transform: translateY(1px); background: var(--m-yellow, #FFD43B); }
.mg-kb__key--wide { flex-basis: 62px; }
.mg-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 13. სიტყვა */
.mg-slots, .mg-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mg-slot, .mg-tile-l {
	display: grid; place-items: center; width: 50px; height: 56px; padding: 0; border-radius: 14px;
	font-family: var(--m-font-head, Georgia, serif); font-size: 28px; font-weight: 700; color: var(--mg-ink);
}
.mg-slot { border: 3px dashed #C9CCDA; background: #fff; }
.mg-slot:not(:disabled) { border-style: solid; border-color: var(--mg-tone); }
.mg-slots.is-right .mg-slot { border-color: var(--m-green, #83D44B); background: #F1FBE8; }
.mg-tile-l { border: 0; background: var(--m-yellow, #FFD43B); box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.mg-tile-l:disabled { opacity: .25; box-shadow: none; cursor: default; }

/* 14. სუდოკუ */
.mg-sdk { display: grid; width: min(100%, 460px); border: 3px solid var(--mg-ink); border-radius: 10px; overflow: hidden; background: #fff; outline: none; }
.mg-sdk--4 { width: min(100%, 300px); }
.mg-sdk--6 { width: min(100%, 380px); }
.mg-sdk__cell {
	aspect-ratio: 1; padding: 0; border: 0; border-right: 1px solid #D5D8E2; border-bottom: 1px solid #D5D8E2; border-radius: 0; background: #fff;
	font-family: var(--m-font-head, Georgia, serif); font-size: clamp(18px, 5vw, 30px); font-weight: 700; color: var(--m-blue-dark, #1F7FA8); line-height: 1;
}
.mg-sdk--9 .mg-sdk__cell { font-size: clamp(16px, 4.6vw, 26px); }
.mg-sdk__cell.is-given { color: var(--mg-ink); background: #F4F2EE; }
.mg-sdk__cell.is-br { border-right: 3px solid var(--mg-ink); }
.mg-sdk__cell.is-bb { border-bottom: 3px solid var(--mg-ink); }
.mg-sdk__cell.is-peer { background: #EEF6FD; }
.mg-sdk__cell.is-given.is-peer { background: #E6EDF5; }
.mg-sdk__cell.is-same { background: #FFF1B3; }
.mg-sdk__cell.is-cur { background: var(--m-yellow, #FFD43B); }
.mg-sdk__cell.is-bad { color: #D93025; }
.mg-numpad { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 460px; }
.mg-numpad__key { width: 48px; height: 52px; padding: 0; border: 0; border-radius: 14px; background: var(--m-yellow, #FFD43B); box-shadow: 0 4px 0 rgba(0,0,0,.14); font-size: 24px; font-weight: 700; }
.mg-numpad__key--del { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mg-rule), 0 4px 0 rgba(0,0,0,.08); }

/* 15. ამოცანები */
.mg-riddle { position: relative; max-width: 640px; padding: 26px 22px 22px; border-radius: 26px; background: var(--mg-paper); }
.mg-riddle .mg-quiz__q { font-size: 1.2em; line-height: 1.45; }
.mg-riddle .mg-choice--text { justify-content: center; text-align: center; }
.mg-riddle .mg-choice:disabled { opacity: .45; cursor: default; }
.mg-riddle .mg-fact { min-height: 0; }

/* 16. თავსატეხი */
.mg-slide-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.mg-slide { display: grid; gap: 3px; width: min(100%, 420px); aspect-ratio: 1; padding: 6px; border-radius: 20px; background: var(--mg-deep); outline: none; }
.mg-slide__tile {
	position: relative; padding: 0; border: 0; border-radius: 8px; background-color: #fff; background-repeat: no-repeat;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); transition: transform .1s ease;
}
.mg-slide__tile span { position: absolute; top: 4px; left: 6px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.85); font-size: 15px; font-weight: 700; color: var(--mg-ink); }
.mg-slide__tile--last { visibility: hidden; }
.mg-slide.is-done { gap: 0; }
.mg-slide.is-done .mg-slide__tile { border-radius: 0; box-shadow: none; }
.mg-slide.is-done .mg-slide__tile--last { visibility: visible; }
.mg-slide__preview { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #5A5E80; }
.mg-slide__mini { display: block; width: 110px; height: 110px; border-radius: 14px; background-size: 100% 100%; box-shadow: 0 0 0 4px #fff, 0 8px 18px -10px rgba(10,12,52,.6); }

/* ---------- მოგება ---------- */
.mg-win {
	position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px;
	background: rgba(255,255,255,.96); text-align: center; animation: mg-pop .45s ease;
}
.mg-win__img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(35,38,79,.18)); }
.mg-win__star { font-size: 110px; color: var(--m-yellow, #FFD43B); line-height: 1; }
.mg-win__title { margin: 0 !important; padding: 0 !important; font-family: var(--m-font-head, Georgia, serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--mg-ink) !important; }
.mg-win__stars span { font-size: 40px; }
.mg-win__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 0 !important; padding: 0 !important; }
.mg-confetti { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.mg-confetti span { position: absolute; top: -30px; animation: mg-fall 2.2s ease-in forwards; }
@keyframes mg-fall { to { transform: translateY(620px) rotate(320deg); opacity: 0; } }

@media (max-width: 640px) {
	.mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mascot-games a.mg-tile { padding: 14px; gap: 4px; }
	.mg-tile__icon { width: 48px; height: 48px; font-size: 26px; }
	.mg-tile__title { font-size: 16px; }
	.mg-tile__desc { display: none; }
	.mg-tile__skill { font-size: 11px; padding: 2px 8px; }
	.mg-tile__foot { flex-direction: column; align-items: stretch; gap: 6px; }
	.mg-tile__stars { text-align: center; }
	.mg-tile__go { text-align: center; font-size: 14px; padding: 7px 10px; }
	.mg-shell { padding: 14px 12px 20px; border-radius: 20px; }
	.mg-back { order: 1; min-height: 44px; padding: 6px 12px; font-size: 14px !important; }
	.mg-level { order: 2; margin-left: auto; padding: 4px 10px; font-size: 13px; }
	.mg-sound { order: 3; min-height: 44px; min-width: 44px; padding: 4px 8px; }
	.mg-bar { gap: 8px; }
	.mascot-games .mg-title { order: 4; flex-basis: 100%; }
	.mg-cards, .mg-cards--8, .mg-cards--12 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.mg-cards--8 { grid-template-columns: repeat(4, 1fr); }
	.mg-homes--3, .mg-homes--4 { grid-template-columns: repeat(2, 1fr); }
	.mg-choice { width: 92px; height: 92px; font-size: 50px; }
	.mg-letter { font-size: 46px; }
	.mg-orbit { gap: 6px; padding: 12px; }
	.mg-orbit__sun { width: 100%; flex-direction: row; justify-content: center; gap: 8px; }
	.mg-orbit__sun .mg-art-svg { width: 56px; height: 56px; }
	.mg-orbit__slot { width: 66px; height: 84px; }
	.mg-orbit__slot .mg-art-svg { width: 48px; height: 48px; }
	.mg-chip { width: 96px; font-size: 12px; }
	.mg-seq__item { width: 46px; height: 46px; }
	.mg-pad { grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(2, 58px); }
	.mg-card__name { font-size: 11px; }
	.mg-ages { gap: 8px; }
	.mascot-games .mg-age, .mascot-learn .mg-age { min-width: 0; flex: 1 1 calc(50% - 8px); padding: 8px 10px 8px 8px; column-gap: 8px; }
	.mg-age__icon { width: 36px; height: 36px; font-size: 20px; }
	.mg-age__name { font-size: 14px; }
	.mg-age__range { font-size: 12px; }
	.mg-tile__ages { top: 12px; right: 12px; font-size: 14px; }
	.mg-kb__row { gap: 3px; }
	.mg-kb__key { height: 42px; font-size: 16px; border-radius: 7px; }
	.mg-cw-wrap { gap: 14px; }
	.mg-slot, .mg-tile-l { width: 40px; height: 48px; font-size: 22px; border-radius: 11px; }
	.mg-numpad__key { width: 42px; height: 48px; }
	.mg-riddle { padding: 22px 14px 16px; }
	.mg-slide__mini { width: 80px; height: 80px; }
	.mg-num__digit { font-size: 40px; }
}
/* ტელეფონი: ტექსტიანი ღილაკები, წარწერები და ბარათები ეკრანს ერგება */
@media (max-width: 640px) {
	.mascot-games button, .mascot-games .mg-btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
	.mg-choice.mg-choice--text { width: auto; height: auto; min-height: 56px; padding: 12px 16px; font-size: 17px; line-height: 1.3; }
	.mg-choice--text .mg-emoji { font-size: 30px; }
	.mg-choices--wide { width: 100%; gap: 10px; }
	.mg-riddle .mg-quiz__q { font-size: 1.05em; }
	.mg-quiz__q, .mg-title, .mg-intro { overflow-wrap: break-word; }
	.mg-word { font-size: 1.25em; letter-spacing: .03em; white-space: nowrap; }
	.mascot-games a.mg-tile { padding: 12px 10px; min-width: 0; }
	.mg-tile__title { font-size: clamp(13px, 3.9vw, 16px); letter-spacing: .01em; overflow-wrap: anywhere; hyphens: auto; }
	.mg-tile__go { font-size: 13px; padding: 7px 6px; white-space: nowrap; }
	.mg-tile__skill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.mg-cw__h, .mg-group__title { overflow-wrap: break-word; }
	.mg-win__actions .mg-btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
	.mg-choice { width: 80px; height: 80px; font-size: 44px; }
	.mg-kb__key { height: 38px; font-size: 14px; }
	.mg-slot, .mg-tile-l { width: 34px; height: 42px; font-size: 19px; }
	.mg-numpad__key { width: 38px; height: 44px; }
}
/* ვიწრო ეკრანი: ასაკის ღილაკში ხატულა ზემოთ, წარწერა ქვემოთ, რომ გრძელი სიტყვა („უფროსკლასელები“) ჩაეტიოს */
@media (max-width: 480px) {
	.mascot-games .mg-age, .mascot-learn .mg-age { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; row-gap: 4px; padding: 10px 4px; text-align: center; }
	.mg-age__icon { grid-row: auto; margin-bottom: 2px; }
	.mg-age__name { font-size: clamp(10px, 3vw, 12px); letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mascot-games *, .mascot-games *:before, .mascot-games *:after { animation: none !important; transition: none !important; }
}

/* დახურული თამაში (Mascot → წვდომა და ფასები) */
.mascot-games a.mg-tile.is-locked { opacity: .82; }
.mascot-games a.mg-tile.is-locked .mg-tile__icon { filter: grayscale(.4); }
.mg-locked { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; text-align: center; }
.mg-locked .mg-back { align-self: flex-start; }
.mg-locked__text { max-width: 460px; margin: 0; font-size: 18px; }
.mg-gate__lines { max-width: 480px; margin: 0; padding: 0; list-style: none; text-align: left; }
.mg-gate__lines li { position: relative; margin: 8px 0; padding-left: 28px; font-size: 17px; }
.mg-gate__lines li:before { content: '★'; position: absolute; left: 0; color: #EF9024; }

/* ბარათზე გაზიარება */
.mg-tilewrap { position: relative; display: flex; min-width: 0; }
.mg-tilewrap > .mg-tile { flex: 1; min-width: 0; }
.mg-tilewrap .mg-tile__ages { right: 64px; }
.mg-tile__share { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--m-ink, #23264F); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.12); transition: transform .15s ease; }
.mg-tile__share:hover, .mg-tile__share:focus-visible { transform: scale(1.08); }
@media (max-width: 600px) {
	.mg-tile__share { top: 10px; right: 10px; width: 34px; height: 34px; }
	.mg-tilewrap .mg-tile__ages { top: 18px; right: 47px; gap: 0; font-size: 11px; }
}

/* ღრუბელას ჩატვირთვა (ფაილები თამაშის გახსნისას მოდის) */
.mg-loading { display: block; margin: 48px auto; font-size: 64px; line-height: 1; text-align: center; animation: mg-loading 1.4s ease-in-out infinite; }
.mg-loading--retry { background: none; border: 0; cursor: pointer; animation: none; }
@keyframes mg-loading { 0%, 100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mg-loading { animation: none; } }

/* ---------- „მასკოტი, დამეხმარე!“ ---------- */
.mg-help-btn { order: 5; gap: 8px; min-height: 48px; padding: 6px 18px 6px 6px; background: var(--m-indigo, #475095); color: #fff !important; font-size: 16px; }
.mg-help-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.mg-help-btn:hover { background: var(--m-deep, #3A3E85); }
.mg-shell.is-won .mg-help-btn { display: none; }
.mg-helpbox {
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; margin: 10px 0 4px; padding: 14px 18px;
	border-radius: 22px; background: #EEF0FB; border: 3px solid var(--m-indigo, #475095); color: var(--mg-ink);
}
.mg-helpbox[hidden] { display: none; }
.mg-helpbox__img { grid-row: span 2; width: 84px; height: 84px; object-fit: contain; }
.mascot-games .mg-helpbox__text { margin: 0 !important; padding: 0 !important; font-size: 1.12em; font-weight: 600; line-height: 1.45; color: var(--mg-ink) !important; }
.mascot-games .mg-helpbox__acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; }
.mg-helpbox__voice { min-width: 52px; padding: 8px 14px; font-size: 20px; }
/* ანთებული: სწორი პასუხი ან შემდეგი ნაბიჯი */
.mg-help-on { position: relative; z-index: 2; outline: 4px solid var(--m-yellow, #FFD43B) !important; outline-offset: 3px; animation: mg-glow 1.1s ease-in-out infinite, mg-nudge 1.1s ease-in-out infinite; }
@keyframes mg-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mg-card.mg-help-on { animation: mg-glow 1.1s ease-in-out infinite; }
.mg-dot.mg-help-on { outline: none !important; animation: none; }
.mg-dot.mg-help-on .mg-dot__hit { fill: rgba(255,212,59,.7); animation: mg-blink 1s ease-in-out infinite; }
.mg-seq__item.mg-help-on { border-radius: 12px; }
.mg-maze__help { fill: none; stroke: #FFD43B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2.5 2; opacity: .9; }
.mg-count__items .mg-emoji { position: relative; display: inline-block; transition: transform .2s ease; }
.mg-count__items .mg-emoji.is-counting { transform: scale(1.25); }
.mg-count__items .mg-emoji.is-counted:after {
	content: attr(data-n); position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: var(--m-pink, #EF53B6); color: #fff; font: 700 15px/1 var(--m-font-body, system-ui, sans-serif);
}
@media (prefers-reduced-motion: reduce) { .mg-help-on { animation: none; } }
@media (max-width: 600px) {
	.mg-help-btn { order: 5; flex: 1 1 100%; justify-content: center; font-size: 15px; }
	.mg-helpbox { gap: 8px 10px; padding: 10px 12px; border-radius: 18px; }
	.mg-helpbox__img { grid-row: auto; align-self: start; width: 48px; height: 48px; }
	.mascot-games .mg-helpbox__text { font-size: 16px; line-height: 1.4; }
	.mascot-games .mg-helpbox__acts { grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
	.mg-helpbox__acts .mg-btn { min-height: 44px; padding: 6px 16px; }
}
