/* Level picker, block builder, stickers. Same Gugu tokens as style.css. */

.levels-title { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.chip {
  min-width: 56px; min-height: 56px; padding: 0 14px; border: 4px solid var(--ink); border-radius: 18px;
  background: #fff; color: var(--ink); font: 800 26px var(--display); box-shadow: 0 4px 0 var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--sun); }
.chip.bigkid { border-style: dashed; }
.chip-tag { font-weight: 700; font-size: 15px; padding: 0 4px 0 10px; color: var(--slate-2); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.big strong { margin-left: 10px; font-size: 26px; }

/* block builder */
.build { margin-bottom: 8px; }
.piles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.fig { margin: 0; }
.piles .fig { flex: 1 1 0; min-width: 0; max-width: 340px; }
.matbox .fig { max-width: 460px; margin-bottom: 4px; }
.fig .blocks { display: block; width: 100%; height: auto; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 4px; }
.matbox .blocks { border-width: 4px; border-radius: 20px; }
.fig figcaption { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--slate-2); }
.guide { min-height: 28px; margin: 8px 0 6px; font-size: 20px; font-weight: 700; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; min-height: 64px; margin-bottom: 8px; }
.ctl {
  min-width: 60px; min-height: 60px; padding: 8px 16px; border: 3px solid var(--ink); border-radius: 20px;
  background: #fff; color: var(--ink); font: 700 18px var(--body); box-shadow: 0 4px 0 var(--ink); cursor: pointer;
}
.ctl-push { background: var(--sun); }
.ctl-trade { background: var(--sky); }
.ctl-take { background: var(--coral); }
.ctl-break { background: var(--mint); }
.ctl:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.choice:disabled:not(.miss) { opacity: 0.45; box-shadow: none; cursor: default; }

/* stickers */
.new-sticker { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 10px 16px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; width: fit-content; }
.new-sticker[hidden] { display: none; }
.new-sticker-art .sticker { width: 72px; height: 72px; display: block; }
.new-sticker strong { font-family: var(--display); font-size: 26px; }
.sticker-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; font-weight: 700; }
.slot .sticker { width: 76px; height: 76px; }
.slot.locked { border-style: dashed; color: var(--slate-2); }
.slot.locked .sticker { filter: grayscale(1); opacity: 0.25; }

@media (max-width: 560px) {
  .guide { font-size: 18px; margin: 6px 0 4px; }
  .ctl { font-size: 16px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .chip:active, .ctl:active { transform: none; }
}

/* Sideways tablets: keep the block pictures a little smaller so they fit above the buttons. */
@media (min-width: 900px) and (max-height: 900px) {
  .piles .fig { max-width: 240px; }
  .matbox .fig { max-width: 340px; }
  .guide { margin: 4px 0; }
  .controls { margin-bottom: 4px; }
}
