/* ===================================
   ベース・共通スタイル (base.css)
  /* ゲームタイトル部分 */
.game-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    /* 認証状態表示とポーズボタンのためのスペース確保 */
    padding: 15px 200px 15px 150px; /* 右側により多くのスペースを確保 */
    min-height: 60px; /* 最小高さを設定 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ページ全体の基本設定 ===== */

/* HTMLタッチ操作設定 - モバイルデバイスでの操作を最適化 */
html {
    touch-action: manipulation; /* ピンチズームや他のジェスチャーを無効化 */
}

/* ページ全体のベーススタイル */
body {
    /* レイアウトリセット */
    margin: 0;
    padding: 10px;
    
    /* 背景グラデーション - 美しい青紫のグラデーション */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* フォント設定 */
    font-family: 'Arial', sans-serif;
    color: white;
    
    /* レイアウト設定 */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    
    /* スクロール制御 - 必要に応じてスクロールを有効にする */
    overflow-x: hidden;
    overflow-y: hidden;
}

/* ===== ゲームコンテナの基本設定 ===== */

/* メインゲームエリアの共通スタイル */
.game-container {
    /* 透明感のある背景 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* 背景ぼかし効果 */
    
    /* 形状設定 */
    border-radius: 20px;
    padding: 15px;
    max-width: 450px;
    width: 100%;
    margin: 20px 0;
    
    /* 影とボーダー */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* レイアウト設定 */
    display: flex;
    flex-direction: column;
    /* 最小限の高さを設定し、コンテンツに応じて拡張 */
    min-height: 300px;
}

/* ===== ゲームヘッダーの基本設定 ===== */

/* ゲームタイトル部分 */
.game-header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    /* 認証状態表示とポーズボタンのためのスペース確保 */
    padding: 15px 20px; /* 上下にパディングを追加 */
    min-height: 20px; /* 最小高さを設定 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* メインタイトルの装飾 */
.game-header h1 {
    margin: 0;
    font-size: 2em;
    
    /* 虹色グラデーションテキスト */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* アニメーション適用 */
    animation: gradientShift 3s ease infinite;
}

.pause-icon {
    color: white;
    font-size: 18px;
}

/* ===== アニメーション定義 ===== */

/* タイトルのグラデーション移動アニメーション */
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* ===== 共通ボタンスタイル ===== */

/* 基本ボタンスタイル - ゲーム全体で使用される標準ボタン */
.btn {
    /* 背景とボーダー */
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    
    /* テキストスタイル */
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    
    /* サイズとスペース */
    padding: 12px 24px;
    margin: 0 5px;
    min-width: 50px;
    
    /* インタラクション */
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* 影効果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ボタンホバー効果 */
.btn:hover {
    transform: translateY(-1px); /* 少し上に移動 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* 影を強く */
}

/* ===== 補助的な共通クラス ===== */

/* テキスト中央揃え */
.text-center {
    text-align: center;
}

/* フレックスレイアウト用 */
.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

/* 余白調整用 */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

/* ===== エンド ===== */
