:root {
    --bg-color: #fffdf5;
    --main-blue: #a2d2ff;
    --main-pink: #ffafcc;
    --accent-yellow: #ffcc00;
    --text-brown: #5a4a42;
    --logic-green: #74c69d;
}

body {
    background: var(--bg-color);
    color: var(--text-brown);
    font-family: 'Mochiy Pop One', cursive;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ヘッダー・ステータス */
.status-header {
    width: 95%;
    max-width: 600px;
    padding: 15px 0;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.xp-container {
    flex-grow: 1;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #ddd;
}

#xp-bar {
    width: 0%;
    height: 100%;
    background: var(--main-pink);
    transition: width 0.3s;
}

/* 思考のあしあと（ロジックマップ） */
#logic-path-area {
    background: white;
    padding: 10px;
    border-radius: 20px;
    border: 3px solid var(--main-blue);
    min-height: 60px;
}

.path-title {
    font-size: 0.7rem;
    margin: 0 0 5px 5px;
    color: var(--main-blue);
}

#logic-path {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.step-node {
    background: var(--main-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* メインステージ */
#game-board {
    width: 90%;
    max-width: 500px;
    background: white;
    border: 6px solid var(--accent-yellow);
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 10px 0 var(--accent-yellow);
    text-align: center;
    margin-top: 10px;
}

/* 追加: タイトルのスタイル */
.game-title {
    font-size: 1.3rem;
    color: #ff6f61;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ffcc00;
}

.emoji-stage {
    font-size: 80px;
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.button-grid {
    display: grid;
    gap: 15px;
}

button {
    background: #fafafa;
    border: 3px solid #eee;
    padding: 18px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 0 #eee;
}

button:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--accent-yellow);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--accent-yellow);
}

/* アニメーション */
@keyframes pop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.celebrate {
    animation: jump 0.5s infinite;
}

@keyframes jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.site-footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.7rem;
    color: #bbb;
}