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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

h1 {
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 15px;
}

/* Pot Display */
.pot-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.pot-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.pot-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Players */
.players-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.player-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s;
}

.player-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.player-card.folded {
    opacity: 0.5;
    border-color: rgba(255, 255, 255, 0.05);
}

.folded-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.player-chips {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 15px;
}

.player-actions {
    display: flex;
    gap: 10px;
}

.btn-bet {
    flex: 1;
    background: #ef4444;
    color: white;
    padding: 10px;
}

.btn-win {
    flex: 1;
    background: #22c55e;
    color: white;
    padding: 10px;
}

.btn-fold {
    flex: 1;
    background: #6b7280;
    color: white;
    padding: 10px;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
}

.no-players {
    text-align: center;
    opacity: 0.6;
    padding: 30px;
    grid-column: 1 / -1;
}

/* Add Player Form */
.add-player-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-player-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

.add-player-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.add-player-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Settings */
.settings {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.settings input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

.settings input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1f2937;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.quick-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.quick-bet {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.quick-bet:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-amount {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-amount input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.custom-amount input:focus {
    outline: none;
    border-color: #3b82f6;
}

.close-modal {
    width: 100%;
}

/* Rules Modal */
.rules-modal-content {
    max-width: 600px;
}

.rules-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.4rem;
    }

    .pot-amount {
        font-size: 2.5rem;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .add-player-form {
        flex-direction: column;
    }

    .settings {
        flex-direction: column;
        align-items: stretch;
    }

    .settings label {
        justify-content: space-between;
    }
}
