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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.game-setup, .game-area {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.setup-section h3 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.5rem;
}

.player-roles {
    margin-bottom: 25px;
}

.role-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.role-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 15px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.role-selector label:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.role-selector input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.role-selector input[type="radio"]:checked + .role-label {
    color: #667eea;
    font-weight: bold;
}

.role-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.face-limits {
    margin-bottom: 25px;
}

.face-limits h4 {
    margin-bottom: 15px;
    color: #4a5568;
}

.limit-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.limit-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.limit-options label:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.limit-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-dice {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-dice:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

.btn-center {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-center:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

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

.btn-secondary:hover {
    background: #4a5568;
}

.btn-info {
    background: #38b2ac;
    color: white;
}

.btn-info:hover {
    background: #319795;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.current-player {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a5568;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
}

.game-stats span {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dice-section {
    text-align: center;
    margin-bottom: 30px;
}

.dice-container {
    margin-bottom: 20px;
}

.dice {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a5568;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.dice.rolling {
    animation: roll 0.6s ease-in-out;
}

@keyframes roll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.center-dare-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 10px;
    text-align: center;
}

.center-dare-info h4 {
    margin-bottom: 10px;
    color: #4a5568;
}

.center-dare-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2d3748;
}

.dare-grid h3 {
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
    font-size: 1.5rem;
}

.dare-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.dare-item {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dare-item:hover {
    border-color: #667eea;
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dare-item.eliminated {
    opacity: 0.3;
    background: #e2e8f0;
    text-decoration: line-through;
    cursor: not-allowed;
}

.dare-item.eliminated:hover {
    transform: none;
    box-shadow: none;
}

.dare-number {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.dare-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4a5568;
}

.dare-type {
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.dare-type.roller {
    background: #fed7d7;
    color: #c53030;
}

.dare-type.master {
    background: #bee3f8;
    color: #2b6cb0;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.rules-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #4a5568;
}

.rules-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.rules-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.rules-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .role-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .limit-options {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .dare-grid-container {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}


