body {
    background: repeating-linear-gradient(135deg, #1a1a2d 0 40px, #23234a 40px 80px);
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace, Arial, sans-serif;
    color: #fff;
    margin: 0;
}
.blackjack-container {
    max-width: 520px;
    margin: 2.5rem auto;
    background: #181828cc;
    border: 6px solid #f7c325;
    border-radius: 24px;
    box-shadow: 0 0 32px #000a, 0 0 0 8px #2d2d4d;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    position: relative;
}
h1 {
    font-family: 'Press Start 2P', monospace;
    color: #f7c325;
    font-size: 1.3rem;
    text-shadow: 2px 2px 0 #000, 0 0 8px #f7c32599;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}
.hand {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.card {
    width: 48px;
    height: 68px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px #0004;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    border: 2px solid #bdbdbd;
    position: relative;
    overflow: hidden;
}
.card.filled {
    background: #f8fafc;
    color: #222;
    border: 2px solid #6366f1;
}
.card-face {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #222;
    text-shadow: 1px 1px 0 #fff, 0 0 2px #000a;
    letter-spacing: 1px;
    position: absolute;
    top: 6px;
    left: 8px;
}
.card-suit {
    font-size: 1.1rem;
    position: absolute;
    bottom: 6px;
    right: 8px;
}
.card-suit.red {
    color: #e53935;
}
.card-suit.black {
    color: #23234a;
}
.card-back {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(135deg, #23234a 0 6px, #f7c325 6px 12px);
    border-radius: 6px;
    border: 2px solid #23234a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
#controls {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
#controls button {
    font-family: 'Press Start 2P', monospace;
    background: #f7c325;
    color: #23234a;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 0 #b88b1a;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
#controls button:hover {
    background: #fff;
    color: #f7c325;
}
#messages {
    min-height: 32px;
    background: #23234a;
    border: 2px solid #f7c325;
    border-radius: 8px;
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: #f7c325;
    text-shadow: 1px 1px 0 #000a;
}
/* Maryland flag bitmap background for cards */
.card.maryland {
    background-image: url('https://pixnio.com/free-images/flags-of-the-world/state-flags-of-the-united-states-of-america/state-flag-of-maryland-1152x768.gif');
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.card .pek-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000, 0 0 8px #f7c32599;
    pointer-events: none;
    letter-spacing: 2px;
    opacity: 0.95;
}
/* Wallet section CSP-compliant styles */
.wallet-section {
    text-align: center;
    margin-bottom: 1.2rem;
}
.wallet-address, .wallet-balance {
    margin-left: 1em;
}
