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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #333;
    overflow: hidden;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 画面共通 */
#start-screen, #game-screen, #result-screen {
    text-align: center;
    width: 100%;
    max-width: 700px;
    padding: 20px;
    display: none; /* デフォルトは非表示 */
}


/* GameBaseの画面管理システムに対応 */
#start-screen.active, #game-screen.active, #result-screen.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* スタート画面 */
#start-screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#start-screen p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
}

.instructions {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.instructions p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    padding: 8px 0;
    font-size: 16px;
}

.primary-btn {
    font-size: 24px;
    padding: 15px 40px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background: #EE5A6F;
    transform: scale(1.05);
}

/* ゲーム画面 */
#status-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.color-display {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    gap: 20px;
}

.color-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
}

.color-box h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.color-sample {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    border: 3px solid #333;
}

.sliders {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
}

.slider-group {
    margin-bottom: 25px;
}

.slider-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
}

#red-slider {
    accent-color: #FF6B6B;
}

#blue-slider {
    accent-color: #4ECDC4;
}

#yellow-slider {
    accent-color: #FFE66D;
}

#result-message {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-top: 20px;
    min-height: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 結果画面 */
#result-screen h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.result-stats {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.result-stats p {
    font-size: 28px;
    margin-bottom: 15px;
}

.highlight {
    color: #FF6B6B;
    font-weight: bold;
    font-size: 36px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #start-screen h1 {
        font-size: 32px;
    }

    #status-bar {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .color-display {
        flex-direction: column;
    }

    .color-sample {
        height: 100px;
    }

    .sliders {
        padding: 20px;
    }

    .slider-group label {
        font-size: 16px;
    }

    .result-stats p {
        font-size: 20px;
    }

    .highlight {
        font-size: 28px;
    }
}
