* {
    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;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    padding: 30px;
    text-align: center;
    color: white;
}

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

.game-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: white;
    border-bottom: 3px solid #667eea;
    color: #667eea;
}

.tab-button:hover {
    background: #e9ecef;
}

.game-section {
    display: none;
}

.game-section.active {
    display: block;
}

.custom-textarea {
    resize: vertical;
    min-height: 200px;
}

.team-textarea {
    resize: none;
    height: 40px;
}

.custom-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.custom-btn:hover {
    transform: translateY(-2px);
    color: white;
}

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

/* Ruleta */
.wheel-container {
    margin: 30px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid #333;
    position: relative;
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
    margin: 10px;
    overflow: hidden;
}

.wheel-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #333;
    z-index: 100;
}

/* Cartas */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.card {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
}

.card.flipped {
    background: white;
    border: 3px solid #667eea;
    color: #333;
    font-size: 1em;
}

/* Dados */
.dice {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    transition: transform 0.5s ease;
}

.dice.rolling {
    animation: rollDice 0.5s ease-in-out;
}

@keyframes rollDice {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

/* Resultados */
.results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.team {
    background: white;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid;
}

.team:nth-child(1) { border-left-color: #ff6b6b; }
.team:nth-child(2) { border-left-color: #4ecdc4; }
.team:nth-child(3) { border-left-color: #45b7d1; }
.team:nth-child(4) { border-left-color: #96ceb4; }
.team:nth-child(5) { border-left-color: #ffd93d; }
.team:nth-child(6) { border-left-color: #ff9ff3; }
.team:nth-child(7) { border-left-color: #a8e6cf; }
.team:nth-child(8) { border-left-color: #ffaaa5; }

.team h4 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

.student-name {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.9em;
}

.status {
    font-size: 1.2em;
    font-weight: bold;
}