/* =========================================================
   Memory Game — Las Casas v1.0
   Mobile-first · Gold coins · Prize system
   ========================================================= */

/* --- Reset & Base --- */
.mg-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }
/* Мгновенный клик без блокировки вертикального скролла на ВСЕХ контролах */
.mg-wrapper button,
.mg-wrapper a,
.mg-card { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mg-wrapper { position: relative; display: inline-block; width: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* --- Кнопка открытия --- */
.mg-open-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #f0c040;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #f0c040;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(240,192,64,0.25);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.mg-open-btn:hover, .mg-open-btn:active {
    background: linear-gradient(135deg, #f0c040, #e0a020);
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,192,64,0.45);
}

/* --- Модальное окно --- */
.mg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: mgFadeIn 0.2s ease;
}
@keyframes mgFadeIn { from { opacity:0 } to { opacity:1 } }

.mg-modal-inner {
    background: linear-gradient(160deg, #0d1b2a, #1a1a2e);
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 520px;
    /* vh на мобильных включает зону под адресной строкой — низ уезжал за экран;
       dvh = реальная видимая высота */
    max-height: 95vh;
    max-height: 94dvh;
    overflow-y: auto;
    overscroll-behavior: contain; /* скролл не пробрасывается на страницу */
    padding: 20px 16px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); /* жестовая полоса iPhone */
    border-top: 2px solid #f0c040;
    box-shadow: 0 -8px 40px rgba(240,192,64,0.2);
    animation: mgSlideUp 0.3s ease;
    -webkit-overflow-scrolling: touch;
}
@keyframes mgSlideUp {
    from { transform: translateY(60px); opacity:0; }
    to   { transform: translateY(0);    opacity:1; }
}

/* --- Шапка --- */
.mg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.mg-logo {
    font-size: 15px;
    font-weight: 800;
    color: #f0c040;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(240,192,64,0.5);
}
.mg-logo span { color: #fff; }
.mg-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #ff7070;
    cursor: pointer;
    padding: 4px 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.mg-close:active { background: rgba(255,112,112,0.2); }

/* =========================================================
   МОНЕТКИ — панель прогресса
   ========================================================= */
.mg-coins-bar {
    background: linear-gradient(135deg, #0a0f1e, #111827);
    border: 1px solid #2a3a60;
    border-radius: 18px;
    padding: 12px 10px 10px;
    margin-bottom: 12px;
    position: relative;
}
.mg-coins-label {
    font-size: 10px;
    color: #7e90b0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}
.mg-coins-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* Слот монетки */
.mg-coin-slot {
    width: 36px;
    height: 36px;
    perspective: 600px;
}

/* Монетка — 3D flip */
.mg-coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border-radius: 50%;
}
.mg-coin--empty .mg-coin-front,
.mg-coin--empty .mg-coin-back {
    opacity: 0.12;
    filter: grayscale(1);
}
.mg-coin--earned {
    animation: coinEarn 0.6s ease forwards;
}
.mg-coin--spinning {
    animation: coinSpin 1.2s linear infinite;
}
@keyframes coinSpin {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
@keyframes coinEarn {
    0%   { transform: scale(0) rotateY(0deg); opacity:0; }
    50%  { transform: scale(1.4) rotateY(180deg); opacity:1; }
    100% { transform: scale(1) rotateY(360deg); opacity:1; }
}

.mg-coin-front,
.mg-coin-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}
.mg-coin-front img,
.mg-coin-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mg-coin-back {
    transform: rotateY(180deg);
}
/* Сияние монетки */
.mg-coin--earned::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,220,50,0.6) 0%, transparent 70%);
    animation: coinGlow 1.5s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes coinGlow {
    from { opacity: 0.4; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1.1); }
}

