/* The play page. Crayon on paper: the card stays paper-coloured in light and dark on purpose,
   like the little game on the front page. Everything else comes from ../site.css. */
.play-head { padding: 22px 0 14px; max-width: 46rem; }
.play-head h1 { font-size: clamp(30px, 5vw, 46px); }
.play-head .lead { margin-top: 8px; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); }
.play-head h1 { text-decoration: underline wavy #e5533d 3px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.needs-js { margin-top: 12px; color: var(--ink-2); }

main .tabs { margin-top: 2px; }
main .tab { font-size: 16px; padding: 9px 18px; }

.paper { margin-top: 12px; background: #fffdf3; color: #2b2b2b; padding: 16px 20px 14px; min-height: 372px;
  font-family: "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Comic Neue", cursive;
  border: 2.5px solid #2b2b2b; border-radius: 255px 22px 225px 22px / 22px 225px 22px 255px; box-shadow: 5px 6px 0 rgba(0, 0, 0, .13);
  max-width: 760px; }
.paper :focus-visible { outline: 3px solid #0a66e0; outline-offset: 2px; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.paper h2 { font-family: inherit; font-size: 24px; letter-spacing: 0; color: #2b2b2b; }
.stars { color: #9a6a00; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.learn { margin-top: 4px; font-size: 16px; color: #4a4a4a; line-height: 1.35; }
.stage { margin-top: 8px; min-height: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.said { min-height: 1.5em; margin-top: 10px; font-size: 17px; text-align: center; font-weight: 700; }
.again { min-height: 46px; margin-top: 6px; display: flex; justify-content: center; gap: 10px; }

/* the hand-drawn buttons: wobbly edges, a different crayon each */
.pick, .next, .ghost, .sign, .tile, .slot, .fruit { font: inherit; color: #2b2b2b; }
.picks { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.pick { flex: 1 1 0; max-width: 130px; min-height: 52px; font-size: 26px; font-weight: 700; background: #ffe8a8; cursor: pointer; padding: 4px 0;
  border: 2.5px solid #2b2b2b; border-radius: 16px 7px 16px 7px / 7px 16px 7px 16px; transition: transform .12s; }
.pick:nth-child(2) { background: #c9ecff; border-radius: 7px 16px 7px 16px / 16px 7px 16px 7px; }
.pick:nth-child(3) { background: #d6f5c8; }
.pick:nth-child(4) { background: #ffd1c7; border-radius: 7px 16px 7px 16px / 16px 7px 16px 7px; }
.pick:hover:not(:disabled) { transform: rotate(-3deg) scale(1.05); }
.pick:disabled { cursor: default; opacity: .45; }
/* Light on-c (#fff) is 3.73 to 1 on this fill. #111111 is dark on-c, the named colour that clears 4.5. The fill stays the people colour. */
.next { min-height: 44px; padding: 6px 22px; font-size: 18px; font-weight: 700; background: #e5533d; color: #111111; cursor: pointer;
  border: 2.5px solid #2b2b2b; border-radius: 18px 8px 18px 8px / 8px 18px 8px 18px; }
.ghost { min-height: 44px; padding: 6px 18px; font-size: 16px; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
  border: 0; }
.next:hover { transform: rotate(-2deg); }

/* count the fruit */
.fruit-row { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; align-content: center; }
.fruit { position: relative; width: 54px; height: 58px; padding: 0; background: transparent; border: 0; cursor: pointer; border-radius: 12px; transition: transform .12s; }
.fruit svg { width: 100%; height: 100%; display: block; }
.fruit[aria-pressed="true"] { background: rgba(229, 83, 61, .12); }
.badge-n { position: absolute; right: -2px; top: -4px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 50%; background: #2b2b2b; color: #fffdf3;
  font-size: 14px; font-weight: 700; line-height: 22px; text-align: center; }
.badge-n:empty { display: none; }

/* times tables */
.table-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.table-pick select { font: inherit; font-size: 16px; color: #2b2b2b; background: #fff; border: 2px solid #2b2b2b; border-radius: 10px 5px 10px 5px; padding: 4px 8px; }
.pips { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.pip { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #2b2b2b; background: transparent; }
.pip.right { background: #e5533d; }
.pip.later { background: #ffcf5c; }
.pip.now { background: #c9ecff; transform: scale(1.2); }
.times-stage { flex-direction: row; justify-content: center; gap: 22px; min-height: 122px; flex-wrap: wrap; }
.sum-big { font-size: 40px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.dots-box { width: 124px; height: 100px; display: grid; place-items: center; }
.dots-box svg { max-width: 124px; max-height: 100px; width: 100%; height: 100%; }
.dot-0 { fill: #e5533d; stroke: #2b2b2b; stroke-width: .9; }
.dot-1 { fill: #ffcf5c; stroke: #2b2b2b; stroke-width: .9; }

/* order of operations */
.order-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 44px; font-weight: 700; }
.num, .mark { min-width: 28px; text-align: center; }
.mark { min-width: 14px; color: #6a6a6a; }
.sign { width: 58px; height: 58px; font-size: 32px; font-weight: 700; line-height: 1; background: #ffe8a8; cursor: pointer; border: 2.5px solid #2b2b2b;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; transition: transform .12s; }
.sign:hover { transform: rotate(-6deg) scale(1.08); }
.trail { list-style: none; margin: 0; padding: 0; font-size: 16px; color: #4a4a4a; text-align: center; min-height: 24px; }
.trail li { display: inline-block; margin: 0 8px; }

/* spelling */
.slots, .tiles { display: flex; gap: 8px; margin: 6px 0; justify-content: center; flex-wrap: wrap; }
.slots { margin-bottom: 14px; }
.slot { width: 52px; height: 58px; font-size: 34px; font-weight: 700; display: grid; place-items: center; padding: 0; background: #fff; border: 0; border-bottom: 4px solid #2b2b2b; border-radius: 6px 6px 2px 2px; }
.slot.full { cursor: pointer; background: #d6f5c8; border: 2.5px solid #2b2b2b; border-bottom-width: 4px; }
.tile { width: 54px; height: 58px; font-size: 34px; font-weight: 700; padding: 0; background: #c9ecff; cursor: pointer; border: 2.5px solid #2b2b2b;
  border-radius: 14px 6px 14px 6px / 6px 14px 6px 14px; transition: transform .12s; }
.tile:nth-child(even) { background: #ffe8a8; border-radius: 6px 14px 6px 14px / 14px 6px 14px 6px; }
.tile:nth-child(3n) { background: #ffd1c7; }
.tile:hover:not(:disabled) { transform: rotate(3deg) scale(1.06); }
.tile:disabled { opacity: .25; cursor: default; }
.slot.full:disabled { opacity: 1; }

.wiggle { animation: wiggle .35s; }
@keyframes wiggle { 20% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 80% { transform: translateX(-3px); } }

.grownups { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); max-width: 760px; }
.site-foot { margin-top: 28px; }

@media (max-width: 600px) {
  .play-head { padding: 14px 0 10px; }
  .paper { padding: 12px 12px 10px; min-height: 0; }
  .paper h2 { font-size: 21px; }
  .learn { font-size: 15px; }
  .stage { min-height: 104px; }
  .fruit { width: 46px; height: 50px; }
  .fruit-row { gap: 2px 4px; }
  .sum-big { font-size: 34px; }
  .times-stage { gap: 12px; min-height: 108px; }
  .dots-box { width: 100px; height: 82px; }
  .order-row { font-size: 38px; gap: 6px; }
  .sign { width: 52px; height: 52px; }
  .slot, .tile { width: 46px; height: 52px; font-size: 30px; }
  main .tab { padding: 9px 14px; }
}
