/* --- Background --- */
body {
    font-family: "Georgia", serif;
    background: #1a0000;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Subtle animated casino glow */
.casino-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #4d0000, #1a0000 70%);
    animation: casinoPulse 6s infinite alternate;
    z-index: -1;
}

@keyframes casinoPulse {
    from { filter: brightness(0.9); }
    to { filter: brightness(1.1); }
}

/* --- Layout --- */
.container {
    max-width: 900px;
    padding: 20px;
}

/* --- Cards / Panels --- */
.card {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 2px solid gold;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

/* --- Buttons --- */
button {
    padding: 10px 20px;
    background: linear-gradient(90deg, #b8860b, gold);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #3a0000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: 0.2s;
}

button:hover {
    filter: brightness(1.15);
}

/* --- Inputs --- */
input {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid gold;
    background: #330000;
    color: gold;
    width: 80px;
}

/* --- Popup --- */
#popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
}

#popupBox {
    background: #330000;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    border: 2px solid gold;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

/* --- Log --- */
.log {
    white-space: pre-wrap;
    font-family: monospace;
    background: #220000;
    padding: 15px;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid gold;
}