/* Piko's Mystery Word (Language Arts). Big tap targets for ages 4-9. Piko is a placeholder helper until final art arrives. */
.wg-title { margin: 6px 0 8px; text-align: center; }
.wg-lead { font-size: 1.25rem; font-weight: 700; text-align: center; margin: 6px 0; }
.wg-piko { display: block; height: 120px; width: auto; margin: 0 auto; }
.wg-board { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 6px 0 10px; }
.wg-board .wg-piko { margin: 0; }
.wg-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wg-slot { width: 56px; height: 72px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 6px solid var(--blue-action); font-size: 2.6rem; font-weight: 900; line-height: 1.1; color: var(--blue-action); }
.wg-slot.on { background: #eaf3ff; border-radius: 10px 10px 0 0; }
.wg-solved { margin: 8px 0 12px; }
/* One row (Brandie, FIX 9): big number | keyboard | "Not in the word" pill, centered and vertically aligned.
   The label, yes-line and pill wrap inside their own column so the row always fits (laptop and 768px tablet). */
.wg-playrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin: 6px 0 10px; }
.wg-pill { padding: 6px 14px; border-radius: 999px; background: #fff3b0; color: #6b4300; font-weight: 800; font-size: 1.05rem; }
.wg-missed { background: #eef0f4; color: #43506b; max-width: 240px; white-space: normal; text-align: center; }
/* Missed letters get the approved count red (Deep Coral Red #B8362A, same as the big number; ~5.5:1 on the pill). */
.wg-missed-letters { color: #B8362A; font-weight: 900; }
/* The big round number on the left (Brandie, Oct 23 2026): label above, number at font size 72, yes-line under. */
.wg-points { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.wg-points-label { font-size: 1.05rem; font-weight: 800; color: #6b4300; max-width: 190px; }
.wg-points-row { position: relative; display: flex; align-items: center; min-height: 76px; }
.wg-big-number { font-size: 72px; font-weight: 900; line-height: 1; color: #B8362A; } /* approved red for counts (rule 9) */
.wg-yes { font-size: 1.15rem; font-weight: 800; color: var(--green-dark); min-height: 1.5em; max-width: 210px; }
.wg-float { position: absolute; left: calc(100% + 12px); font-size: 16px; font-weight: 900; pointer-events: none; } /* two sizes bigger than 12 (FIX 9) */
.wg-float.good { color: var(--green-dark); }
.wg-float.bad { color: #B8362A; }
.wg-keys { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.wg-keyrow { display: flex; justify-content: center; gap: 8px; }
.wg-key { width: 54px; height: 58px; border-radius: 12px; border: 3px solid var(--blue-action); background: #fff; color: var(--blue-action); font-size: 1.5rem; font-weight: 900; cursor: pointer; }
.wg-key:focus-visible { outline: 4px solid var(--blue-action); outline-offset: 2px; }
.wg-key.right { background: #e6f6ec; border-color: var(--green-dark); color: var(--green-dark); }
.wg-key.wrong { background: #eef0f4; border-color: #9aa3b5; color: #7b8499; text-decoration: line-through; }
/* Used letters fade out so they are clearly not pressable (FIX 9); they are also disabled with no pointer cursor. */
.wg-key.right, .wg-key.wrong { opacity: 0.45; }
.wg-key:disabled { cursor: default; }
.wg-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.wg-label { font-weight: 800; }
.wg-input { width: min(320px, 100%); min-width: 200px; min-height: 54px; padding: 6px 14px; font-size: 1.5rem; border: 3px solid var(--border); border-radius: 14px; }
.wg-input:focus-visible { outline: 4px solid var(--blue-action); outline-offset: 2px; }
.wg-note { min-height: 48px; margin: 10px auto 4px; padding: 8px 14px; max-width: 640px; border-radius: 14px; text-align: center; font-size: 1.15rem; font-weight: 800; }
.wg-note.good { color: var(--green-dark); background: #e6f6ec; }
.wg-note.try { color: #8a4a1c; background: #fff3b0; }
.wg-note.bad { color: #6b4300; background: #fff1dc; }
.wg-tally { list-style: none; padding: 0; margin: 8px auto; max-width: 520px; text-align: center; font-size: 1.2rem; font-weight: 700; }
.wg-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.wg-big { min-width: 190px; min-height: 58px; font-size: 1.3rem; }
.wg-table { border-collapse: collapse; margin: 10px auto; font-size: 1.1rem; }
.wg-table th, .wg-table td { padding: 6px 14px; border-bottom: 2px solid var(--border); text-align: center; }
.wg-steps { font-size: 1.2rem; line-height: 1.5; }
@media (max-width: 820px) { .wg-slot { width: 44px; height: 60px; font-size: 2.1rem; } .wg-key { width: 40px; height: 54px; font-size: 1.25rem; } .wg-keyrow { gap: 5px; }
  /* Tablet: keep the number and the keyboard in one row (the label wraps); the missed pill wraps under the keyboard. */
  .wg-yes { max-width: 190px; } }
@media (prefers-reduced-motion: no-preference) { .wg-slot.on { animation: wg-pop .25s ease-out; } @keyframes wg-pop { from { transform: scale(.7); } to { transform: scale(1); } }
  .wg-float { animation: wg-fly 1.1s ease-in forwards; } @keyframes wg-fly { from { transform: translateX(140px); opacity: 1; } 70% { opacity: 1; } to { transform: translateX(0); opacity: 0; } } }
