/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.hero-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a8a8a8;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.hero-text p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 500px;
    margin-bottom: 30px;
    text-align: center;
}

/* Blame Game Styles */
.blame-game {
    max-width: 800px;
    margin: 0 auto;
}

/* Game Setup Section */
.game-setup {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.game-setup h3 {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.game-setup p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
    text-align: center;
}

.game-setup p:last-child {
    margin-bottom: 0;
}

.game-setup strong {
    color: #ffd700;
}

/* Player Input */
.player-input {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.player-input label {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.player-input select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.player-input select option {
    background: #2c3e50;
    color: #ffffff;
}

/* Start Game Button */
.start-game-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Score Display */
.score-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.score-display h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.score-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.score-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.score-player {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.score-points {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
}

.score-item.winner {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

/* Game Status */
.game-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.current-player {
    color: #4ecdc4;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.turn-info {
    color: #b8b8b8;
    font-size: 1rem;
}

/* Problem Card */
.problem-card {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.problem-card h3 {
    color: #ff6b6b;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.problem-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Blame Cards */
.blame-cards-section {
    margin-bottom: 40px;
    text-align: center;
}

.blame-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
}

.blame-card {
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 200px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.blame-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ecdc4, #6ee7df);
}

.blame-card:hover {
    background: rgba(78, 205, 196, 0.15);
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 50px rgba(78, 205, 196, 0.4);
    border-color: rgba(78, 205, 196, 0.6);
}

.blame-card:active {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.3);
}

/* Selected card highlighting */
.blame-card.selected {
    background: rgba(78, 205, 196, 0.3);
    border: 3px solid #4ecdc4;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(78, 205, 196, 0.6);
}

.blame-card.selected::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.blame-card h4 {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

.blame-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure icons and text stack vertically */
.blame-card .blame-icon + .blame-text {
    margin-top: 10px;
}

/* Game Actions */
.game-actions {
    text-align: center;
    margin-bottom: 40px;
}

.game-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Player Answers */
.player-answer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.player-answer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.player-name {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1.1rem;
}

.answer-text {
    color: #ffffff;
    font-style: italic;
    font-size: 1rem;
}

/* Voting Section */
.voting-section {
    margin-top: 30px;
    text-align: center;
}

.vote-btn {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.4);
    border-radius: 10px;
    padding: 8px 16px;
    color: #4ecdc4;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.vote-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.vote-btn.voted {
    background: rgba(78, 205, 196, 0.6);
    border-color: rgba(78, 205, 196, 0.8);
}

/* Winner Announcement */
.winner-announcement {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.winner-announcement h3 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.winner-name {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.winner-answer {
    color: #ffffff;
    font-size: 1.2rem;
    font-style: italic;
}

.new-round-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000000;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.new-round-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Game Instructions */
.game-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.game-instructions h3 {
    color: #4ecdc4;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.game-instructions p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0;
    text-align: left;
}

.game-instructions strong {
    color: #ffd700;
    font-weight: 700;
}

/* Card Icon Styling */
.blame-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .blame-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto 30px auto;
    }
    
    .problem-card,
    .blame-card {
        width: 280px;
        height: 392px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blame-cards-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    .problem-card,
    .blame-card {
        width: 250px;
        height: 350px;
        padding: 15px;
    }
}