* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-box input {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.login-box button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.header {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
}

.header span {
    color: #ffd700;
    font-weight: bold;
}

.players-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    min-height: 200px;
}

.player-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.player-card.current {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.player-card.folded {
    opacity: 0.4;
}

.player-card.winner {
    border-color: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.player-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.player-chips {
    color: #ffd700;
    margin-bottom: 10px;
}

.player-cards {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.card {
    width: 40px;
    height: 56px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card.red {
    color: #e94560;
}

.card.black {
    color: #333;
}

.card.hidden {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: transparent;
}

.card.hidden::after {
    content: '?';
    color: #fff;
    font-size: 20px;
}

.player-status {
    margin-top: 8px;
    font-size: 0.9em;
    color: #aaa;
}

.player-status.looked {
    color: #4ecdc4;
}

.my-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
}

.my-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.my-cards .card {
    width: 60px;
    height: 84px;
    font-size: 20px;
}

.my-info {
    font-size: 1.2em;
}

.my-info span {
    color: #ffd700;
}

.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.look {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
}

.btn.call {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.btn.raise {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.btn.fold {
    background: linear-gradient(135deg, #606c88, #3f4c6b);
    color: #fff;
}

.btn.showdown {
    background: linear-gradient(135deg, #ff9a00, #ff6b6b);
    color: #fff;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#showdown-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 20px;
}

#showdown-targets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#showdown-targets button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #e94560;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    display: none;
    z-index: 2000;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

.hand-type {
    color: #ffd700;
    font-size: 0.9em;
    margin-top: 5px;
}
