body {
    background-image: url("images/images.jpg");
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 36px 16px;
    box-sizing: border-box;
    transition: background-color 350ms ease;
}

.game-table {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 28px 24px 34px;
    box-sizing: border-box;
    background: rgba(7, 48, 33, 0.86);
    border: 1px solid rgba(255, 218, 113, 0.35);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.eyebrow, .score-label {
    color: #e7c768;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow { margin: 0; }

h1 {
    color: goldenrod;
    text-align: center;
    font-size: clamp(2.4rem, 8vw, 4.6rem);
    margin: 8px 0;
}

.message {
    font-style: italic;
    min-height: 24px;
    margin: 8px 0 24px;
}

.scoreboard {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 0;
}

.scoreboard p {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.cards {
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
}

.empty-hand { opacity: 0.65; }

.card-image {
    width: clamp(92px, 19vw, 140px);
    filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.35));
    animation: deal-card 450ms ease both;
}

.is-winning .game-table, .is-blackjack .game-table {
    animation: win-glow 1.4s ease-in-out infinite alternate;
}

.is-winning .message, .is-blackjack .message { color: #ffe17a; }
.is-losing .message { color: #ff9e9e; }

@keyframes deal-card {
    from { opacity: 0; transform: translateY(-18px) rotate(-4deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes win-glow {
    from { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
    to { box-shadow: 0 0 32px rgba(255, 215, 90, 0.65); }
}

button {
    color: #016f32;
    width: 150px;
    background: goldenrod;
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    margin-bottom: 2px;
    margin-top: 2px;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 420px) {
    .game-table { padding: 24px 16px 28px; }
    .scoreboard { gap: 8px; }
}

