/* Space Golf CSS - 宇宙ゴルフゲームのスタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background-color: #000;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #0a0e27 0%, #020515 100%);
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* UI Overlay */
#game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#game-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    pointer-events: auto;
}

.ui-panel {
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.2);
}

.ui-label {
    color: #7da9ff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.ui-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Power Meter */
#power-meter {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    pointer-events: auto;
}

.power-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#power-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 50%, #ff0000 100%);
    transition: width 0.1s ease;
    box-shadow: 0 0 10px currentColor;
}

#power-value {
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Start Screen */
#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 20, 40, 0.9);
    padding: 50px;
    border-radius: 20px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    box-shadow: 0 0 50px rgba(100, 200, 255, 0.3);
}

#start-screen h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.8);
    background: linear-gradient(45deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 20px;
    color: #7da9ff;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.instructions {
    margin: 30px 0;
}

.instructions h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 20px;
}

.instructions p {
    color: #aaaaaa;
    margin: 10px 0;
    font-size: 16px;
}

.start-button {
    background: linear-gradient(45deg, #0080ff, #00ffff);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 128, 255, 0.5);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.7);
}

/* Game Message */
#game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.3);
    pointer-events: auto;
    z-index: 1000;
}

#message-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

#message-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: #aaaaaa;
}

#message-button {
    background: linear-gradient(45deg, #0080ff, #00ffff);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#message-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 128, 255, 0.5);
}

/* Visual Effects */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Launch Zone Indicator - 削除 */

/* Responsive Design */
@media (max-width: 768px) {
    #game-header {
        gap: 15px;
    }
    
    .ui-panel {
        padding: 8px 15px;
    }
    
    .ui-label {
        font-size: 10px;
    }
    
    .ui-value {
        font-size: 18px;
    }
    
    #start-screen {
        padding: 30px;
    }
    
    #start-screen h1 {
        font-size: 32px;
    }
}