/* Wortwärme – game specific styles (shared styles: ../shared/base.css) */

#guessInput {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.1rem;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  outline: none;
  box-shadow: var(--shadow);
}
#guessInput:focus { border-color: var(--accent); }

.guesses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

#lastGuess { margin-bottom: 14px; }
#lastGuess:empty { margin: 0; }
#lastGuess .row { outline: 2px solid var(--text); }

.row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--track);
  overflow: hidden;
  font-weight: 500;
}
.row .bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 10px;
  opacity: var(--bar-opacity);
}
.row span { position: relative; }
.row .word small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.row.green .bar { background: var(--good); }
.row.yellow .bar { background: var(--mid); }
.row.red .bar { background: var(--far); }

.result {
  margin: 4px 0 18px;
  padding: 20px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.result h2 { font: 700 1.5rem "Outfit", system-ui, sans-serif; margin: 0 0 6px; }
.result .secret { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.result .counts { font-size: 1.1rem; margin: 8px 0 14px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result .nearest { margin-top: 16px; text-align: left; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.9rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.green { background: var(--good); }
.dot.yellow { background: var(--mid); }
.dot.red { background: var(--far); }

.past-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.past-list a {
  display: block;
  padding: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--track);
  border-radius: 10px;
  font-size: 0.9rem;
}
.past-list a small { display: block; color: var(--muted); }
.past-list a.current { outline: 2px solid var(--accent); }
