body {
    margin: 0;
    height: 100dvh;
    padding: 20px 16px;
    box-sizing: border-box;
    overflow: hidden;
    background: #f2f2f2;
    color: #222;
    font-family: Arial, sans-serif;
}

.page {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.logo {
    width: min(100%, 420px);
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-shell {
    position: relative;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.game-shell.is-hidden {
    display: none;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
}

.size-notice {
    margin: 0;
    color: #666;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.button-link,
button {
    display: inline-block;
    min-width: 150px;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #b8b8b8;
    background: #ebebeb;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    touch-action: manipulation;
    box-sizing: border-box;
    transition: background 0.18s ease, transform 0.18s ease;
}

.button-link:hover,
.button-link:focus-visible,
button:hover,
button:focus-visible {
    background: #dfdfdf;
    transform: translateY(-1px);
}

.play-button {
    min-width: 120px;
}

@media (max-width: 640px) {
    .page {
        gap: 12px;
    }

    .button-link,
    button {
        min-width: 130px;
    }
}
