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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Huvudmeny */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.game-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.game-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.game-icon {
    font-size: 2.5rem;
}

.game-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-align: center;
}

.game-count {
    font-size: 0.8rem;
    color: #666;
}

/* Spelskärm */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.game-info {
    text-align: right;
}

.game-info h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.progress {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Kort */
.game-content {
    max-width: 500px;
    margin: 0 auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(50px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.card-content {
    text-align: center;
}

#questionText {
    color: #333;
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Truth or Dare knappar */
.tod-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.tod-btn {
    flex: 1;
    max-width: 150px;
    padding: 20px;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.truth-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff3838);
}

.dare-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a3aa);
}

.tod-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Drink If rundinfo */
.round-info {
    text-align: center;
    margin-bottom: 20px;
}

.round-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Kontroller */
.game-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.next-btn, .new-round-btn {
    background: white;
    color: #764ba2;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.next-btn:hover, .new-round-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Game Over */
.game-over-content {
    text-align: center;
    padding-top: 100px;
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.game-over-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #764ba2;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* Mobil responsiv */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 30px 20px;
    }
    
    #questionText {
        font-size: 1.1rem;
    }
    
    .game-controls {
        bottom: 20px;
    }
}