#game-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to game elements */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hud-bottom {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.creds-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--neon-blue);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-align: right;
    pointer-events: auto;
}

.creds-label {
    font-size: 0.8rem;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creds-value {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.zoe-terminal {
    width: 300px;
    height: 150px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-left: 3px solid var(--neon-pink);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--neon-pink);
    overflow-y: auto;
    pointer-events: auto;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    display: flex;
    flex-direction: column-reverse; /* New messages at bottom */
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.game-controls {
    pointer-events: auto;
    background: rgba(0,0,0,0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    display: flex;
    gap: 1rem;
}

.game-controls button {
    min-width: 120px;
}

button.danger {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

button.danger:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px var(--neon-red);
}

/* Card table area */
#card-table {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    /* border: 1px solid #333; Debug */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    perspective: 1000px;
}

.card {
    width: 100px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    user-select: none;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 15px var(--neon-blue);
}

.card.hidden-face {
    background: 
        repeating-linear-gradient(
            45deg,
            #000,
            #000 10px,
            #111 10px,
            #111 20px
        );
    color: transparent;
}
