.mini-wordle-revealing {
    animation: mini-wordle-surprise-flip 900ms ease-in-out both;
    backface-visibility: hidden;
}

@keyframes mini-wordle-surprise-flip {
    0% { transform: perspective(1000px) rotateY(0deg); }
    45% { transform: perspective(1000px) rotateY(90deg); }
    50% { transform: perspective(1000px) rotateY(180deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

.mini-wordle-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(16px, 4vw, 40px);
    border: 0;
    background: #f5f4ef;
    color: #242923;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mini-wordle-dialog::backdrop {
    background: rgba(19, 24, 20, 0.72);
}

.mini-wordle-dialog__layout {
    display: flex;
    width: min(100%, 900px);
    min-height: 100%;
    margin: 0 auto;
    flex-direction: column;
}

.mini-wordle-dialog__close {
    position: fixed;
    z-index: 1;
    top: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #777c75;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: 400 28px/1 system-ui, sans-serif;
    cursor: pointer;
}

.mini-wordle-dialog__close:focus-visible {
    outline: none;
}

.mini-wordle-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.mini-wordle-dialog__game {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 24px 0;
}

@media (prefers-reduced-motion: reduce) {
    .mini-wordle-revealing {
        animation: none;
    }
}