/* Main Styles */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    background: #000;
    margin: 0;
    overflow: hidden;
    font-family: 'Verdana', sans-serif;
    touch-action: none;
}

/* Screen Transition */
#screen-transition {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
#screen-transition.active { opacity: 1; }
#transition-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffd700;
    font-size: 32px;
    text-align: center;
}

/* Weather Overlay */
#weather-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 45;
}

/* Damage Flash */
#damage-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 30%, rgba(255,0,0,0.4));
    pointer-events: none;
    opacity: 0;
    z-index: 50;
    transition: opacity 0.1s;
}

/* Combo Display */
#combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c00;
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
#combo-display.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Buttons */
.q-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    background: linear-gradient(135deg, #a04000, #c05000);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    border-radius: 4px;
    box-shadow: 0 4px 0 #703000;
}
.q-btn:hover {
    background: linear-gradient(135deg, #c05000, #e06000);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #703000;
}
.q-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #703000;
}
.q-btn.correct {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    box-shadow: 0 4px 0 #1e8449 !important;
}
.q-btn.incorrect {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    box-shadow: 0 4px 0 #922b21 !important;
}

button.close-btn {
    display: block;
    margin: 15px auto 0;
    padding: 12px 30px;
    background: linear-gradient(135deg, #222, #444);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 0 #111;
    transition: all 0.2s;
}
button.close-btn:hover {
    background: linear-gradient(135deg, #444, #666);
    transform: translateY(-2px);
}

/* Difficulty Buttons */
.diff-btn {
    padding: 10px 20px;
    margin: 5px;
    background: linear-gradient(135deg, #333, #555);
    color: #fff;
    border: 2px solid #666;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.diff-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    border-color: #ffd700;
}
.diff-btn.selected {
    background: linear-gradient(135deg, #a04000, #c05000);
    border-color: #ffd700;
}

/* Mode Buttons */
.mode-btn {
    padding: 15px 25px;
    margin: 8px;
    background: linear-gradient(135deg, #1a5f7a, #2980b9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.mode-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2980b9, #3498db);
}
.mode-btn.editor-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}
.mode-btn.editor-btn:hover {
    background: linear-gradient(135deg, #9b59b6, #a569bd);
}

/* Feedback Modal */
#feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.9);
    padding: 30px 50px;
    border-radius: 10px;
    z-index: 250;
    transition: transform 0.3s ease;
}
#feedback-modal.show { transform: translate(-50%, -50%) scale(1); }
#feedback-modal.correct { border: 4px solid #27ae60; color: #27ae60; }
#feedback-modal.incorrect { border: 4px solid #c0392b; color: #c0392b; }
#feedback-text { font-size: 22px; font-weight: bold; }

/* Game Canvas */
#gameCanvas {
    display: block;
}

/* Keyboard Help */
#keyboard-help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fdf2e9 0%, #f5e6d3 100%);
    border: 8px solid #a04000;
    box-shadow: 0 0 0 4px #2c1b0e, 0 0 50px rgba(0,0,0,0.8);
    padding: 25px 35px;
    border-radius: 8px;
    z-index: 550;
    display: none;
    max-width: 400px;
    width: 90%;
}
#keyboard-help.show { display: block; }
#keyboard-help h3 {
    color: #a04000;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 18px;
}
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c1b0e;
    font-size: 13px;
}
.help-item kbd {
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    min-width: 50px;
    text-align: center;
}

/* Seasonal Effects */
.seasonal-decor {
    position: absolute;
    pointer-events: none;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Share buttons */
.share-btn {
    display: inline-block !important;
    margin: 10px !important;
}
#share-buttons {
    margin: 15px 0;
}
