/* 波波乐园 · Focus portal: Malaysian textbook look — songket bands, Jalur Gemilang navy / red / gold, a bunga raya pot on a wooden shelf. */
:root{--fx-navy:#18246b;--fx-red:#d7263d;--fx-gold:#ffc533;--fx-maroon:#7a1b2c;--fx-cream:#fff8e6;--fx-wood:#b77a45;--fx-wood2:#8a5530}
.fx-songket{display:block;height:16px;background:
  linear-gradient(45deg,transparent 42%,var(--fx-gold) 42% 58%,transparent 58%) 0 0/16px 16px,
  linear-gradient(-45deg,transparent 42%,var(--fx-gold) 42% 58%,transparent 58%) 0 0/16px 16px,
  var(--fx-maroon);border-bottom:3px solid var(--ink)}

/* home entry (replaces 出发去冒险) */
.fx-entry{display:block;width:100%;padding:0;border:4px solid var(--ink);border-radius:20px;overflow:hidden;background:var(--fx-navy);color:#fff;cursor:pointer;box-shadow:0 6px 0 var(--ink);text-align:left;font-family:"Baloo 2",system-ui,sans-serif}
.fx-entry:active{transform:translateY(4px);box-shadow:0 2px 0 var(--ink)}
.fx-entry-in{display:flex;align-items:center;gap:14px;padding:10px 16px}
.fx-entry-badge{font:800 26px/1 "Baloo 2",sans-serif;letter-spacing:.06em;background:var(--fx-gold);color:var(--ink);border:3px solid var(--ink);border-radius:12px;padding:8px 12px 4px;transform:rotate(-3deg)}
.fx-entry-t{flex:1;min-width:0;display:flex;flex-direction:column}
.fx-entry-t b{font:800 20px/1.2 "Baloo 2",sans-serif}
.fx-entry-t small{font:600 14px/1.3 "Baloo 2",sans-serif;opacity:.85}
.fx-entry-go{font:800 20px "Baloo 2",sans-serif;background:var(--fx-red);border:3px solid var(--ink);border-radius:999px;padding:6px 16px 2px;white-space:nowrap}
@media(max-width:650px){.fx-entry-in{gap:8px;padding:8px 10px}.fx-entry-badge{font-size:19px;padding:6px 8px 2px}.fx-entry-t b{font-size:15px}.fx-entry-t small{display:none}.fx-entry-go{font-size:15px;padding:4px 10px 0}}

/* while Focus is open the top bar keeps only the stars and the sound switch */
body.focus-mode #gradePill,body.focus-mode #mapPill,body.focus-mode #contPill,body.focus-mode #acctPill,body.focus-mode #kidPill,body.focus-mode #parentBtn,body.focus-mode .hud .language-control{display:none!important}
body.focus-mode #soundBtn span{display:none}
/* the top-left "Focus" badge is the home button (the site logo, dressed as Focus): click it to go back to the home page */
body.focus-mode .hud .logo{margin-right:auto;font:800 24px/1 "Baloo 2",sans-serif;color:#fff;background:var(--fx-navy);border:4px solid var(--ink);border-radius:999px;padding:8px 18px 4px;box-shadow:0 4px 0 var(--ink);gap:0}
body.focus-mode .hud .logo>*{display:none!important}
body.focus-mode .hud .logo::after{content:"Focus"!important;display:block!important}
@media(max-width:700px){body.focus-mode .hud #logo{flex:0 0 auto;width:auto;min-width:70px;max-width:none;margin-right:auto!important;font-size:20px!important;padding:6px 10px!important}}
body.focus-mode .hud .logo:active{transform:translateY(2px);box-shadow:0 2px 0 var(--ink)}
body.focus-mode #aiReview,body.focus-mode #kidPanel,body.focus-mode #aiDock,body.focus-mode #reviewDock,body.focus-mode #bookDock{display:none!important}

/* portal */
#v-focus .fx-wrap{position:absolute;inset:var(--hudH) var(--gutR) var(--gutB) var(--gutL);display:flex;justify-content:center;align-items:stretch;padding-top:8px}
.fx-card{width:min(1040px,100%);max-height:100%;display:flex;flex-direction:column;background:var(--fx-cream);border:5px solid var(--ink);border-radius:28px;box-shadow:8px 8px 0 var(--ink);overflow:hidden;font-family:"Baloo 2",system-ui,sans-serif;color:var(--ink);-webkit-user-select:text;user-select:text}
.fx-head{flex:none;background:var(--fx-navy);color:#fff;border-bottom:4px solid var(--ink)}
.fx-headrow{display:flex;align-items:center;gap:14px;padding:10px 18px}
.fx-back{flex:none;min-height:44px;border:3px solid var(--ink);border-radius:14px;background:#fff;color:var(--ink);font:800 17px "Baloo 2",sans-serif;padding:4px 14px 0;cursor:pointer;box-shadow:0 4px 0 var(--ink)}
.fx-back:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}
.fx-brand{display:flex;flex-direction:column;min-width:0}
.fx-brand b{font:800 34px/1 "Baloo 2",sans-serif;color:var(--fx-gold);-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;text-shadow:3px 3px 0 var(--ink)}
.fx-brand span{font:600 15px/1.3 "Baloo 2",sans-serif;opacity:.9}
.fx-body{flex:1 1 auto;min-height:0;overflow:auto;padding:18px 22px 26px;overscroll-behavior:contain}
.fx-intro h2,.fx-bookhead h2{font:800 30px/1.1 "Baloo 2",sans-serif;margin:0}
.fx-intro p,.fx-bookhead p{margin:4px 0 0;color:#6b5a48;font-size:16px}

/* bookshelf: a wooden bookcase; each book stands on the shelf with its spine showing, the bunga raya pot stands at the end */
.fx-library{background:radial-gradient(circle at 12% 0,#fff3c9 0 22%,transparent 23%),var(--fx-cream)}
.fx-case{margin-top:14px;border:5px solid var(--ink);border-radius:18px 18px 10px 10px;background:linear-gradient(#8a5530,#6e4021);padding:0 14px;box-shadow:6px 6px 0 var(--ink)}
.fx-crown{margin:0 -14px;border-bottom:4px solid var(--ink);border-radius:12px 12px 0 0;overflow:hidden;background:var(--fx-wood)}
.fx-crown .fx-songket{border-bottom:0}
.fx-casefoot{height:16px;margin:0 -14px;background:linear-gradient(var(--fx-wood2),#5a3418);border-top:4px solid var(--ink);border-radius:0 0 6px 6px}
.fx-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));column-gap:0;row-gap:0;align-items:end;
  background:linear-gradient(transparent calc(100% - 22px),transparent 0),repeating-linear-gradient(90deg,#7a4a28 0 2px,transparent 2px 60px),#9a6438;box-shadow:inset 0 10px 18px rgba(0,0,0,.35)}
.fx-book,.fx-potcell{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:22px 12px 24px;border:0;background:none;cursor:pointer;font-family:inherit;color:var(--ink);text-align:left;height:100%;perspective:900px}
.fx-book::after,.fx-potcell::after{content:"";position:absolute;left:0;right:0;bottom:0;height:24px;border-top:4px solid var(--ink);border-bottom:4px solid var(--ink);background:linear-gradient(#d9a066 0 50%,var(--fx-wood) 50%);box-shadow:0 6px 0 rgba(0,0,0,.25)}
.fx-potcell{cursor:default;min-height:180px}
.fx-pot{width:96px;height:120px;display:block;position:relative;z-index:1;margin-bottom:-2px}
.fx-book .fx-spine{position:absolute;z-index:0;bottom:24px;left:calc(12px - 2px);width:16px;height:calc(100% - 46px - 28px);background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(0,0,0,.1)),var(--c);border:3px solid var(--ink);border-radius:6px 0 0 3px;transform:skewY(-8deg);transform-origin:bottom}
.fx-cover{position:relative;z-index:1;width:100%;display:flex;flex-direction:column;gap:2px;min-height:236px;padding:0 10px 10px 18px;border:4px solid var(--ink);border-radius:6px 16px 4px 4px;color:#fff;overflow:hidden;
  background:radial-gradient(circle at 90% 4%,rgba(255,255,255,.35) 0 18px,transparent 19px),repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0 9px,transparent 9px 18px),linear-gradient(160deg,var(--c2) -40%,var(--c) 45%);
  transform:rotate(var(--tilt,0deg));transform-origin:50% 100%;transition:transform .25s cubic-bezier(.3,1.6,.5,1),box-shadow .25s;box-shadow:inset 6px 0 0 rgba(0,0,0,.18)}
.fx-cover::before{content:"";position:absolute;left:0;top:0;bottom:0;width:10px;background:rgba(0,0,0,.25);border-right:3px solid var(--ink)}
.fx-band{display:flex;align-items:center;gap:6px;padding-right:34px!important;white-space:nowrap;margin:0 -10px 6px -18px;padding:6px 10px 4px 18px;background:var(--fx-navy);border-bottom:3px solid var(--ink);font:800 12px/1 "Baloo 2",sans-serif}
.fx-band small{background:var(--fx-gold);color:var(--ink);border:2px solid var(--ink);border-radius:5px;padding:3px 6px 1px;letter-spacing:.08em;font-size:11px}
.fx-cover b{font:800 21px/1.05 "Baloo 2",sans-serif;-webkit-text-stroke:1.6px var(--ink);paint-order:stroke fill;overflow-wrap:anywhere}
.fx-cover em{font-style:normal;font-weight:800;font-size:13px;opacity:.95}
.fx-art{display:block;margin:auto -10px -10px -18px;background:linear-gradient(transparent,rgba(255,255,255,.28));border-top:3px dashed rgba(255,255,255,.55)}
.fx-art svg{display:block;width:100%;height:auto}
.fx-ribbon{position:absolute;right:16px;top:-4px;width:14px;height:44px;background:var(--fx-red);border:3px solid var(--ink);border-top:0;clip-path:polygon(0 0,100% 0,100% 100%,50% 82%,0 100%)}
.fx-soonstamp{position:absolute;right:6px;bottom:8px;transform:rotate(-8deg);white-space:nowrap;font:800 12px "Baloo 2",sans-serif;color:var(--fx-red);background:#fff;border:3px solid var(--fx-red);border-radius:10px;padding:4px 10px 1px;box-shadow:0 3px 0 rgba(0,0,0,.25)}
.fx-tag{position:relative;z-index:2;margin-top:6px;font:800 13px "Baloo 2",sans-serif;background:var(--fx-gold);color:var(--ink);border:3px solid var(--ink);border-radius:999px;padding:2px 10px 0;align-self:center;min-height:24px}
.fx-book.soon .fx-tag{visibility:hidden}
.fx-book.ready:hover .fx-cover,.fx-book.ready:focus-visible .fx-cover{transform:translateY(-10px) rotate(0deg) scale(1.03);box-shadow:inset 6px 0 0 rgba(0,0,0,.18),0 14px 0 rgba(0,0,0,.18)}
.fx-book.ready .fx-cover{animation:fxBreathe 3.2s ease-in-out infinite}
@keyframes fxBreathe{50%{transform:rotate(var(--tilt,0deg)) translateY(-3px)}}
.fx-book.soon .fx-cover{filter:saturate(.5) brightness(1.04)}
.fx-book .fx-cover-real,.fx-front.fx-cover-real{display:block;flex:none;padding:0;min-height:0;background:#fff;aspect-ratio:3 / 4}
.fx-cover-real::before{display:none}
.fx-cover-real img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.fx-book.soon .fx-cover-real{filter:none}
.fx-book.has-cover .fx-tag{visibility:visible}
.fx-book.shake .fx-cover{animation:fxShake .4s}
@keyframes fxShake{20%{transform:rotate(-4deg)}40%{transform:rotate(4deg)}60%{transform:rotate(-2deg)}80%{transform:rotate(1deg)}}

/* the opening animation */
.fx-openstage{position:fixed;inset:0;z-index:500;pointer-events:none;background:rgba(24,36,107,0);transition:background .5s}
.fx-openstage.dim{background:rgba(24,36,107,.35)}
.fx-openbook{position:fixed;transition:left .5s cubic-bezier(.3,1.2,.5,1),top .5s cubic-bezier(.3,1.2,.5,1),width .5s,height .5s,opacity .4s,transform .45s;perspective:1400px;font-family:"Baloo 2",sans-serif}
.fx-page{position:absolute;inset:0;background:#fffdf3;border:4px solid var(--ink);border-radius:4px 14px 14px 4px;box-shadow:8px 8px 0 rgba(0,0,0,.3);overflow:hidden}
.fx-page::before{content:"";position:absolute;left:0;top:0;bottom:0;width:18px;background:linear-gradient(90deg,rgba(0,0,0,.18),transparent)}
.fx-pagein{position:absolute;inset:14% 12% auto 16%;display:flex;flex-direction:column;gap:8px;color:var(--ink)}
.fx-pagein b{font:800 24px/1.1 "Baloo 2",sans-serif;color:var(--c)}
.fx-pagein span{font-weight:800;opacity:.7}
.fx-pagein i{display:block;height:8px;border-radius:4px;background:#eadfc6}.fx-pagein i:nth-child(4){width:70%}.fx-pagein i:nth-child(5){width:85%}
.fx-flip{position:absolute;inset:0;transform-origin:0 50%;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.45,.05,.3,1)}
.fx-front,.fx-pageback{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:6px 16px 4px 4px;overflow:hidden}
.fx-front{display:flex;flex-direction:column;gap:2px;padding:0 10px 10px 18px;border:4px solid var(--ink);color:#fff;background:linear-gradient(160deg,var(--c2) -40%,var(--c) 45%)}
.fx-front .fx-soonstamp,.fx-front .fx-ribbon{display:none}
.fx-pageback{transform:rotateY(180deg);background:repeating-linear-gradient(0deg,#f3e6c9 0 3px,#fff8e6 3px 7px);border:4px solid var(--ink)}
.fx-openbook.open .fx-flip{transform:rotateY(-165deg)}
.fx-openbook.zoom{transform:scale(1.6);opacity:0}
@media(max-width:650px){.fx-row{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-cover{min-height:200px}.fx-cover b{font-size:18px}.fx-book,.fx-potcell{padding:20px 8px 24px}.fx-pot{width:76px;height:95px}.fx-case{padding:0 8px}.fx-crown,.fx-casefoot{margin:0 -8px}}
@media (prefers-reduced-motion: reduce){.fx-book.ready .fx-cover{animation:none}}

/* one book */
.fx-bookhead{display:flex;align-items:center;gap:14px}
.fx-bookthumb{width:64px;height:86px;object-fit:contain;flex:none;background:#fff;border:2px solid var(--ink);border-radius:4px}
.fx-ico.big{width:64px;height:64px;flex:none;background:var(--c);border:4px solid var(--ink);border-radius:16px;padding:6px}
.fx-ico svg{width:100%;height:100%;display:block}
.fx-years{display:flex;gap:10px;margin:16px 0 12px;flex-wrap:wrap}
.fx-year{min-height:52px;border:4px solid var(--ink);border-radius:16px;background:#fff;color:var(--ink);padding:4px 18px 2px;cursor:pointer;display:flex;flex-direction:column;align-items:center;font-family:inherit;box-shadow:0 4px 0 var(--ink)}
.fx-year b{font:800 19px/1.1 "Baloo 2",sans-serif}.fx-year small{font-size:12px;font-weight:700;opacity:.7}
.fx-year.on{background:var(--fx-red);color:#fff}
.fx-units{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.fx-unit{border:4px solid var(--ink);border-radius:20px;background:#fff;overflow:hidden}
.fx-unit.soon{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#f6efdf;color:#7a6a58}
.fx-unit b{font:800 19px/1.2 "Baloo 2",sans-serif;color:var(--ink)}.fx-unit.soon b{color:#7a6a58}
.fx-unit small{display:block;font-size:13px;font-weight:700;opacity:.8}
.fx-uno{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:800 22px "Baloo 2",sans-serif;background:var(--fx-gold);border:3px solid var(--ink);padding-top:3px}
.fx-unit.soon .fx-uno{background:#e9dfc8}
.fx-uhead{display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(90deg,#fff3c9,#fff);border-bottom:3px solid var(--ink);flex-wrap:wrap}
.fx-uhead>div{flex:1;min-width:200px}
.fx-ubar{width:140px;height:14px;border:3px solid var(--ink);border-radius:999px;background:#fff;overflow:hidden}.fx-ubar i{display:block;height:100%;background:#2fbf71}
.fx-secs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:10px;padding:12px}
.fx-sec{display:flex;gap:10px;align-items:flex-start;border:3px solid #e4d7bb;border-radius:16px;padding:10px;background:var(--fx-cream)}
.fx-hex{flex:none;width:46px;height:46px;display:grid;place-items:center;font:800 22px "Baloo 2",sans-serif;color:#fff;background:var(--fx-navy);clip-path:polygon(25% 4%,75% 4%,98% 50%,75% 96%,25% 96%,2% 50%);padding-top:3px}
.fx-uasa .fx-hex{background:var(--fx-red)}
.fx-st{flex:1;min-width:0}.fx-st b{font:800 16px/1.2 "Baloo 2",sans-serif;display:block}
.fx-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.fx-go{min-height:44px;display:inline-flex;align-items:center;gap:6px;border:3px solid var(--ink);border-radius:12px;background:#fff;color:var(--ink);font:800 15px "Baloo 2",sans-serif;padding:3px 10px 0;cursor:pointer;box-shadow:0 3px 0 var(--ink)}
.fx-go:active{transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
.fx-go.next{background:var(--fx-gold);animation:fxPulse 1.6s ease-in-out infinite}
.fx-go.done{background:#e4f8ea}
@keyframes fxPulse{50%{box-shadow:0 3px 0 var(--ink),0 0 0 5px rgba(255,197,51,.45)}}
.fx-stars{display:inline-flex;gap:1px;font-size:14px;line-height:1}.fx-stars i{font-style:normal;color:#d8ccb4}.fx-stars i.on{color:#f4a400;text-shadow:0 0 1px var(--ink)}
@media(max-width:650px){
  .fx-headrow{padding:8px 10px;gap:8px}.fx-brand b{font-size:26px}.fx-brand span{font-size:12px}
  .fx-body{padding:12px 12px 20px}.fx-intro h2,.fx-bookhead h2{font-size:22px}
  .fx-row{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-cover{min-height:170px}.fx-book,.fx-potcell{padding:0 6px 22px}.fx-pot{width:76px;height:95px}
  .fx-ubar{width:100%}
}
@media (prefers-reduced-motion: reduce){.fx-go.next{animation:none}.fx-cover{transition:none}}

/* section steps: 1 Notes · 2 Examples · 3 Practice; year extras */
.fx-go.p-nota::before,.fx-go.p-contoh::before,.fx-go.p-latihan::before{content:"";width:10px;height:10px;border-radius:50%;border:2px solid var(--ink);flex:none}
.fx-go.p-nota::before{background:#9dd0f5}.fx-go.p-contoh::before{background:#ffd877}.fx-go.p-latihan::before{background:#f9b3cc}
.fx-go.soon{background:#f1e8d4;color:#7a6a58;box-shadow:none;cursor:default;border-style:dashed}
.fx-extra{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:4px solid var(--ink);border-radius:20px;padding:10px 14px;margin:0 0 12px;background:linear-gradient(90deg,#e8f1ff,#fff)}
.fx-extra.final{margin:12px 0 0;background:linear-gradient(90deg,#ffe3e6,#fff)}
.fx-extra .fx-st{min-width:180px}.fx-extra small{display:block;font-size:13px;font-weight:700;opacity:.75}
.fx-extra.final .fx-hex{background:var(--fx-red)}
.fx-empty{font:800 18px "Baloo 2",sans-serif;color:#7a6a58;text-align:center;padding:30px 0}

/* catalogue search — fixed under the header so typing is never lost in the scroll pane */
.fx-search{position:relative;flex:none;z-index:8;margin:0;padding:10px 18px 8px;background:linear-gradient(#fff6dd,#fff0c8);border-bottom:3px solid var(--ink);isolation:isolate;touch-action:manipulation;-webkit-user-select:text;user-select:text}
.fx-search-input{display:block;width:100%;min-height:48px;box-sizing:border-box;padding:10px 16px;border:3px solid var(--ink);border-radius:16px;background:#fff;font:800 17px/1.2 "Baloo 2",sans-serif;color:var(--ink);box-shadow:0 4px 0 var(--ink);touch-action:manipulation;-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default;caret-color:var(--ink)}
.fx-search-input:focus{outline:3px solid #ef762d;outline-offset:2px;background:#fffef8}
.fx-search-hint{margin:6px 2px 0;font:700 13px/1.3 var(--f-body,#3d2a1c);opacity:.72;-webkit-user-select:none;user-select:none}
.fx-search-results{position:absolute;left:18px;right:18px;top:calc(100% - 4px);max-height:min(48vh,380px);overflow:auto;overscroll-behavior:contain;border:3px solid var(--ink);border-radius:16px;background:#fff6dd;box-shadow:0 6px 0 var(--ink);padding:10px;display:flex;flex-direction:column;gap:10px;z-index:9}
.fx-search-results[hidden]{display:none!important}
.fx-search-empty{margin:10px 8px;font:700 15px/1.4 var(--f-body,#3d2a1c);opacity:.75}
.fx-search-hit{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;box-sizing:border-box;padding:12px 76px 12px 14px;border:2.5px solid var(--ink);border-radius:14px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #dcc89a}
.fx-search-hit>b,.fx-search-hit>span,.fx-search-hit>.fx-search-snip{display:block;width:100%;margin:0;min-width:0;overflow-wrap:anywhere}
.fx-search-hit>b{font:800 13px/1.4 "Baloo 2",sans-serif;color:#1f4f9a}
.fx-search-hit>span{font:700 15px/1.45 var(--f-body,#3d2a1c)}
.fx-search-hit>.fx-search-snip{font:600 13px/1.45 var(--f-body,#3d2a1c);opacity:.84;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-search-hit>em{position:absolute;right:12px;top:50%;transform:translateY(-50%);font:800 14px/1 "Baloo 2",sans-serif;font-style:normal;color:#9a3f12;white-space:nowrap;pointer-events:none}
.fx-search-hit:hover,.fx-search-hit.is-active{background:#ffe58a;box-shadow:0 3px 0 var(--ink)}
.fx-search-hit mark,.fx-found-banner mark{background:#ffd34a;color:inherit;border-radius:4px;padding:0 .1em;box-decoration-break:clone}
.fx-go.fx-search-mark{outline:3px solid #ef762d;outline-offset:2px;animation:fxMarkPulse 1.1s ease-in-out 2}
@keyframes fxMarkPulse{0%,100%{box-shadow:0 4px 0 var(--ink)}50%{box-shadow:0 4px 0 var(--ink),0 0 0 6px #ffb84a88}}
#qprog [data-question].fx-found{background:#ffd34a;box-shadow:0 0 0 3px #ef762d;transform:scale(1.08)}
.fx-found-banner{display:block;width:100%;box-sizing:border-box;margin:0 0 12px;padding:8px 12px;border:3px solid var(--ink);border-radius:14px;background:#fff4c8;font:700 14px/1.4 var(--f-body,#3d2a1c);color:#8a3a12;opacity:0;transform:translateY(-4px);transition:opacity .25s,transform .25s}
.fx-found-banner.in{opacity:1;transform:none}
.fx-found-banner>b{font:800 14px "Baloo 2",sans-serif;color:#2b1d14}

/* folding units */
.fx-yearbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:16px 0 12px}
.fx-yearbar .fx-years{margin:0}
.fx-foldall{display:flex;gap:8px}
.fx-mini{min-height:40px;border:3px solid var(--ink);border-radius:12px;background:#fff;color:var(--ink);font:800 14px "Baloo 2",sans-serif;padding:2px 12px 0;cursor:pointer;box-shadow:0 3px 0 var(--ink)}
button.fx-uhead{width:100%;border:0;border-bottom:3px solid var(--ink);cursor:pointer;text-align:left;font:inherit;color:inherit}
.fx-unit.closed button.fx-uhead{border-bottom:0}
.fx-unit.closed .fx-secs{display:none}
.fx-chev{flex:none;width:36px;height:36px;display:grid;place-items:center;border:3px solid var(--ink);border-radius:50%;background:#fff;font-size:18px;transition:transform .25s}
.fx-unit.closed .fx-chev{transform:rotate(-90deg)}

/* ---- Focus game screen: the card keeps its size; only its content scrolls, the buttons stay at the bottom ---- */
/* the card wraps the question: as tall as its content, never taller than the screen (then only the content scrolls) */
body.focus-mode #board{flex:0 1 auto;display:flex;flex-direction:column;overflow:hidden;min-height:0;height:auto!important}
body.focus-mode #board .qhead{flex:none}
body.focus-mode #qarea{flex:0 1 auto;min-height:0;display:flex;flex-direction:column}
body.focus-mode #qarea>.fm{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:0}
body.focus-mode #qarea>.fm>.fm-acts{position:static;margin:10px 0 0;padding:10px 0 4px;background:#fffaf0;box-shadow:0 -10px 10px -6px rgba(255,250,240,.95)}
body.focus-mode #qarea>.fm.fm-ex>.fm-acts{padding:10px 14px 8px;background:#fff;border-top:3px solid var(--ink)}
/* the answer panel sits over Bobo's column, so the question card never changes width */
@media (orientation:landscape){
  body.focus-mode{--coachW:clamp(250px,27vw,360px)}
  body.focus-mode .stage.with-sheet{padding-right:var(--gutR);--coachW:clamp(250px,27vw,360px)}
  body.focus-mode .sheet{right:auto;left:var(--gutL);width:var(--coachW);transform:translateX(calc(-100% - 40px))}
  body.focus-mode .sheet.in{transform:none}
  body.focus-mode .sheet .demo{min-height:110px;padding:10px}
  body.focus-mode .sheet .ptext{font-size:17px;line-height:1.5}
}
/* learn and example cards move on by themselves: the confirm panel stays hidden */
body.fm-skip-sheet #sheet{visibility:hidden!important}
/* effects always on top and easy to see */
body.focus-mode .floattxt{color:#ffd34a;z-index:600;text-shadow:0 2px 0 var(--ink)}
body.focus-mode .fx-bit,body.focus-mode .conf,body.focus-mode .flystar{z-index:600}
body.focus-mode #voiceNotice{left:var(--gutL)!important;right:auto!important;transform:none!important;max-width:min(var(--coachW,260px),90vw)!important;bottom:var(--gutB)!important;z-index:45!important}
/* AI practice / review labels belong to the other books */
body.focus-mode .ai-ribbon,body.focus-mode .rv-ribbon,body.focus-mode #aiReview,body.focus-mode .review-notice{display:none!important}
body.focus-mode #qarea>.fm.fm-ex{display:flex;flex-direction:column;overflow:hidden}
body.focus-mode #qarea>.fm.fm-ex>.fm-ex-b{flex:0 1 auto;min-height:0;overflow:auto}
body.focus-mode #qarea>.fm.fm-ex>.fm-acts{position:static;margin:0}
@media (orientation:portrait){body.focus-mode #voiceNotice{top:max(10px,env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;transform:translateX(-50%)!important;max-width:calc(100vw - 270px)!important;font-size:12px!important;padding:6px 10px!important;line-height:1.25!important;white-space:normal}}

/* bigger, clearer numbers and questions in Focus */
html:has(body.focus-mode){font-size:19px}
@media (max-width:600px){html:has(body.focus-mode){font-size:17.5px}}
body.focus-mode #board .qhead h2{font-size:clamp(23px,2.6vw,32px)}
body.focus-mode .fm{font-size:1.08rem;line-height:1.5}
body.focus-mode .fm .num,body.focus-mode .fm b{letter-spacing:.01em}
body.focus-mode .fm-qp{font-size:1.2rem;line-height:1.5}
body.focus-mode .fm-chip{font-size:1.5rem;min-height:52px;min-width:46px;justify-content:center}
body.focus-mode .fm .house .plabel{font-size:.9rem}
body.focus-mode .fm .tlab{font-size:.85rem}
body.focus-mode .fm .tval{font-size:1rem}
body.focus-mode .fm .slide-col{font-size:.78rem}
body.focus-mode .fm .ro .k{font-size:.85rem}
body.focus-mode .fm .tile{font-size:1.85rem}
body.focus-mode .fm .vert{font-size:1.75rem}
body.focus-mode .fm .fd-vertical{font-size:1.95rem}
body.focus-mode .fm .fd-caption p{font-size:1.1rem}
body.focus-mode .fm .fd-formula{font-size:1.3rem}
body.focus-mode .fm-ticklab{font-size:1.05rem}
body.focus-mode .fm svg text{font-weight:700}
body.focus-mode .fm .fm-ans{font-size:1.3rem}
body.focus-mode .fm-opt{font-size:1.2rem}
@media (max-width:600px){
  body.focus-mode .fm .house .plabel{font-size:.72rem}
  body.focus-mode .fm-chip{font-size:1.3rem;min-height:46px;min-width:40px}
  body.focus-mode .fm .fd-vertical{font-size:1.55rem}
}
@media (min-width:601px){
  body.focus-mode .fm .house{width:100px}
  body.focus-mode .fm .house .roof{width:112px;height:44px}
  body.focus-mode .fm .house .body{width:92px}
  body.focus-mode .fm-L-houses .house .body .fm-cslot{min-width:62px;width:62px;min-height:62px}
  body.focus-mode .fm-L-houses .house .body .fm-chip{font-size:1.8rem}
}
.fx-st small.fx-pg{display:inline-block;margin:2px 0 4px;padding:1px 8px;border-radius:99px;background:#fff3c4;border:2px solid var(--ink);font:800 12px "Baloo 2",sans-serif;opacity:1}

/* Child learning audit: explicit year and learner-scoped report. */
.fx-years{display:flex;gap:8px;flex-wrap:wrap}.fx-years button{min-height:44px;border:3px solid var(--ink);border-radius:12px;background:#fff;padding:6px 16px;font:800 17px var(--f-num);cursor:pointer}
.fx-years [aria-selected=true]{background:var(--hair);box-shadow:0 3px 0 var(--ink)}
.fx-yearbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.fx-year-section>h3{margin:20px 0 0;font:800 24px var(--f-num)}.fx-year-scope{margin:2px 0 14px;font-weight:700}
.focus-year{display:block;width:max-content;margin-top:5px;border:2px solid var(--ink);border-radius:8px;padding:2px 8px;font:800 13px var(--f-num);background:#fff2a9;color:var(--ink)}
.focus-progress{z-index:1000}.focus-progress .mcard{font-family:var(--f-num);width:min(680px,calc(100% - 24px))}.focus-progress .sx{min-width:44px;min-height:44px}.focus-progress h2{padding-right:34px}
.fx-progress-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fx-progress-rows section{border:3px solid var(--ink);border-radius:16px;background:#fff;padding:12px}.fx-progress-rows h3{margin:0;font-size:21px}.fx-progress-rows p,.fx-report-note{font-size:15px}.fx-report-note{margin-bottom:0}
@media(max-width:600px){.fx-progress-rows{grid-template-columns:1fr}.fx-years{width:100%}.fx-years button{flex:1;padding:6px}.fx-yearbar .fx-foldall{display:none}.fx-entry small{display:block!important;font-size:12px}.fx-search-input{font-size:16px;min-height:46px}.fx-search-results{max-height:36vh}.fx-search-hint{font-size:12px}}

.fx-overview>h4{font-size:21px;margin:18px 0 2px}.fx-overview>p,.fx-source-scope{font-size:15px;line-height:1.5}.fx-source-scope{border:2px dashed var(--ink);border-radius:12px;background:#fff3cc;padding:10px}

.fx-upcoming{margin:16px 0}.fx-upcoming>summary{cursor:pointer;padding:12px;border:2px dashed var(--ink);border-radius:12px;font-weight:800;min-height:44px}

@media(max-width:650px){body.focus-mode #qtitle .focus-reference{display:block!important;font-size:11px;line-height:1.3;margin-top:4px}}

/* Question picker stays a horizontal scroll rail — many Focus lessons have 20+ items. */
body.focus-mode #qprog{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;min-width:44px;min-height:44px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}
body.focus-mode #qprog button{flex:0 0 auto;min-width:44px;padding-inline:8px}

/* a course that is not open yet: shown with a lock; tapping it offers the free week or 我的服务 */
.fx-go.locked{opacity:.72;filter:saturate(.55)}
.fx-go.locked .fx-lock{margin-right:4px;font-style:normal}
