/* Bulíky — answer options, bluff form and the daily summary. Tokens live in styles.css. */

/* ---------- Options ---------- */

.options {
  display: grid;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.option {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.7rem 0.9rem 0.7rem 0.75rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  box-shadow: var(--drop);
}

button.option {
  cursor: pointer;
  transition:
    transform 0.12s var(--ease-out),
    box-shadow 0.12s var(--ease-out),
    background-color 0.12s;
}

button.option:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--outline);
  background: #fff;
}

button.option:active:not([disabled]),
.option--pending {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--outline);
  background: var(--gold);
}

button.option[disabled] {
  cursor: progress;
}

.option__badge {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding-top: 0.12rem;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
}

.option__body {
  display: block;
  min-width: 0;
}

.option__text {
  display: block;
}

.option--truth {
  background: var(--green-pale);
  animation: cheer 0.5s var(--ease-out) both;
}

.option--truth .option__badge {
  background: var(--green);
  color: #fff;
}

.option--bluff {
  background: var(--card-dim);
}

.option--bluff .option__text {
  color: var(--ink-soft);
}

.option--bluff .option__badge {
  background: var(--card);
}

.option--fooled {
  background: var(--red-pale);
  animation: shake 0.45s ease-in-out both;
}

.option--fooled .option__badge {
  background: var(--red);
  color: #fff;
}

.option--fooled .option__text {
  color: var(--outline);
}

.option__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.86rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem 0.02rem;
  border: 2px solid var(--outline);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  animation: stamp 0.34s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}

.chip svg {
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.2rem 0 0 -0.2rem;
}

.chip--truth {
  background: var(--green);
  color: #fff;
}

.chip--bull {
  background: var(--red);
  color: #fff;
}

.chip--pick {
  background: var(--outline);
  color: #fff;
}

.option__author {
  color: var(--ink-soft);
  font-weight: 700;
}

.panel {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--drop);
}

.panel p {
  margin: 0;
}

.panel p + p {
  margin-top: 0.4rem;
}

.panel__label {
  font-weight: 900;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Bluff form ---------- */

.field {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
}

.field__label {
  color: var(--cream);
  font-weight: 900;
}

.field__hint {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
}

.input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--outline);
  font: inherit;
  font-weight: 700;
  box-shadow: inset 0 3px 0 #e9e2cf;
}

textarea.input {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.35;
}

.input::placeholder {
  color: #8a8fa6;
  opacity: 1;
}

.form-error {
  margin: 0.9rem 0 0;
  padding: 0.55rem 0.8rem;
  border: var(--border);
  border-radius: 8px;
  background: var(--red-pale);
  color: #8f2412;
  font-weight: 800;
}

.form-error:empty {
  display: none;
}

/* ---------- Summary ---------- */

.rank {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.score {
  flex: none;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.7rem 0;
  border: var(--border);
  border-radius: 8px;
  background: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
  box-shadow: 0 3px 0 var(--outline);
  transform: rotate(2deg);
}

.board .dots--big {
  margin-top: 0.75rem;
}

.section-title {
  margin: 1.9rem 0.15rem 0;
  color: var(--card);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
}

.herd {
  display: grid;
  gap: 0.7rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.herd li {
  padding: 0.7rem 0.95rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--drop);
}

.herd__entry {
  margin: 0;
  font-weight: 700;
}

.herd__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.herd__status {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.herd__status strong {
  color: #b5321c;
  font-weight: 900;
}

.herd__bulls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-top: 0.35rem;
}

.herd__bulls svg {
  width: 1.7rem;
  height: 1.7rem;
}

.countdown {
  margin: 1.8rem 0 0;
  color: var(--cream);
  font-weight: 700;
  text-align: center;
}

.countdown time {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.toast {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.toast:empty {
  display: none;
}

.onGrass--note {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.share-preview {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: 100%;
}

.share-preview:empty {
  display: none;
}

.share-preview__img {
  width: min(100%, 22rem);
  height: auto;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--drop);
}
