.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--game-size);
  font-size: clamp(20px, calc(var(--game-size) * 0.08), 36px);
  margin-bottom: 20px;
  transition: opacity 0.2s ease-in-out;
}

#left-header {
  display: flex;
  align-items: center;
}

#next-letter {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: clamp(30px, calc(var(--game-size) * 0.12), 60px);
  height: clamp(30px, calc(var(--game-size) * 0.12), 60px);
  margin-left: 12px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(20px, calc(var(--game-size) * 0.09), 46px);
  background-color: #fdf6e3;
  color: #1a1a1a;
  border-radius: 6px;
  box-shadow:
    inset 3px 3px 5px rgba(255, 255, 255, 1),
    inset -3px -3px 5px rgba(0, 0, 0, 0.15),
    2px 3px 5px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
}

#next-letter:active {
  transform: scale(0.95);
}

#score {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: clamp(30px, calc(var(--game-size) * 0.12), 60px);
  height: clamp(30px, calc(var(--game-size) * 0.12), 60px);
  padding: 0 15px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(20px, calc(var(--game-size) * 0.08), 36px);
  background-color: #2b4c7e;
  color: #ffffff;
  border-radius: 6px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.3),
    inset -3px -3px 5px rgba(0, 0, 0, 0.3),
    2px 3px 5px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.overlay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 220px;
  margin: 15px auto 0;
  flex-shrink: 0;
}

#play-again-btn {
  animation: playAgainBling 2s infinite ease-in-out;
  border: 1px solid #a8c2ea;
}

#play-again-btn:active {
  animation: none;
}

.results-area {
  width: 100%;
  max-width: var(--game-size);
  margin-top: 40px;
  font-size: clamp(14px, calc(var(--game-size) * 0.04), 20px);
  line-height: 1.6;
}

.result-row {
  margin-bottom: 15px;
}

.result-label {
  margin-bottom: 8px;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-area {
  width: 100%;
  max-width: var(--game-size);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 12px;
}

.version-tag {
  width: 100%;
  max-width: var(--game-size);
  text-align: right;
  margin-top: 20px;
  font-size: 11px;
  color: var(--highlight);
  opacity: 0.7;
}
