/* The memory dig game's intro film (intro-film.js): every rule under .mgf. The game's palette (rice, haldi, ember,
   deep, gold, ink), flat buttons, the site's own faces (--f-head, --f-body, --f-mono). */
.mgf { --mgf-rice: #f4ecd8; --mgf-haldi: #e8dcbc; --mgf-ember: #a5402a; --mgf-deep: #8c3522; --mgf-gold: #f1c76a; --mgf-ink: #5b4f47;
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 980px; margin: 28px 0 8px; }
.mgf * { box-sizing: border-box; }
.mgf .mgf-stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mgf-rice); box-shadow: 0 18px 40px -26px rgba(91, 79, 71, .6); }
.mgf canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mgf .mgf-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: rgba(244, 236, 216, .55); cursor: pointer; }
.mgf .mgf-cover[hidden] { display: none; }
.mgf .mgf-cplay { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--mgf-gold); box-shadow: inset 0 -6px 0 var(--mgf-ember); transition: transform .15s ease-out; }
.mgf .mgf-cplay::after { content: ''; position: absolute; left: 33px; top: 25px; border-left: 28px solid var(--mgf-ember); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.mgf .mgf-cover:hover .mgf-cplay { transform: translateX(4px); }
.mgf .mgf-cover:focus-visible .mgf-cplay { outline: 3px solid var(--mgf-deep); outline-offset: 4px; }
.mgf .mgf-ct { font-family: var(--f-head); font-weight: 900; font-size: 26px; line-height: 1; color: var(--mgf-deep); }
.mgf .mgf-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mgf .mgf-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 0; background: var(--mgf-ember); color: var(--mgf-rice); font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: transform .12s ease-out; }
.mgf .mgf-btn.alt { background: transparent; color: var(--mgf-deep); box-shadow: inset 0 0 0 1.5px var(--mgf-deep); }
.mgf .mgf-btn:active { transform: scale(.96); }
.mgf .mgf-btn:focus-visible { outline: 2px solid var(--mgf-gold); outline-offset: 2px; }
.mgf .mgf-bar { flex: 1; min-width: 100px; height: 4px; background: var(--mgf-haldi); overflow: hidden; }
.mgf .mgf-bar i { display: block; height: 100%; width: 0; background: var(--mgf-ember); }
.mgf .mgf-t { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--mgf-ink); }
@media (max-width: 560px) { .mgf .mgf-ct { font-size: 20px; } .mgf .mgf-cplay { width: 64px; height: 64px; } .mgf .mgf-cplay::after { left: 25px; top: 18px; border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; } }
@media (prefers-reduced-motion: reduce) { .mgf .mgf-btn, .mgf .mgf-cplay { transition: none; } }
