body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Geneva, Tahoma, sans-serif;
    background-color: aliceblue;
    margin: 0;
    padding: 20px;
    color: #123;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

header h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
}

.subtitle {
    margin: 2px 0;
    color: #245;
    font-size: 14px;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.controls .bank .controls .bet input[type="number"] {
    width: 90px;
    padding: 6px;
    margin-left: 8px;
}

.controls button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #89a;
    background: linear-gradient(180deg, #fff, #e9f4ff);
    cursor: pointer;
    font-weight: 600;
}

.controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.dealer-area,
.player-area {
    background: #f8ffff;
    border: 1px solid #cfe;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(18, 34, 60, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cards {
    display: flex;
    gap: 8px;
    margin: 10px 0 6px 0;
    flex-wrap: wrap;
}

.card {
    min-width: 60px;
    height: 86px;
    border-radius: 8px;
    border: 1px solid #c0d;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    font-weight: 700;
    text-align: center;
}

.face-down {
    background: repeating-linear-gradient(135deg, #c0d, #c0d 4px, white 4px, white 12px);
    min-width: 60px;
    height: 86px;
    border-radius: 8px;
    border: 1px solid #c0d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    font-weight: 700;
    text-align: center;
}

.card.red {
    color: #b00;
}

.card .rank {
    font-size: 18px;
}

.card .suit {
    font-size: 20px;
    opacity: 0.9;
}

.hand {
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #ffffffef;
    outline: none;
}

.hand .hand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    outline: none;
}

.hand .hand-info {
    font-size: 14px;
    color: #225;
}

.messages {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #fcfeff;
    border: 1px solid #d7f;
    color: #123;
    min-height: 46px;
}

.player-bet {
    font-weight: 700;
    font-size: 14px;
}

.small-muted {
    font-size: 12px;
    color: #557;
}

.decision {
    font-weight: 800;
    color: #083;
}

.site-footer {
    margin-top: 30px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #456;
    border-top: 1px solid #ccd;
    background: #f9fcff;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.site-footer {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #456;
    border-top: 1px solid #ccd;
    background: aliceblue;
}
.menu-button {
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #cb1111, #f8aaaa);
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;

    position: fixed;
    bottom: 15px;
    left: 15px;
}

.menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #f8aaaa, #cb1111);
}
