/* Mascot — „გააცოცხლე ნახატი“ (1.44). მოდალი სტუდიაში, გვერდი, მშობლის ფილმები, გაზიარების გვერდი. */
.mascot-alive, .ma-modal, .ma-share { --ma-indigo: var(--m-indigo, #475095); --ma-deep: var(--m-deep, #3A3E85); --ma-ink: var(--m-ink, #23264F); --ma-paper: var(--m-paper, #FBF8F3); --ma-rule: var(--m-rule, #E7E1D6); --ma-muted: var(--m-muted, #6A6D8E); --ma-yellow: #FFD43B; --ma-orange: #EF9024; --ma-pink: #EF53B6; --ma-blue: #26CAEF; --ma-green: #83D44B; --ma-purple: #7A3F8B; }

/* ---- სტუდიის ღილაკი ---- */
.ms-btn.is-alive { background: linear-gradient(135deg, #EF53B6, #7A3F8B); border-color: transparent; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.14); }
.ms-btn.is-alive:hover { background: linear-gradient(135deg, #f06cc3, #8a4c9c); }
.ms-btn.is-alive svg { color: #FFD43B; }

/* ---- მოდალი ---- */
html.ma-open { overflow: hidden; }
.ma-modal [hidden], .mascot-alive [hidden] { display: none !important; }
.ma-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(35, 38, 79, .72); font-family: var(--m-font-body, 'Noto Sans Georgian', system-ui, sans-serif); color: var(--ma-ink); }
.ma-modal__box { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 22px 24px 24px; box-shadow: 0 30px 60px -20px rgba(10,12,52,.6); }
.ma-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ma-paper); color: var(--ma-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.ma-x:hover { background: var(--ma-rule); }
.ma-title { margin: 0 48px 14px 0 !important; font: 800 24px/1.25 var(--m-font-caps, 'Mascot Mtavruli', sans-serif); color: var(--ma-deep); letter-spacing: .02em; }
.ma-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.ma-stage { position: relative; border-radius: 18px; overflow: hidden; background: var(--ma-paper); box-shadow: inset 0 0 0 1.5px var(--ma-rule); }
.ma-stage video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #000; }
.ma-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ma-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-weight: 600; color: var(--ma-muted); }
.ma-loading[hidden] { display: none; }
.ma-timer { font-size: 15px; font-weight: 700; color: #c0267f; }
.ma-timer:empty { display: none; }
.ma-side { display: flex; flex-direction: column; gap: 14px; }
.ma-side > p { margin: 0; }
.ma-left { padding: 8px 12px; border-radius: 12px; background: #FFF6D6; font-size: 15px; }
.ma-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.ma-set legend, .ma-set > label, .ma-label { display: block; margin: 0 0 8px !important; padding: 0; font-weight: 700; font-size: 16px; color: var(--ma-deep); }
.ma-set textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--ma-rule); border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; background: #fff; color: var(--ma-ink); }
.ma-set textarea:focus { outline: 3px solid var(--ma-blue); outline-offset: 1px; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-chip { position: relative; cursor: pointer; }
.ma-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ma-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--ma-paper); box-shadow: inset 0 0 0 1.5px var(--ma-rule); font-size: 15px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.ma-chip span b { font-size: 18px; font-weight: 400; }
.ma-chip:hover span { box-shadow: inset 0 0 0 1.5px var(--ma-indigo); }
.ma-chip input:checked + span { background: #FFD43B; box-shadow: inset 0 0 0 2px #EF9024; }
.ma-chip input:focus-visible + span { outline: 3px solid var(--ma-blue); outline-offset: 2px; }
.ma-ai { margin: 6px 0 0 !important; font-size: 14px; }
.ma-voice__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; }
.ma-small { padding: 9px 14px !important; font-size: 15px !important; }
.ma-voice .is-rec { background: #EF53B6 !important; color: #fff !important; }
.ma-make { margin: 4px 0 0 !important; }
.ma-big-btn { width: 100%; justify-content: center; padding: 14px 18px !important; font-size: 18px !important; }
.ma-big-btn:disabled { opacity: .5; cursor: default; }
.ma-progress { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ma-muted); }
.ma-progress[hidden] { display: none; }
.ma-progress progress { width: 100%; height: 12px; border: 0; border-radius: 99px; overflow: hidden; background: var(--ma-rule); appearance: none; -webkit-appearance: none; }
.ma-progress progress::-webkit-progress-bar { background: var(--ma-rule); border-radius: 99px; }
.ma-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #EF9024, #EF53B6, #26CAEF); border-radius: 99px; }
.ma-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #EF9024, #EF53B6, #26CAEF); border-radius: 99px; }
.ma-result[hidden] { display: none; }
.ma-result video { width: 100%; border-radius: 14px; background: #000; margin-top: 8px; }
.ma-ok, .ma-err { margin: 0 0 8px !important; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.ma-ok { background: #EAF8DE; color: #2f5e12; }
.ma-err { background: #FDE7F3; color: #9b1d63; }
.ma-guest { text-align: center; padding: 18px 8px 8px; }
.ma-guest img { width: 140px; height: auto; }
.ma-guest h2 { margin: 10px 0 !important; font: 800 22px/1.3 var(--m-font-caps, 'Mascot Mtavruli', sans-serif); color: var(--ma-deep); }
.ma-big { font-size: 19px; font-weight: 600; }
.ma-guest .mascot-btn { margin: 4px; }

/* ---- გვერდი: hero ---- */
.mascot-alive { color: var(--ma-ink); }
.ma-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: center; margin: 0 0 32px; }
.ma-hero .mascot-h { font-size: clamp(30px, 3.8vw, 46px) !important; overflow-wrap: normal; word-break: normal; }
.ma-hero .mascot-h { margin-top: 0; }
.ma-hero__demo { border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 22px 44px -24px rgba(10,12,52,.45); }
.ma-demo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ma-soon { display: inline-block; padding: 8px 14px; border-radius: 12px; background: #FFF6D6; font-weight: 600; }

/* საბავშვო ზონა მუქია: hero მუქ ფონზე, ბლოკები კი თეთრი ბარათებია მუქი ტექსტით. */
body.mascot-kids-zone .ma-hero .mascot-lead { color: rgba(255, 255, 255, .88) !important; }
body.mascot-kids-zone .ma-hero .mascot-btn--ghost-light { background: rgba(255, 255, 255, .1); color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
body.mascot-kids-zone .ma-hero .mascot-btn--ghost-light:hover { box-shadow: inset 0 0 0 2px #fff; }
body.mascot-kids-zone .ma-hero .mascot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.mascot-kids-zone .ma-box, body.mascot-kids-zone .ma-how { color: var(--ma-ink); }
body.mascot-kids-zone .ma-box h2, body.mascot-kids-zone .ma-box h3, body.mascot-kids-zone .ma-how h3 { color: var(--ma-deep); }
body.mascot-kids-zone .ma-box a:not(.mascot-btn), body.mascot-kids-zone .ma-how a { color: var(--ma-indigo); }
body.mascot-kids-zone .ma-box .mascot-btn--ghost-light { background: #fff; color: var(--ma-ink) !important; box-shadow: inset 0 0 0 1.5px rgba(35, 38, 79, .22); }
body.mascot-kids-zone .ma-modal .mascot-btn--ghost-light { background: #fff; color: var(--ma-ink) !important; box-shadow: inset 0 0 0 1.5px rgba(35, 38, 79, .22); }
body.mascot-kids-zone .ma-modal h2 { color: var(--ma-deep); }
body.mascot-kids-zone .ma-modal p, body.mascot-kids-zone .ma-modal label { color: var(--ma-ink); }

/* ---- ბლოკები (მშობლის მხარე მშვიდია) ---- */
.ma-box { margin: 0 0 24px; padding: 22px 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ma-rule); }
.ma-box > h2, .ma-box > h3 { margin-top: 0; }
.ma-quota { display: inline-block; margin: 0 0 14px !important; padding: 6px 12px; border-radius: 10px; background: var(--ma-paper); font-size: 15px; }
.ma-quota.is-plus { background: #EEF0FA; color: var(--ma-deep); }
.ma-empty { color: var(--ma-muted); }
.ma-empty .mascot-btn { margin-left: 8px; }

.ma-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ma-art { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; border-radius: 16px; background: var(--ma-paper); }
.ma-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: #fff; }
.ma-art .mascot-btn { justify-content: center; padding: 9px 12px; font-size: 15px; }
.ma-art.is-done:after { content: '🎬'; position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); font-size: 16px; }
.ma-art label { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.ma-art label input { position: absolute; opacity: 0; }
.ma-art label:has(input:checked) img { outline: 3px solid #EF9024; outline-offset: 2px; }
.ma-art label input:focus-visible + img { outline: 3px solid var(--ma-blue); outline-offset: 2px; }
.ma-art__who, .ma-art label span { font-size: 14px; color: var(--ma-muted); }

.ma-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ma-film { margin: 0; padding: 12px; border-radius: 16px; background: var(--ma-paper); }
.ma-film video { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: #000; }
.ma-film__meta { margin: 10px 0 4px !important; font-weight: 600; font-size: 15px; }
.ma-film__story { margin: 0 0 8px !important; font-size: 14px; color: var(--ma-muted); }
.ma-film__acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; }
.ma-film__acts .mascot-btn { padding: 8px 12px; font-size: 14px; }
.ma-film__acts .mascot-linkbtn { font-size: 14px; }
.ma-film__share { margin: 8px 0 0 !important; padding: 8px 10px; border-radius: 10px; background: #fff; font-size: 14px; word-break: break-all; }
.ma-film__share[hidden] { display: none; }
.ma-film__share input { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--ma-rule); border-radius: 8px; font: inherit; font-size: 13px; }
.ma-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #F3E9F6; color: var(--ma-purple); font-size: 13px; font-weight: 700; }

/* ---- ფასიანი ფილმი ---- */
.ma-price { display: inline-block; margin: 0 0 14px !important; padding: 6px 12px; border-radius: 10px; background: #FFF1E0; color: #8a4b05; font-weight: 700; }
.ma-req fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.ma-req legend { margin: 0 0 10px; padding: 0; font-weight: 700; color: var(--ma-deep); }
.ma-req textarea, .ma-req select, .ma-req input[type="file"] { max-width: 100%; font: inherit; }
.ma-req textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--ma-rule); border-radius: 12px; }
.ma-scen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ma-scen__card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--ma-paper); box-shadow: inset 0 0 0 1.5px var(--ma-rule); cursor: pointer; font-size: 14px; }
.ma-scen__card input { position: absolute; opacity: 0; }
.ma-scen__card strong { font-size: 16px; color: var(--ma-ink); }
.ma-scen__card:has(input:checked) { background: #EEF0FA; box-shadow: inset 0 0 0 2px var(--ma-indigo); }
.ma-scen__card:has(input:focus-visible) { outline: 3px solid var(--ma-blue); outline-offset: 2px; }
.ma-scen__emoji { font-size: 28px; line-height: 1; }
.ma-upload, .ma-consent { margin: 0 0 12px !important; }
.ma-consent label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.ma-req__msg { margin-left: 8px; font-weight: 600; }
.ma-req__msg.is-ok { color: #2f5e12; }
.ma-req__msg.is-err { color: #9b1d63; }
.ma-reqs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ma-reqs li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--ma-paper); font-size: 14px; }
.ma-reqs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #fff; }
.ma-reqs li.is-done em { color: #2f5e12; font-style: normal; font-weight: 600; }

/* ---- „როგორ მუშაობს?“ ---- */
.ma-how { margin: 0 0 24px; padding: 14px 20px; border-radius: 16px; background: var(--ma-paper); }
.ma-how summary { cursor: pointer; font-weight: 700; color: var(--ma-deep); }
.ma-how h3 { margin: 16px 0 6px !important; font-size: 17px; }
.ma-how ul, .ma-how ol { margin: 0; padding-left: 22px; }
.ma-how li { margin: 3px 0; }

/* ---- გაზიარების გვერდი (ცალკე, საიტის თემის გარეშე) ---- */
body.ma-share { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #475095, #3A3E85 60%, #7A3F8B); font-family: 'Noto Sans Georgian', system-ui, sans-serif; color: #fff; }
.ma-share__in { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; text-align: center; }
.ma-share__logo img { height: 48px; width: auto; }
.ma-share h1 { margin: 16px 0; font-size: 24px; line-height: 1.3; }
.ma-share__video { display: block; width: 100%; border-radius: 18px; background: #000; box-shadow: 0 24px 48px -20px rgba(0,0,0,.6); }
.ma-share__story { margin: 16px auto 0; max-width: 560px; font-size: 18px; line-height: 1.5; }
.ma-share__cta { margin: 28px 0 10px; opacity: .85; }
.ma-share__btn { display: inline-block; padding: 12px 22px; border-radius: 99px; background: #FFD43B; color: #23264F; font-weight: 700; text-decoration: none; }
.ma-share__btn:hover { background: #ffe066; }

@media (max-width: 820px) {
	.ma-grid, .ma-hero { grid-template-columns: 1fr; }
	.ma-hero__demo { order: -1; }
	.ma-modal { padding: 0; align-items: stretch; }
	.ma-modal__box { max-height: 100vh; border-radius: 0; padding: 16px; }
	.ma-box { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ma-chip span { transition: none; } }
