

/* ---- The hundred grid ----
   Ten by ten, so "out of a hundred" is something you can see and count.
   It shrinks to fit rather than overflowing at narrow widths. */
.hundred {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  width: min(100%, 15rem);
  margin: 0 auto;
}
.cell {
  aspect-ratio: 1;
  border: 1px solid var(--color-borde);
  background: var(--color-superficie);
}
/* Coloured squares also carry a darker outline, so the fill is not the
   only cue (WCAG 1.4.1). */
.is-filled {
  border-color: var(--color-texto);
  background: var(--mod-secuencia, var(--color-texto));
}

/* Inside an option button the grid has to be small enough for three of
   them to sit side by side. */
.option-btn .hundred { width: min(100%, 7.5rem); }

/* ---- Coins ---- */
.coin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
}
.coin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--color-texto);
  border-radius: 50%;
  background: var(--color-superficie);
  font-size: 0.85rem;
  font-weight: 700;
}
/* The part the percentage takes is filled AND ringed, never colour alone. */
.is-part {
  background: var(--mod-secuencia, var(--color-texto));
  outline: 2px solid var(--color-texto);
  outline-offset: 1px;
}

/* ---- Servings of a recipe ---- */
.servings {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 120px;
  justify-content: center;
}
.serving {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.5rem;
  border: 2px solid var(--color-borde);
  border-radius: 10px;
  background: var(--color-superficie);
}
.ing {
  font-size: 1.5rem;
  line-height: 1.1;
}
/* The two ingredients are told apart by their own picture, so the tone is
   only a help and never the only difference. */
.tone-1 { filter: none; }
.tone-2 { filter: none; }
.ing-sep {
  padding: 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---- A plan ---- */
.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 120px;
  justify-content: center;
}
.plan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.plan-cell {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid var(--color-texto);
  background: var(--mod-razonamiento, var(--color-superficie));
}
.plan-key {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* ---- What there is, and what one costs ----
   The coins on top are the money; the little pile below is the price of
   one. Nothing is grouped in advance, because the grouping is the work. */
.limit-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-height: 120px;
  justify-content: center;
  width: 100%;
}
.limit-stage .coin-row { min-height: 0; }
.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border: 2px dashed var(--color-texto);
  border-radius: 10px;
  background: var(--color-superficie);
}
.tag-picto {
  margin-right: 0.3rem;
  font-size: 1.5rem;
  line-height: 1.1;
}
/* The price coins are dashed as well as tinted, so the two piles are not
   told apart by colour alone (WCAG 1.4.1). */
.coin.is-price {
  border-style: dashed;
  background: var(--mod-razonamiento, var(--color-superficie));
}

/* ---- The same job, shared out ----
   One row per person, one block per hour. The blocks never change in
   number: that is what makes more rows mean shorter rows. */
.work-stage {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 120px;
  justify-content: center;
}
.work-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.4rem;
  border: 2px solid var(--color-borde);
  border-radius: 10px;
  background: var(--color-superficie);
}
.worker {
  margin-right: 0.3rem;
  font-size: 1.35rem;
  line-height: 1.1;
}
.hour-block {
  font-size: 1.2rem;
  line-height: 1.1;
}

.answer-name { display: block; }

.emoji-large { font-size: 96px; }
.transfer { margin: 8px auto 24px; font-size: 1.1rem; color: var(--color-texto-suave, #555); max-width: 480px; }