/* class3-math-GM-ch13-t9.css : Tier 9 "Age and Age Fun" only (cake cards, the guess-and-check board, open prompts).
   Shared look (pictures, chips, buttons, number boxes) is in class3-math-GM-ch13-common.css; the button groups reuse the t3 reflection styles. */

.tg-overlay .tg-ck { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---------------- Hetal and her brother: guess and check ---------------- */
.tg-overlay .tg-guess { width: 100%; max-width: 560px; margin: 4px auto 8px; box-sizing: border-box; font-family: "Nunito", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tg-overlay .tg-gline { text-align: center; font-weight: 800; font-size: 15px; line-height: 1.35; color: #2A2858; padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, #FFFAEB, #FFF0BE); border: 2px solid #F2C94C; }
.tg-overlay .tg-gstep { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 8px; }
.tg-overlay .tg-gstep button { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #3F8FE0; background: linear-gradient(180deg, #7CC6FF, #3F8FE0); color: #fff; font-size: 32px; font-weight: 900; line-height: 1; cursor: pointer; touch-action: manipulation; box-shadow: 0 4px 0 #2F86D6; }
.tg-overlay .tg-gstep button:active { transform: translateY(2px); box-shadow: 0 2px 0 #2F86D6; }
.tg-overlay .tg-gval { min-width: 120px; text-align: center; padding: 6px 10px; border-radius: 16px; background: #fff; border: 2.5px solid #CFC6F5; box-shadow: 0 3px 0 #CFC6F5; display: flex; flex-direction: column; }
.tg-overlay .tg-gval small { font-size: 12px; font-weight: 800; color: #5A4FA0; }
.tg-overlay .tg-gval b { font-size: 36px; line-height: 1.05; color: #2A2858; }
.tg-overlay .tg-gboard { border-radius: 14px; overflow: hidden; border: 2px solid #CFC6F5; background: #fff; }
.tg-overlay .tg-grow { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr; gap: 4px; padding: 6px 8px; text-align: center; font-weight: 800; font-size: 13px; color: #2A2858; border-top: 1px solid #E6E0FA; }
.tg-overlay .tg-grow.tg-ghead { background: linear-gradient(180deg, #E0D6FF, #C9B8FF); border-top: 0; }
.tg-overlay .tg-grow.bad { background: #FFF1EE; color: #8A2616; }
.tg-overlay .tg-grow.ok { background: #E4FBEF; color: #145A36; }

/* ---------------- Talk to your mother ---------------- */
.tg-overlay .tg-talk { width: 100%; max-width: 620px; margin: 4px auto 8px; box-sizing: border-box; }
.tg-overlay .tg-talkbox { width: 100%; box-sizing: border-box; margin: 10px 0 2px; padding: 10px 12px; border-radius: 14px; border: 2px solid #CFC6F5; font: inherit; font-size: 15px; font-weight: 700; color: #2A2858; background: #fff; resize: vertical; }
.tg-overlay .tg-talkbox:focus { outline: none; border-color: #3F8FE0; box-shadow: 0 0 0 3px rgba(63, 143, 224, .25); }
.tg-overlay .tg-talk .tg-fav-whys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
