/* ==========================================
   ゲーム画面 (gameScreen) 専用スタイル
   ========================================== */

/* ステータスバー（問題番号など） */
.status-bar {
    text-align: right;
    margin-bottom: 10px;
}

/* 出題エリア全体のスタイル（中央寄せ） */
.question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 20px 0;
}

/* ヘッダーブロック（カテゴリー＆タイトル） */
.question-header {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

/* カテゴリー（主張抑えめ） */
.question-category {
    display: inline-block;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 2px;
}

/* タイトル（問題文の上の見出し） */
.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444444;
    margin: 0;
}

/* メインの問題文（単語・テキスト） */
.question-text {
    font-size: 2rem;
    font-weight: bold;
    color: #111111;
    margin: 10px 0;
}

/* 読み（ひらがな・ローマ字表示） */
.reading-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 入力済み文字表示 */
.typed-text {
    font-size: 1.2rem;
    min-height: 1.5em; /* 文字が入っていない時の高さ崩れ防止 */
}

/* ==========================================
   タイピング文字の色分けスタイル
   ========================================== */

/* 全体のコンテナ（文字のちらつきや崩れを防ぐ） */
#typedText {
    font-family: "Courier New", Consolas, monospace; /* 等幅フォントにすると打鍵時のズレが減ります */
    letter-spacing: 0.05em;                          /* 文字間隔を少し広げて視認性を向上 */

    /* 改行コード(\n)を有効にし、枠を超えたら自動折り返し */
    white-space: pre-wrap;
    word-break: break-all;
}

/* 1. 入力成功した部分（グレー表示） */
.typed-correct {
    color: #888888;          /* 中間のグレー */
    opacity: 0.7;             /* 少し透過させて「入力完了」感を演出 */
}

/* 2. まだ入力していない部分（黒表示） */
.typed-remaining {
    color: #111111;          /* 濃い黒 */
    font-weight: bold;       /* 打つべき文字を強調 */
}