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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.game-container {
    max-width: 900px;
    width: 100%;
    position: relative;
}

/* Start Screen */
.start-screen {
    text-align: center;
    background: rgba(10, 14, 39, 0.9);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.2rem;
    color: #4a9eff;
    margin-bottom: 30px;
}

.btn-start {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0a0e27;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.rules {
    margin-top: 30px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.rules h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.rules ul {
    list-style: none;
    color: #ccc;
}

.rules li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.rules li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-weight: bold;
}

/* Game Screen */
.game-screen {
    background: rgba(10, 14, 39, 0.9);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.question-number {
    font-size: 1.2rem;
    color: #4a9eff;
    font-weight: 600;
}

.current-prize {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 900;
}

.question-box {
    background: linear-gradient(135deg, #1a1f3a, #0f1229);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #4a9eff;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.2);
}

.question-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #fff;
    text-align: center;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.option {
    background: linear-gradient(135deg, #1a1f3a, #0f1229);
    border: 2px solid #4a9eff;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option:hover:not(.disabled) {
    background: linear-gradient(135deg, #2a3f6a, #1f2a4a);
    border-color: #ffd700;
    transform: scale(1.02);
}

.option.selected {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    color: #0a0e27;
}

.option.correct {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-color: #00ff88;
    color: #0a0e27;
}

.option.wrong {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    border-color: #ff4444;
}

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

.option-label {
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffd700;
}

.option.selected .option-label,
.option.correct .option-label {
    color: #0a0e27;
}

.jokers {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.joker {
    background: linear-gradient(135deg, #1a1f3a, #0f1229);
    border: 2px solid #4a9eff;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.joker:hover:not(.used) {
    background: linear-gradient(135deg, #2a3f6a, #1f2a4a);
    transform: translateY(-3px);
}

.joker.used {
    opacity: 0.3;
    cursor: not-allowed;
}

.joker-icon {
    font-size: 1.5rem;
}

.joker-name {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 600;
}

.actions {
    text-align: center;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0a0e27;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a9eff, #2a7edf);
    color: #fff;
    margin-left: 10px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

/* Prize Ladder */
.prize-ladder {
    position: fixed;
    right: 20px;
    top: 80px;
    background: rgba(10, 14, 39, 0.95);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
    width: 180px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.ladder-title {
    text-align: center;
    color: #ffd700;
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

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

.ladder-item {
    padding: 8px;
    margin: 3px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 0.9rem;
}

.ladder-item.current {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0a0e27;
    transform: scale(1.1);
}

.ladder-item.passed {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

.ladder-item.safe {
    border: 2px solid #00ff88;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1f3a, #0a0e27);
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-title {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-message {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.modal-prize {
    font-size: 3rem;
    font-weight: 900;
    color: #ffd700;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.audience-chart {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.audience-bar {
    width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    position: relative;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.audience-fill {
    background: linear-gradient(to top, #4a9eff, #2a7edf);
    border-radius: 5px;
    transition: height 0.5s;
}

.audience-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 900;
    color: #ffd700;
}

.audience-percent {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .prize-ladder {
        position: static;
        width: 100%;
        margin-top: 20px;
        max-height: 200px;
    }
    
    .ladder-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .ladder-item {
        flex: 1;
        min-width: 80px;
        font-size: 0.8rem;
    }
}
