/* THANK YOU FATHER: Algebra 1 STAAR Practice (PHASE 1 PREVIEW, Nov 15, 2026). Loaded after games.css.
   Part 1 (generated by copying the "#games ..." font rules of games.css to "#alg1-games ..."): same Nunito body / Fredoka 600 titles as the elementary games.
   Part 2: the new answer formats (graph board, tap-to-place, drop-downs, yes/no grid, typed keypad) and the Desmos button. */
#alg1-games{--g-kid:"TYF Kid","Fredoka","TYF Games","Nunito","Trebuchet MS",system-ui,sans-serif}
#alg1-games .games-title,#alg1-games .game-title,#alg1-games .g-done-title,#alg1-games .g-lock-msg,#alg1-games .g-q,#alg1-games .g-answer,#alg1-games .g-tt-score,#alg1-games .g-tile-n,#alg1-games .g-hd,#alg1-games .g-clock{font-family:var(--g-kid);font-weight:700;letter-spacing:.01em}
#alg1-games .g-btn,#alg1-games .g-chip,#alg1-games .g-key,#alg1-games .g-mode,#alg1-games .g-step,#alg1-games .g-score,#alg1-games .g-streak,#alg1-games .g-fb,#alg1-games .game-order,#alg1-games .g-big,#alg1-games .g-hv,#alg1-games .g-rev-count,#alg1-games .g-chart,#alg1-games .g-tile-q,#alg1-games .g-hint-title,#alg1-games .games-path,#alg1-games .games-reset{font-family:var(--g-kid);font-weight:600;letter-spacing:.01em}
#alg1-games .games-title{text-transform:none;font-size:2.1rem}
#alg1-games .game-title{font-size:1.65rem}
#alg1-games .g-q{font-size:3.4rem}
@media (max-width:420px){#alg1-games .games-collapsible > .games-title{font-size:1.6rem}#alg1-games .g-q{font-size:3rem}}
#alg1-games .g-sr-kind,#alg1-games .g-sr-q,#alg1-games .g-sr-opt,#alg1-games .g-sr-tbl,#alg1-games .g-sr-why .g-hint-title{font-family:var(--g-kid);letter-spacing:.01em}
#alg1-games .g-sr-cnt{font-family:var(--g-kid)}
#alg1-games .g-sr-prev,#alg1-games .g-sr-wname,#alg1-games .g-sr-wq,#alg1-games .g-sr-wval{font-family:var(--g-kid)}
#alg1-games .g-sr-expr{font-family:var(--g-kid);letter-spacing:.01em;font-weight:600;color:#111}
#alg1-games{--g-body:"TYF Body","TYF Games","Nunito","Trebuchet MS",system-ui,sans-serif}
#alg1-games .game{font-family:var(--g-body);font-weight:500}
#alg1-games .games-title,#alg1-games .game-title,#alg1-games .g-done-title,#alg1-games .g-lock-msg,#alg1-games .g-q,#alg1-games .g-answer,#alg1-games .g-tt-score,#alg1-games .g-tile-n,#alg1-games .g-hd,#alg1-games .g-clock{font-family:var(--g-kid);font-weight:600}
#alg1-games .g-step,#alg1-games .g-score,#alg1-games .g-streak,#alg1-games .game-order,#alg1-games .g-chart,#alg1-games .g-rev-count{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#alg1-games .g-fb,#alg1-games .g-hint-title{font-family:var(--g-body);font-weight:700;letter-spacing:0}
#alg1-games .g-sr-q,#alg1-games .g-sr-rq{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#alg1-games .g-sr-expr{font-family:var(--g-body);font-weight:700;letter-spacing:0}
#alg1-games .g-sr-opt,#alg1-games .g-sr-ot{font-family:var(--g-body);font-weight:500;letter-spacing:0}
#alg1-games .g-sr-let{font-family:var(--g-body);font-weight:700}
#alg1-games .g-sr-kind,#alg1-games .g-sr-tbl,#alg1-games .g-sr-miss,#alg1-games .g-sr-ra{font-family:var(--g-body);font-weight:600;letter-spacing:0}
#alg1-games .g-sr-why,#alg1-games .g-sr-why li,#alg1-games .g-sr-review li{font-family:var(--g-body);font-weight:500}
#alg1-games .g-sr-why .g-hint-title{font-family:var(--g-body);font-weight:700}
#alg1-games .g-sr-prev,#alg1-games .g-sr-wname{font-family:var(--g-body);font-weight:600}
@media (max-width:374px){#alg1-games .g-sr-opt:has(.g-nw-long){padding:8px 4px 8px 6px;gap:6px}}
/* ---- part 2 ---- */
#alg1-games,.sp-game{--a1-blue:#1f5fa8}
.alg1-section .games-path a{color:#ffc233}
.a1-top{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 auto 18px}
.a1-top .g-btn{min-height:50px}
.a1-desmos{text-decoration:none;gap:6px}
.a1-desmos-s{min-height:36px;padding:4px 12px;font-size:.92rem;box-shadow:0 2px 0 #e5b7bb;margin-left:auto}
.a1-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.a1-bar .g-link{margin-left:0}
.a1-start-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.a1-start-row .g-start{flex:1 1 160px}
.a1-start-row .a1-desmos{flex:0 1 auto}
.a1-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}
.a1-reset:hover{background:#fff;color:#000}.a1-reset.armed{background:#b3121f;border-color:#b3121f;color:#fff}
/* math pieces */
.a1-m{display:inline-block;vertical-align:middle}
.a1-m sup,.a1-expr sup,.g-sr-ot sup,.a1-tile sup,.a1-slot sup{font-size:.68em;line-height:0;vertical-align:.55em}
.a1-dv{display:inline-flex;flex-direction:column;align-items:stretch;vertical-align:middle;text-align:center;margin:0 .15em;line-height:1.15}
.a1-dv-t{padding:0 .2em .1em;border-bottom:3px solid currentColor;white-space:nowrap}
.a1-dv-b{padding:.1em .2em 0;white-space:nowrap}
.a1-expr{text-align:center;font-size:clamp(1.15rem,5.4vw,1.55rem);line-height:1.35;margin:4px 0 12px;padding:10px 6px;background:#f6f6f6;border-radius:12px;font-variant-numeric:tabular-nums;overflow-x:auto}
.a1-expr-line{margin:2px 0}
#alg1-games .a1-expr,.sp-game .a1-expr{font-family:var(--g-body);font-weight:700;color:#111}
.a1-tip{margin:4px 0 8px;font-size:.95rem;color:#4a4a4a;font-weight:600;text-align:center}
#alg1-games .a1-tip,.sp-game .a1-tip,#alg1-games .a1-dd,.sp-game .a1-dd,#alg1-games .a1-tile,.sp-game .a1-tile,#alg1-games .a1-slot,.sp-game .a1-slot,#alg1-games .a1-gtbl,.sp-game .a1-gtbl{font-family:var(--g-body)}
.g-sr-opt .a1-m,.g-sr-ot{overflow-wrap:normal}
.a1-grid2{grid-template-columns:1fr 1fr}
.a1-grid2 .g-sr-opt{flex-direction:column;align-items:center;padding:8px 6px}
.a1-grid2 .g-sr-opt .g-sr-pic svg{width:100%;max-width:150px;height:auto}
/* typed */
.a1-num-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.a1-ans{max-width:190px;text-align:center}
.a1-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:330px;margin:8px auto}
.a1-pad .g-key{min-height:52px}
.a1-pad .g-key-ok{grid-column:auto}
.a1-key-sym{background:#eef4fb}
/* drop-downs */
.a1-dd{font-size:1.15rem;line-height:2.4;font-weight:600;margin:6px 0 10px}
.a1-sel{font:inherit;font-weight:700;font-size:1.05rem;min-height:44px;padding:4px 8px;margin:0 4px;border:2px solid #1f5fa8;border-radius:10px;background:#fff;color:#111;max-width:100%}
.a1-sel:focus{outline:3px solid #ffc233;outline-offset:1px}
/* tap-to-place */
.a1-slots{display:grid;gap:8px;margin:6px 0 4px}
.a1-slot-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.a1-slots-inline{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.a1-slots-inline .a1-slot-row{flex-wrap:nowrap;gap:4px}
.a1-slots-inline .a1-slot{min-width:96px;flex:0 0 auto}
.a1-slot-lab{font-weight:700;font-size:1.1rem;flex:0 1 auto}
.a1-slot{flex:1 1 180px;min-height:52px;min-width:120px;padding:6px 10px;border:3px dashed #1f5fa8;border-radius:12px;background:#f5f9ff;color:#111;font:inherit;font-weight:700;font-size:1.02rem;cursor:pointer;text-align:center;line-height:1.25}
.a1-slot.is-ready{background:#fff7e6;border-color:#ffc233}
.a1-slot.is-full{border-style:solid;background:#fff}
.a1-bank{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:4px 0 10px;min-height:20px}
.a1-tile{min-height:48px;padding:6px 12px;border:2px solid #111;border-radius:12px;background:#fff;color:#111;font:inherit;font-weight:700;font-size:1.02rem;cursor:grab;line-height:1.25;max-width:100%;text-align:left;box-shadow:0 3px 0 #d6d6d6}
.a1-tile.is-picked{background:#b3121f;border-color:#b3121f;color:#fff;box-shadow:0 3px 0 #7d0c15}
/* graph board */
.a1-board{width:100%;max-width:360px;margin:4px auto 6px;touch-action:manipulation;cursor:crosshair;border-radius:10px;overflow:hidden;box-shadow:0 0 0 2px #111}
.a1-board svg{display:block;width:100%;height:auto}
.a1-seg{max-width:360px;margin:6px auto}
.a1-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.a1-row .a1-check{flex:1 1 160px}
.a1-graph{max-width:100%;height:auto}
.g-sr-pic .a1-graph{width:260px;max-width:100%}
/* yes/no grid */
.a1-gtbl{border-collapse:separate;border-spacing:0 6px;margin:4px auto 10px;width:100%;max-width:440px}
.a1-gtbl th{font-weight:700;padding:4px 6px;text-align:center}
.a1-gq{text-align:left!important;font-size:1.1rem}
.a1-gtbl td{text-align:center;padding:0 3px}
.a1-yn{min-width:64px;min-height:46px;border:2px solid #111;border-radius:999px;background:#fff;color:#111;font:inherit;font-weight:800;cursor:pointer}
.a1-yn[aria-pressed="true"]{background:#b3121f;border-color:#b3121f;color:#fff}
.a1-row-ok .a1-gq{color:#1d7a35}.a1-row-bad .a1-gq{color:#b3121f;text-decoration:underline wavy}
.a1-locked .a1-board{cursor:default}
@media (max-width:420px){.a1-dd{font-size:1.05rem}.a1-gq{font-size:1rem}.a1-yn{min-width:54px}.a1-slot{min-width:0}}

.a1-dnote{margin:8px 0 0;padding:6px 10px;border-left:5px solid #127a3d;background:#eef7f1;border-radius:8px;font-size:.92rem;font-weight:600;color:#111}
#alg1-games .a1-dnote,.sp-game .a1-dnote{font-family:var(--g-body)}
.a1-top-note{max-width:620px;margin:-6px auto 16px;text-align:center;color:#f2f2f2;font-weight:700;font-size:.95rem}
.a1-top-note b{color:#7ee2a2}

/* Desmos-beside-the-page notice (Nov 15, 2026) */
.a1-dtoast{position:fixed;left:50%;bottom:16px;transform:translate(-50%,20px);max-width:min(92vw,520px);padding:10px 14px;border-radius:10px;background:#127a3d;color:#fff;font-weight:700;font-size:.95rem;line-height:1.35;box-shadow:0 6px 20px rgba(0,0,0,.3);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:9999}
.a1-dtoast.on{opacity:1;transform:translate(-50%,0)}
.a1-split-tip{max-width:620px;margin:-8px auto 16px;text-align:center;color:#ddd;font-size:.9rem}
#alg1-games .a1-steps-score{font-weight:700}

/* In-page STAAR Desmos panel (Nov 15, 2026; Ruben has Desmos's permission to frame it) */
.a1-dp{position:fixed;z-index:900;display:none;flex-direction:column;background:#fff;border:2px solid #127a3d;border-radius:12px;box-shadow:0 10px 34px rgba(0,0,0,.35);overflow:hidden;min-width:300px;min-height:200px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.a1-dp.is-open{display:flex}
.a1-dp-bar{display:flex;align-items:center;gap:4px;padding:4px 6px 4px 12px;background:#127a3d;color:#fff;cursor:move;user-select:none;touch-action:none;flex:0 0 auto}
.a1-dp-title{flex:1 1 auto;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a1-dp-title b{font-weight:800;margin-right:4px}
.a1-dp-btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 8px;border:0;border-radius:8px;background:rgba(255,255,255,.16);color:#fff;font:700 1.1rem/1 system-ui,sans-serif;cursor:pointer;text-decoration:none}
.a1-dp-btn:hover,.a1-dp-btn:focus-visible{background:rgba(255,255,255,.32);outline:2px solid #fff;outline-offset:-2px}
.a1-dp-exp{display:none}
.a1-dp-body{position:relative;flex:1 1 auto;min-height:0;background:#fff}
.a1-dp-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.a1-dp-shield{display:none;position:absolute;inset:0}
.a1-dp.is-moving .a1-dp-shield{display:block}
.a1-dp-grip{position:absolute;left:0;bottom:0;width:22px;height:22px;cursor:nesw-resize;touch-action:none;background:linear-gradient(45deg,transparent 45%,#127a3d 46%,#127a3d 56%,transparent 57%,transparent 68%,#127a3d 69%,#127a3d 79%,transparent 80%);transform:scaleX(-1)}
.a1-dp-tab{position:fixed;z-index:900;right:0;top:42%;display:none;padding:12px 10px;border:0;border-radius:10px 0 0 10px;background:#127a3d;color:#fff;font:800 .95rem/1 system-ui,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.3);cursor:pointer;writing-mode:vertical-rl}
.a1-dp-tab.is-on{display:block}
html.a1-dp-room-r body{padding-right:var(--a1-dp-room)}
html.a1-dp-room-b body{padding-bottom:var(--a1-dp-room)}
.a1-dp.is-sheet{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;border-radius:14px 14px 0 0;border-bottom:0;min-width:0}
.a1-dp.is-sheet .a1-dp-bar{cursor:default}
.a1-dp.is-sheet .a1-dp-exp{display:inline-flex}
.a1-dp.is-sheet .a1-dp-grip{display:none}
@media print{.a1-dp,.a1-dp-tab{display:none!important}}
/* ---- Coach Shives' animated "y =" walkthrough + Hint (Nov 15, 2026) ---- */
.a1w{margin:10px 0 12px;padding:10px 10px 12px;border:3px solid #1f5fa8;border-radius:16px;background:#f5f9ff;color:#111;text-align:left;max-width:100%;box-sizing:border-box}
.a1w-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.a1w-title{margin:0;font-weight:800;font-size:1rem;color:#1f3f75}
.a1w-cnt{font-size:.85rem;font-weight:700;color:#4a4a4a}
.a1w-stage{position:relative;margin:8px 0 6px;padding:12px 6px 14px;min-height:118px;background:#fff;border:2px solid #d6e2f3;border-radius:12px;overflow:hidden}
.a1w-fit{font-size:22px;line-height:1.25;display:inline-block;min-width:100%;text-align:center;white-space:nowrap}
.a1w-row{display:flex;justify-content:center;align-items:center;white-space:nowrap;margin:2px 0 14px;font-variant-numeric:lining-nums}
.a1w-r2{margin-top:6px;margin-bottom:2px}
.a1w-p{display:inline-block;padding:1px 2px;border-radius:6px;transition:background-color .3s,opacity .3s}
.a1w-hly{background:#fff1a8;box-shadow:0 0 0 2px #e0b400 inset}
.a1w-hl{background:#d7e9ff;box-shadow:0 0 0 2px #1f5fa8 inset}
.a1w-hlr{background:#ffe0e0;box-shadow:0 0 0 2px #b3121f inset}
.a1w-gone{opacity:.3;text-decoration:line-through}
.a1w-ok .a1w-p{background:#dff5e3;box-shadow:0 0 0 2px #1a7f37 inset}
.a1w-yeq{font-weight:700}
.a1w-fr{margin-left:6px;display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle}
.a1w-top,.a1w-bot{display:flex;align-items:center;justify-content:center;white-space:nowrap;min-height:1.3em}
.a1w-line{display:block;align-self:stretch;height:4px;margin:3px -4px;background:#111;border-radius:2px;transform-origin:left center}
.a1w-line.a1w-big{background:#d97706}
.a1w-hid{visibility:hidden}
.a1w-copy{border-radius:6px;padding:0 2px}.a1w-cc:not(.a1w-hid):not(.a1w-sp){background:#d7e9ff}
.a1w-mv,.a1w-coef{border-radius:6px;padding:0 2px}
.a1w-flash{color:#b3121f;font-weight:800;background:#ffe0e0;border-radius:6px}
.a1w-ghost{left:0;top:0;font-weight:800;color:#b3121f;position:absolute;z-index:3;white-space:nowrap;line-height:1.25;padding:1px 2px;border-radius:6px;background:#fff7d6;box-shadow:0 2px 8px rgba(0,0,0,.25);pointer-events:none}
.a1w-arrows{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.a1w-shout{display:table;margin:2px auto 0;position:relative;z-index:4;font-size:.72rem;font-weight:900;color:#fff;background:#b3121f;border-radius:999px;padding:2px 8px;animation:a1wpulse 1s ease-in-out 2}
.a1w-shout[hidden]{display:none}
.a1w-shout.a1w-keep{background:#14713a}
@keyframes a1wpulse{50%{transform:scale(1.08)}}
.a1w-cap{margin:6px 2px 8px;font-size:1rem;line-height:1.45;min-height:2.9em}
.a1w-desmos{border:2px solid #2e8540;border-radius:10px;overflow:hidden;background:#fff;margin:0 0 8px}
.a1w-dbar{background:#2e8540;color:#fff;font-weight:800;font-size:.8rem;padding:3px 8px}
.a1w-dbody{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;padding:6px}
.a1w-dlist{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:100%}
.a1w-dx{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:1.05rem;border-bottom:1px solid #e3e3e3;padding:2px 4px}
.a1w-dot{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.a1w-dg svg{display:block;width:200px;height:200px;max-width:100%}
.a1w-ctl{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.a1w-b.g-btn{min-height:44px;padding:6px 12px;font-size:.95rem;flex:1 1 auto;max-width:150px}
.a1w-open.g-btn{min-height:44px;margin:4px 0}
.a1-hint-card .a1w{margin-top:4px}
@media (max-width:420px){.a1w{padding:8px 6px 10px}.a1w-fit{font-size:20px}.a1w-b.g-btn{padding:6px 8px;font-size:.9rem}}
@media (prefers-reduced-motion:reduce){.a1w-shout{animation:none}.a1w-p{transition:none}}
/* ---- the little Coach Shives sprite (Nov 15, 2026): cut out of his drawing; never recolored, never mirrored ---- */
.a1w-stage{padding-top:70px;padding-bottom:34px}
.a1w-coach{position:absolute;left:0;top:0;z-index:5;width:17px;height:44px;will-change:transform;pointer-events:none;transform-origin:50% 100%}
.a1w-coach[hidden]{display:none}
.a1w-coach img{display:block;width:100%;height:100%;transform-origin:50% 100%;transition:transform .25s}
.a1w-think img{transform:rotate(-7deg)}
.a1w-oh img{transform:translateY(-4px) scale(1.06)}
.a1w-bub{position:absolute;left:calc(100% + 2px);top:-14px;white-space:nowrap;font-size:12px;font-weight:900;line-height:1;color:#111;background:#fff;border:2px solid #111;border-radius:10px;padding:3px 6px}
.a1w-bub[hidden]{display:none}
.a1w-boom{position:absolute;z-index:4;padding:8px 10px;font-weight:900;font-size:15px;color:#7a2e00;background:#ffd23f;clip-path:polygon(50% 0,61% 30%,95% 18%,72% 45%,100% 60%,66% 65%,74% 100%,50% 75%,26% 100%,34% 65%,0 60%,28% 45%,5% 18%,39% 30%);pointer-events:none;transform:translate(-50%,-50%)}
.a1w-boom[hidden]{display:none}
.a1w-ch,.a1w-cc{display:inline-block;border-radius:4px;transition:background-color .2s}
.a1w-on{background:#ffd23f;box-shadow:0 0 0 2px #d97706 inset}
.a1w-pop{animation:a1wpop .35s ease-out}
@keyframes a1wpop{0%{transform:scale(1.5)}100%{transform:none}}
.a1w-look{box-shadow:0 0 0 2px #7c3aed inset;background:#efe7ff}
.a1w-mvs{display:inline-block;transform-origin:50% 55%}
.a1w-skip.g-btn{max-width:120px}
@media (prefers-reduced-motion:reduce){.a1w-pop{animation:none}.a1w-coach img{transition:none}}

/* landing: a small dust puff (no words) */
.a1w-dust{position:absolute;z-index:4;width:40px;height:12px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(140,110,80,.6),rgba(140,110,80,.25) 45%,rgba(140,110,80,0) 70%);pointer-events:none;transform:translate(-50%,-50%)}
.a1w-dust[hidden]{display:none}
/* the lasso */
.a1w-rope{position:absolute;left:0;top:0;z-index:4;pointer-events:none;overflow:visible}
.a1w-rope path{fill:none;stroke:#8a5a2b;stroke-width:2.5;stroke-linecap:round}
.a1w-rope ellipse{fill:none;stroke:#8a5a2b;stroke-width:2.5}
.a1w-coach.a1w-bl .a1w-bub{left:auto;right:calc(100% + 2px)}
/* KEEP its sign: at the top of the stage (he's down under the line then) */
.a1w-shout.a1w-keep{position:absolute;top:10px;left:0;right:0;margin:0 auto;width:max-content;max-width:calc(100% - 12px);white-space:normal;text-align:center}
/* ONE equation (Nov 15, 2026): everything happens on the original equation */
.a1w-out,.a1w-nobot{display:none!important}
.a1w-ch.a1w-typed{background:#d7e9ff}
.a1w-yc,.a1w-yv{display:inline-block;border-radius:4px}
.a1w-tick{position:absolute;left:8px;bottom:6px;z-index:4;font-size:13px;font-weight:800;line-height:1.3;color:#1f3f75;background:#eef4ff;border:1px solid #c9d8f0;border-radius:8px;padding:1px 6px;white-space:nowrap;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis}
.a1w-tick[hidden]{display:none}
.a1w-flip .a1w-fr{margin-right:22px}
/* Algebra 1 games grouped by Step, each Step a closed tap-to-open block (assets/math-collapse.js) */
#alg1-games .alg1-step + .alg1-step{margin-top:14px}
.a1-step-n{display:inline-block;font-size:.55em;font-weight:700;letter-spacing:.02em;padding:2px 10px;border-radius:999px;background:#b3121f;color:#fff;vertical-align:middle}
.a1-step-note{margin:0 0 14px}
/* Big Bro walkthrough (Nov 15, 2026) */
.a1b-bb{position:relative}
.a1b-lab{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:4px;font-size:12px;font-weight:900;line-height:1.2;color:#fff;background:#b3121f;border-radius:999px;padding:2px 8px;white-space:nowrap}
.a1b-lab.a1w-hid{visibility:hidden}
/* Nov 15, 2026 (Coach Shives): inside Step 1 every game (1a to 1g) is its own tap-to-open block (assets/math-collapse.js) */
#algebra-1-staar-practice .a1-game.games-collapsible > .game-title{margin:0;display:block;font-size:1.1rem}
#algebra-1-staar-practice .a1-game-toggle{min-height:44px;padding:2px 0;background:transparent;color:inherit;border:0;border-radius:0}
#algebra-1-staar-practice .a1-game-toggle:hover{background:transparent;text-decoration:underline}
#algebra-1-staar-practice .a1-game-toggle .games-toggle-label{flex-wrap:nowrap;align-items:flex-start;gap:8px}
#algebra-1-staar-practice .a1-game-toggle .a1-letter{flex:0 0 auto;margin-top:2px}
#algebra-1-staar-practice .a1-game.games-collapsible > .games-panel{padding-top:14px}
#algebra-1-staar-practice .a1-game.games-collapsible.is-open{margin-bottom:0}
#algebra-1-staar-practice .a1-letter{display:inline-flex;align-items:center;justify-content:center;min-width:2.4em;padding:3px 8px;border-radius:999px;background:#b3121f;color:#fff;font-size:.85em;font-weight:800;margin-right:4px}
#algebra-1-staar-practice #alg1-step-1 .games-grid,#algebra-1-staar-practice #alg1-step-2 .games-grid{display:flex;flex-direction:column;gap:12px}
/* Step 2 (Nov 15, 2026): table and mapping pictures inside answer choices */
#algebra-1-staar-practice .g-sr-opt-pic svg.a1-graph-s{max-width:100%;height:auto}
/* Nov 15, 2026: Coach Shives' Notes cards (from his hand-written cheat sheet). Help text: always open, never collapsed. */
.a1-notes{display:block;background:#fffdf3;color:#1b1b1b;border:2px solid #1b1b1b;border-left:8px solid #b3121f;border-radius:10px;padding:10px 12px 8px;margin:6px 0 14px;font-size:15.5px;line-height:1.4;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.a1-notes p{margin:0 0 6px;color:#1b1b1b}
.a1-notes-h{font-weight:800;font-size:16.5px}
.a1-notes-tag{display:inline-block;background:#b3121f;color:#fff;font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:5px;margin-right:4px;vertical-align:2px}
.a1-nl{margin:0 0 6px;padding-left:1.2em}
.a1-nl li{margin:2px 0;color:#1b1b1b}
.a1-nkw{columns:2;column-gap:18px;padding-left:1.1em}
.a1-nkw li{break-inside:avoid}
@media (max-width:360px){.a1-nkw{columns:1}}
.a1-nm{font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;font-size:1.08em;white-space:nowrap}
.a1-nbig{font-size:17px}
.a1-nsub{font-size:14px;white-space:normal}
.a1-nlab{font-weight:800;margin:8px 0 4px !important}
.a1-nfs{display:flex;flex-wrap:wrap;gap:6px 12px;margin:2px 0 8px;align-items:flex-end}
.a1-nf{margin:0;display:flex;flex-direction:column;align-items:center;text-align:center;font-size:13.5px;max-width:110px}
.a1-nf figcaption{margin-top:2px;color:#1b1b1b}
.a1-nfig{display:inline-block;vertical-align:middle;background:#fff;border-radius:4px;max-width:100%;height:auto}
.a1-n2{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin-bottom:4px}
.a1-n2 .a1-nf{max-width:none}
.a1-nexs{display:grid;gap:6px;margin:4px 0 6px}
.a1-nex{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:center;background:#fff;border:1px solid #c9c2ae;border-radius:7px;padding:5px 8px}
.a1-nex-n{font-weight:800;color:#b3121f;min-width:7.2em}
.a1-nex .a1-nm{white-space:normal}
.a1-notes-kw{margin-top:0}
.a1-nstack{display:inline-flex;flex-direction:column;vertical-align:middle;border-left:2px solid #1b1b1b;padding-left:6px;line-height:1.3}
.a1-fix{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;line-height:1;margin:0 1px}
.a1-fix-new{font-size:.9em;color:#b3121f;font-weight:700}
.a1-fix s{text-decoration-color:#b3121f;text-decoration-thickness:2px}
/* Nov 16, 2026 (Coach Shives): each Step is a column, its games stacked under it; Step 2 to the right of Step 1 (4 columns once Steps 3 and 4 arrive). Phones: stacked. */
.a1-path{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px 22px;max-width:1040px;margin:-6px auto 22px;text-align:left;font-size:.98rem;line-height:1.35}
.a1-path-h{margin:0 0 6px;font-weight:900;color:#fff;border-bottom:2px solid #b3121f;padding-bottom:4px}
.a1-path ol{list-style:none;margin:0;padding:0}
.a1-path li{margin:0 0 5px}
.a1-path li a{color:#e9eef5;text-decoration:none;font-weight:400;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:.94rem}
.a1-path li a:hover{text-decoration:underline}
.a1-path li b{display:inline-block;min-width:2.1em;color:#ffc233;font-weight:400}
.a1-path-end{grid-column:1/-1;grid-row:2;margin:4px 0 0;text-align:center;font-weight:800}
/* Nov 16, 2026 (Coach): the 4 Steps sit in ONE row that scrolls right. When a Step is open it takes the FULL width under the other Step headers. */
.a1-cols{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:2px 2px 10px;scrollbar-width:thin}
.a1-cols > .alg1-step{flex:0 0 min(86%,340px);scroll-snap-align:start}
.a1-cols:has(> .alg1-step.is-open){flex-wrap:wrap;overflow-x:visible;scroll-snap-type:none}
.a1-cols:has(> .alg1-step.is-open) > .alg1-step:not(.is-open){flex:1 1 150px}
.a1-cols > .alg1-step.is-open{order:9;flex:0 0 100%}
.a1-cols > .alg1-step{margin:0 !important;min-width:0}
#alg1-games .a1-cols + .alg1-step{margin-top:14px}
@media (max-width:899px){.a1-path{grid-auto-flow:row;grid-auto-columns:auto;max-width:520px}.a1-path-end{grid-row:auto}}
/* Nov 16, 2026 notes fixes */
.a1-out{text-decoration:line-through;text-decoration-color:#b3121f;text-decoration-thickness:2px}
.a1-fix-new{color:#b3121f;font-weight:800}
.a1-nbox{display:inline-block;border:2.5px solid #1b1b1b;border-radius:6px;padding:2px 7px;background:#fff}
.a1-vbar{display:inline-block;width:0;align-self:stretch;min-height:1.3em;border-left:2px solid #1b1b1b;margin:0 10px;vertical-align:middle}
.a1-jlt{display:inline-flex;align-items:center;flex-wrap:nowrap}
.a1-eqs{display:inline-grid;grid-template-columns:auto auto;gap:3px 8px;align-items:center;vertical-align:middle}
.a1-eqn{font-size:12px;font-weight:900;color:#fff;background:#b3121f;border-radius:5px;padding:1px 6px;text-align:center}
.a1-eqs-c{display:grid}
.a1-eqs-c .a1-nm{white-space:normal}
.a1-pc{gap:10px 18px}
.a1-pc > div + div{border-left:2px solid #d8d0bb;padding-left:12px}
@media (max-width:420px){.a1-pc{grid-template-columns:1fr}.a1-pc > div + div{border-left:0;padding-left:0;border-top:2px solid #d8d0bb;padding-top:8px}}
.a1-ll{display:inline-block;transform:skewX(-22deg);letter-spacing:2px;font-weight:900}
#algebra-1-staar-practice .a1-enter{margin:8px auto 0;display:flex;min-height:40px;font-size:.95rem}
#algebra-1-staar-practice .g-sr-tbl .a1-new-row td{background:#fff6d6}
#algebra-1-staar-practice .a1-top .btn-outline-light{color:#fff;border-color:#fff;background:transparent}
#algebra-1-staar-practice .a1-top .btn-outline-light:hover{background:#fff;color:#000}
.a1-nf.a1-nf-wide{max-width:190px}

/* Nov 16, 2026: Step 3 / Step 4 (Coach Shives) */
.a1-guess{display:block;margin:12px 0 0;font-size:.9rem}
.a1-guess[aria-pressed="true"]{background:#ffc233;color:#111;border-color:#b07a00}
.a1-guess:disabled{opacity:.55;cursor:not-allowed}
.a1-guess-score{font-weight:800}
.a1-bbsvg{max-width:100%;height:auto}
@media (min-width:900px){.a1-path-col{grid-row:1}}
/* Nov 16, 2026: Masters Level pictures (two tables side by side, the long-division look) and the notes lines Coach called important */
.a1-2tab{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:center}
.a1-tabfig{margin:0;text-align:center}
.a1-tabfig figcaption{font-weight:700;font-size:.9rem;margin-bottom:4px}
svg.a1-ldiv{max-width:100%;height:auto}
.a1-nzero,.a1-nname{font-size:1.02rem}
#alg1-step-master > .games-title,#alg1-step-master .games-toggle-label{letter-spacing:.01em}

/* Watch Coach teach it (Nov 26, 2026): click-to-load youtube-nocookie clip; modal on wide screens, inline on phones */
.a1-start-row .a1v-btn{flex:0 1 auto}
.a1v-slot:empty{display:none}
.a1v-player{background:#fff;border:2px solid #d6e2f3;border-radius:12px;padding:10px;margin:10px 0;box-sizing:border-box;max-width:100%}
.a1v-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.a1v-title{margin:0;font-weight:800;font-size:1rem;color:#1f3f75;min-width:0;overflow-wrap:anywhere}
.a1v-x{flex:0 0 auto;padding:6px 12px;min-height:40px}
.a1v-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.a1v-frame iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.a1v-cap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;margin:8px 0 0;font-size:.9rem;color:#333}
.a1v-cap a{font-weight:700;color:#1f3f75}
.a1v-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483000;background:rgba(10,20,40,.75);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.a1v-modal{width:min(960px,100%,calc((100vh - 150px) * 16 / 9));max-height:100%;overflow:auto}
.a1v-modal .a1v-player{margin:0}
/* Nov 27, 2026 (Coach t680): inequality graph checklist (tap a side to shade) */
.a1-gsteps{list-style:none;counter-reset:gs;margin:4px auto 8px;padding:0;max-width:420px;display:flex;flex-direction:column;gap:4px;text-align:left}
.a1-gsteps li{counter-increment:gs;font-weight:700;font-size:.92rem;color:#5a5a5a;padding:6px 10px 6px 38px;border-radius:10px;background:#f4f1ea;position:relative;line-height:1.3}
.a1-gsteps li::before{content:counter(gs);position:absolute;left:9px;top:50%;transform:translateY(-50%);width:20px;height:20px;border-radius:50%;background:#c9c4ba;color:#fff;font-size:.8rem;display:flex;align-items:center;justify-content:center}
.a1-gsteps li.a1-next{background:#fff4c2;color:#3b2a00;box-shadow:0 0 0 2px #e0a21b inset}
.a1-gsteps li.a1-next::before{background:#e0a21b}
.a1-gsteps li.a1-done{color:#1d6b33;background:#e6f4ea}
.a1-gsteps li.a1-done::before{content:'\2713';background:#2e8b4a}
.a1-gstat.a1-nag{color:#b3261e}
.a1-check.a1-check-wait{opacity:.7}
/* Nov 27, 2026 (Coach t680 / t699u / t700u): 1A mini-lesson 4-up, 4-5 worked examples per method */
.a1l{background:#fffdf5;border:2px solid #e8d9a8;border-radius:14px;padding:10px 14px;margin:10px 0;color:#2b2b2b;text-align:left}
.a1l-sum{font-weight:800;font-size:1.05rem;color:#7a4b00;cursor:pointer}
.a1l-k{margin:8px 0 2px;font-weight:800}
.a1l-steps{margin:0 0 8px 1.2em;padding:0}.a1l-steps li{margin:4px 0;line-height:1.4}
.a1l-vs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0;min-width:0}
@media (max-width:700px){.a1l-vs{grid-template-columns:1fr}}
.a1l-card{border-radius:12px;padding:10px 12px;border:2px solid;min-width:0;overflow-wrap:break-word}
.a1l-bb{background:#fff1f1;border-color:#d9363e}.a1l-jlt{background:#eef5ff;border-color:#2f63c6}
.a1l-yeq{background:#f3fff4;border-color:#2f7d4f}.a1l-sp{background:#fff8eb;border-color:#c47a00}
.a1l-h{margin:0 0 4px;font-weight:900;font-size:1.1rem}.a1l-bb .a1l-h{color:#b3121f}.a1l-jlt .a1l-h{color:#1f4fa8}
.a1l-yeq .a1l-h{color:#1a6b3c}.a1l-sp .a1l-h{color:#8a4b00}
.a1l-say,.a1l-when,.a1l-do{margin:0 0 6px;font-weight:700;line-height:1.35}
.a1l-when{color:#1a1a1a}.a1l-do{font-weight:600}
.a1l-ex{margin:0;padding-left:1.1em}.a1l-ex li{margin:2px 0;font-size:1.05rem}
.a1l-exk{margin:8px 0 4px;font-weight:900;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;opacity:.85}
.a1l-exlist{margin:0;padding:0;list-style:none}
.a1l-exi{margin:0 0 5px;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.7)}
.a1l-exi:last-child{margin-bottom:0}
.a1l-exbox{margin:6px 0 0;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.7)}
.a1l-exeq{margin:0;font-size:1.02rem;font-weight:800;line-height:1.25}
.a1l-work{margin:2px 0 0;font-weight:600;line-height:1.3;font-size:.9rem}
@media (max-width:700px){.a1l-when,.a1l-do{font-size:.95rem}.a1l-work{font-size:.88rem}.a1l-exeq{font-size:1rem}}
.a1l-tip{margin:6px 0 2px;font-weight:700;background:#fff4c2;border-radius:10px;padding:8px 10px}
/* 1B video: big timestamps */
.a1v-bt{display:inline-block;margin-left:4px;padding:2px 8px;border-radius:999px;background:#ffd23f;color:#3b2a00;font-weight:900}
.a1v-when{margin:0 0 8px;padding:10px 12px;border-radius:12px;background:#ffd23f;color:#2b1d00;font-size:clamp(1.15rem,3.6vw,1.6rem);font-weight:800;line-height:1.25;text-align:center}
.a1v-when strong{font-weight:900;font-size:1.15em;color:#b3121f}
.a1v-when-l{font-size:.7em;font-weight:700}
.a1v-parts{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 8px}
.a1v-part{min-height:40px;padding:6px 12px;font-size:.9rem}
.a1v-part[aria-pressed="true"]{background:#1f3f75;color:#fff;border-color:#1f3f75}
.a1-bonus-score{font-weight:700}
/* Nov 29, 2026 (Coach t701): 1A 4-up rework: lead line, Split It steps + callout, y = step-by-step, highlight */
.a1l-lead{margin:0 0 4px;font-weight:900;line-height:1.3}
.a1l-plain{margin:0 0 6px;font-weight:600;line-height:1.35}
.a1l-bul{margin:0 0 6px 1.1em;padding:0;font-weight:700;line-height:1.35}
.a1l-ol{margin:2px 0 8px 1.3em;padding:0;font-weight:600;line-height:1.35}.a1l-ol li{margin:2px 0}
.a1l-callout{margin:6px 0 8px;padding:8px 10px;border:3px solid #b3121f;border-radius:10px;background:#fff3c4;color:#3b1a00;font-weight:900;line-height:1.35}
.a1l-exnote{margin:6px 0;padding:4px 2px;font-weight:800;line-height:1.35}
.a1l-steps2{margin:4px 0 0 1.25em;padding:0;font-size:.9rem;font-weight:600;line-height:1.35}.a1l-steps2 li{margin:3px 0}
.a1l-hl{background:#ffe066;color:inherit;padding:0 3px;border-radius:4px;font-weight:800}
.a1l-exi-hl{outline:2px solid #d9363e}
/* Nov 29, 2026 (Coach t701): 3A columns as tables */
.a1-ctab{border-collapse:collapse;margin:2px auto;font-weight:700;font-size:.95rem;background:#fff}
.a1-ctab th,.a1-ctab td{border:2px solid #1f3f75;padding:3px 8px;text-align:center;min-width:3.2em}
.a1-ctab th{background:#1f3f75;color:#fff;font-weight:800}
.g-sr-opt-pic:has(.a1-ctab) .g-sr-ot{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g-sr-opt-pic:has(.a1-ctab){position:relative}
/* Dec 1, 2026 (Coach t751u/t752u): BOSS STAGES. Cartoon bosses, each with its own display font (self-hosted, SIL OFL). The home hero font is not touched. */
@font-face{font-family:"TYF Boss1";src:url("fonts/Bungee-Boss.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"TYF Boss2";src:url("fonts/Bangers-Boss.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"TYF Boss3";src:url("fonts/LuckiestGuy-Boss.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"TYF Boss4";src:url("fonts/PressStart2P-Boss.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
.a1b-s1{--bc:#2fb344;--bd:#145c20;--bl:#e3f9dc;--bf:"TYF Boss1",Impact,"Arial Black",sans-serif;--bs:1}
.a1b-s2{--bc:#8a4bf0;--bd:#4b1fa0;--bl:#efe6ff;--bf:"TYF Boss2",Impact,"Arial Black",sans-serif;--bs:1.12}
.a1b-s3{--bc:#5b616c;--bd:#1d1f24;--bl:#eceef1;--bf:"TYF Boss3",Impact,"Arial Black",sans-serif;--bs:1.05}
.a1b-s4{--bc:#3657e6;--bd:#1b2f8f;--bl:#e6ebff;--bf:"TYF Boss4","Courier New",monospace;--bs:.62}
.game.a1-boss-game{border:3px solid #111;background:linear-gradient(180deg,#fff 0,#fff8e1 100%)}
.a1-boss-game .a1-letter{background:#b3121f;color:#fff}
.a1b-card{display:flex;align-items:center;gap:14px;margin:4px 0 10px;padding:10px 12px;border:3px solid var(--bd);border-radius:16px;background:var(--bl)}
.a1b-portrait{flex:0 0 auto;width:110px;height:110px}.a1b-portrait svg,.a1b-boss svg{width:100%;height:100%;display:block}
.a1b-card-txt{min-width:0}
.a1b-kicker{margin:0;font:900 .8rem/1.2 "TYF Games",system-ui,sans-serif;letter-spacing:.12em;color:#b3121f}
.a1b-name{margin:2px 0;font-family:var(--bf);font-size:calc(1.7rem*var(--bs));line-height:1.1;color:var(--bd);overflow-wrap:anywhere}
.a1b-title{margin:0;font-weight:800;color:#333}
.a1b-rules{margin:6px 0 10px 1.2em;padding:0}.a1b-rules li{margin:3px 0}
.a1b-rec{display:flex;align-items:center;gap:10px;margin:6px 0 10px;padding:8px 10px;border:2px dashed #a5770a;border-radius:12px;background:#fffbe6}
.a1b-rec-t{margin:0;font-weight:800}
.a1b-badge-s{width:46px;flex:0 0 auto}.a1b-badge-s svg{width:100%;height:auto;display:block}
.a1b-fight{font-family:var(--bf,inherit);letter-spacing:.04em}
.a1b{position:relative;overflow:hidden;border:3px solid var(--bd);border-radius:16px;background:var(--bl);padding:8px;min-height:320px}
.a1b-hud{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 8px;border-radius:12px;background:#111;color:#fff}
.a1b-hud-boss{flex:1 1 220px;display:flex;align-items:center;gap:8px;min-width:0}
.a1b-nm{font-family:var(--bf);font-size:calc(1rem*var(--bs));letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46%}
.a1b-hp{flex:1 1 auto;height:16px;border:2px solid #fff;border-radius:9px;background:#3a0b0b;overflow:hidden;min-width:80px}
.a1b-hp-fill{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ff3b3b,#ffb03b);transition:width .45s cubic-bezier(.3,1.6,.5,1)}
.a1b-hp.is-low .a1b-hp-fill{background:linear-gradient(90deg,#b3121f,#ff3b3b);animation:a1bPulse 1s infinite}
.a1b-hp-n{font:900 .85rem/1 "TYF Games",system-ui,sans-serif;white-space:nowrap}
.a1b-hud-you{display:flex;align-items:center;gap:6px}
.a1b-you{font:900 .8rem/1 "TYF Games",system-ui,sans-serif;letter-spacing:.1em}
.a1b-hearts{display:flex;gap:2px}.a1b-heart{font-size:1.5rem;line-height:1;color:#ff3b5c;text-shadow:0 0 6px rgba(255,59,92,.6);transition:transform .3s}
.a1b-heart.is-lost{color:#555;text-shadow:none;animation:a1bBreak .5s}
.a1b-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-height:150px;margin:6px 0;border-radius:12px;
  background:radial-gradient(ellipse at 50% 100%,rgba(0,0,0,.18) 0,transparent 55%),repeating-linear-gradient(45deg,rgba(255,255,255,.35) 0 10px,transparent 10px 20px)}
.a1b-boss{width:150px;height:150px;transform-origin:50% 90%;animation:a1bIdle 2.4s ease-in-out infinite}
.a1b.is-p2 .a1b-boss{filter:drop-shadow(0 0 10px #ff2a2a) drop-shadow(0 0 4px #ff8a00) saturate(1.4);animation-duration:1.1s}
.a1b.is-p2 .a1b-boss .a1b-eyes circle:nth-child(n+3),.a1b.is-p2 .a1b-boss .a1b-eyes ellipse+circle{fill:#d00}
.a1b.is-p2 .a1b-stage{background:radial-gradient(ellipse at 50% 70%,rgba(255,60,0,.35) 0,transparent 60%),repeating-linear-gradient(45deg,rgba(255,255,255,.25) 0 10px,transparent 10px 20px)}
.a1b-say{position:absolute;right:8px;top:8px;max-width:45%;margin:0;padding:0;font-family:var(--bf);font-size:calc(.95rem*var(--bs));line-height:1.25;color:var(--bd)}
.a1b-say:not(:empty){padding:6px 9px;background:#fff;border:2px solid #111;border-radius:12px}
.a1b-dmg{position:absolute;left:50%;top:30%;font:900 2.2rem/1 "TYF Games",Impact,sans-serif;color:#ff2a2a;-webkit-text-stroke:2px #fff;opacity:0;pointer-events:none}
.a1b-dmg.is-on{animation:a1bDmg .8s ease-out}
.a1b-boss.is-hit{animation:a1bHit .6s}
.a1b-boss.is-atk{animation:a1bAtk .7s}
.a1b-boss.is-roar{animation:a1bRoar 1.2s}
.a1b-boss.is-ko{animation:a1bKo 1.2s forwards}
.a1b.is-hurt{animation:a1bShake .5s}
.a1b-flash{position:absolute;inset:0;pointer-events:none;opacity:0}
.a1b-flash.on-hit{background:#fff;animation:a1bFlash .35s}
.a1b-flash.on-hurt{background:#ff1a1a;animation:a1bFlash .45s}
.a1b-bar{margin:4px 0}
.a1b-box{background:#fff;border:2px solid #111;border-radius:12px;padding:10px}
.a1b-kind{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--bd);color:#fff}
.a1b-kind.is-m{background:#111;color:#ffd23f}
.a1b-why{margin:4px 0 6px 1.1em;padding:0}.a1b-why li{margin:2px 0}
.a1b-banner{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;text-align:center;background:rgba(10,10,20,.88);color:#fff}
.a1b-ban-kick{margin:0;font:900 1rem/1.2 "TYF Games",system-ui,sans-serif;letter-spacing:.3em;color:#ffd23f;animation:a1bZoom .5s both}
.a1b-ban-big{margin:0;font-family:var(--bf);font-size:calc(2.6rem*var(--bs));line-height:1.05;color:#fff;text-shadow:0 4px 0 var(--bd),0 0 18px var(--bc);animation:a1bZoom .6s .25s both;overflow-wrap:anywhere}
.a1b-ban-fight{margin:6px 0 0;font-family:var(--bf);font-size:calc(2rem*var(--bs));color:#ff3b3b;animation:a1bZoom .45s 1.05s both}
.a1b-ban-sm{margin:0;font-weight:800;max-width:30em;animation:a1bZoom .5s .4s both}
.a1b-banner-p2{background:rgba(120,0,0,.86)}.a1b-banner-p2 .a1b-ban-big{color:#ffd23f;animation:a1bZoom .5s both,a1bShake .5s .5s}
.a1b-end{margin:4px 0 10px;padding:16px 12px;text-align:center;border:3px solid var(--bd);border-radius:16px;background:var(--bl)}
.a1b-win{background:radial-gradient(circle at 50% 30%,#fff7c2 0,var(--bl) 70%)}
.a1b-badge{width:120px;margin:0 auto 6px;animation:a1bBadge .9s cubic-bezier(.3,1.6,.5,1) both}.a1b-badge svg{width:100%;height:auto;display:block}
.a1b-end-big{margin:4px 0;font-family:var(--bf);font-size:calc(2.2rem*var(--bs));line-height:1.1;color:var(--bd)}
.a1b-lose .a1b-end-big{color:#b3121f}
.a1b-end-sub{margin:4px 0;font-weight:800;font-size:1.05rem}
.a1b-end-saved{margin:4px 0;font-weight:900;color:#1d7a35}
.a1b-gloat{margin:0 auto;width:120px;height:120px;animation:a1bIdle 1.2s ease-in-out infinite}
.a1b-rpic{max-width:260px}
.a1b-end-btns{justify-content:center}
@keyframes a1bIdle{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.02,.98)}}
@keyframes a1bHit{0%{transform:translateX(0)}15%{transform:translateX(-14px) rotate(-6deg);filter:brightness(2.2)}35%{transform:translateX(12px) rotate(5deg)}55%{transform:translateX(-8px)}75%{transform:translateX(5px)}100%{transform:none}}
@keyframes a1bAtk{0%{transform:none}30%{transform:translateY(-10px) scale(.95)}55%{transform:translateY(24px) scale(1.35)}100%{transform:none}}
/* PREVIEW t802u: Quest mode only - the boss throws a real punch (punch art swapped in by alg1.js) */
@keyframes a1bPunch{0%{transform:none}30%{transform:translateX(16px) scale(.95) rotate(3deg)}55%{transform:translateX(-28px) translateY(8px) scale(1.2) rotate(-3deg)}100%{transform:none}}
.a1b-boss.is-atk.is-punch{animation:a1bPunch .7s}
@keyframes a1bRoar{0%,100%{transform:none}20%,60%{transform:scale(1.18) rotate(-4deg)}40%,80%{transform:scale(1.18) rotate(4deg)}}
@keyframes a1bKo{0%{transform:none;opacity:1}30%{transform:rotate(-15deg) scale(1.1);filter:brightness(2.5)}100%{transform:translateY(60px) rotate(90deg) scale(.6);opacity:0}}
@keyframes a1bShake{0%,100%{transform:none}20%{transform:translate(-6px,2px)}40%{transform:translate(6px,-2px)}60%{transform:translate(-4px,1px)}80%{transform:translate(3px,0)}}
@keyframes a1bFlash{0%{opacity:.75}100%{opacity:0}}
@keyframes a1bDmg{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}20%{opacity:1;transform:translate(-50%,0) scale(1.2)}100%{opacity:0;transform:translate(-50%,-40px) scale(1)}}
@keyframes a1bBreak{0%{transform:scale(1)}40%{transform:scale(1.6) rotate(-15deg);color:#ff3b5c}100%{transform:scale(1)}}
@keyframes a1bPulse{50%{opacity:.6}}
@keyframes a1bZoom{0%{opacity:0;transform:scale(2.4)}100%{opacity:1;transform:scale(1)}}
@keyframes a1bBadge{0%{opacity:0;transform:scale(.2) rotate(-40deg)}100%{opacity:1;transform:none}}
@media (max-width:560px){.a1b{padding:6px}.a1b-stage{min-height:108px}.a1b-boss{width:104px;height:104px}.a1b-portrait{width:84px;height:84px}
  .a1b-name{font-size:calc(1.35rem*var(--bs))}.a1b-ban-big{font-size:calc(2rem*var(--bs))}.a1b-end-big{font-size:calc(1.8rem*var(--bs))}.a1b-say{max-width:48%;font-size:calc(.85rem*var(--bs))}.a1b-nm{max-width:40%}}
@media (prefers-reduced-motion:reduce){.a1b *,.a1b,.a1b-end *{animation:none!important;transition:none!important}.a1b-dmg.is-on{opacity:1}}
.games-grid>.a1-boss-game{grid-column:1/-1}
@media (max-width:560px){.a1b-hud-boss{flex-wrap:wrap;flex-basis:100%}.a1b-nm{flex:1 0 100%;max-width:100%}}
/* Dec 1, 2026 (Coach t753u): STAAR 2.0 in the bosses + the FINAL BOSS (The Examinator) */
@font-face{font-family:"TYF Boss5";src:url("fonts/BlackOpsOne-Boss.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
.a1b-s5{--bc:#ffd23f;--bd:#111;--bl:#fff3d1;--bf:"TYF Boss5",Impact,"Arial Black",sans-serif;--bs:1.05}
.a1-boss-game.a1-final-game{border-color:#b3121f;background:linear-gradient(180deg,#fff 0,#ffe9a8 100%);box-shadow:0 0 0 3px #ffd23f inset}
.a1-final-game .a1-letter{background:#111;color:#ffd23f}
.a1b-s5.a1b-card{background:linear-gradient(135deg,#111 0,#2a0a10 100%);border-color:#ffd23f}.a1b-s5.a1b-card .a1b-name{color:#ffd23f;text-shadow:0 3px 0 #b3121f}.a1b-s5.a1b-card .a1b-title{color:#fff}.a1b-s5.a1b-card .a1b-kicker{color:#ff6b6b}
.a1b-card.is-locked .a1b-portrait{filter:grayscale(1) brightness(.55)}
.a1b-lock{margin:6px 0 10px;padding:12px;border:3px dashed #111;border-radius:14px;background:#f3f1ec}
.a1b-lock-h{margin:0 0 4px;font-family:var(--bf);font-size:1.35rem;color:#111}
.a1b-lock-sub{margin:0 0 6px;font-weight:700}
.a1b-lock-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.a1b-lock-list li{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:800}
.a1b-lock-ic{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;border-radius:50%;background:#b3121f;color:#fff;font-size:.85rem}
.a1b-lock-list li.is-done .a1b-lock-ic{background:#1d7a35}.a1b-lock-st{color:#555;font-weight:700}
.a1b-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 6px}.a1b-chips .g-sr-kind{margin:0}
.a1b-v2{display:inline-block;padding:2px 10px;border-radius:999px;background:#ffd23f;color:#111;border:2px solid #111;font:900 .8rem/1.3 "TYF Games",system-ui,sans-serif;letter-spacing:.02em}
.a1b-box select.a1b-sel-ok{border-color:#1d7a35;background:#e6f6ea}.a1b-box select.a1b-sel-bad{border-color:#b3121f;background:#fde8ea}
.a1b-box .a1-board{max-width:340px;margin:6px auto;touch-action:manipulation}
.a1b.is-p3 .a1b-boss{filter:drop-shadow(0 0 14px #ffd23f) drop-shadow(0 0 6px #ff2a2a) saturate(1.6);animation-duration:.8s}
.a1b.is-p3 .a1b-stage{background:radial-gradient(ellipse at 50% 70%,rgba(255,210,63,.45) 0,transparent 60%),repeating-linear-gradient(-45deg,rgba(0,0,0,.18) 0 10px,transparent 10px 20px)}
.a1b-banner-p3{background:rgba(10,10,10,.9)}.a1b-banner-p3 .a1b-ban-big{color:#ff3b3b;text-shadow:0 4px 0 #ffd23f,0 0 22px #ff2a2a}
.a1b-end-crown{margin:2px 0 6px;font-family:var(--bf);font-size:1.2rem;letter-spacing:.08em;color:#b3121f}
.a1b-s5.a1b-win{background:radial-gradient(circle at 50% 25%,#fff7c2 0,#ffd23f 45%,#fff3d1 80%)}
/* epic intro */
.a1b-epic{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;text-align:center;background:#07070c;color:#fff;cursor:pointer;overflow:hidden}
.a1b-epic>*{margin:0;display:none}
.a1b-ep-warn{font:900 1.9rem/1 "TYF Boss5",Impact,sans-serif;color:#ff3b3b;letter-spacing:.12em;animation:a1bBlink .45s steps(2) infinite}
.a1b-ep-sub{font:900 1rem/1.2 "TYF Games",system-ui,sans-serif;letter-spacing:.3em;color:#ffd23f}
.a1b-ep-row{gap:8px;justify-content:center;flex-wrap:nowrap}
.a1b-ep-mini{width:64px;height:64px;animation:a1bZoom .45s both}.a1b-ep-mini svg{width:100%;height:100%;display:block}
.a1b-ep-mini:nth-child(2){animation-delay:.15s}.a1b-ep-mini:nth-child(3){animation-delay:.3s}.a1b-ep-mini:nth-child(4){animation-delay:.45s}
.a1b-ep-cap{font-weight:800;max-width:30em;color:#ddd}
.a1b-ep-boss{width:170px;height:170px;animation:a1bRise .9s cubic-bezier(.2,1.4,.5,1) both}.a1b-ep-boss svg{width:100%;height:100%;display:block}
.a1b-ep-name{font:400 2.5rem/1.05 "TYF Boss5",Impact,sans-serif;color:#ffd23f;text-shadow:0 4px 0 #b3121f,0 0 24px #ff6a00;animation:a1bZoom .5s both;overflow-wrap:anywhere}
.a1b-ep-title{font-weight:800;color:#fff;letter-spacing:.06em}
.a1b-ep-fight{font:400 2.4rem/1 "TYF Boss5",Impact,sans-serif;color:#ff3b3b;animation:a1bZoom .45s both}
.a1b-ep-skip{position:absolute;right:10px;bottom:8px;font-size:.8rem;color:#aaa}
.a1b-epic.st-1 .a1b-ep-warn,.a1b-epic.st-1 .a1b-ep-sub,.a1b-epic .a1b-ep-skip{display:block}
.a1b-epic.st-2 .a1b-ep-warn{display:none}.a1b-epic.st-2 .a1b-ep-row{display:flex}.a1b-epic.st-2 .a1b-ep-cap{display:block}
.a1b-epic.st-3 .a1b-ep-sub,.a1b-epic.st-3 .a1b-ep-cap{display:none}.a1b-epic.st-3 .a1b-ep-row{display:flex;opacity:.35;filter:grayscale(1)}.a1b-epic.st-3 .a1b-ep-boss{display:block}
.a1b-epic.st-4 .a1b-ep-row{display:none}.a1b-epic.st-4 .a1b-ep-name,.a1b-epic.st-4 .a1b-ep-title{display:block}.a1b-epic.st-4{animation:a1bShake .5s}
.a1b-epic.st-5 .a1b-ep-fight{display:block}
@keyframes a1bBlink{50%{opacity:.25}}
@keyframes a1bRise{0%{opacity:0;transform:translateY(80px) scale(.6)}100%{opacity:1;transform:none}}
.a1b-s5 .a1b{min-height:420px}
.a1b.a1b-s5{min-height:420px}
@media (max-width:560px){.a1b-ep-mini{width:48px;height:48px}.a1b-ep-boss{width:128px;height:128px}.a1b-ep-name{font-size:1.9rem}.a1b-ep-warn{font-size:1.5rem}.a1b-ep-fight{font-size:2rem}}
@media (prefers-reduced-motion:reduce){.a1b-epic,.a1b-epic *{animation:none!important}}
/* Dec 1, 2026 (Coach t754u): a locked boss in the game list = a dark '?' silhouette with no name */
.a1b-card.is-mystery{background:linear-gradient(135deg,#1b1722 0,#2b2733 100%);border-color:#4a4552;border-style:dashed}
.a1b-card.is-mystery .a1b-name{color:#cfc8dc;font-family:"TYF Games",Impact,sans-serif;letter-spacing:.2em}.a1b-card.is-mystery .a1b-title{color:#bdb6c8;font-style:italic}.a1b-card.is-mystery .a1b-kicker{color:#ff8a8a}
.a1b-mys{position:relative}.a1b-mys-art{width:100%;height:100%;filter:brightness(0) drop-shadow(0 0 6px rgba(160,140,255,.55))}.a1b-mys-art svg{width:100%;height:100%;display:block}
.a1b-mys-q{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:900 3rem/1 "Arial Black",Arial,sans-serif;color:#fff;text-shadow:0 0 10px #8a6bff,0 2px 0 #000}
.a1b-locked-root .a1b-lock{border-color:#4a4552}

/* Dec 1, 2026 (t754u): a locked boss hides its notes (they name the boss) */
.a1-notes[hidden]{display:none!important}

/* Dec 2, 2026 (Coach t757u/t758u): the student's avatar in the ring (assets/boss-avatar.js). Back to the viewer in the foreground, boss ahead.
   Sits in the stage ABOVE the question (never over the answer controls); tucked smaller on phones. */
.a1b.has-av .a1b-stage{min-height:244px;align-items:flex-start;justify-content:center;padding-top:4px;overflow:hidden}
.a1b.has-av .a1b-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;background:radial-gradient(ellipse at 50% 100%,rgba(60,30,10,.28) 0,rgba(60,30,10,.1) 45%,transparent 70%);pointer-events:none}
.a1b.has-av .a1b-boss{width:164px;height:164px;position:relative;z-index:1}
.a1b.has-av .a1b-stage .bav{position:absolute;left:50%;bottom:0;width:108px;height:146px;margin-left:-54px;z-index:2}
.a1b.has-av .a1b-say{z-index:3}
.a1b.has-av .a1b-dmg{z-index:3}
.a1b-end .bav-end{width:128px;height:173px;margin:0 auto 4px}
@media (max-width:560px){
  .a1b.has-av .a1b-stage{min-height:160px}
  .a1b.has-av .a1b-boss{width:92px;height:92px}
  .a1b.has-av .a1b-stage .bav{width:78px;height:105px;margin-left:-39px}
  .a1b-end .bav-end{width:96px;height:130px}
}
@media (prefers-reduced-motion:reduce){.bav *,.bav{animation:none!important;transition:none!important}}
.a1b-stage .bav.is-win,.a1b-stage .bav.is-lose{transform:scale(1.12);transform-origin:50% 100%}
@media (max-width:560px){.a1b-stage .bav.is-win,.a1b-stage .bav.is-lose{transform:scale(1.3)}}
.a1b.av-lose .a1b-say{opacity:0!important;visibility:hidden}

/* ===== Dec 2, 2026 (Coach approved t775u): anime action look. Original characters only. Every effect is under 0.5s,
   never blocks a tap (pointer-events:none), and is switched off for prefers-reduced-motion (static fallbacks). ===== */
/* --- the fighter: bold ink outline + power aura in the student's aura color --- */
.bav{--bav-aura:#d9363e;isolation:isolate}
.bav>svg{filter:drop-shadow(1.4px 0 0 #111) drop-shadow(-1.4px 0 0 #111) drop-shadow(0 1.4px 0 #111) drop-shadow(0 -1.4px 0 #111)}
.bav-aura{position:absolute;left:4%;right:4%;top:6%;bottom:-3%;border-radius:48% 48% 40% 40%;z-index:-1;pointer-events:none;opacity:.85;
  background:radial-gradient(ellipse at 50% 62%,var(--bav-aura) 0,transparent 68%);filter:blur(7px);animation:bavAura 1.4s ease-in-out infinite alternate}
@keyframes bavAura{from{transform:scale(.94);opacity:.6}to{transform:scale(1.06);opacity:.9}}
.bav-speed,.bav-impact{position:absolute;pointer-events:none;opacity:0;z-index:3}
.bav-speed{left:-10%;right:-10%;bottom:55%;height:85%;background:repeating-linear-gradient(90deg,transparent 0 7px,rgba(255,255,255,.95) 7px 9px,transparent 9px 15px,rgba(17,17,17,.55) 15px 16px,transparent 16px 23px);
  -webkit-mask:linear-gradient(to top,#000 0,transparent 95%);mask:linear-gradient(to top,#000 0,transparent 95%);transform-origin:50% 100%}
.bav-impact{top:-14%;left:12%;width:48%;aspect-ratio:1;background:#fff;clip-path:polygon(50.0% 0.0%,54.3% 28.4%,69.1% 3.8%,66.7% 25.1%,85.4% 14.6%,68.3% 37.8%,96.2% 30.9%,79.4% 44.1%,100.0% 50.0%,71.6% 54.3%,96.2% 69.1%,74.9% 66.7%,85.4% 85.4%,62.2% 68.3%,69.1% 96.2%,55.9% 79.4%,50.0% 100.0%,45.7% 71.6%,30.9% 96.2%,33.3% 74.9%,14.6% 85.4%,31.7% 62.2%,3.8% 69.1%,20.6% 55.9%,0.0% 50.0%,28.4% 45.7%,3.8% 30.9%,25.1% 33.3%,14.6% 14.6%,37.8% 31.7%,30.9% 3.8%,44.1% 20.6%);box-shadow:none;filter:drop-shadow(0 0 4px var(--bav-aura)) drop-shadow(0 0 2px #111)}
.bav[data-side="R"] .bav-impact{left:auto;right:12%}
.bav.is-punch .bav-speed{animation:bavSpeed .36s ease-out}
.bav.is-punch .bav-impact{animation:bavImpact .32s ease-out}
.bav.is-flare .bav-aura,.bav.is-win .bav-aura{animation:bavFlare .45s ease-out,bavAura 1.4s .45s ease-in-out infinite alternate}
.bav.is-lose .bav-aura{background:radial-gradient(ellipse at 50% 62%,#8a8f98 0,transparent 68%);animation:bavFlare .45s ease-out}
.bav.is-hurt .bav-aura{background:radial-gradient(ellipse at 50% 62%,#ff2a2a 0,transparent 68%)}
@keyframes bavSpeed{0%{opacity:0;transform:scaleY(.4)}25%{opacity:1;transform:scaleY(1.05)}100%{opacity:0;transform:scaleY(1.2)}}
@keyframes bavImpact{0%{opacity:0;transform:scale(.2) rotate(0)}35%{opacity:1;transform:scale(1.15) rotate(12deg)}100%{opacity:0;transform:scale(1.4) rotate(20deg)}}
@keyframes bavFlare{0%{transform:scale(1);opacity:.9}40%{transform:scale(1.7);opacity:1;filter:blur(3px)}100%{transform:scale(1.05);opacity:.85}}

/* --- boss ring: biome arena, boss about 2.7x the fighter, towering behind --- */
.a1b .a1b-ring{min-height:352px;align-items:flex-end;justify-content:center;padding:0;overflow:hidden;background:#33302c;border:2px solid #111}
.a1b .a1b-ring .a1b-arena{position:absolute;inset:0;z-index:0;background:#5b8a3a center 64%/cover no-repeat}
.a1b-s1 .a1b-ring .a1b-arena{background-image:url(/assets/a1-quest/arena-meadow.webp)}
.a1b-s2 .a1b-ring .a1b-arena{background-image:url(/assets/a1-quest/arena-water.webp)}
.a1b-s3 .a1b-ring .a1b-arena{background-image:url(/assets/a1-quest/arena-snow.webp)}
.a1b-s4 .a1b-ring .a1b-arena{background-image:url(/assets/a1-quest/arena-canyon.webp)}
.a1b-s5 .a1b-ring .a1b-arena{background-image:url(/assets/a1-quest/arena-mountain.webp)}
.a1b .a1b-ring .a1b-arena::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 55%,rgba(0,0,0,.28) 100%)}
.a1b.is-p2 .a1b-ring{background:#33302c}
.a1b.is-p2 .a1b-ring .a1b-arena::after{background:radial-gradient(ellipse at 58% 55%,rgba(255,60,0,.42) 0,rgba(120,0,0,.25) 60%,rgba(0,0,0,.35) 100%)}
.a1b.is-p3 .a1b-ring .a1b-arena{filter:saturate(1.3) hue-rotate(-12deg) brightness(.85)}
.a1b .a1b-ring .a1b-boss,.a1b.has-av .a1b-ring .a1b-boss{width:344px;height:344px;margin:0 0 0 100px;position:relative;z-index:1;filter:drop-shadow(0 6px 6px rgba(0,0,0,.35))}
.a1b.is-p2 .a1b-ring .a1b-boss{filter:drop-shadow(0 0 12px #ff2a2a) drop-shadow(0 0 4px #ff8a00) saturate(1.3)}
.a1b.has-av .a1b-ring .bav{width:96px;height:130px;left:50%;margin-left:-150px;bottom:2px;z-index:2}
.a1b .a1b-ring .a1b-say{z-index:4;background:#fff;color:#111}
.a1b .a1b-ring .a1b-say:empty{background:none}
.a1b .a1b-ring .a1b-dmg{left:62%;z-index:4}
.a1b-img .a1b-eyes{opacity:0;transition:opacity .2s}
.a1b.is-p2 .a1b-boss .a1b-img .a1b-eyes{opacity:1}
.a1b.is-p2 .a1b-boss .a1b-img .a1b-eyes circle{fill:#ff3b1c;filter:drop-shadow(0 0 2px #ffde59) drop-shadow(0 0 4px #ff2a00)}
@media (max-width:560px){
  .a1b .a1b-ring{min-height:262px}
  .a1b .a1b-ring .a1b-boss,.a1b.has-av .a1b-ring .a1b-boss{width:252px;height:252px;margin-left:72px}
  .a1b.has-av .a1b-ring .bav{width:70px;height:95px;margin-left:-112px}
}
/* hit / hurt / KO frames: speed-line burst + impact star (never covers the answers: it lives inside the ring) */
.a1b-fx{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;--fx-x:62%;--fx-y:42%;--fx-c:rgba(255,255,255,.95)}
.a1b-fx-lines{position:absolute;inset:0;opacity:0;background:repeating-conic-gradient(from 3deg at var(--fx-x) var(--fx-y),var(--fx-c) 0 1.4deg,transparent 1.4deg 9deg);
  -webkit-mask:radial-gradient(circle at var(--fx-x) var(--fx-y),transparent 0 70px,#000 190px);mask:radial-gradient(circle at var(--fx-x) var(--fx-y),transparent 0 70px,#000 190px)}
.a1b-fx-star{position:absolute;left:var(--fx-x);top:var(--fx-y);width:130px;height:130px;margin:-65px 0 0 -65px;opacity:0;background:#fff;clip-path:polygon(50.0% 0.0%,54.3% 28.4%,69.1% 3.8%,66.7% 25.1%,85.4% 14.6%,68.3% 37.8%,96.2% 30.9%,79.4% 44.1%,100.0% 50.0%,71.6% 54.3%,96.2% 69.1%,74.9% 66.7%,85.4% 85.4%,62.2% 68.3%,69.1% 96.2%,55.9% 79.4%,50.0% 100.0%,45.7% 71.6%,30.9% 96.2%,33.3% 74.9%,14.6% 85.4%,31.7% 62.2%,3.8% 69.1%,20.6% 55.9%,0.0% 50.0%,28.4% 45.7%,3.8% 30.9%,25.1% 33.3%,14.6% 14.6%,37.8% 31.7%,30.9% 3.8%,44.1% 20.6%);filter:drop-shadow(0 0 6px #ffd23f)}
.a1b-fx.is-hit .a1b-fx-lines{animation:a1fxLines .44s ease-out}
.a1b-fx.is-hit .a1b-fx-star{animation:a1fxStar .36s ease-out}
.a1b-fx.is-hurt{--fx-x:36%;--fx-y:74%;--fx-c:rgba(255,40,40,.85)}
.a1b-fx.is-hurt .a1b-fx-lines{animation:a1fxLines .44s ease-out}
.a1b-fx.is-hurt .a1b-fx-star{background:#ff3b1c;animation:a1fxStar .36s ease-out}
.a1b-fx.is-ko{--fx-y:46%;background:radial-gradient(circle at 62% 46%,rgba(255,255,255,.95) 0,rgba(255,240,170,.6) 40%,transparent 75%);animation:a1fxKo .48s ease-out}
.a1b-fx.is-ko .a1b-fx-lines{animation:a1fxLines .48s ease-out}
.a1b-fx.is-ko .a1b-fx-star{width:210px;height:210px;margin:-105px 0 0 -105px;animation:a1fxStar .46s ease-out}
@keyframes a1fxLines{0%{opacity:0;transform:scale(1.25)}20%{opacity:1}100%{opacity:0;transform:scale(1)}}
@keyframes a1fxStar{0%{opacity:0;transform:scale(.2) rotate(-10deg)}30%{opacity:1;transform:scale(1.1) rotate(6deg)}100%{opacity:0;transform:scale(1.3) rotate(14deg)}}
@keyframes a1fxKo{0%{opacity:0}15%{opacity:1}100%{opacity:0}}
.a1b-boss.is-ko{animation-duration:.48s}

/* --- Quest strip: fighter, minions, hearts (sits ABOVE the question, never over answer controls) --- */
.a1q-strip{position:relative;height:110px;margin:6px 0 8px;border:2px solid #111;border-radius:12px;overflow:hidden;background:#9cc66a;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.a1q-bg{position:absolute;inset:0;background:center 70%/cover no-repeat}
.a1q-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,255,255,0) 50%,rgba(0,0,0,.22) 100%)}
.a1q-lane{position:absolute;left:0;right:0;bottom:3px;height:88px}
.a1q-mob{position:absolute;bottom:0;width:var(--a1q-mw,44px);height:var(--a1q-mw,44px);transition:left .3s ease-out}
.a1q-mob img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(1px 0 0 #111) drop-shadow(-1px 0 0 #111) drop-shadow(0 1px 0 #111) drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.a1q-penguin img{transform:translateY(8%)}
.a1q-pow{position:absolute;left:-30%;top:-30%;width:160%;height:160%;opacity:0;background:#fff;clip-path:polygon(50.0% 0.0%,54.3% 28.4%,69.1% 3.8%,66.7% 25.1%,85.4% 14.6%,68.3% 37.8%,96.2% 30.9%,79.4% 44.1%,100.0% 50.0%,71.6% 54.3%,96.2% 69.1%,74.9% 66.7%,85.4% 85.4%,62.2% 68.3%,69.1% 96.2%,55.9% 79.4%,50.0% 100.0%,45.7% 71.6%,30.9% 96.2%,33.3% 74.9%,14.6% 85.4%,31.7% 62.2%,3.8% 69.1%,20.6% 55.9%,0.0% 50.0%,28.4% 45.7%,3.8% 30.9%,25.1% 33.3%,14.6% 14.6%,37.8% 31.7%,30.9% 3.8%,44.1% 20.6%);filter:drop-shadow(0 0 3px #ffd23f)}
.a1q-mob.is-ko{animation:a1qKo .43s ease-in forwards}
.a1q-mob.is-ko .a1q-pow{animation:a1fxStar .3s ease-out}
.a1q-mob.is-bonk{animation:a1qBonk .42s ease-out}
.a1q-mob.is-flee{animation:a1qFlee .38s ease-in forwards}
.a1q-mob.is-gone{display:none}
@keyframes a1qKo{0%{transform:none}20%{transform:translate(4px,-6px) scale(1.15)}100%{transform:translate(60px,-80px) rotate(620deg) scale(.4);opacity:0}}
@keyframes a1qBonk{0%,100%{transform:none}35%{transform:translateX(-18px) scale(1.12)}60%{transform:translateX(-6px)}}
@keyframes a1qFlee{to{transform:translate(30px,10px) scale(.6);opacity:0}}
.a1q-me{position:absolute;bottom:0;left:4px;width:64px;height:88px;z-index:60;transition:left .34s cubic-bezier(.2,.9,.3,1.15)}
.a1q-me .bav{width:100%;height:100%}
.a1q-flag{position:absolute;bottom:0;width:22px;height:38px;z-index:1}
.a1q-flag svg{display:block;width:100%;height:100%}
.a1q-strip.is-clear .a1q-flag{filter:drop-shadow(0 0 6px #ffd23f)}
.a1q-hearts{position:absolute;top:5px;right:6px;z-index:70;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px;max-width:70%;padding:3px 7px;background:rgba(255,255,255,.92);border:2px solid #111;border-radius:999px}
.a1q-h{position:relative;display:inline-block;width:18px;height:17px}
.a1q-h>span{position:absolute;left:0;top:0;height:100%;overflow:hidden}
.a1q-h-bg{width:100%}.a1q-h-fg{width:0}
.a1q-h.is-full .a1q-h-fg{width:100%}.a1q-h.is-half .a1q-h-fg{width:50%}
.a1q-h svg{display:block;width:18px;height:17px}
.a1q-h path{stroke:#111;stroke-width:1.8}
.a1q-h-bg path{fill:#d9d4cc}.a1q-h-fg path{fill:#e8202a}
.a1q-hearts.is-drop{animation:a1qDrop .4s ease-out}
@keyframes a1qDrop{0%,100%{transform:none}30%{transform:scale(1.12);box-shadow:0 0 0 3px #ffd23f}}
.a1q-strip::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;z-index:65;background:repeating-linear-gradient(0deg,transparent 0 6px,rgba(255,255,255,.85) 6px 8px,transparent 8px 13px);-webkit-mask:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent);mask:linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent)}
.a1q-strip.is-strike::after{animation:a1qLines .38s ease-out}
.a1q-strip.is-ouch::after{background:radial-gradient(circle at 20% 70%,rgba(255,40,40,.55),transparent 60%);animation:a1qLines .38s ease-out}
@keyframes a1qLines{0%{opacity:0;transform:translateX(-12px)}25%{opacity:1}100%{opacity:0;transform:translateX(16px)}}
.a1q-strip.is-down .a1q-bg{filter:grayscale(.7) brightness(.8)}
.a1q-strip.is-down .a1q-lane{filter:saturate(.6)}
@media (max-width:560px){.a1q-strip{height:92px}.a1q-lane{height:70px}.a1q-me{width:50px;height:70px}.a1q-h,.a1q-h svg{width:15px;height:14px}}
/* out of hearts */
.a1q-ko{margin:6px 0 10px;padding:12px 10px;text-align:center;border:2px solid #111;border-radius:12px;color:#fff;
  background:repeating-conic-gradient(from 0deg at 50% 45%,rgba(255,255,255,.08) 0 3deg,transparent 3deg 12deg),linear-gradient(#3a1d1d,#1e1a2a)}
.a1q-ko .bav-end{width:118px;height:160px;margin:0 auto 2px}
.a1q-ko-h{margin:0;font:900 2rem/1.05 "TYF Games",Impact,system-ui,sans-serif;letter-spacing:.04em;color:#ffd23f;-webkit-text-stroke:2px #111;text-shadow:3px 3px 0 #b3121f;animation:a1qKoIn .42s ease-out}
.a1q-ko-sub{margin:4px auto 0;max-width:34em;font-weight:700}
@keyframes a1qKoIn{0%{transform:scale(1.6);opacity:0}60%{transform:scale(.95);opacity:1}100%{transform:none}}
/* guests / free practice: local Quest switch */
.a1q-guest{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;padding:8px 10px;border:2px solid #111;border-radius:12px;background:#fff8e1;cursor:pointer;font-weight:800}
.a1q-guest input{position:absolute;opacity:0;width:1px;height:1px}
.a1q-gtog{position:relative;flex:0 0 auto;width:44px;height:24px;border-radius:999px;background:#b9b3a8;border:2px solid #111;transition:background .2s}
.a1q-gtog::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #111;transition:transform .2s}
.a1q-guest input:checked+.a1q-gtog{background:#2fb344}
.a1q-guest input:checked+.a1q-gtog::after{transform:translateX(20px)}
.a1q-guest input:focus-visible+.a1q-gtog{outline:3px solid #3657e6;outline-offset:2px}
.a1q-gn{flex:1 1 100%;font-weight:600;font-size:.9rem;color:#4a4036}
body.tyf-classic .a1-boss-game{display:none}
@media (prefers-reduced-motion:reduce){
  .bav-aura,.bav.is-flare .bav-aura,.bav.is-win .bav-aura,.bav.is-lose .bav-aura{animation:none!important}
  .bav-speed,.bav-impact,.a1b-fx-lines,.a1b-fx-star,.a1q-pow,.a1q-strip::after{animation:none!important;opacity:0!important}
  .a1b-fx.is-ko{animation:none!important;background:none}
  .a1q-mob,.a1q-me,.a1q-mob.is-ko,.a1q-mob.is-bonk,.a1q-mob.is-flee,.a1q-hearts.is-drop,.a1q-ko-h{animation:none!important;transition:none!important}
}
/* penguins slide on their bellies, so their box is wider than tall */
.a1q-mob.a1q-penguin{width:calc(var(--a1q-mw,44px)*1.6)}
.a1q-mob.a1q-crab{width:calc(var(--a1q-mw,44px)*1.15)}

/* Minion facing + kick KOs (Dec 2, 2026, minion cut-ins preview): lizards face the fighter
   (art faces right, fighter is on the left). Per-minion knockout matches the cut-in kick:
   lizard punt (tail pops, body flies spinning), crab frisbee-spin, penguin hockey-puck slide,
   tumbleweed burst + leftover bounce. */
.a1q-lizard:not(.is-ko):not(.is-atk) .a1q-spr{transform:scaleX(-1)}
.a1q-tail,.a1q-puff,.a1q-left{display:none;position:absolute;pointer-events:none;bottom:0}
.a1q-tail{left:35%;width:55%;height:38%;z-index:2}
.a1q-tail img,.a1q-puff img,.a1q-left img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(1px 0 0 #111) drop-shadow(-1px 0 0 #111) drop-shadow(0 1px 0 #111)}
.a1q-puff{left:-30%;bottom:-10%;width:160%;height:160%;z-index:3}
.a1q-left{left:20%;width:70%;height:70%;z-index:4}
.a1q-mob.a1q-lizard.is-ko{animation:none}
.a1q-lizard.is-ko .a1q-spr{transform:none;animation:a1qPuntFly .7s ease-in forwards}
.a1q-lizard.is-ko .a1q-tail{display:block;animation:a1qTailWig .7s ease-out}
.a1q-mob.a1q-crab.is-ko{animation:a1qFrisbee .7s cubic-bezier(.15,.6,.4,1) forwards;transform-origin:50% 50%}
.a1q-mob.a1q-penguin.is-ko{animation:a1qPuck .65s cubic-bezier(.2,.2,.4,1) forwards}
.a1q-mob.a1q-tumbleweed.is-ko{animation:none}
.a1q-tumbleweed.is-ko .a1q-spr{opacity:0}
.a1q-tumbleweed.is-ko .a1q-puff{display:block;animation:a1qPuff .55s ease-out forwards}
.a1q-tumbleweed.is-ko .a1q-left{display:block;animation:a1qBounce .7s ease-in forwards}
@keyframes a1qPuntFly{0%{transform:none}18%{transform:translate(6px,-10px) scale(1.12)}100%{transform:translate(72px,-96px) rotate(700deg) scale(.4);opacity:0}}
@keyframes a1qTailWig{0%{transform:translate(0,0) rotate(0);opacity:1}20%{transform:translate(2px,2px) rotate(28deg)}40%{transform:translate(-2px,3px) rotate(-32deg)}60%{transform:translate(2px,4px) rotate(24deg)}80%{transform:translate(-1px,5px) rotate(-16deg)}100%{transform:translate(0,6px) rotate(8deg);opacity:.85}}
@keyframes a1qFrisbee{0%{transform:none}15%{transform:translate(8px,-8px) rotate(40deg) scale(1.1)}100%{transform:translate(110px,-18px) rotate(900deg) scale(.45);opacity:0}}
@keyframes a1qPuck{0%{transform:none}20%{transform:translate(12px,2px) rotate(-8deg)}100%{transform:translate(140px,4px) rotate(-18deg);opacity:0}}
@keyframes a1qPuff{0%{transform:scale(.4);opacity:1}40%{transform:scale(1.15);opacity:1}100%{transform:scale(1.35);opacity:0}}
@keyframes a1qBounce{0%{transform:translate(0,0) scale(1)}25%{transform:translate(18px,-16px) scale(.9)}45%{transform:translate(32px,0) scale(.85)}65%{transform:translate(48px,-10px) scale(.75)}85%{transform:translate(70px,0) scale(.6)}100%{transform:translate(100px,4px) scale(.4);opacity:0}}
.a1q-me.is-kick .bav{animation:a1qMeKick .42s cubic-bezier(.2,.8,.3,1)}
@keyframes a1qMeKick{0%{transform:none}30%{transform:translate(6px,-8px) rotate(-6deg)}58%{transform:translate(10px,-2px) rotate(5deg)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){
  .a1q-lizard.is-ko .a1q-spr,.a1q-lizard.is-ko .a1q-tail,.a1q-tumbleweed.is-ko .a1q-puff,.a1q-tumbleweed.is-ko .a1q-left,.a1q-me.is-kick .bav{animation:none!important}
}

/* Dec 3, 2026 (Coach pt865u, PREVIEW): teacher-goal hearts row (Classic), streak counter, So close card */
.a1g-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 8px;padding:6px 12px;border:2px solid #111;border-radius:12px;background:#fff8ef}
.a1g-bar[hidden]{display:none}
.a1g-bar .a1b-heart{color:#ff3b5c}.a1g-bar .a1b-heart.is-lost{color:#bbb}
.a1g-cnt{font:900 1.15rem/1.2 "TYF Games",system-ui,sans-serif;color:#7a1020}.a1g-cnt[hidden]{display:none}
.a1g-close{margin:12px 0 4px;padding:14px 16px;border:3px solid #111;border-radius:14px;background:#fff3f1;box-shadow:4px 4px 0 #111}
.a1g-close-h{margin:0 0 6px;font:900 1.5rem/1.1 "TYF Games",system-ui,sans-serif;color:#c8202f}
.a1g-std{margin:0 0 4px;font-weight:800}.a1g-need{margin:4px 0;font:900 1.3rem/1.2 "TYF Games",system-ui,sans-serif;color:#7a1020}.a1g-line{margin:0 0 8px}

/* Dec 3, 2026 (Coach, PREVIEW): item runs */
.a1-item-end{font-weight:800;color:#7a1020}
.a1-item-nudge{margin:10px 0;padding:12px 14px;border:3px solid #111;border-radius:14px;background:#fff6c9;box-shadow:4px 4px 0 #111}
.a1-item-nudge p{margin:0 0 8px;font-weight:800}

/* Dec 3, 2026 (Coach pt883u): half heart (a hint in the first round) in the Classic hearts row */
.a1b-heart.is-half{background:linear-gradient(90deg,#ff3b5c 50%,#bbb 50%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}

/* Dec 3, 2026 (Coach t915u, PREVIEW): small tag on Unlock an item! runs that tilt toward STAAR-level questions */
.a1-staar-tag{display:inline-block;vertical-align:middle;font-size:.78rem;font-weight:800;letter-spacing:.02em;line-height:1.2;padding:3px 9px;margin:0 8px 4px 0;border:2px solid #143a66;border-radius:999px;background:#e7f2ff;color:#143a66;white-space:nowrap}
.a1-bar .a1-staar-tag{margin:0}
.sp-run .a1-staar-tag{display:inline-block;margin:0 0 6px}

/* Dec 3, 2026 (Coach t928u): nested hint bullets (LINE UNDER / no line) on phone and desktop */
#alg1-games .a1-hint-sub,.sp-game .a1-hint-sub{
  display:block;margin:4px 0 2px;padding-left:1.4em;list-style-type:disc;list-style-position:outside;
}
#alg1-games .a1-hint-sub li,.sp-game .a1-hint-sub li{display:list-item;margin:2px 0;}
@media (max-width:420px){
  #alg1-games .a1-hint-sub,.sp-game .a1-hint-sub{padding-left:1.25em;}
}


/* Dec 3, 2026 (Coach t970u / t971u): stacked A/B/C/D results, and a compact signed-in name chip that never covers questions */
.g-sr-keys{list-style:none;margin:8px 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.g-sr-key{display:grid;grid-template-columns:1.75em minmax(0,1fr);gap:2px 8px;align-items:start}
.g-sr-klet{font-weight:900;line-height:1.4}
.g-sr-kbody{min-width:0}
.g-sr-kline{margin:0;font-weight:800;line-height:1.35}
.g-sr-kwhy{margin:2px 0 0;font-weight:600;line-height:1.35}
.g-sr-given{margin:0 0 6px}
/* Dec 3, 2026 (Coach t978u / t986u): original-size full-body avatar in the left margin (to the left of the gold Focus Mode line). Desktop uses view:full so bottoms and shoes draw. On narrow screens, compact top-left head chip. */
.a1-who{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-width:0}
.a1-who-av{flex:0 0 auto}
.a1-who-name{margin:0;font-weight:900;font-size:1.05rem;line-height:1.15;min-width:0}
@media (min-width:700px){
  .game-body:has(>.a1-who){position:relative;padding-left:164px;overflow-x:hidden;box-sizing:border-box}
  .fm-gate:has(>.a1-who){position:relative;padding-left:168px;box-sizing:border-box}
  .game-body>.a1-who,.fm-gate>.a1-who{position:absolute;left:8px;top:8px;width:148px;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;z-index:2}
  .fm-gate>.a1-who{left:8px;top:16px}
  .a1-who-name{order:-1;font-size:1.1rem}
  .a1-who-av{width:148px;height:263px;overflow:visible;background:transparent;border:0;border-radius:0;pointer-events:none}
  .a1-who-av svg{width:148px;height:263px;display:block;overflow:visible!important;pointer-events:none}
}
@media (max-width:699px){
  .a1-who{margin:0 0 10px}
  .a1-who-av{width:48px;height:48px;overflow:hidden;border-radius:10px;background:#fff7df;border:2px solid #111}
  .a1-who-av svg{width:48px;height:48px;display:block;overflow:hidden!important}
}
@media (max-width:560px){
  .a1-who{margin:0 0 8px}
  .a1-who-av,.a1-who-av svg{width:36px;height:36px}
  .a1-who-name{font-size:.95rem}
}

/* cache 20261204shorts1 */
