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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f0f 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    min-width: 150px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD700;
}

.focus-meter {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.focus-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    background: #0a0a0a;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}

#canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.instructions p {
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

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

.btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 20px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: rgba(255, 215, 0, 0.5);
    color: #fff;
}

.lang-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-area {
        height: 400px;
    }
    
    .stats {
        gap: 10px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 10px 20px;
    }
    
    .instructions {
        padding: 20px;
    }
    
    .instructions p {
        font-size: 1rem;
    }
}

/* アニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary:active {
    animation: pulse 0.3s ease;
}