body {
  font-family: 'Yusei Magic', 'Noto Sans JP', 'Noto Sans Mono', sans-serif;
  background: linear-gradient(135deg, #fff9c4, #b2ebf2);
  text-align: center;
  padding: 2em;
  max-width: 700px;
  margin: 0 auto;
}

#feedback-image {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: auto;
  z-index: 999;
  pointer-events: none;
}
.hidden {
  display: none !important;
}

/* たしざん・ひきざん・かけざん ゲームタイトル */
h1 {
  font-size: 3em;
  color: #ff4081;
  margin-bottom: 1em;
  text-shadow: 2px 2px #fff;
}
h1.hidden { display: none; }

/* 問題表示 */
.question {
  font-size: 2.5em;
  margin: 1em 0 0.5em;
  min-height: 1.5em;
  color: #e64a19;
  text-shadow: 1px 1px #fff;
}

/* 選択肢ボタン */
.choices {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.choices button {
  font-size: 1.6em;
  background-color: #ffd54f;
  border: 2px solid #ffca28;
  border-radius: 12px;
  cursor: pointer;
  min-width: 70px;
  width: 80px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.choices button:hover {
  background-color: #fff176;
  transform: scale(1.05);
}

/* スコアとタイマー */
.score, #timer {
  margin: 0.5em 0;
  font-size: 1.5em;
  color: #d84315;
  min-height: 1.5em;
  display: none;
}

/* ランキング */
.ranking {
  margin-top: 1em;
  background: #ffe0b2;
  padding: 1em;
  border-radius: 20px;
  position: relative;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
.ranking.hidden { display: none; }


/*

#rankingList li {
  text-align: left;
  font-size: 1.2em;
  margin: 0.3em 0;
  display: flex;
  align-items: center;
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

#rankingList li span.name {
  display: inline-block;
  width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rankingList li span.name:hover {
  overflow: visible;
  white-space: normal;
  background-color: #fff3e0;
  z-index: 10;
  position: relative;
}
*/

#rankingList li {
  text-align: left;
  font-size: 1.2em;
  margin: 0.3em 0;
  display: flex;
  align-items: center;
  font-family: 'Roboto Mono', 'Courier New', monospace;
}

/* 名前の表示 */
#rankingList li span.name {
  display: inline-block;
  width: 120px; /* 名前の幅を固定 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* スコアの表示 */
#rankingList li span.score {
  display: inline-block;
  width: 60px; /* スコア幅も固定 */
  text-align: right;
  margin-right: 10px;
}

/* アイコンの表示（??など） */
#rankingList li span.crown {
  display: inline-block;
  width: 2em;
  text-align: center;
}



/* 操作ボタン */
#control-buttons {
  margin-bottom: 1em;
}

#control-buttons button,
.menu a {
  font-size: 1.4em;
  background-color: #81d4fa;
  color: #004d40;
  padding: 0.6em 1.2em;
  margin: 0.3em;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, transform 0.2s;
}

#control-buttons button:hover,
.menu a:hover {
  background-color: #4fc3f7;
  transform: scale(1.05);
}

#start-button.hidden { display: none; }

/* 管理者ボタン */
#admin-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ddd;
  color: #555;
  border: none;
  padding: 0.3em 0.6em;
  border-radius: 8px;
  font-size: 0.8em;
  cursor: pointer;
}

#admin-controls button {
  margin-left: 0.5em;
  background-color: #ef5350;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4em 0.8em;
  cursor: pointer;
}

.visible { display: block !important; }

#progress {
  font-size: 1.5em;
  color: #d84315;
  margin: 0.5em 0;
}

/* スマホ調整 */
@media screen and (max-width: 600px) {
  .choices {
    flex-direction: column;
    align-items: center;
  }
  .choices button {
    font-size: 1.3em;
    width: 90px;
    height: 55px;
  }
}
