/* Run statistics */
.hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.375rem;
  width: var(--board-size);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
}
.stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.2rem 0.1rem;
}
.stat .label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}
.stat .value {
  margin-top: 0.12rem;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(2) {
  background: transparent;
}
.stat:nth-child(2) .label {
  color: color-mix(in srgb, var(--food) 72%, var(--muted));
}
.stat:nth-child(2) .value {
  color: color-mix(in srgb, var(--food) 82%, var(--text));
}

/* Active effects */
.effects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: var(--board-size);
  min-height: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.effect {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.65rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-size: 0.8125rem;
  line-height: 1;
  animation: effect-chip-in 0.24s ease both;
}
.effect .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--head);
}
.effect.is-muted {
  opacity: 0.52;
}
.effect.effect-revive {
  border-color: color-mix(in srgb, var(--head) 38%, transparent);
  background: color-mix(in srgb, var(--head) 16%, var(--surface));
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--head) 8%, transparent);
}
.effect.effect-revive .icon {
  color: color-mix(in srgb, var(--head) 88%, white);
}
@keyframes effect-chip-in {
  from { opacity: 0; transform: translateY(0.2rem) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .effect { animation: none; }
}

/* Pause, shop and settings actions */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 2.75rem;
  gap: 0.25rem;
  width: 100%;
}
.actions .btn {
  min-width: 0;
  min-height: 2.65rem;
  padding: 0 0.45rem;
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  font-size: 0.9rem;
  font-weight: 620;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 3%, transparent);
}
.actions #pause:not(:disabled) {
  border-color: color-mix(in srgb, var(--head) 26%, transparent);
  background: color-mix(in srgb, var(--head) 10%, var(--surface));
}
.actions #open-shop {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
