body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Inter', -apple-system, sans-serif;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-bar {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.balance {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 15px 40px;
    pointer-events: auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.status-label {
    color: #ffd700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.status-value {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.bottom-bar {
    padding: 20px 40px 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: auto;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}

.chip-selector {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.chip {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 4px dashed rgba(255,255,255,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.chip:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

.chip.active {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.3);
    border-color: white;
}

.chip-10 { background: #3498db; color: white; }
.chip-50 { background: #e74c3c; color: white; }
.chip-100 { background: #2ecc71; color: #000; }
.chip-500 { background: #9b59b6; color: white; }
.chip-1000 { background: #f1c40f; color: #000; }

.side-panel {
    position: absolute;
    top: 100px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 250px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}

.left-panel {
    left: 20px;
}

.right-panel {
    right: 20px;
}

.active-players-panel {
    width: 150px;
}

.panel-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.9rem;
    color: #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 6px;
    word-wrap: break-word;
}

.log-time {
    color: #888;
    font-size: 0.8rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .game-status {
        top: 70px;
        padding: 10px 20px;
    }
    .status-value {
        font-size: 1.2rem;
    }
    .chip {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}
