.guess-form {
  display: flex;
  gap: 10px;
  width: min(340px, 100%);
}

.guess-input {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.guess-input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.guess-history {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(430px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 34px;
}

.guess-history li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.guess-history li span {
  color: var(--muted);
  font-weight: 500;
}

.guess-history li.is-high span { color: #dc2626; }
.guess-history li.is-low span { color: #2563eb; }
.guess-history li.is-hit {
  border-color: var(--primary);
  background: rgba(62, 207, 142, 0.12);
}
