/* Minimalist geometric style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
}

/* Removed hero section styles for itch.io version */

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

/* 画布包装器 - 用于相对定位暂停按钮 */
.canvas-wrapper {
    position: relative;
    display: inline-block;
}

#gameCanvas {
    border: 2px solid #ffffff;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    display: block;
}

.ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.score, .lives, .high-score {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.high-score {
    color: #feca57;
}

/* Pause Button - 相对于游戏画布定位 */
.pause-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 相对于画布定位，而不是整个容器 */
    transform: translateX(0) translateY(0);
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pause-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.start-screen, .game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    z-index: 100;
    max-width: 480px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.start-screen h1, .game-over h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.start-screen p, .game-over p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.4;
}

.controls-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    line-height: 1.3;
}

.controls-info p {
    margin: 3px 0;
}

.bullet-info {
    margin-top: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bullet-info h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #feca57;
    text-align: center;
}

.bullet-types {
    display: grid;
    gap: 5px;
}

.bullet-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
}

.bullet-icon {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

.bullet-icon.red {
    color: #ff4757;
}

.bullet-icon.yellow {
    color: #ffdd59;
}

.bullet-icon.purple {
    color: #8e44ad;
}

.bullet-icon.gray {
    color: #57606f;
}

/* Debug control panel */
.debug-controls {
    position: absolute;
    top: 120px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: Arial, sans-serif;
}

.debug-controls h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #feca57;
}

.debug-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.debug-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.debug-btn.active {
    background: #feca57;
    color: #000;
    border-color: #feca57;
}

.debug-btn.active:hover {
    background: #ff9ff3;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-section h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #a4b0be;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bullet-desc {
    flex: 1;
}

/* Power-up info styles */
.powerup-info {
    margin-top: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.powerup-info h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #feca57;
    text-align: center;
}

.powerup-types {
    display: grid;
    gap: 5px;
}

.powerup-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
}

.powerup-icon {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
    min-width: 24px;
}

.powerup-desc {
    flex: 1;
}

button {
    font-size: 1.1em;
    padding: 10px 20px;
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Pause screen buttons */
.pause-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pause-buttons button {
    margin-top: 0;
    min-width: 120px;
}

/* Removed banner styles for itch.io version */

/* Removed SEO content styles for itch.io version */

/* Large screen optimizations */
@media (min-width: 1400px) {
    .ui-overlay {
        font-size: 20px;
    }

    .start-screen, .game-over {
        padding: 30px;
        max-width: 520px;
    }

    .start-screen h1, .game-over h2 {
        font-size: 2.5em;
    }

    .start-screen p, .game-over p {
        font-size: 1.2em;
    }

    button {
        font-size: 1.2em;
        padding: 12px 25px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ui-overlay {
        font-size: 16px;
    }

    .start-screen, .game-over {
        padding: 20px;
        margin: 15px;
        max-width: 90vw;
    }

    .start-screen h1, .game-over h2 {
        font-size: 1.8em;
    }

    .start-screen p, .game-over p {
        font-size: 0.95em;
    }

    .pause-btn {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 1em;
    }

    /* Removed hero and SEO responsive styles for itch.io version */
}
