/* Snack Graph. Book 7's theme colours: forest green and pink, with the teal of Eli's team shirt. */
:root {
  --main: #2D6A4F; --main-dark: #1F4E39; --accent: #F9B4D2; --accent-dark: #D9789F; --soft: #FDE7F1;
  --bg: #EEF5F1; --bg-deep: #DCEBE3; --line: #CFE0D7; --hint: #1E7C86;
}
.who-eli { left: 2%; bottom: 3%; }
.who-uncle { right: 1.5%; bottom: 3%; }
.say-grown { max-width: 31%; }

.choice .piece-ico { width: 44px; height: 44px; }
.choice.is-wrong { animation: shake .35s; border-color: var(--fail); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.small-counter { font-size: 1.1rem; margin-top: 10px; }

/* Uncle's tally card */
.tally-card { border: 3px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; background: #FFFDF6; }
.tally-row { display: grid; grid-template-columns: 30px 92px 1fr 34px; align-items: center; gap: 6px; min-height: 34px; font-weight: 800; font-size: .9rem; }
.tally-row svg.marks { height: 26px; width: 100%; }
.tally-row .n { text-align: right; color: var(--main); font-size: 1.05rem; }

/* the graph pad: tap a column to color the next square */
.graph-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; }
.gcol { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 3px solid var(--line); border-radius: 12px; background: var(--white); padding: 6px 2px; cursor: pointer; min-height: 44px; }
.gcol:hover:not(:disabled) { border-color: var(--main); }
.gcol:disabled { cursor: default; }
.gcol svg { width: 100%; height: 150px; }
.gcol .c-name { font-size: .78rem; font-weight: 800; line-height: 1.1; text-align: center; }
.gcol.is-full { border-color: var(--pass); }

/* graphs in the chart, side by side */
.chart.graphs { display: flex; flex-wrap: wrap; gap: 14px; }
.mini-graph { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .8rem; font-weight: 800; }
.mini-graph svg { width: 150px; height: 120px; }
.mini-graph.wide svg { width: 220px; }
.chart-note, .chart-empty { width: 100%; }
.cnum { font-weight: 800; }
.cell-icon svg { width: 34px; height: 34px; }

/* Phones: the data log has six columns, so they share the width evenly and the headers wrap. */
@media (max-width: 560px) {
  .sheet { table-layout: fixed; }
  .sheet th { font-size: .7rem; padding: 6px 2px; overflow-wrap: anywhere; line-height: 1.15; }
  .sheet th:first-child { padding-left: 4px; }
  .sheet td { padding: 2px; }
}
