* {
    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%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.console-container {
    width: 100%;
    max-width: 1400px;
    background: #1a1a2e;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.console-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.console-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.console-subtitle {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 300;
}

.screen {
    display: none;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.screen.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.console-log {
    background: linear-gradient(135deg, #16213e 0%, #0f1626 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 2;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.log-line {
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.prompt {
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
}

.console-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #667eea;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.3s;
}

.console-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.console-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary, .btn-secondary, .btn-game, .btn-helper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover, .btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
}

.btn-secondary:hover {
    opacity: 1;
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-helper {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a2e;
}

.btn-helper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-helper:disabled {
    background: rgba(255, 215, 0, 0.2);
    color: rgba(255, 215, 0, 0.5);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #16213e 0%, #0f1626 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    margin-bottom: 20px;
}

.helper-badge, .counter {
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    border-radius: 8px;
}

.statements-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.statement-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    animation: slideIn 0.5s ease-out;
}

.statement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.statement-item.answered {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
}

.statement-item.correct {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 200, 0, 0.2) 100%);
    border-color: #00ff00;
}

.statement-item.incorrect {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(200, 0, 0, 0.2) 100%);
    border-color: #ff0000;
}

.statement-number {
    font-weight: bold;
    font-size: 20px;
    color: #ffd700;
    min-width: 40px;
    text-align: center;
}

.statement-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

.statement-actions {
    display: flex;
    gap: 12px;
}

.answer-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #667eea;
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 100px;
}

.answer-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.answer-btn.selected {
    color: #1a1a2e;
    border-color: #667eea;
}

.answer-btn.selected.true {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
}

.answer-btn.selected.false {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.zone-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.zone-item:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    transform: scale(1.03);
}

.zone-range {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.zone-credits {
    font-size: 24px;
    color: #00ff88;
    font-weight: 600;
}

.result-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 3px solid #667eea;
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.result-won {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
}

.result-lost {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 111, 0.2) 100%);
}

.result-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-stats {
    font-size: 20px;
    line-height: 2.5;
}

.result-credits {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    margin-top: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.toplist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.toplist-table th, .toplist-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.toplist-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toplist-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.rank-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a2e;
    border-radius: 8px;
    font-weight: bold;
}

/* Zone display */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: 100%;
}

.zone-display {
    background: linear-gradient(135deg, #16213e 0%, #0f1626 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.zone-display-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

.zone-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zone-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.5s;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.zone-slot.active {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.zone-slot.filled-correct {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 200, 100, 0.3) 100%);
    border-color: #00ff88;
    animation: slideDown 0.5s ease-out;
}

.zone-slot.filled-incorrect {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(238, 90, 111, 0.3) 100%);
    border-color: #ff6b6b;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.zone-slot-number {
    font-size: 20px;
    color: #667eea;
}

.zone-slot.active .zone-slot-number {
    color: #ffd700;
}

.zone-slot-text {
    font-size: 12px;
    margin-top: 5px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.success {
    color: #00ff88;
}

.error {
    color: #ff6b6b;
}

.highlight {
    color: #ffd700;
}

.info {
    color: #66d9ef;
}

/* Revealing animation */
@keyframes reveal {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.revealing {
    animation: reveal 0.5s ease-out;
}

.statement-reveal-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: reveal 0.5s ease-out;
}

.statement-reveal-item.correct {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
}

.statement-reveal-item.incorrect {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 111, 0.2) 100%);
}
