/* „მასკოტი“ — სატესტო რეჟიმის ზოლი და „მასკოტის სიმღერის“ ღილაკი.
 * იცვლება: ადმინი → Mascot → სიმღერა და ზოლი. */

/* ---------- სატესტო რეჟიმის ზოლი ---------- */
.mascot-testbar {
	position: relative; z-index: 2; width: 100%; height: 34px; overflow: hidden;
	background: var(--mtb-bg, #FFD43B); color: var(--mtb-fg, #23264F);
	font: 700 14px/34px var(--m-font-body, var(--font, system-ui, sans-serif)); letter-spacing: .02em;
	white-space: nowrap; text-align: center;
}
.mascot-testbar__track { display: inline-flex; }
.mascot-testbar__track span { padding: 0 32px; }
.mascot-testbar__track span:before { content: '★'; margin-right: 12px; opacity: .6; }
.mascot-testbar.is-moving .mascot-testbar__track { display: flex; width: max-content; animation: mascot-testbar 28s linear infinite; }
.mascot-testbar.is-moving .mascot-testbar__track span { flex: none; min-width: 50vw; }
.mascot-testbar__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes mascot-testbar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.mascot-testbar.is-moving .mascot-testbar__track { animation: none; margin: 0 auto; }
	.mascot-testbar.is-moving .mascot-testbar__track span:not(:first-child) { display: none; }
}
/* Divi-ს ჰედერში ჩასმული ზოლი (სკრიპტი სვამს, რომ ფიქსირებულ ჰედერთან ერთად დარჩეს ზემოთ) */
#main-header > .mascot-testbar { display: block; }
/* ლენდინგი ზოლის სიმაღლით მოკლდება, რომ ეკრანში ჩაეტიოს */
body.mascot-has-testbar .m-entry { min-height: calc(100vh - 34px); min-height: calc(100svh - 34px); }

/* ---------- „მასკოტის სიმღერა“: ღილაკი ---------- */
.mascot-song {
	position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9990;
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px;
	background: var(--msong, #EF53B6); color: #fff; cursor: pointer;
	font: 800 15px/1.2 'Mascot Mtavruli', var(--m-font-head, var(--font, system-ui, sans-serif)); letter-spacing: .04em; text-transform: uppercase;
	box-shadow: 0 5px 0 rgba(0,0,0,.2), 0 10px 24px rgba(0,0,0,.18);
	transition: transform .15s ease, box-shadow .15s ease;
	animation: mascot-song-bob 3s ease-in-out infinite;
}
.mascot-song:hover { transform: translateY(-2px); }
.mascot-song:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.mascot-song:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mascot-song__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--msong, #EF53B6); }
.mascot-song__icon svg { animation: mascot-song-note 1.2s ease-in-out infinite alternate; }
@keyframes mascot-song-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes mascot-song-note { from { transform: rotate(-10deg) scale(.95); } to { transform: rotate(10deg) scale(1.08); } }
@media (max-width: 600px) {
	.mascot-song { min-height: 46px; padding-right: 16px; font-size: 13px; }
	.mascot-song__icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.mascot-song, .mascot-song__icon svg { animation: none; }
}
/* ლენდინგი, მობილური: ღილაკი გვერდის ნაწილია („საიტზე შესვლის“ ქვემოთ) და არაფერს ფარავს */
.m-entry__skip.has-song { flex-direction: column; align-items: center; gap: 18px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.mascot-song.mascot-song--inline { position: relative; left: auto; bottom: auto; z-index: auto; max-width: 100%; }

/* ---------- „მასკოტის სიმღერა“: ვიდეოს ფანჯარა ---------- */
.mascot-song-modal { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; }
.mascot-song-modal__back { position: absolute; inset: 0; background: rgba(20, 22, 50, .82); }
.mascot-song-modal__box { position: relative; width: min(960px, 100%, calc((100vh - 120px) * 16 / 9)); padding-top: 56px; }
.mascot-song-modal__video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.mascot-song-modal__video iframe, .mascot-song-modal__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mascot-song-modal__x {
	position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: #fff; color: #23264F; font: 700 26px/44px system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.mascot-song-modal__x:focus-visible { outline: 3px solid var(--msong, #EF53B6); outline-offset: 2px; }
html.mascot-song-open { overflow: hidden; }
/* ენის ღილაკები ვიდეოს თავზე (მარცხნივ, „×“-ის გასწვრივ) */
.mascot-song-modal__langs { position: absolute; top: 0; left: 0; right: 56px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.mascot-song-modal__langs button {
	min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255,255,255,.16); color: #fff; font: 800 16px/44px var(--m-font-body, system-ui, sans-serif);
	transition: background .15s ease, color .15s ease;
}
.mascot-song-modal__langs button:hover { background: rgba(255,255,255,.28); }
.mascot-song-modal__langs button[aria-pressed="true"] { background: #FFD43B; color: #23264F; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.mascot-song-modal__langs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
	.mascot-song-modal__langs { gap: 6px; }
	.mascot-song-modal__langs button { padding: 0 12px; font-size: 14px; }
}
