/* リセット・基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ゲーム全体のコンテナ */
.container {
  background-color: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 500px;
}

/* タイトル */
.title {
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}

/* 表示される単語 */
.word-display {
  font-size: 48px;
  font-weight: bold;
  color: #667eea;
  margin: 30px 0;
  font-family: "Arial", monospace;
  letter-spacing: 2px;
}

/* 入力欄 */
.input-field {
  width: 100%;
  padding: 15px;
  font-size: 24px;
  border: 3px solid #667eea;
  border-radius: 10px;
  text-align: center;
  font-family: "Arial", monospace;
  outline: none;
  transition: 0.3s;
}

.input-field:focus {
  border-color: #764ba2;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* スコア表示 */
.score {
  font-size: 24px;
  color: #333;
  margin: 30px 0;
  font-weight: bold;
}

#scoreDisplay {
  color: #667eea;
  font-size: 28px;
}

/* リセットボタン */
.btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 20px;
}

.reset-btn {
  background-color: #95a5a6;
  color: white;
}

.reset-btn:hover {
  background-color: #7f8c8d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.reset-btn:active {
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .container {
    min-width: 90%;
    padding: 30px;
  }

  .word-display {
    font-size: 36px;
  }

  .input-field {
    font-size: 20px;
  }
}

/* 入力済み文字のスタイル */
.entered {
  background-color: #3498db;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
}

/* 未入力文字のスタイル */
.remained {
  color: #333;
}
