.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#stats-board {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #38B48B;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.word-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    background-color: #f0f8f5;
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #38B48B;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    letter-spacing: 2px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.word-input {
    width: 100%;
    font-size: 1.8rem;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    /* スマホブラウザ特有の丸み消し */
}

.word-input:focus {
    border-color: #38B48B;
    box-shadow: 0 0 8px rgba(56, 180, 139, 0.5);
}

.word-input.error {
    border-color: #ff4757;
    background-color: #ffeaea;
}

.word-input:disabled {
    background-color: #eee;
    color: #999;
}

button {
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 1.3rem;
    background-color: #38B48B;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 0 #2a8f6d;
    font-weight: bold;
}

button:hover {
    background-color: #2a8f6d;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b664d;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}

.controls-hint {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.back-link {
    display: inline-block;
    color: #666;
    margin-top: 20px;
}