@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --bg-1: #120f1d;
    --bg-2: #171427;
    --panel: rgba(33, 28, 53, 0.92);
    --panel-strong: #241e3a;
    --panel-soft: rgba(255, 255, 255, 0.04);
    --text: #f5f2ff;
    --muted: #b0a7cc;
    --accent: #f2cd63;
    --accent-2: #6f5bd6;
    --tile: #2f2750;
    --tile-hover: #3a3160;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
            radial-gradient(circle at 20% 10%, rgba(111, 91, 214, 0.22), transparent 28%),
            radial-gradient(circle at 80% 20%, rgba(242, 205, 99, 0.14), transparent 22%),
            radial-gradient(circle at top, #2b2350 0%, var(--bg-2) 45%, var(--bg-1) 100%);
    color: var(--text);
}

h1 {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.games {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 18px;
    width: min(1100px, 94vw);
    overflow-x: auto;
    scrollbar-width: none;
}

.games::-webkit-scrollbar {
    display: none;
}

.game-button {
    display: block;
    width: 132px;
    height: 186px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(180deg, #2a2342 0%, #1b162d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    flex: 0 0 auto;
}

.game-button:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.04);
    box-shadow:
            0 18px 36px rgba(0, 0, 0, 0.36),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mines {
    width: min(1240px, 96vw);
    height: min(780px, 88vh);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
            linear-gradient(180deg, #201a33 0%, #171327 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 336px 1fr;
    overflow: hidden;
    position: relative;
}

.limbo {
    width: min(1240px, 96vw);
    height: min(780px, 88vh);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
            linear-gradient(180deg, #201a33 0%, #171327 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 336px 1fr;
    overflow: hidden;
    position: relative;
}

.flip {
    width: min(1240px, 96vw);
    height: min(780px, 88vh);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
            linear-gradient(180deg, #201a33 0%, #171327 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 336px 1fr;
    overflow: hidden;
    position: relative;
}

.flip-choice-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.flip-choice {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.flip-choice:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.flip-choice.active {
    background: linear-gradient(180deg, #8ee3ff 0%, #57b7ff 48%, #2a76d8 100%);
    color: #231a08;
    border-color: transparent;
}

#tails-btn.active {
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
    color: #231a08;
    border-color: transparent;
}

.flip-card-panel {
    width: min(700px, 90%);
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #2a2342 0%, #1c162f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.flip-title {
    font-size: 1.5rem;
    font-weight: 1000;
    margin-bottom: 18px;
    color: var(--text);
}

.flip-stage {
    display: grid;
    place-items: center;
    min-height: 360px;
}

.flip-card {
    width: 220px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    perspective: 1200px;
}

.flip-card.is-revealing {
    animation: cardPulse 220ms ease-out;
}

.flip-card.is-flipped {
    transform: rotateY(180deg) scale(1.02);
}

.flip-card.is-winner {
    animation: cardWinGlow 700ms ease-out;
}

.flip-card.is-loser {
    animation: cardLoseShake 500ms ease-out;
}

.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 3.5rem;
    font-weight: 1000;
    color: #231a08;
    box-shadow:
            0 18px 40px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.flip-front {
    background: linear-gradient(180deg, #8ee3ff 0%, #57b7ff 48%, #2a76d8 100%);
}

.flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
}

.flip-face.flip-heads {
    background: linear-gradient(180deg, #8ee3ff 0%, #57b7ff 48%, #2a76d8 100%);
}

.flip-face.flip-tails {
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
}

@keyframes cardPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cardWinGlow {
    0% {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    }
    40% {
        box-shadow:
                0 0 0 8px rgba(125, 255, 176, 0.14),
                0 0 38px rgba(125, 255, 176, 0.35),
                0 18px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes cardLoseShake {
    0% {
        transform: rotateY(180deg) translateX(0);
    }
    15% {
        transform: rotateY(180deg) translateX(-8px);
    }
    30% {
        transform: rotateY(180deg) translateX(8px);
    }
    45% {
        transform: rotateY(180deg) translateX(-6px);
    }
    60% {
        transform: rotateY(180deg) translateX(6px);
    }
    100% {
        transform: rotateY(180deg) translateX(0);
    }
}

.flip-summary {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.flip-summary-item {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-summary-label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 800;
}

.flip-summary-value {
    font-size: 1.05rem;
    font-weight: 1000;
    color: var(--text);
}

#result {
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#bet-amount {
    width: 100%;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

#bet-amount::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
}

#bet-amount::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: -6px;
    background: radial-gradient(circle at top, #fff8d1 0%, #f2cd63 38%, #c69225 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(242, 205, 99, 0.1);
}

#target {
    width: 100%;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

#target::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
}

#target::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: -6px;
    background: radial-gradient(circle at top, #fff8d1 0%, #f2cd63 38%, #c69225 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(242, 205, 99, 0.1);
}

#result {
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.limbo-card {
    width: min(520px, 90%);
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #2a2342 0%, #1c162f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.limbo-title {
    font-size: 1.5rem;
    font-weight: 1000;
    margin-bottom: 10px;
    color: var(--text);
}

.limbo-odds {
    color: var(--muted);
    margin-bottom: 22px;
    font-weight: 700;
}

.limbo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.limbo-big {
    font-size: 3rem;
    font-weight: 1000;
    color: var(--accent);
    letter-spacing: 1px;
}

.limbo-small {
    font-size: 0.95rem;
    color: var(--muted);
}

.sidebar {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
            linear-gradient(180deg, #241e3a 0%, #1b162d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(242, 205, 99, 0.25);
}

.panel-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
            radial-gradient(circle at 30% 30%, #fff3bf 0%, #f2cd63 35%, #b88a22 100%);
    box-shadow:
            0 10px 24px rgba(242, 205, 99, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
}

.panel-badge::after {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 10px;
    border: 2px solid rgba(33, 28, 53, 0.85);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 1000;
    letter-spacing: 1px;
    color: var(--text);
}

.panel-subtitle {
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--muted);
}

.status-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.status-chip-accent {
    background: rgba(242, 205, 99, 0.09);
    border-color: rgba(242, 205, 99, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #59e28a;
    box-shadow: 0 0 0 4px rgba(89, 226, 138, 0.12);
}

.control-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#lamt {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.2px;
}

.value-pill {
    min-width: 44px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 900;
    color: #231a08;
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
    box-shadow: 0 10px 18px rgba(240, 199, 94, 0.16);
}

#amt {
    width: 100%;
    appearance: none;
    height: 12px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

#amt::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
}

#amt::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: -6px;
    background: radial-gradient(circle at top, #fff8d1 0%, #f2cd63 38%, #c69225 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(242, 205, 99, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#amt::-webkit-slider-thumb:hover {
    transform: scale(1.05);
    box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.32),
            0 0 0 8px rgba(242, 205, 99, 0.12);
}

#amt::-moz-range-track {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4d417a 0%, #3a3160 100%);
}

#amt::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle at top, #fff8d1 0%, #f2cd63 38%, #c69225 100%);
    box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.3),
            0 0 0 6px rgba(242, 205, 99, 0.1);
}

#amt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#multiplier {
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#play {
    margin-top: auto;
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 1000;
    letter-spacing: 0.4px;
    color: #231a08;
    background:
            linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
    box-shadow:
            0 14px 26px rgba(240, 199, 94, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

#play:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
            0 16px 30px rgba(240, 199, 94, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#play:active {
    transform: translateY(1px);
}

#play:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.grid-wrap {
    padding: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
            radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 55%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 96px);
    grid-template-rows: repeat(5, 96px);
    gap: 12px;
    padding: 18px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 10px 30px rgba(0, 0, 0, 0.18);
}

.grid-bounce {
    animation: gridBounce 260ms ease;
}

@keyframes gridBounce {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(0.985);
    }
    70% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.tile,
.random-button {
    width: 96px;
    height: 96px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--tile) 0%, #241d3f 100%);
    box-shadow:
            0 7px 0 rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition:
            transform 0.15s ease,
            background 0.15s ease,
            box-shadow 0.15s ease,
            filter 0.15s ease;
    position: relative;
    overflow: hidden;
}

.tile::before,
.random-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 35%);
    opacity: 0.7;
    pointer-events: none;
}

