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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn.start {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn.start:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn.reset {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

.btn.reset:hover {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.game-time {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.rune-timers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.rune-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.rune-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.rune-card.water {
    border-left: 4px solid #2196F3;
}

.rune-card.xp {
    border-left: 4px solid #FF9800;
}

.rune-card.lotus {
    border-left: 4px solid #9C27B0;
}

.rune-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rune-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.rune-card.water h2 {
    color: #2196F3;
}

.rune-card.xp h2 {
    color: #FF9800;
}

.rune-card.lotus h2 {
    color: #9C27B0;
}

.spawn-interval {
    font-size: 0.9em;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.next-spawn {
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.9;
}

.timer {
    font-size: 2.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timer.warning {
    color: #FF9800;
    animation: pulse 1s infinite;
}

.timer.critical {
    color: #f44336;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ffd700);
    border-radius: 4px;
    transition: width 0.1s ease;
}

.spawn-list {
    font-size: 0.9em;
    opacity: 0.8;
}

.spawn-times {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease;
}

.notification.water {
    border-left-color: #2196F3;
}

.notification.xp {
    border-left-color: #FF9800;
}

.notification.lotus {
    border-left-color: #9C27B0;
}

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

.settings {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.settings label {
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
    font-size: 1.1em;
}

.settings input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .rune-timers {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .timer {
        font-size: 2em;
    }
}
