body { background: #0f3460; color: white; font-family: 'Hiragino Kaku Gothic ProN', sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; }
.game-container { width: 95%; max-width: 500px; background: #16213e; padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.hidden { display: none; }

/* ステータス関連 */
.player-info-card { background: #1a1a2e; padding: 15px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #4e4e6a; }
.exp-bar-outer { height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.exp-fill { height: 100%; background: #00d4ff; width: 0%; transition: width 0.8s ease; }
.exp-text { font-size: 0.8em; color: #aaa; }

/* バトルヘッダー */
.battle-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: bold; }
.wave-info { color: #ffd700; }
.exit-btn { background: #444; padding: 5px 10px; font-size: 0.8em; }

/* バトルフィールド */
.hp-bar-outer { width: 100%; height: 12px; background: #333; border-radius: 6px; overflow: hidden; margin-bottom: 5px; }
.hp-fill { height: 100%; width: 100%; transition: width 0.4s ease; }
.enemy-hp { background: #ff4d4d; }
.player-hp { background: #4caf50; }
.m-name { font-weight: bold; color: #e94560; margin-bottom: 5px; }
.img-frame { height: 150px; display: flex; justify-content: center; align-items: center; margin: 10px 0; }
#enemy-image { max-height: 100%; transition: 0.3s; }

/* クイズエリア */
.msg-box { background: #0f3460; padding: 15px; border-radius: 10px; margin-bottom: 15px; min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
.hint { color: #888; font-size: 0.9em; margin-top: 5px; }
.choices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button { background: #e94560; color: white; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; }
button:active { transform: scale(0.95); }

/* 演出 */
#feedback { height: 30px; margin-top: 10px; font-weight: bold; font-size: 1.2em; }
.hit-text { color: #ffd700; }
.miss-text { color: #ff4d4d; }
.shake { animation: shake 0.1s 5; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } 75% { transform: translateX(-5px); } }
.die { opacity: 0; transform: translateY(20px); }
.lv-up-text { color: #ffd700; font-weight: bold; font-size: 1.5em; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.history-section { margin-top: 20px; text-align: left; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; }
.history-section ul { list-style: none; padding: 0; font-size: 0.9em; }
.history-section li { padding: 4px 0; border-bottom: 1px solid #333; }