/* DECAY — game-specific styles. Shared tokens come from shared/kit.css. */

:root {
  --wg-accent: #5ed39e;     /* DECAY's signature green */
  --wg-accent-ink: #06281c;
}

/* the descent so far */
.decay-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  min-height: 40px;
}
.decay-word {
  display: flex;
  gap: 4px;
}
.decay-word .wg-tile {
  width: 34px; height: 34px;
  font-size: 1.05rem;
  background: var(--wg-surface-2);
  color: var(--wg-text-dim);
  cursor: default;
}
.decay-word--latest .wg-tile {
  background: var(--wg-accent);
  color: var(--wg-accent-ink);
}

/* current working area */
.decay-current { margin-bottom: 18px; }

.decay-goal {
  text-align: center;
  color: var(--wg-text-dim);
  font-size: .82rem;
  letter-spacing: .04em;
  margin-bottom: 12px;
  min-height: 1em;
}
.decay-goal b { color: var(--wg-text); }

.decay-answer {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 4px;
  border-radius: var(--wg-radius);
  border: 2px dashed var(--wg-border);
  margin-bottom: 16px;
}
.decay-answer.filled { border-color: var(--wg-accent); border-style: solid; }
.decay-answer .wg-tile { background: var(--wg-accent); color: var(--wg-accent-ink); }

.decay-tray {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
}

/* controls */
.decay-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.decay-controls .wg-btn { padding: 12px 6px; font-size: .92rem; }

/* strikes */
.decay-strikes {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: .15em;
  min-height: 1.4em;
  color: var(--wg-bad);
}

/* share card */
.decay-sharecard {
  font-family: var(--wg-mono);
  background: var(--wg-bg);
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius-sm);
  padding: 14px;
  margin: 14px 0;
  line-height: 1.25;
  white-space: pre;
  overflow-x: auto;
  font-size: 1rem;
  text-align: center;
}

/* win flourish */
.decay-track.is-won .decay-word--latest .wg-tile { animation: wg-pop .25s ease; }
