.mini-game {
    max-width: 860px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(25, 32, 51, .1);
    overflow: hidden;
}

.mini-game__panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.mini-game__eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mini-game h3 {
    font-size: 26px;
}

.mini-game__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
}

.mini-game__stats span {
    min-width: 112px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    text-align: center;
}

.mini-game__stats strong {
    color: var(--ink);
}

.mini-game__field {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    touch-action: manipulation;
    background:
        radial-gradient(circle at 12% 18%, rgba(209, 75, 210, .2), transparent 30%),
        radial-gradient(circle at 86% 22%, rgba(16, 185, 173, .25), transparent 32%),
        linear-gradient(135deg, #18213a, #243c82 48%, #106b75);
}

.mini-game__message {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 24px;
    color: white;
    text-align: center;
    background: rgba(10, 16, 28, .28);
}

.mini-game__message[hidden],
.mini-game__message.is-hidden {
    display: none;
}

.mini-game__message strong {
    font-size: 28px;
}

.mini-game__message span {
    color: rgba(255, 255, 255, .84);
}

.mini-game__target {
    position: absolute;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: #192033;
    background: #fff176;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .22), 0 10px 22px rgba(0, 0, 0, .22);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.mini-game__target::before,
.mini-game__target::after {
    content: "";
    position: absolute;
    inset: 13px;
    background: #fff;
    clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.mini-game__target::after {
    inset: 17px;
    background: #f7b731;
}

.mini-game__target:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.mini-game__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px 20px;
}

.mini-game__button {
    min-height: 46px;
    padding: 11px 16px;
    border: 0;
    border-radius: var(--radius);
    color: white;
    background: var(--blue);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mini-game__button--secondary {
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
}

.mini-game__button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

@media (max-width: 640px) {
    .mini-game__panel {
        display: block;
    }

    .mini-game__stats {
        justify-content: stretch;
        margin-top: 16px;
    }

    .mini-game__stats span {
        flex: 1 1 120px;
    }

    .mini-game__field {
        min-height: 360px;
    }

    .mini-game__target {
        width: 62px;
        height: 62px;
    }

    .mini-game__controls {
        display: grid;
    }
}
