@import url("../../../assets/interactive-workbench.css");

:root {
  --tool-accent: #2d8abf;
  --tool-accent-strong: #1d6f9d;
  --tool-accent-soft: #eaf5fb;
}

.guess-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.guess-feed {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 14px;
  border: 1px solid #d7e5f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #fcfeff 0%, #f5f9fc 100%);
}

.guess-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.7;
  color: #27475d;
  background: #edf5fb;
}

.guess-bubble.user {
  justify-self: end;
  background: #e6f7ee;
  color: #235440;
}

.guess-bubble.hint {
  background: #fff4e2;
  color: #875a16;
}

.guess-bubble.success {
  background: #e7f8ee;
  color: #236345;
}

.guess-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 16px 0;
}

.guess-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #c9d9e7;
  border-radius: 14px;
  background: #fff;
  color: #27475d;
  font-size: 15px;
}

.guess-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guess-history {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guess-history-item,
.guess-history-empty {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7e5f0;
  background: #f5f9fc;
  color: #4a657a;
  font-size: 13px;
}

.guess-history-item.good {
  background: #eef8ff;
  color: #226996;
}

.guess-history-item.win {
  background: #e7f8ee;
  color: #256345;
}

@media (max-width: 1080px) {
  .guess-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .guess-input-row {
    grid-template-columns: 1fr;
  }

  .guess-bubble {
    max-width: 100%;
  }
}
