/* Activities and collection (js/activities.js, js/collection.js, GAME_SPEC §4.11).
   Real elements with ids for the UI layer tool (web-ui-style.md §6); no
   pseudo-elements and no !important on visual properties. */

/* ---------- Clear popup: shards and the bundle slot ---------- */
.activity-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.activity-result-pet {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.activity-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.activity-result-title,
.activity-result-note {
  margin: 0;
  text-align: left;
  color: #fff;
}

.activity-result-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.activity-result-note {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
}

.activity-result-bar-fill {
  background: linear-gradient(#ffd84a, #f39a00);
}

/* "Home" next to "Keep going" after a finished bundle. */
.clear-home-btn {
  margin-top: 8px;
}

/* ---------- Collection tab: shards meter and "collect this one" ---------- */
.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.collection-card-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8dcc0;
}

.collection-card-meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(#ffd84a, #f39a00);
}

.collection-card-select {
  min-height: 36px;
  width: 100%;
  padding: 4px 6px;
  border: 2px solid #ffc421;
  border-radius: 12px;
  background: linear-gradient(#1686ff, #0053c5);
  color: #fff;
  font-size: clamp(11px, 1.8vh, 14px);
  font-weight: 800;
  cursor: pointer;
}

.collection-card-select[aria-pressed="true"] {
  background: linear-gradient(#7eea18, #20b900);
  cursor: default;
}

.collection-card-select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* The lock is a small corner mark, not a second picture (the shared
   `.collection-card img` sizing is for the animal art). */
.collection-card .collection-card-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  aspect-ratio: auto;
}

/* Not collected yet: the art is shown faded until it is chosen or activated. */
.collection-card[data-state="missing"] .collection-card-art {
  filter: grayscale(1);
  opacity: 0.55;
}

.collection-card-status {
  color: #633517;
  font-size: clamp(11px, 1.8vh, 14px);
  font-weight: 700;
}
