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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 1200px;
}

.screen {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 40px;
}

.hidden {
    display: none !important;
}

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

h1 {
    color: #1a1a2e;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    color: #666;
    font-size: 1.2em;
}

.prize-ladder-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    color: white;
}

.prize-ladder-preview h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.ladder-items {
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

.ladder-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.ladder-item.milestone {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.instructions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
}

.instructions h3 {
    color: #333;
    margin-bottom: 15px;
}

.instructions ul {
    list-style-position: inside;
    color: #555;
    line-height: 1.8;
}

.instructions li {
    margin: 8px 0;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

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

.btn-large {
    padding: 20px 60px;
    font-size: 1.3em;
    display: block;
    margin: 30px auto;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.game-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.prize-ladder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    height: fit-content;
}

.prize-ladder h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
}

#ladderList {
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

.ladder-step {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ladder-step.current {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.6);
    transform: scale(1.05);
    font-weight: bold;
}

.ladder-step.completed {
    background: rgba(76, 175, 80, 0.5);
}

.ladder-step.milestone-step {
    border: 2px solid #FFD700;
}

.question-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
}

.question-number {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.current-prize {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
}

.question-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#questionText {
    font-size: 1.3em;
    line-height: 1.6;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-btn {
    background: white;
    border: 3px solid #667eea;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.answer-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.answer-btn.selected {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border-color: #FF8C00;
}

.answer-btn.correct {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
    animation: correctPulse 0.5s ease;
}

.answer-btn.incorrect {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #f44336;
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.answer-letter {
    font-weight: bold;
    color: #667eea;
    min-width: 25px;
}

.answer-btn:hover:not(:disabled) .answer-letter,
.answer-btn.selected .answer-letter,
.answer-btn.correct .answer-letter,
.answer-btn.incorrect .answer-letter {
    color: white;
}

.lifelines {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.lifeline-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.lifeline-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.lifeline-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #ccc;
}

.game-actions {
    text-align: center;
}

.final-prize {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
}

.final-prize p {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.final-prize h2 {
    color: #1a1a2e;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-over-message {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin: 20px 0;
}

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.audience-poll {
    margin: 20px 0;
}

.poll-bar {
    margin: 15px 0;
    text-align: left;
}

.poll-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.poll-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 30px;
    position: relative;
}

.poll-bar-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.friend-advice {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
    margin: 20px 0;
    font-style: italic;
}

.friend-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.friend-btn {
    background: white;
    border: 3px solid #667eea;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.friend-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.friend-emoji {
    font-size: 2.5em;
    min-width: 60px;
    text-align: center;
}

.friend-name {
    font-weight: bold;
    font-size: 1.2em;
    display: block;
}

.friend-desc {
    font-size: 0.9em;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

.friend-btn:hover .friend-desc {
    opacity: 1;
}

.trophy-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.dancing-trophy {
    position: relative;
    display: inline-block;
    animation: dance 1s infinite ease-in-out;
}

.trophy-body {
    font-size: 80px;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
}

.trophy-face {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
}

.trophy-eyes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 5px;
}

.eye {
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.pupil {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    animation: look 2s infinite;
}

.trophy-mouth {
    font-size: 20px;
    text-align: center;
}

.trophy-arms {
    position: absolute;
    top: 35px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.arm {
    font-size: 25px;
    animation: wave 0.5s infinite alternate;
}

.arm.left {
    transform: rotate(-20deg);
    margin-left: -15px;
}

.arm.right {
    transform: rotate(20deg);
    margin-right: -15px;
}

.trophy-legs {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.leg {
    font-size: 20px;
    animation: kick 0.6s infinite alternate;
}

.leg:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes dance {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes wave {
    0% {
        transform: rotate(-20deg);
    }
    100% {
        transform: rotate(20deg);
    }
}

@keyframes kick {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

@keyframes blink {
    0%, 96%, 100% {
        height: 12px;
    }
    98% {
        height: 2px;
    }
}

@keyframes look {
    0%, 100% {
        left: 3px;
    }
    50% {
        left: 1px;
    }
}

@media (max-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .prize-ladder {
        order: 2;
    }
    
    .question-area {
        order: 1;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .screen {
        padding: 20px;
    }
    
    .trophy-body {
        font-size: 60px;
    }
    
    .trophy-container {
        gap: 20px;
    }
}
