 .typing-flexbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 8px;
}

/* キーボード表示エリア用ラッパー */
.typing-area-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* typing.css: タイピングエリア・入力欄・行表示 */
/* #game-reply-body のスタイルは game.css で定義済み（重複削除） */
#input-area {
    padding: 15px;
    border: 1px solid rgba(204, 204, 204, 0.3);
    border-radius: 8px;
    font-size: 1.2em;
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(255, 255, 255, 0.2);
    line-height: 1.6;
    resize: none;
    margin-top: 0;
    flex-shrink: 0;
    min-height: 48px;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    padding-right: 0.7em;
    letter-spacing: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}
#game-reply-body {
    font-family: 'Courier New', Courier, monospace;
}
#input-area.incorrect-line {
    border-color: #e74c3c;
    box-shadow: 0 0 5px #e74c3c;
}
#input-area:focus {
    outline: none;
    border-color: #3498db;
}
.game-line.current {
    color: #222;
    font-weight: bold;
    background: rgba(234, 246, 255, 0.7);
    border-radius: 2px;
    opacity: 1;
    transition: background 0.3s, color 0.3s;
}
.game-line.confirmed {
    color: #444;
    font-weight: normal;
    background: none;
    opacity: 1;
}
.game-line:not(.confirmed):not(.current) {
    color: #aaa;
    font-weight: normal;
    opacity: 0.7;
    background: none;
}
.game-line.empty-line {
    min-height: 1.8em;
    text-align: left;
}
.game-line .empty-mark {
    color: #888;
    font-size: 1.2em;
    font-family: monospace;
    padding-left: 0.5em;
    padding-right: 0.5em;
    vertical-align: middle;
    user-select: none;
}
