@font-face { font-family: "Sarakanda"; src: url("sarakanda.ttf") format("truetype"); font-display: swap; }

.mg-screen { position: relative; aspect-ratio: 16 / 10; background: #fff; border-radius: 16px; overflow: hidden; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.mg-screen button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mg-screen button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mg-screen button:focus-visible { outline: 3px solid #004DA9; outline-offset: 2px; border-radius: 50%; }

.mg-top { position: absolute; left: 0; right: 0; top: 0; height: 15%; display: flex; align-items: center; justify-content: center; gap: 2cqw; }
.mg-top button { width: 6cqw; height: 6cqw; }
.mg-title { font-family: "Sarakanda", sans-serif; font-weight: 700; font-size: 3.1cqw; color: #00B6F2; white-space: nowrap; }

.mg-mid { position: absolute; left: 0; right: 0; top: 15%; height: 70%; display: flex; }
.mg-left { width: 45%; height: 100%; box-sizing: border-box; padding: 0 2.2cqw; display: flex; flex-direction: column; justify-content: center; }
.mg-pic { width: 35%; height: 100%; display: flex; align-items: center; justify-content: center; }
.mg-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mg-btns { width: 20%; height: 100%; box-sizing: border-box; padding: 1.2cqw; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; }
.mg-btns button { width: 10.5cqw; height: 10.5cqw; transition: transform .1s; }
.mg-btns button:active { transform: scale(.94); }
.mg-btns button[aria-pressed="true"] { animation: mg-pulse 1s ease-in-out infinite; }
@keyframes mg-pulse { 50% { transform: scale(1.06); } }

.mg-frase { display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw; height: 100%; }
.mg-frase img { display: block; height: auto; }
.mg-frase .w1 { width: 75%; } .mg-frase .w2 { width: 50%; } .mg-frase .w3 { width: 100%; }

.mg-silaba { height: 100%; display: flex; align-items: center; justify-content: center; }
.mg-silaba img { max-width: 90%; max-height: 80%; object-fit: contain; }

.mg-escucha { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1cqw; font-family: "Sarakanda", sans-serif; font-size: 6.6cqw; line-height: 1.1; color: #00B6F2; }
.mg-escucha div { min-height: 1.1em; white-space: nowrap; }

.mg-aviso { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: "Sarakanda", sans-serif; font-size: 3.2cqw; color: #E53935; text-align: center; line-height: 1.3; }

.mg-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; display: flex; align-items: center; justify-content: space-between; padding: 0 3cqw; box-sizing: border-box; }
.mg-bottom img { width: 7cqw; height: 7cqw; object-fit: contain; opacity: .9; }

.mg-hidden { display: none !important; }
.mg-help { margin: 16px 4px 0; font-size: 16px; line-height: 1.55; color: #3A4D66; text-align: center; }
.mg-help img { width: 26px; height: 26px; vertical-align: -7px; margin: 0 2px; }
