/* THANK YOU FATHER: Games section (assets/games.js). Added Oct 31, 2026.
   The section is a black band; each game sits on a white, rounded card with a friendlier rounded font
   (Nunito, self-hosted in assets/fonts, SIL Open Font License: assets/fonts/Nunito-OFL.txt).
   Colors: site red #b3121f plus friendly accents (sunny yellow #ffc233 for stars, green #1d7a35 for "correct", blue #1f5fa8). */
@font-face{font-family:"TYF Games";src:url("fonts/Nunito-Games.woff2") format("woff2");font-weight:600 900;font-style:normal;font-display:swap}
.games-section{--g-font:"TYF Games","Nunito","Trebuchet MS",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--g-red:#b3121f;--g-sun:#ffc233;--g-green:#1d7a35;--g-blue:#1f5fa8}
.games-section .section-intro{font-family:var(--g-font);font-weight:700;font-size:1.1rem;color:#f2f2f2}
.games{margin:30px auto 0;max-width:1080px}
.games + .games{margin-top:46px;padding-top:34px;border-top:1px solid #444}
.games-title{text-align:center;font-size:1.9rem;margin:0 0 .3em;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
.games-new{display:inline-block;background:#b3121f;color:#fff;font-family:var(--label);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;line-height:1;padding:5px 9px;border:1px solid #fff;vertical-align:middle;border-radius:999px}
.games-intro{text-align:center;color:#c9c9c9;max-width:620px;margin:0 auto 22px;font-family:var(--g-font);font-weight:600}
.games-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
@media (min-width:960px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* each game: a white card, light colors inside */
.game{--black:#000;--white:#fff;--ink:#111;--muted:#4a4a4a;--rule:#000;--red:#b3121f;--red-dark:#8f0e19;
  background:#fff;color:#111;border-radius:20px;border:0;box-shadow:0 0 0 3px #b3121f inset,0 6px 0 #ffc233;padding:20px 16px 22px;min-width:0;font-family:var(--g-font);font-weight:600}
.game-title{font-family:var(--g-font);font-weight:900;text-transform:none;font-size:1.5rem;line-height:1.1;margin:0 0 12px;color:#b3121f;letter-spacing:0}
.game-body{min-height:120px}
.games-save{text-align:center;color:#c9c9c9;font-size:.92rem;margin:18px auto 0;max-width:700px;font-family:var(--g-font);font-weight:600}
.games-reset{font:inherit;font-family:var(--g-font);font-weight:800;font-size:.95rem;background:none;border:2px solid #fff;color:#fff;min-height:48px;padding:8px 20px;margin:10px auto 0;display:block;cursor:pointer;border-radius:999px}
.games-reset:hover{background:#fff;color:#000}
.games-reset.armed{background:#b3121f;border-color:#b3121f;color:#fff}
.games-source{text-align:center;color:#4a4a4a;font-size:.85rem;margin:12px auto 0}

.g-step{font-family:var(--g-font);font-weight:800;font-size:1.08rem;margin:0 0 10px;color:#111}
.g-step-inline{margin:0}
.g-help{color:#4a4a4a;font-size:.95rem;margin:8px 0}
.g-help-inline{color:#4a4a4a;font-size:.88rem;font-weight:600}
.g-line{margin:6px 0}
.g-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 10px}
.g-chip{position:relative;font:inherit;font-family:var(--g-font);font-weight:800;font-size:1.2rem;min-height:50px;min-width:44px;padding:6px 8px;border:3px solid #d6d6d6;background:#fff;color:#111;border-radius:14px;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #d6d6d6}
.g-chip:hover{border-color:#b3121f}
.g-chip:active{transform:translateY(2px);box-shadow:0 1px 0 #d6d6d6}
.g-chip[aria-pressed="true"]{background:#b3121f;border-color:#b3121f;color:#fff;box-shadow:0 3px 0 #7d0c15}
.g-chip-m{border-color:#ffc233}
.g-sticker{position:absolute;top:-9px;right:-7px;width:24px;height:24px;line-height:22px;font-size:.85rem;border-radius:50%;background:#ffc233;color:#7a4a00;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.35)}
.g-check{font-size:.8em;margin-left:4px}
.g-quick{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 4px}
.g-quick-label{font-size:.95rem;color:#4a4a4a}
.g-link{font:inherit;font-weight:800;font-size:1rem;background:none;border:0;color:#b3121f;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:6px 8px;cursor:pointer}
.g-best{font-size:1rem;margin:6px 0 12px;color:#111}
.g-check-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:44px;font-weight:800;cursor:pointer}
.g-check-row input{width:26px;height:26px;accent-color:#b3121f;margin:0}
/* big rounded buttons */
.g-btn{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-family:var(--g-font);font-weight:900;font-size:1.15rem;min-height:56px;padding:10px 22px;border-radius:999px;border:3px solid #b3121f;cursor:pointer;touch-action:manipulation}
.g-btn-go{background:#b3121f;color:#fff;box-shadow:0 4px 0 #7d0c15}
.g-btn-go:hover{background:#8f0e19}
.g-btn-soft{background:#fff;color:#b3121f;box-shadow:0 4px 0 #e5b7bb}
.g-btn-soft:hover{background:#fff3f4}
.g-btn:active{transform:translateY(3px);box-shadow:none}
.g-btn:disabled{opacity:.5;cursor:not-allowed}
.g-start{width:100%;margin-top:8px}

.g-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;margin:0 0 8px}
.g-sticky{position:sticky;top:var(--tyf-hdr,0px);z-index:3;background:#fff;padding:8px 4px;margin:-4px -4px 8px;border-bottom:2px solid #f0f0f0}
.g-clock{font-family:var(--g-font);font-weight:900;font-size:2.1rem;line-height:1;min-width:2.2em;color:#fff;background:#1f5fa8;border-radius:14px;padding:6px 12px;text-align:center}
.g-clock-up{font-size:1.4rem;min-width:4.2em;font-variant-numeric:tabular-nums}
.g-clock-low{background:#b3121f}
.g-score,.g-streak{font-family:var(--g-font);font-weight:800;font-size:1.05rem}
.g-streak{color:#7a4a00;background:#fff4d1;border-radius:999px;padding:4px 10px}
.g-q{font-family:var(--g-font);font-weight:900;font-size:3.2rem;line-height:1.05;text-align:center;margin:6px 0;color:#111;letter-spacing:.01em}
.g-answer-row{display:flex;justify-content:center}
.g-qrow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:4px 0}
.g-qrow .g-q{margin:0}
.g-answer{font:inherit;font-family:var(--g-font);font-weight:900;font-size:2rem;text-align:center;width:4.2em;max-width:100%;min-height:58px;border:3px solid #1f5fa8;background:#fff;color:#111;border-radius:16px;padding:4px 8px}
.g-fb{min-height:1.6em;text-align:center;font-weight:900;margin:6px 0;font-size:1.2rem;font-family:var(--g-font)}
.g-ok{color:#1d7a35}
.g-bad{color:#b3121f}
.g-pop{animation:gpop .35s ease-out}
@keyframes gpop{0%{transform:scale(.85)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.g-pop{animation:none}}
.g-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:340px;margin:8px auto 0}
.g-key{font:inherit;font-family:var(--g-font);font-weight:900;font-size:1.5rem;min-height:56px;border:3px solid #d6d6d6;background:#fff;color:#111;border-radius:16px;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;box-shadow:0 3px 0 #d6d6d6}
.g-key:active{background:#eef4fb;transform:translateY(2px);box-shadow:none}
.g-key-ok{background:#1d7a35;border-color:#1d7a35;color:#fff;font-size:1.05rem;box-shadow:0 3px 0 #0f4a1f}
.g-key-del{font-size:1.25rem}
.g-hint{text-align:center}
.g-hint-line{margin:0 0 6px;font-weight:800;color:#1f5fa8}
.g-done-title{font-family:var(--g-font);font-weight:900;font-size:1.9rem;line-height:1.05;margin:0 0 6px;color:#111}
.g-stars{font-size:2.4rem;line-height:1;margin:2px 0 6px;color:#ffc233;letter-spacing:.08em;text-shadow:0 2px 0 #c98f00}
.g-sticker-big{font-size:3.4rem}
.g-big{font-size:1.2rem;margin:0}
.g-tt-score{font-family:var(--g-font);font-weight:900;font-size:3.4rem;line-height:1;color:#b3121f}
.g-missed{list-style:none;padding:0;margin:6px 0 10px;display:flex;flex-wrap:wrap;gap:6px}
.g-missed li{border:2px solid #b3121f;color:#111;padding:4px 12px;font-weight:800;border-radius:999px}
.g-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.g-actions .g-btn{flex:1 1 auto}
.g-strip-wrap{margin:12px 0 4px}
.g-strip-label{margin:0 0 6px;font-size:.95rem;color:#4a4a4a}
.g-strip{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}
.g-strip li{position:relative;text-align:center;font-weight:800;font-size:.9rem;padding:6px 0;border-radius:8px;background:#f0f0f0;color:#111}
.g-strip li.on{background:#ffc233;color:#4a2e00}
.g-strip-star{display:block;font-size:.7rem;line-height:1}

/* Bible Books */
.g-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}
.g-tab{font:inherit;font-weight:900;font-size:.98rem;min-height:46px;padding:6px 14px;border-radius:999px;border:3px solid #1f5fa8;background:#fff;color:#1f5fa8;cursor:pointer}
.g-tab[aria-pressed="true"]{background:#1f5fa8;color:#fff}
.g-levels{list-style:none;padding:0;margin:0 0 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
@media (min-width:520px){.g-levels{grid-template-columns:repeat(2,minmax(0,1fr))}}
.g-level{position:relative;width:100%;text-align:left;font:inherit;min-height:58px;padding:8px 36px 8px 12px;border:3px solid #d6d6d6;background:#fff;color:#111;border-radius:14px;cursor:pointer}
.g-level:hover{border-color:#b3121f}
.g-level-name{display:flex;align-items:center;gap:8px;font-weight:900;font-size:1.02rem;margin:0}
.g-level-note{font-size:.88rem;color:#4a4a4a;font-weight:600}
.g-level .g-level-note{display:block}
.g-level .g-check{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:1.3rem;color:#1d7a35;margin:0}
.g-level-done{border-color:#1d7a35;background:#f1faf3}
.g-swatch{display:inline-block;flex:0 0 auto;width:18px;height:18px;border-radius:6px;border:1px solid rgba(0,0,0,.35);vertical-align:-3px}
.g-tests{list-style:none;padding:0;margin:0 0 10px;display:grid;gap:10px}
.g-test{border:3px solid #d6d6d6;border-radius:16px;padding:10px 12px}
.g-test-best{margin:2px 0 8px}
.g-test-btns{display:flex;flex-wrap:wrap;gap:10px}
.g-test-btns .g-btn{flex:1 1 120px;min-height:50px;font-size:1.05rem}
.g-legend{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.82rem;color:#333}
.g-legend li{display:flex;align-items:center;gap:6px}
.g-slots{list-style:none;padding:0;margin:4px 0 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.g-slots-many{grid-template-columns:repeat(auto-fill,minmax(136px,1fr))}
.g-slot{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;width:100%;text-align:left;font:inherit;min-height:48px;padding:4px 8px;border:3px dashed #bbb;background:#fafafa;color:#111;border-radius:12px}
.g-slot:disabled{cursor:default;opacity:1}
.g-slot.g-colored{border-style:solid}
.g-slot-full{border-style:solid;border-color:#111;cursor:pointer;background:#fff}
.g-slot-n{font-weight:800;font-size:.8rem;color:#4a4a4a;min-width:1.6em}
.g-slot.g-colored .g-slot-n{color:inherit;opacity:.85}
.g-slot-v{font-weight:900;font-size:.98rem}
.g-slot-ok{outline:3px solid #1d7a35;outline-offset:-1px}
.g-slot-ok .g-slot-n::after{content:" \2713"}
.g-slot-bad{outline:3px solid #b3121f;outline-offset:-1px}
.g-slot-fix{flex-basis:100%;font-size:.82rem;color:#b3121f;font-weight:900;background:#fff;border-radius:6px;padding:0 4px}
.g-bank{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.g-word{font-weight:800;font-size:1.02rem;min-height:48px;padding:6px 14px}

/* Finish the Verse + mode switches */
.g-modes{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 10px;border:3px solid #b3121f;border-radius:999px;overflow:hidden}
.g-mode{font:inherit;font-weight:900;font-size:.98rem;min-height:48px;border:0;background:#fff;color:#b3121f;cursor:pointer;padding:4px 8px}
.g-mode[aria-pressed="true"]{background:#b3121f;color:#fff}
.g-vstats{font-size:.9rem}
.g-vfig{margin:8px 0 10px;padding:12px 14px;border-left:6px solid #ffc233;background:#fffaf0;border-radius:0 14px 14px 0}
.g-verse{font-family:var(--g-font);font-weight:700;font-size:1.22rem;line-height:1.7;margin:0;color:#111}
.g-ref{margin-top:6px;font-size:.82rem;color:#4a4a4a}
.g-sc{font-variant:small-caps}
.g-blanks{display:inline}
.g-blank{font:inherit;font-weight:900;font-size:1.05rem;display:inline-block;min-width:3.2em;min-height:34px;margin:2px 0;padding:0 6px;border:0;border-bottom:3px solid #111;background:transparent;color:#1f5fa8;vertical-align:baseline;line-height:1.6}
.g-blank:disabled{cursor:default;opacity:1}
.g-blank-full{border-bottom-color:#1f5fa8;cursor:pointer}
.g-blank-bad{color:#b3121f;border-bottom-color:#b3121f;border-bottom-style:dotted}
.g-blank-line{min-width:8em;cursor:default}
.g-filled{background:none;color:#1d7a35;font-weight:900;border-bottom:3px solid #1d7a35}
.g-type-row{display:flex;gap:8px;align-items:stretch}
.g-typein{flex:1 1 auto;min-width:0;font:inherit;font-size:1.1rem;min-height:54px;padding:8px 12px;border:3px solid #1f5fa8;background:#fff;color:#111;border-radius:14px}
.g-check-btn{min-height:54px;padding:8px 20px}
@media (max-width:420px){.g-q{font-size:2.5rem}.g-answer{font-size:1.7rem;min-height:54px}.g-key{font-size:1.35rem}.g-chips{gap:6px}.game{padding:16px 12px 18px;border-radius:16px}.g-strip li{font-size:.75rem}.g-key{min-height:48px}.g-pad{gap:6px}.g-chip{font-size:1.1rem}}
/* Countdowns now sit on a white band right after the black Games band (cards come back to white automatically) */
/* Train a Number: per-number results after a multi-number round (Nov 1, 2026) */
.g-train-per{flex-direction:column;align-items:flex-start}
.g-train-per li{border-radius:8px;font-weight:600;padding:6px 12px}
.g-train-per li.g-ok{border-color:#1d7a35}

/* ===== Math games: 0 to 12 and the Hint button (Nov 2, 2026) ===== */
.math-games .g-chips{grid-template-columns:repeat(7,minmax(0,1fr))}
.math-games .g-chip{min-width:0;padding:6px 2px}
.g-strip{grid-template-columns:repeat(13,minmax(0,1fr))}
.g-hint-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:6px 0 2px}
.g-hint-open.g-btn{flex:0 0 auto;min-height:44px;padding:6px 18px;font-size:1rem}
.g-hint-open.on{background:#fff4cc;border-color:#c79100;color:#5a4100;box-shadow:0 4px 0 #e8cf7a}
.g-hint-ic{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#ffc233;color:#4a2e00;font-weight:900;font-size:.95rem;margin-right:4px}
.g-hint-rule{font-size:.85rem;font-weight:700;color:#4a4a4a}
.g-hint-card{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:8px 0 10px;padding:12px 12px 14px;border:3px solid #ffc233;border-radius:16px;background:#fffdf3;color:#111;text-align:left}
.g-hint-card[hidden]{display:none}
.g-hint-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}
.g-hint-title{margin:0;font-family:var(--g-font);font-weight:900;font-size:1.15rem}
.g-hint-close{font-weight:800;white-space:nowrap;min-height:40px}
.g-hint-say{margin:0 0 6px;font-family:var(--g-font);font-weight:800;font-size:1.05rem;line-height:1.35}
.g-hint-sub{margin:4px 0;font-size:1rem;line-height:1.4}
.g-hlist{list-style:none;padding:0;margin:6px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.g-hlist li{display:flex;flex-direction:column;align-items:center;padding:4px 0 6px;border-radius:10px;background:#fff;border:2px solid #e6dcb0}
.g-hx{font-size:.75rem;font-weight:800;color:#6b5a1e}
.g-hv{font-family:var(--g-font);font-weight:900;font-size:1.45rem;line-height:1.1}
.g-hdigits{display:flex;align-items:center;justify-content:center;gap:4px;margin:8px 0}
.g-hd{font-family:var(--g-font);font-weight:900;font-size:3rem;line-height:1}
.g-hbox-h{display:inline-block;width:52px;height:58px;border:4px solid #111;border-radius:8px;background:#fff;vertical-align:middle}
.g-h9{display:flex;justify-content:center;gap:10px;margin:8px 0}
.g-h9 > div{display:flex;flex-direction:column;align-items:center;gap:4px}
.g-h9l{font-weight:800;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em}
.g-hfig{margin:4px auto 6px;max-width:440px}
.g-hsvg{display:block;width:100%;height:auto;font-family:var(--g-font)}
.g-hsteps{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:5px}
.g-hsteps li{display:flex;gap:8px;align-items:flex-start;font-size:.95rem;line-height:1.35}
.g-hsn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--sc,#111);color:#fff;font-weight:900;font-size:.8rem;margin-top:1px}
.g-hstep-end{font-weight:800}
.g-hint-badge{display:inline-block;margin:8px 0 4px;padding:4px 12px;border-radius:999px;background:#ffc233;color:#4a2e00;font-weight:900;font-size:.95rem}
.g-hint-badge-0{background:#e6f4ea;color:#1a5d2e}
@media (max-width:420px){
  .g-hlist{grid-template-columns:repeat(4,minmax(0,1fr))}
  .g-hv{font-size:1.3rem}
  .g-hint-title{font-size:1.05rem}
  .g-hsteps li{font-size:.9rem}
  .math-games .g-chip{font-size:1rem}
}
.g-hint-say-sm{font-size:.95rem;margin-bottom:2px}
.g-hsteps-box{margin:4px 0 0}
.g-hsteps-box > summary{cursor:pointer;font-weight:800;color:#1f5fbf;min-height:36px;display:flex;align-items:center}
.g-hint-carry{font-weight:700}
/* while a hint is open, the number pad is a little shorter so the hint has more room above the player bar */
.g-hint-on .g-key{min-height:44px}
.g-hint-on .g-pad{gap:6px}

/* ===== Timed Mastery Tests (Nov 2, 2026) ===== */
@media (min-width:960px){.games-grid .game-wide{grid-column:1 / -1}}
.game-title .games-new{margin-left:8px;vertical-align:middle}
.g-timed-name{font-weight:800;margin:10px 0 6px;color:#111}
.g-timed-rule strong{color:#b3121f}
.g-timed-warn{margin:8px 0;padding:10px 12px;border-radius:12px;background:#fff4d6;border:2px solid #c98a00;color:#4a3400;font-weight:700}
.g-run-ok{background:#e6f4ea;color:#14532d;border-radius:999px;padding:4px 10px}
.g-run-no{background:#fff4d6;color:#4a3400;border-radius:999px;padding:4px 10px}
.g-timed-time{font-variant-numeric:tabular-nums;font-size:2.4rem;font-weight:900;color:#1f5fa8}
.g-timed-nosave{color:#4a3400;background:#fff4d6;border-radius:12px;padding:10px 12px;font-weight:700}
.g-times-wrap{margin-top:16px;overflow-x:auto}
.g-times{width:100%;max-width:520px;border-collapse:collapse;font-size:.98rem;color:#111;font-variant-numeric:tabular-nums}
.g-times caption{text-align:left;font-weight:900;padding:0 0 6px}
.g-times th,.g-times td{border:1px solid #d2d2d2;padding:6px 10px;text-align:center}
.g-times thead th{background:#f2f2f2;font-size:.86rem}
.g-times tbody th{font-weight:900;width:4.5em}
.g-times td{color:#777}
.g-times td.g-has{color:#14532d;font-weight:800}
.g-times tr.g-tt-cur th,.g-times tr.g-tt-cur td{background:#fdeef0}
/* ===== Nov 4, 2026: Perfect Squares games, reviews, My Mastery, order labels ===== */
.games-path{text-align:center;color:#fff;font-family:var(--g-font);font-weight:800;font-size:1rem;max-width:720px;margin:-10px auto 20px;line-height:1.5}
.squares-games{margin-top:44px}
.game-order{display:inline-block;margin:0 0 8px;background:#111;color:#ffc233;font-family:var(--g-font);font-weight:900;font-size:.85rem;line-height:1.2;padding:5px 12px;border-radius:999px}
.g-sq-q{font-variant-numeric:tabular-nums}
.g-tile-q{font-family:var(--g-font);font-weight:800;font-size:1.25rem;text-align:center;margin:4px 0 10px;color:#111}
.g-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 10px}
.g-tile{font:inherit;font-family:var(--g-font);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:110px;min-width:44px;padding:8px 4px;
  background:#fff;color:#111;border:4px solid #111;border-radius:18px;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 0 #111}
.g-tile:hover:not(:disabled){border-color:#b3121f;box-shadow:0 4px 0 #b3121f}
.g-tile:focus-visible{outline:4px solid #1f5fa8;outline-offset:3px}
.g-tile:disabled{cursor:default}
.g-tile-n{font-weight:900;font-size:3rem;line-height:1;font-variant-numeric:tabular-nums}
.g-tile-sub{display:block;min-height:1.2em;margin-top:6px;font-weight:800;font-size:.9rem;color:#4a4a4a}
.g-tile-ok{background:#1d7a35;border-color:#1d7a35;color:#fff;box-shadow:0 4px 0 #0f4a1f}
.g-tile-ok .g-tile-sub,.g-tile-bad .g-tile-sub{color:#fff}
.g-tile-bad{background:#b3121f;border-color:#b3121f;color:#fff;box-shadow:0 4px 0 #7d0c15}
.g-tile-out{background:#f0f0f0;border-style:dashed;border-color:#8a8a8a;color:#4a4a4a;box-shadow:none}
.g-tile-out .g-tile-n{text-decoration:line-through;text-decoration-thickness:3px}
.g-tile-note{min-height:1.3em;text-align:center}
.g-chip-wide{min-width:64px;padding:6px 12px}
.g-sq-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-fill-ex{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 12px}
.g-fill-ex span{font-weight:900;font-size:1.3rem;background:#f4f4f4;border:2px solid #d6d6d6;border-radius:12px;padding:6px 12px}
.g-rev-count{font-family:var(--g-font);font-weight:900;font-size:1.3rem;margin:0 0 8px;color:#111}
.g-rev-n{display:inline-block;min-width:1.6em;text-align:center;background:#b3121f;color:#fff;border-radius:999px;padding:2px 10px;margin-right:4px}
.g-rev-0 .g-rev-n{background:#1d7a35}
.g-rev-list{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:6px;max-height:280px;overflow:auto}
.g-rev-list li{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#f6f6f6;border-radius:10px;padding:8px 12px;font-weight:800}
.g-rev-dots,.g-rev-streak{color:#b3121f;letter-spacing:.15em;font-weight:900}
.g-rev-streak{text-align:center;margin:0 0 6px;font-size:1.05rem;letter-spacing:.02em}
.g-dash-grid{list-style:none;padding:0;margin:8px 0 14px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.g-dash-grid li{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;border-radius:12px;background:#f0f0f0;color:#111;border:3px solid #d6d6d6}
.g-dash-grid li.on{background:#ffc233;border-color:#b38000;color:#3d2600}
.g-dash-n{font-weight:900;font-size:1.4rem;line-height:1}
.g-dash-star{font-size:1rem;line-height:1.1}
@media (max-width:420px){.g-tile-n{font-size:2.4rem}.g-tile{min-height:96px;border-width:3px}.g-tiles{gap:7px}.g-dash-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.g-fill-ex span{font-size:1.1rem}}
@media (max-width:420px){.math-games .g-chips{grid-template-columns:repeat(6,minmax(0,1fr))}} /* Nov 4, 2026: 44px+ number chips on phones */
/* ===== Nov 5, 2026: Learn it, Addition, Subtraction, Mixed Practice ===== */
.game-desc{margin:-4px 0 12px;font-size:1rem;line-height:1.4;color:#333;font-weight:700}
.math-games .g-chips.g-range-chips,.g-range-chips{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.math-games .g-chip.g-chip-range{padding:8px 10px;font-size:1.05rem;line-height:1.15}
.g-answer-wide{width:5.4em}
.g-key-neg{grid-column:1 / -1;font-size:1.2rem}
.g-learn-intro p{margin:0 0 8px;font-size:1.12rem;line-height:1.45;font-weight:700}
.g-chart-wrap{margin:10px 0 12px;overflow-x:auto}
.g-chart{border-collapse:collapse;margin:0 auto;font-family:var(--g-font);font-weight:900;font-size:1.15rem;font-variant-numeric:tabular-nums}
.g-chart caption{font-weight:900;margin-bottom:6px;color:#b3121f}
.g-chart td{padding:3px 7px;text-align:center;border-bottom:1px solid #e3e3e3}
.g-chart .g-chart-v{text-align:right;min-width:2.6em}
.g-chart tr.g-chart-hi td{background:#ffc233}
@media (min-width:960px){.g-chart tbody{display:grid;grid-template-columns:repeat(3,auto);column-gap:22px}.g-chart tr{display:table-row}}
.g-learn-chart{margin-top:10px}
.g-chart-det{margin:12px 0 0}
.g-chart-det summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:900;color:#1f5fa8}
.g-lock{text-align:center;padding:16px 8px;background:#f4f4f4;border:3px dashed #8a8a8a;border-radius:16px}
.g-lock-ic{font-size:2.4rem;margin:0}
.g-lock-msg{font-family:var(--g-font);font-weight:900;font-size:1.5rem;margin:4px 0 6px;color:#111}
.g-as-dash td,.g-as-dash th{font-size:.92rem}
.g-neg-col{background:#eef3fb}
@media (max-width:420px){.g-chart{font-size:1rem}.g-chart td{padding:3px 4px}.g-as-dash td,.g-as-dash th{font-size:.8rem;padding:4px 3px}}
.g-mprog{margin-top:16px;border-top:3px solid #f0f0f0;padding-top:10px}
.games-section .games + .games{margin-top:44px} .games-mathpath{font-size:1.1rem;margin:0 auto 26px;color:#ffc233}
/* ===== Nov 5, 2026: stacked addition/subtraction + column hints ===== */
.g-qrow-stack{justify-content:center}
.g-q.g-q-stack{font-size:inherit;margin:0}
.g-stack-wrap{display:inline-flex;flex-direction:column;align-items:flex-end}
.g-stack{display:inline-grid;grid-template-columns:auto auto;column-gap:.3em;row-gap:2px;align-items:center;justify-items:end;
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-weight:800;font-size:2.9rem;line-height:1.05;font-variant-numeric:tabular-nums;color:#111}
.g-stack .g-st-op{justify-self:start;min-width:.6em}
.g-st-line{grid-column:1 / -1;justify-self:stretch;height:5px;background:#111;border-radius:3px;margin:4px 0}
.g-st-box{display:inline-block;min-width:1.1em;text-align:center;border:3px dashed #1f5fa8;border-radius:10px;padding:0 .12em;color:#1f5fa8;line-height:1}
.g-st-fill{color:#1d7a35;text-decoration:underline;text-decoration-thickness:3px}
.g-stack .g-answer{font-family:inherit;font-size:.82em;text-align:right;width:4.3em;min-height:58px;padding:2px 8px}
.g-st-ans{display:flex;align-items:center;gap:.3em;margin-top:8px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-weight:900;font-size:2rem}
.g-st-ans .g-answer{font-family:inherit;text-align:right}
.g-stack-sm{font-size:1.3rem}.g-stack-sm .g-st-line{height:3px;margin:2px 0}.g-stack-sm .g-st-box{border-width:2px;border-radius:6px}
.g-mini-stacks{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 0 12px}
.g-mini-stacks>*{background:#f6f6f6;border-radius:10px;padding:6px 10px}
.g-mini-line{font-weight:800}
.g-rev-p-stack{display:inline-block}
.g-dpic{display:grid;justify-content:center;margin:10px auto 4px;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-weight:900;font-size:1.7rem;line-height:1.1;text-align:center}
.g-dp-mark{font-size:.6em;color:#b3121f;min-height:1.1em}
.g-dp-x{text-decoration:line-through;text-decoration-color:#b3121f;text-decoration-thickness:3px;color:#666}
.g-dp-line{grid-column:1 / -1;height:4px;background:#111;margin-top:3px}
.g-hint-next{margin-top:4px;min-height:44px;font-weight:900}
@media (max-width:420px){.g-stack{font-size:2.5rem}.g-st-ans{font-size:1.7rem}.g-dpic{font-size:1.5rem}}
.g-stack-wrap{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-weight:800;font-size:2.9rem;line-height:1.05;font-variant-numeric:tabular-nums;color:#111}
.g-stack{font-size:1em}
.g-stack-wrap>.g-st-line{align-self:stretch;height:5px;background:#111;border-radius:3px;margin:4px 0 6px}
.g-st-res{display:flex;justify-content:flex-end}
.g-st-res .g-answer{font-family:inherit;font-size:.82em;text-align:right;width:4.3em;min-height:58px;padding:2px 8px}
.g-stack-wrap.g-stack-sm{font-size:1.3rem}.g-stack-sm>.g-st-line{height:3px;margin:2px 0 3px}.g-stack-sm .g-st-box{border-width:2px;border-radius:6px}
@media (max-width:420px){.g-stack-wrap{font-size:2.5rem}.g-stack-wrap.g-stack-sm{font-size:1.2rem}}
.g-stack-outer{display:inline-flex;flex-direction:column;align-items:center}
/* dotted "?" blank boxes (Perfect Squares, Mixed fill-in, stacks) */
.g-qbox{display:inline-block;min-width:1.05em;text-align:center;border:3px dotted #1f5fa8;border-radius:8px;padding:0 .14em;margin:0 .06em;color:#1f5fa8;line-height:1.15;font-weight:900}
.g-qbox-sup{font-size:.55em;vertical-align:super;line-height:1.1;min-width:1.1em;padding:0 .12em;margin-left:.04em;border-width:2.5px;position:relative;top:-.15em}
.g-st-box.g-qbox{border-style:dotted}
.g-missed .g-qbox,.g-mini-line .g-qbox,.g-rev-p .g-qbox,.g-hint-title .g-qbox{border-width:2px;border-radius:5px}
.g-missed .g-qbox-sup,.g-mini-line .g-qbox-sup,.g-rev-p .g-qbox-sup,.g-hint-title .g-qbox-sup{font-size:.7em}
.g-sq-q,.g-q{white-space:nowrap}
@media (max-width:420px){.g-qbox-sup{font-size:.6em;min-width:1.15em}}
/* squares chart = the only help in Perfect Squares games (counts as a hint) */
.g-chart-open{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.15em;text-align:left;line-height:1.2}
.g-chart-ic{font-size:1.15em}
.g-chart-cost{font-size:.82em;font-weight:700;opacity:.8}
.g-chart-card .g-sq-chart,.g-chart-card table{margin:4px auto 0;font-size:.95rem}
.g-chart-card{overflow:auto}
.g-tile-chart{max-height:45vh}
@media (max-width:420px){.g-chart-card table{font-size:.85rem}.g-chart-cost{display:block;width:100%}}
.g-chart-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 10px;font-weight:800;font-size:1.05rem;font-variant-numeric:tabular-nums;margin-top:4px}
.g-cg{white-space:nowrap;padding:3px 6px;border-radius:6px;background:#fff8e1}
@media (min-width:700px){.g-chart-grid{grid-template-columns:repeat(5,1fr)}}
@media (max-width:420px){.g-chart-grid{font-size:.98rem;gap:3px 6px}.g-cg{padding:2px 4px}}
.g-chart-card .g-hint-head{margin-bottom:2px}
@media (max-width:420px){.g-hint-row:has(.g-chart-open.on) .g-hint-rule{display:none}.g-chart-card{padding-top:8px;padding-bottom:8px}}

/* Multiplication Practice: single & double digits (Nov 10, 2026) */
.g-neg-wrap{margin:0 0 8px}.g-neg-modes{margin:4px 0 4px}.g-neg-help{margin:0 0 6px;font-size:.92rem}
.g-mx-pic .g-dp-d.g-dp-new{color:#1d7a35}
.g-mx-pic .g-dp-ph{color:#1f5fa8;text-decoration:underline dotted;text-decoration-thickness:2px}
.g-mx-pic .g-dp-mark.g-dp-x{color:#999}
.g-mx-sign{font-weight:900;color:#b3121f}

/* Math blocks collapse (Nov 10, 2026): title button + chevron, closed by default (assets/math-collapse.js) */
.games.games-collapsible{margin-top:14px}
.games-section .games.games-collapsible + .games.games-collapsible{margin-top:14px;padding-top:0;border-top:0}
.games.games-collapsible + .games:not(.games-collapsible){margin-top:46px}
.games-collapsible > .games-title{margin:0;display:block}
.games-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;margin:0;padding:12px 18px;background:#0b0b0b;color:#fff;border:2px solid #fff;border-top:6px solid #b3121f;
  font:inherit;font-size:1em;text-align:left;cursor:pointer;border-radius:0}
.games-toggle:hover{background:#1a1a1a}
.games-toggle:focus-visible{outline:3px solid #ff4d5a;outline-offset:2px}
.games-toggle-label{flex:1 1 auto;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;line-height:1.15}
.games-chev{flex:0 0 auto;width:12px;height:12px;border-right:3px solid #ff4d5a;border-bottom:3px solid #ff4d5a;transform:rotate(45deg);margin:-6px 4px 0 0}
.games-toggle[aria-expanded="true"] .games-chev{transform:rotate(-135deg);margin-top:6px}
.games-collapsible > .games-panel{padding-top:22px}
.games-collapsible.is-open{margin-bottom:30px}
@media (max-width:420px){.games-collapsible > .games-title{font-size:1.45rem}.games-toggle{padding:10px 14px}}

/* Teacher accounts entry (Nov 15, 2026): box at the top of Elementary Math Skills */
.games-teacher{max-width:760px;margin:0 auto 26px;border:2px solid #fff;border-top:6px solid #b3121f;padding:16px 18px;text-align:center}
.games-teacher-t{margin:0 0 12px;font-family:var(--g-font);font-weight:700;color:#f2f2f2}
.games-teacher-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.games-teacher-btns .btn{min-height:48px;padding:10px 20px}
body.hide-shop #games .games-teacher{border-color:#000}body.hide-shop #games .games-teacher-t{color:#111}
body.hide-shop #games .games-teacher .btn-outline-light{border-color:#000;color:#000}

/* ===== Nov 15, 2026: friendlier, rounded "kid" font for the Elementary Math Skills games =====
   Fredoka (SIL Open Font License, see fonts/Fredoka-OFL.txt), self-hosted and trimmed to Latin + math signs (27 KB).
   Only inside #games (Elementary Math Skills) and .sp-game (student assignment page): game titles, questions and big numbers,
   buttons, chips and number keys. Small help text stays Nunito so it reads easily. Bible Games, the rest of the site and the logo are unchanged.
   Symbols Fredoka does not have (✓ ★ →) fall back to Nunito automatically. Stacked problems keep their monospace digits so columns line up. */
@font-face{font-family:"TYF Kid";src:url("fonts/Fredoka-Games.woff2") format("woff2");font-weight:500 700;font-style:normal;font-display:swap}
#games,.sp-game,.sp-kid{--g-kid:"TYF Kid","Fredoka","TYF Games","Nunito","Trebuchet MS",system-ui,sans-serif}
#games .games-title,#games .game-title,.sp-game .game-title,#games .g-done-title,.sp-game .g-done-title,#games .g-lock-msg,.sp-game .g-lock-msg,
#games .g-q,.sp-game .g-q,#games .g-answer,.sp-game .g-answer,#games .g-tt-score,.sp-game .g-tt-score,#games .g-tile-n,.sp-game .g-tile-n,
#games .g-hd,.sp-game .g-hd,#games .g-clock,.sp-game .g-clock{font-family:var(--g-kid);font-weight:700;letter-spacing:.01em}
#games .g-btn,.sp-game .g-btn,#games .g-chip,.sp-game .g-chip,#games .g-key,.sp-game .g-key,#games .g-mode,.sp-game .g-mode,
#games .g-step,.sp-game .g-step,#games .g-score,.sp-game .g-score,#games .g-streak,.sp-game .g-streak,#games .g-fb,.sp-game .g-fb,
#games .game-order,.sp-game .game-order,#games .g-big,.sp-game .g-big,#games .g-hv,.sp-game .g-hv,#games .g-rev-count,.sp-game .g-rev-count,
#games .g-chart,.sp-game .g-chart,#games .g-tile-q,.sp-game .g-tile-q,#games .g-hint-title,.sp-game .g-hint-title,
#games .games-path,#games .games-reset{font-family:var(--g-kid);font-weight:600;letter-spacing:.01em}
#games .games-title{text-transform:none;font-size:2.1rem}
#games .game-title,.sp-game .game-title{font-size:1.65rem}
#games .g-q,.sp-game .g-q{font-size:3.4rem}
@media (max-width:420px){#games .games-collapsible > .games-title{font-size:1.6rem}#games .g-q,.sp-game .g-q{font-size:3rem}}

/* ===== Nov 15, 2026: STAAR 3rd Grade Practice (Multiplication & Division Word Problems, assets/games.js staarMulDiv) ===== */
.g-sr-box{margin:8px 0 4px}
.g-sr-kind{display:inline-block;margin:0 0 6px;padding:2px 10px;border-radius:999px;background:#1f5fa8;color:#fff;font-weight:700;font-size:.85rem}
.g-sr-q{margin:0 0 10px;font-size:1.25rem;line-height:1.4;color:#111;font-weight:600}
.g-sr-arr{display:grid;gap:6px;width:max-content;max-width:100%;margin:4px auto 12px;padding:10px;background:#fff7e6;border:2px solid #f0c674;border-radius:12px}
.g-sr-dot{width:18px;height:18px;border-radius:50%;background:#b3121f}
.g-sr-tbl{border-collapse:collapse;margin:4px auto 12px;font-size:1.15rem;background:#fff}
.g-sr-tbl th,.g-sr-tbl td{border:2px solid #111;padding:6px 16px;text-align:center;min-width:64px}
.g-sr-tbl th{background:#f2f2f2}
.g-sr-mc{display:grid;gap:8px;margin:6px 0 8px}
.g-sr-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 12px;border:2px solid #111;border-radius:14px;background:#fff;color:#111;
  font:inherit;font-size:1.12rem;font-weight:600;text-align:left;cursor:pointer;box-shadow:0 3px 0 #cfcfcf}
.g-sr-opt:hover:not(:disabled){background:#fff3f4}
.g-sr-opt.is-picked,.g-sr-opt[aria-pressed="true"]{background:#b3121f;border-color:#b3121f;color:#fff;box-shadow:0 3px 0 #7d0c15}
.g-sr-opt:disabled{cursor:default}
.g-sr-let{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#111;color:#fff;font-weight:700}
.g-sr-opt[aria-pressed="true"] .g-sr-let,.g-sr-opt.is-picked .g-sr-let{background:#fff;color:#b3121f}
.g-sr-check{width:100%}
.g-sr-check:disabled{opacity:.55}
.g-sr-row{align-items:center;gap:10px}
.g-sr-lab{font-weight:700}
.g-sr-fb{text-align:left}
.g-sr-fb.g-ok{text-align:center}
.g-sr-miss{margin:4px 0 8px;text-align:center}
.g-sr-why{margin:0 0 10px;padding:10px 14px;background:#fff;border:2px dashed #1f5fa8;border-radius:14px;color:#111;font-weight:600;font-size:1.05rem}
.g-sr-why ul{margin:4px 0 0;padding-left:20px}
.g-sr-why li{margin:2px 0}
.g-sr-review{padding-left:22px;text-align:left}
.g-sr-review > li{margin:0 0 12px}
.g-sr-rq{margin:0 0 4px;font-weight:600}
.g-sr-ra{margin:0 0 4px}
#games .g-sr-kind,.sp-game .g-sr-kind,#games .g-sr-q,.sp-game .g-sr-q,#games .g-sr-opt,.sp-game .g-sr-opt,#games .g-sr-tbl,.sp-game .g-sr-tbl,
#games .g-sr-why .g-hint-title,.sp-game .g-sr-why .g-hint-title{font-family:var(--g-kid);letter-spacing:.01em}
@media (max-width:420px){.g-sr-q{font-size:1.15rem}.g-sr-opt{font-size:1.05rem}.g-sr-dot{width:14px;height:14px}.g-sr-arr{gap:5px}.g-sr-tbl th,.g-sr-tbl td{padding:5px 10px;min-width:56px}}
.g-sr-opt.is-right{border-color:#1d7a35;box-shadow:0 0 0 3px #1d7a35;background:#eaf7ee;color:#111}
.g-sr-opt.is-right .g-sr-let{background:#1d7a35;color:#fff}
/* Nov 15, 2026: all STAAR games: stacked fractions, pictures (SVG), shade-the-parts, picture choices */
.g-frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;margin:0 .12em;font-size:.92em}
.g-frac-n{padding:0 .15em .08em;border-bottom:2px solid currentColor}
.g-frac-d{padding:.08em .15em 0}
.g-sr-pic{display:flex;flex-direction:column;align-items:center;gap:8px;margin:4px 0 12px;overflow-x:auto}
.g-sr-pic svg{max-width:100%;height:auto}
.g-sr-opt .g-sr-pic{margin:0;flex:0 0 auto}
.g-sr-opt .g-sr-pic svg{width:56px;height:auto}
.g-sr-grid{grid-template-columns:1fr 1fr}
.g-sr-grid .g-sr-opt{flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:8px 6px}
.g-sr-ot{flex:1 1 auto}
.g-sr-post{margin-left:2px}
.g-sr-shade{display:flex;margin:8px 0 6px;border:3px solid #111;border-radius:6px;overflow:hidden}
.g-sr-part{flex:1 1 0;min-height:64px;border:0;border-left:2px solid #111;background:#fff;cursor:pointer;padding:0}
.g-sr-part:first-child{border-left:0}
.g-sr-part[aria-pressed="true"]{background:#b3121f}
.g-sr-part:disabled{cursor:default}
.g-sr-cnt{margin:0 0 8px;font-weight:700;text-align:center}
#games .g-sr-cnt,.sp-game .g-sr-cnt{font-family:var(--g-kid)}
/* Nov 15, 2026: STAAR Custom Mix controls */
.g-sr-topics{gap:6px}
.g-sr-topics .g-chip{width:auto;min-width:0;padding:6px 10px;font-size:.92rem;height:auto;min-height:40px}
.g-modes.g-sr-presets{grid-template-columns:1fr 1fr 1fr;border-radius:16px}
.g-sr-presets .g-mode{font-size:.88rem;line-height:1.15;padding:6px 4px}
.g-quick.g-sr-wts{display:grid;gap:6px;margin:0 0 10px}
.g-sr-wts[hidden]{display:none}
.g-sr-wrow{display:grid;grid-template-columns:1fr 40px 46px 40px 44px;align-items:center;gap:6px;padding:4px 8px;border:2px solid #e5e5e5;border-radius:12px;background:#fff}
.g-sr-wname{font-weight:700;font-size:.95rem;line-height:1.15}
.g-sr-step{width:40px;height:40px;border:2px solid #b3121f;border-radius:50%;background:#fff;color:#b3121f;font:inherit;font-size:1.3rem;font-weight:900;cursor:pointer;line-height:1;padding:0}
.g-sr-step:disabled{opacity:.35;cursor:default}
.g-sr-wval{text-align:center;font-weight:800}
.g-sr-wq{text-align:right;font-weight:800;color:#1f5fa8}
.g-sr-prev{margin:0 0 10px;padding:8px 14px;background:#eef4fb;border:2px solid #1f5fa8;border-radius:14px}
.g-sr-prev-t{margin:0 0 4px;font-weight:800}
.g-sr-prev ul{margin:0;padding-left:20px}
.g-sr-prev li{font-weight:600}
.g-sr-prev li.g-sr-zero{color:#777}
#games .g-sr-prev,.sp-game .g-sr-prev,#games .g-sr-wname,.sp-game .g-sr-wname,#games .g-sr-wq,.sp-game .g-sr-wq,#games .g-sr-wval,.sp-game .g-sr-wval{font-family:var(--g-kid)}
/* Custom Mix topic picker: readable 2-column buttons on phones, 3 on wider screens */
.math-games .g-chips.g-sr-topics,.sp-game .g-chips.g-sr-topics,.g-chips.g-sr-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.math-games .g-sr-topics .g-chip,.sp-game .g-sr-topics .g-chip,.g-sr-topics .g-chip{width:100%;min-width:0;height:auto;min-height:48px;padding:8px 10px;font-size:1rem;line-height:1.15;white-space:normal;text-align:left;overflow-wrap:anywhere}
@media (min-width:700px){.math-games .g-chips.g-sr-topics,.sp-game .g-chips.g-sr-topics,.g-chips.g-sr-topics{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Nov 15, 2026 (Ruben): math never breaks across lines; STAAR number sentences get their own centered line */
.g-nw{white-space:nowrap}
.g-sr-expr{text-align:center;font-size:clamp(1.15rem,5.6vw,1.6rem);line-height:1.35;margin:4px 0 12px;padding:8px 6px;background:#f6f6f6;border-radius:12px;font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:normal}
.g-sr-expr .g-frac{font-size:.9em}
/* long number sentences in answer buttons on very small phones (320-374px): tighter button padding so they still fit on one line (no font change) */
@media (max-width:374px){.g-sr-opt:has(.g-nw-long){padding-left:8px;padding-right:6px;gap:8px}}
#games .g-sr-expr,.sp-game .g-sr-expr{font-family:var(--g-kid);letter-spacing:.01em;font-weight:600;color:#111}

/* ===== Nov 15, 2026 (Ruben picked sample C): calmer type in every math game card (Elementary Math Skills + STAAR, free play and student view).
   Nunito for question text, choices, explanations and card body (question 600, number sentence 700, choices 500, choice letters 700).
   Fredoka (TYF Kid) 600 only for titles, the big problem numbers, the answer box and the game buttons/keys. ===== */
@font-face{font-family:"TYF Body";src:url("fonts/Nunito-Body.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
#games,.sp-game{--g-body:"TYF Body","TYF Games","Nunito","Trebuchet MS",system-ui,sans-serif}
#games .game,.sp-game .game,.sp-game.game{font-family:var(--g-body);font-weight:500}
/* titles + big numbers: Fredoka 600 (was 700) */
#games .games-title,#games .game-title,.sp-game .game-title,#games .g-done-title,.sp-game .g-done-title,#games .g-lock-msg,.sp-game .g-lock-msg,
#games .g-q,.sp-game .g-q,#games .g-answer,.sp-game .g-answer,#games .g-tt-score,.sp-game .g-tt-score,#games .g-tile-n,.sp-game .g-tile-n,
#games .g-hd,.sp-game .g-hd,#games .g-clock,.sp-game .g-clock{font-family:var(--g-kid);font-weight:600}
/* small labels, scores, feedback, hint titles: Nunito */
#games .g-step,.sp-game .g-step,#games .g-score,.sp-game .g-score,#games .g-streak,.sp-game .g-streak,#games .game-order,.sp-game .game-order,
#games .g-chart,.sp-game .g-chart,#games .g-rev-count,.sp-game .g-rev-count{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#games .g-fb,.sp-game .g-fb,#games .g-hint-title,.sp-game .g-hint-title{font-family:var(--g-body);font-weight:700;letter-spacing:0}
/* STAAR question card */
#games .g-sr-q,.sp-game .g-sr-q,#games .g-sr-rq,.sp-game .g-sr-rq{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#games .g-sr-expr,.sp-game .g-sr-expr{font-family:var(--g-body);font-weight:700;letter-spacing:0}
#games .g-sr-opt,.sp-game .g-sr-opt,#games .g-sr-ot,.sp-game .g-sr-ot{font-family:var(--g-body);font-weight:500;letter-spacing:0}
#games .g-sr-let,.sp-game .g-sr-let{font-family:var(--g-body);font-weight:700}
#games .g-sr-kind,.sp-game .g-sr-kind,#games .g-sr-tbl,.sp-game .g-sr-tbl,#games .g-sr-miss,.sp-game .g-sr-miss,#games .g-sr-ra,.sp-game .g-sr-ra{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#games .g-sr-why,.sp-game .g-sr-why,#games .g-sr-why li,.sp-game .g-sr-why li,#games .g-sr-review li,.sp-game .g-sr-review li{font-family:var(--g-body);font-weight:500}
#games .g-sr-why .g-hint-title,.sp-game .g-sr-why .g-hint-title{font-family:var(--g-body);font-weight:700}
#games .g-sr-prev,.sp-game .g-sr-prev,#games .g-sr-wname,.sp-game .g-sr-wname{font-family:var(--g-body);font-weight:600}
@media (max-width:374px){#games .g-sr-opt:has(.g-nw-long),.sp-game .g-sr-opt:has(.g-nw-long){padding:8px 4px 8px 6px;gap:6px}
  .g-sr-opt:has(.g-nw-long) .g-sr-let{width:28px;height:28px}.g-sr-opt .g-nw-long{font-size:.94em}}

/* Nov 17, 2026: Bible Games band uses Fredoka (already loaded as TYF Kid) for the
   section title and card titles, so this part of the home page feels playful and
   distinct from the ministry headings. Card body text stays Nunito. */
.bible-games-section h2,#bible-games-title{
  font-family:"TYF Kid","Fredoka",var(--g-font),sans-serif;font-weight:650;text-transform:none;letter-spacing:.01em;line-height:1.1
}
.bible-games-section .section-intro,.bible-games-section .games-intro{
  font-family:"TYF Kid","Fredoka",var(--g-font),sans-serif;font-weight:500
}
.bible-games-section .game-title{
  font-family:"TYF Kid","Fredoka",var(--g-font),sans-serif;font-weight:650
}
.bible-games-section .g-btn,.bible-games-section a.btn,.bible-games-section .games-reset{
  font-family:"TYF Kid","Fredoka",var(--g-font),sans-serif
}