/* Кнопка-инфо */
.mg-info-btn {
    position: absolute;
    top: 10px; right: 10px;
    width: 26px; height: 26px;
    background: #f0c040;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.mg-info-btn:active { transform: scale(0.9); }

/* --- Инфо-попап --- */
.mg-info-popup {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mg-info-popup-inner {
    background: linear-gradient(145deg, #0d1b2a, #1a1a2e);
    border: 1px solid #f0c040;
    border-radius: 20px;
    padding: 24px 20px;
    max-width: 340px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 40px rgba(240,192,64,0.3);
}
.mg-info-popup-inner h3 {
    color: #f0c040;
    font-size: 18px;
    margin-bottom: 14px;
    text-align: center;
}
.mg-info-register-warning {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(240,192,64,0.15);
    border: 1px solid rgba(240,192,64,0.45);
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    font-weight: 700;
}

.mg-info-register-warning strong,
.mg-info-register-warning a,
.mg-info-register-warning span {
    color: #f0c040 !important;
}
.mg-info-popup-inner ul {
    list-style: none;
    padding: 0;
}
.mg-info-popup-inner ul li {
    color: #cdd9e8;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    line-height: 1.4;
}
.mg-info-popup-inner ul li strong { color: #f0c040; }
.mg-info-note {
    color: #7e90b0;
    font-size: 11px;
    margin-top: 12px;
    line-height: 1.5;
    text-align: center;
}
.mg-info-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    color: #ff7070;
    font-size: 20px;
    cursor: pointer;
    min-width: 36px; min-height: 36px;
    -webkit-tap-highlight-color: transparent;
}

/* --- Статус игрока --- */
.mg-player-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(240,192,64,0.15);
}
.mg-rank-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mg-rank-icon { font-size: 22px; }
.mg-rank-name {
    font-size: 14px;
    font-weight: 700;
    color: #f0c040;
}
.mg-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.mg-stat {
    font-size: 12px;
    color: #7e90b0;
}
.mg-stat-val {
    font-weight: 700;
    color: #b9fbc0;
}

/* =========================================================
   ЭКРАН ВЫБОРА РЕЖИМА
   ========================================================= */
.mg-screen--mode h2 {
    text-align: center;
    color: #fff;
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 600;
}
.mg-mode-cards {
    display: flex;
    gap: 12px;
}
.mg-mode-card {
    flex: 1;
    background: linear-gradient(145deg, #111827, #1e293b);
    border: 1px solid #2a3a60;
    border-radius: 20px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.mg-mode-card--prize {
    border-color: #f0c040;
    box-shadow: 0 0 20px rgba(240,192,64,0.2);
}
.mg-mode-badge {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #f0c040, #e0a020);
    color: #1a1a2e;
    font-size: 10px;
    font-weight: 800;
    padding: 4px;
    letter-spacing: 1px;
}
.mg-mode-icon {
    font-size: 36px;
    margin: 14px 0 8px;
}
.mg-mode-card--free .mg-mode-icon { margin-top: 0; }
.mg-mode-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.mg-mode-desc {
    font-size: 12px;
    color: #7e90b0;
    line-height: 1.5;
    margin-bottom: 14px;
}
.mg-mode-desc strong { color: #f0c040; }
.mg-mode-btn {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    border: 1px solid #3a5080;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}
.mg-mode-btn--prize {
    background: linear-gradient(135deg, #f0c040, #e0a020);
    border-color: #f0c040;
    color: #1a1a2e;
    font-weight: 800;
}
.mg-mode-btn:active { transform: scale(0.96); }

/* =========================================================
   ЭКРАН ИГРЫ
   ========================================================= */
.mg-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 12px;
    font-size: 13px;
    color: #7e90b0;
}
.mg-level-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.mg-level-val {
    font-size: 22px;
    font-weight: 800;
    color: #f0c040;
    line-height: 1;
}
.mg-timer-val {
    font-size: 18px;
    font-weight: 700;
    color: #b9fbc0;
}
.mg-timer-val--danger { color: #ff7070; animation: timerPulse 0.5s ease infinite alternate; }
@keyframes timerPulse { from { opacity:1 } to { opacity:0.4 } }
.mg-moves-val { font-weight: 700; color: #6c9eff; }

/* --- Доска --- */
.mg-board {
    display: grid;
    gap: 6px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

/* --- Карточка --- */
.mg-card {
    aspect-ratio: 3/4;
    cursor: pointer;
    perspective: 800px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 10px;
    min-width: 0;
}
.mg-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
    border-radius: 10px;
}
.mg-card.flipped .mg-card-inner,
.mg-card.matched .mg-card-inner {
    transform: rotateY(180deg);
}
.mg-card-front,
.mg-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Рубашка */
.mg-card-front {
    background: linear-gradient(135deg, #1e3a5f, #0f2040);
    border: 1.5px solid #2a3a60;
}
.mg-card-front::after {
    content: '🏠';
    font-size: clamp(16px, 4vw, 28px);
    opacity: 0.35;
}
/* Лицо */
.mg-card-back {
    background: linear-gradient(135deg, #0d1b2a, #1a1a2e);
    border: 1.5px solid #3a5080;
    transform: rotateY(180deg);
    font-size: clamp(22px, 6vw, 40px);
    flex-direction: column;
    gap: 4px;
}
.mg-card-back .mg-card-label {
    font-size: clamp(8px, 2vw, 11px);
    color: #7e90b0;
    text-align: center;
    padding: 0 4px;
    line-height: 1.2;
}
.mg-card.matched .mg-card-back {
    background: linear-gradient(135deg, #0f3020, #1a4030);
    border-color: #1abc9c;
    box-shadow: 0 0 10px rgba(26,188,156,0.4);
}
.mg-card.flipped .mg-card-front,
.mg-card.matched .mg-card-front {
    pointer-events: none;
}

/* Кнопка назад */
.mg-back-btn {
    margin-top: 14px;
    background: transparent;
    border: 1px solid #2a3a60;
    color: #7e90b0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.2s;
}
.mg-back-btn:active { background: rgba(255,255,255,0.06); }

/* =========================================================
   ЭКРАН ПОБЕДЫ
   ========================================================= */
.mg-screen--win {
    text-align: center;
    padding: 20px 0;
}
.mg-win-title {
    font-size: 32px;
    font-weight: 900;
    color: #f0c040;
    text-shadow: 0 0 20px rgba(240,192,64,0.6);
    margin-bottom: 16px;
    animation: winPop 0.5s ease;
}
@keyframes winPop {
    0%   { transform: scale(0.5); opacity:0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1);   opacity:1; }
}
.mg-win-coins-anim {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    min-height: 60px;
}
.mg-win-coin {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: winCoinFly 0.8s ease forwards, coinSpin 1s linear infinite;
}
.mg-win-coin-front,
.mg-win-coin-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
}
.mg-win-coin-front img,
.mg-win-coin-back img { width:100%; height:100%; object-fit:cover; display:block; }
.mg-win-coin-back { transform: rotateY(180deg); }
@keyframes winCoinFly {
    0%   { transform: translateY(60px) scale(0) rotateY(0); opacity:0; }
    60%  { transform: translateY(-10px) scale(1.2) rotateY(180deg); opacity:1; }
    100% { transform: translateY(0) scale(1) rotateY(360deg); opacity:1; }
}
.mg-win-msg {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 6px;
}
.mg-win-next-info {
    font-size: 13px;
    color: #7e90b0;
    margin-bottom: 20px;
    line-height: 1.5;
}
.mg-win-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.mg-win-next-btn {
    background: linear-gradient(135deg, #f0c040, #e0a020);
    border: none;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s;
    box-shadow: 0 4px 16px rgba(240,192,64,0.4);
}
.mg-win-next-btn:active { transform: scale(0.96); }
.mg-win-menu-btn {
    background: transparent;
    border: 1px solid #2a3a60;
    color: #7e90b0;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* =========================================================
   ЭКРАН ЧЕМПИОНА
   ========================================================= */
.mg-screen--champion {
    text-align: center;
    padding: 10px 0 20px;
}
.mg-champion-title {
    font-size: 36px;
    font-weight: 900;
    color: #f0c040;
    text-shadow: 0 0 30px rgba(240,192,64,0.8);
    margin-bottom: 12px;
    animation: champPop 0.6s ease;
}
@keyframes champPop {
    0%   { transform: scale(0) rotate(-10deg); opacity:0; }
    60%  { transform: scale(1.2) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity:1; }
}
.mg-champion-coins {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 14px 0;
}
.mg-champion-content p {
    color: #cdd9e8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.mg-champion-content p strong { color: #f0c040; }
.mg-champion-sub {
    color: #7e90b0 !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
}
.mg-champion-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040, #e0a020);
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(240,192,64,0.5);
    transition: transform 0.15s;
    display: block;
}
.mg-champion-btn:active { transform: scale(0.97); }
.mg-champion-play-btn {
    background: transparent;
    border: 1px solid #2a3a60;
    color: #7e90b0;
    font-size: 13px;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (min-width: 481px) {
    .mg-modal {
        align-items: center;
    }
    .mg-modal-inner {
        border-radius: 28px;
        max-height: 90vh;
        max-height: 90dvh;
        margin: 20px;
    }
}
@media (max-width: 360px) {
    .mg-coin-slot { width: 30px; height: 30px; }
    .mg-mode-cards { flex-direction: column; }
}

.mg-prize-title {
    text-align: center;
    color: #f0c040;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 16px;
    text-shadow: 0 0 18px rgba(240,192,64,0.6);
}

.mg-mode-card--locked {
    opacity: 0.75;
    filter: grayscale(0.25);
}

.mg-mode-card--locked::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
}

.mg-register-popup {
    position: fixed;
    inset: 0;
    z-index: 100002;
    background: rgba(0,0,0,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mg-register-popup-inner {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(145deg, #0d1b2a, #1a1a2e);
    border: 1px solid #f0c040;
    border-radius: 22px;
    padding: 26px 20px 22px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(240,192,64,0.32);
}

.mg-register-popup-inner h3 {
    color: #f0c040;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 14px;
    font-weight: 900;
}

.mg-register-popup-inner p {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.mg-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0c040, #e0a020);
    color: #1a1a2e;
    font-weight: 900;
    text-decoration: none;
}

.mg-register-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #ff7070;
    font-size: 22px;
    cursor: pointer;
}

.mg-info-register-warning {
    display: block;
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(240,192,64,0.14);
    border: 1px solid rgba(240,192,64,0.45);
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    font-weight: 700;
}

.mg-info-register-warning * {
    color: inherit;
}

.mg-info-register-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 190px;
    min-height: 48px;
    margin: 16px auto 0;
    padding: 12px 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff6cf 0%, #f0c040 28%, #e0a020 60%, #9b6500 100%);
    color: #111827 !important;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none !important;
    text-transform: uppercase;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.35) inset,
        0 0 18px rgba(240,192,64,0.45),
        0 10px 24px rgba(0,0,0,0.35);
    animation: mgRegisterPulse 1.8s ease-in-out infinite;
}

.mg-info-register-btn::before {
    content: '';
    position: absolute;
    inset: -60%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.95) 0 4%, transparent 5%),
        radial-gradient(circle, rgba(255,220,90,0.9) 0 5%, transparent 6%),
        radial-gradient(circle, rgba(255,255,255,0.7) 0 3%, transparent 4%);
    background-size: 38px 38px, 54px 54px, 72px 72px;
    animation: mgRegisterExplosion 1.4s linear infinite;
    opacity: 0.55;
    pointer-events: none;
}

.mg-info-register-btn::after {
    content: '';
    position: absolute;
    inset: 3px 3px auto 3px;
    height: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
    pointer-events: none;
}

.mg-info-register-btn:hover,
.mg-info-register-btn:focus {
    color: #111827 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.45) inset,
        0 0 28px rgba(240,192,64,0.75),
        0 14px 30px rgba(0,0,0,0.45);
}

.mg-info-register-btn:active {
    transform: scale(0.96);
}

@keyframes mgRegisterPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.04);
        filter: brightness(1.15);
    }
}

@keyframes mgRegisterExplosion {
    0% {
        transform: rotate(0deg) scale(0.9);
    }
    100% {
        transform: rotate(360deg) scale(1.18);
    }
}
