.artgame-page {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.artgame-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(23, 162, 184, 0.25);
    border-radius: 8px;
    background: #ffffff;
}

.artgame-hero h1 {
    margin-top: 0 !important;
    font-weight: 800;
    letter-spacing: 0;
}

.artgame-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 8px;
    background: rgba(23, 162, 184, 0.14);
    color: #17a2b8;
    font-size: 2rem;
}

.artgame-muted {
    color: #667784;
}

.artgame-panel {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.artgame-rounds,
.artgame-pack-select {
    width: min(100%, 480px);
    margin-left: auto;
    margin-right: auto;
}

.artgame-format-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
    width: min(100%, 760px);
    margin: 0 auto;
    text-align: center;
}

.artgame-format-grid .btn,
.choices .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choices .btn {
    min-height: 42px;
    padding: 0.5rem 0.75rem;
    line-height: 1.2;
}

.artgame-format-grid .btn {
    height: 40px;
    margin-top: 0;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.05;
    white-space: normal;
}

.artgame-format-grid .btn-block + .btn-block {
    margin-top: 0;
}

.artgame-format-grid .btn:hover,
.choices .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.45rem 0.9rem rgba(23, 162, 184, 0.16);
}

.choices .btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.choices .btn.choice-correct {
    border-color: #2f9e44;
    background-color: #2f9e44;
    box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.18);
}

.choices .btn.choice-wrong {
    border-color: #dc3545;
    background-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.artgame-or {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667784;
    font-weight: 800;
    text-transform: uppercase;
}

.artgame-pack-select {
    grid-column: 1 / -1;
}

.artgame-play-panel {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 333px;
    overflow: hidden;
}

.img-container.is-loading {
    animation: artgame-fade-in 220ms ease;
}

.artgame-page .loader {
    position: static;
    left: auto;
    margin: 0 auto;
}

.artgame-img {
    border-radius: 8px;
    box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.16);
    animation: artgame-card-in 260ms ease;
}

.choices {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 520px !important;
}

.choices.is-correct {
    animation: artgame-correct-pop 280ms ease;
}

.choices.is-wrong {
    animation: artgame-wrong-shake 320ms ease;
}

.artgame-scorebar {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.artgame-scorebar > div {
    min-width: 110px;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 8px;
    background: rgba(23, 162, 184, 0.08);
    font-weight: 800;
}

#status-msg {
    min-height: 1.75rem;
    margin-top: 1rem;
    font-weight: 800;
}

.wrong-cards,
.correct-cards {
    border-radius: 8px !important;
    border-color: rgba(23, 162, 184, 0.25) !important;
}

.art-img-result {
    border-radius: 5px;
}

[data-bs-theme="dark"] .artgame-hero,
[data-bs-theme="dark"] .artgame-panel {
    background: #202428;
    border-color: rgba(255, 255, 255, 0.14);
}

[data-bs-theme="dark"] .artgame-muted,
[data-bs-theme="dark"] .artgame-or {
    color: #b8c2cc;
}

[data-bs-theme="dark"] .artgame-scorebar > div {
    background: rgba(23, 162, 184, 0.13);
    border-color: rgba(255, 255, 255, 0.14);
}

@media only screen and (max-width: 600px) {
    .artgame-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .img-container {
        min-height: 220px;
    }
}

@keyframes artgame-fade-in {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@keyframes artgame-card-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes artgame-correct-pop {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.018); }
}

@keyframes artgame-wrong-shake {
    0%, 100% { transform: translateX(0); }
    22% { transform: translateX(-7px); }
    44% { transform: translateX(6px); }
    66% { transform: translateX(-4px); }
    84% { transform: translateX(2px); }
}