.tile:hover,
.random-button:hover {
    background: linear-gradient(180deg, var(--tile-hover) 0%, #2d2550 100%);
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.tile:active,
.random-button:active {
    transform: translateY(1px);
    box-shadow:
            0 4px 0 rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tile img {
    width: 72%;
    height: 72%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    margin: auto;
}

.reveal-pop {
    animation: revealPop 220ms ease-out;
}

@keyframes revealPop {
    0% {
        transform: scale(0.35);
        opacity: 0;
        filter: blur(3px);
    }
    70% {
        transform: scale(1.08);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 18, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 180ms ease-out;
}

.modal-card {
    width: min(420px, 92vw);
    background: linear-gradient(180deg, #2a2342 0%, #1c162f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    padding: 26px;
    color: var(--text);
    text-align: center;
    transform: scale(0.92);
    animation: modalPop 180ms ease-out forwards;
}

.modal-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
    color: #231a08;
    box-shadow: 0 12px 24px rgba(240, 199, 94, 0.18);
}

.modal-title {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 1000;
}

.modal-message {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.98rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.modal-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.modal-button.primary {
    background: linear-gradient(180deg, #fff0a9 0%, #f2cd63 48%, #d8ad43 100%);
    color: #231a08;
}

.modal-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-win .modal-badge {
    background: linear-gradient(180deg, #7dffb0 0%, #45d57b 100%);
    color: #0d2616;
}

.modal-lose .modal-badge {
    background: linear-gradient(180deg, #ff7f93 0%, #e3546d 100%);
    color: #2b0c12;
}

@keyframes modalPop {
    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 980px) {
    body {
        overflow: auto;
        padding: 24px 0;
    }

    .mines {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .grid-wrap {
        padding: 20px;
    }

    .grid {
        transform: scale(0.92);
        transform-origin: top center;
    }
}