/* backline — the suggestion page. */

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.kind {
  --tape: var(--tape-plain);
  border: 1px solid var(--scuff);
  border-left: 6px solid var(--tape);
  border-radius: var(--radius);
  background: var(--floor-2);
  padding: 8px 12px;
  min-height: 40px;
  font-size: 0.95rem;
}
.kind[data-kind="word"]         { --tape: var(--tape-word); }
.kind[data-kind="name"]         { --tape: var(--tape-name); }
.kind[data-kind="relationship"] { --tape: var(--tape-relationship); }
.kind[data-kind="location"]     { --tape: var(--tape-location); }
.kind[data-kind="object"]       { --tape: var(--tape-object); }
.kind[data-kind="emotion"]      { --tape: var(--tape-emotion); }
.kind[aria-selected="true"] {
  background: var(--tape);
  border-color: var(--tape);
  color: var(--ink);
  font-weight: 600;
}

.where {
  display: inline-flex;
  border: 1px solid var(--scuff);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.where-opt {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.where-opt[aria-pressed="true"] {
  background: var(--floor-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--tape-location);
}

/* The card is the whole middle of the screen: a big target for a thumb,
   and the tape sits on it like a mark on the floor. */
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46vh;
  margin: 6px 0 0;
  padding: 24px 8px;
  border: 0;
  background: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.card .tape {
  font-size: clamp(2rem, 11vw, 3.4rem);
  line-height: 1.15;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
.card .tape.long { font-size: clamp(1.5rem, 7.5vw, 2.4rem); }
/* A new strip is slapped down: a quick settle, nothing more. */
.card .tape.laid { animation: lay 160ms ease-out; }
@keyframes lay {
  from { transform: rotate(var(--tilt)) scale(1.06); opacity: 0.4; }
  to   { transform: rotate(var(--tilt)) scale(1); opacity: 1; }
}

.hint {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.recent h2 { font-weight: 400; margin: 0 0 8px; }
.recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-bottom: 1.5rem;
}
.recent-list .tape {
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  padding: 0.3em 0.9em;
}
