/* Forest: the students' website. The look is the agreed visual identity (forest/identity/index.html): a soft storybook.
   Scenery behind, white paper cards for the work, one honey pill to press. Web first: a wide page that folds to one column.
   Colours and shapes are tokens; nothing below uses a colour of its own. */
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --sky-1: #cdeafb; --sky-2: #eaf7ee; --meadow: #84c65c; --meadow-d: #4f9a3c; --forest: #2f6b2c;
  --honey: #f4c542; --honey-d: #dca51f; --honey-ink: #4a3708; --honey-l: #fdf3cf;
  --bark: #3b2f24; --mute: #8b8073; --cream: #fffaf0; --paper: #fff; --sand: #f6efe0; --line: #ece3d0;
  --berry: #e5604f; --berry-d: #a53a2c; --berry-l: #fde9e4; --leaf-l: #e7f5dc; --fire-l: #ffe9d6;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 28px; --r-opt: 20px; --lift: 0 10px 30px rgba(74, 90, 48, .10), 0 2px 6px rgba(74, 90, 48, .06); --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; margin: 0; }
body { font-family: var(--body); font-weight: 600; color: var(--bark); background: var(--cream); font-size: 17px; line-height: 1.45; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; }
img { max-width: 100%; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px 48px; }

/* buttons: pills that rise under the pointer and sink softly when pressed */
.btn { font-family: var(--display); font-weight: 600; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 30px; border-radius: 999px; background: var(--honey); color: var(--honey-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(180, 130, 10, .22), 0 8px 18px rgba(220, 165, 31, .35); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease); user-select: none; }
@media (hover: hover) { .btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(180, 130, 10, .22), 0 14px 24px rgba(220, 165, 31, .40); } }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.975); filter: brightness(.98); box-shadow: inset 0 2px 5px rgba(140, 100, 0, .28), 0 3px 8px rgba(220, 165, 31, .30); }
.btn:focus-visible, .opt:focus-visible, .lesson:focus-visible, .qz:focus-visible, .x:focus-visible, .who:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.btn:disabled { background: var(--sand); color: var(--mute); box-shadow: none; cursor: default; }
.btn.white { background: var(--paper); color: var(--bark); box-shadow: inset 0 0 0 2px var(--line), 0 6px 14px rgba(74, 90, 48, .08); }
@media (hover: hover) { .btn.white:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--honey), 0 10px 20px rgba(74, 90, 48, .12); } }
.btn.red { background: var(--berry); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(120, 30, 20, .22), 0 8px 18px rgba(229, 96, 79, .35); }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: 16px; }
.x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--bark); background: var(--paper); box-shadow: var(--lift); transition: transform .18s var(--ease); flex: none; }
@media (hover: hover) { .x:hover { transform: translateY(-2px) rotate(-6deg); } } .x:active { transform: scale(.92); }

/* sign-in: a paper card in the meadow */
.login { width: min(440px, calc(100% - 32px)); margin: auto; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--lift); }
#app:has(.login) { background: linear-gradient(var(--sky-1), var(--sky-2) 70%, var(--meadow) 70.2%); padding: 24px 0; }
.login h1 { font-size: 32px; text-align: center; color: var(--forest); }
.login p { margin: 0 0 6px; text-align: center; color: var(--mute); }
.field { width: 100%; min-height: 52px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); padding: 12px 20px; font: inherit; color: var(--bark); outline: none; transition: border-color .18s, box-shadow .18s; }
.field:focus { border-color: var(--honey); box-shadow: 0 0 0 5px var(--honey-l); }
.err { min-height: 44px; color: var(--berry-d); text-align: center; } /*FA6a*/ /* room for two lines, so the button below never moves */
.login .btn { width: 100%; }
.mascot { width: 120px; height: 120px; margin: 0 auto; display: block; }
.mascot.bob { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* home: menu, the welcome in the scenery, the day on tiles, the lessons */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px max(20px, calc((100% - 1000px) / 2)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 8px; margin-right: auto; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--forest); }
.logo .mascot { width: 34px; height: 34px; margin: 0; }
.logo .fbl { width: 30px; height: 28px; flex: none; object-fit: contain; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 6px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-family: var(--display); font-weight: 600; }
.pill i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--honey-l); } .pill svg { width: 17px; height: 17px; } .pill.off { color: var(--mute); }
.who { text-align: right; font-family: var(--display); font-weight: 600; padding: 4px 12px; border-radius: 16px; line-height: 1.15; transition: background .18s; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .who:hover { background: var(--leaf-l); } } .who small { display: block; font-family: var(--body); color: var(--mute); font-size: 13px; }
.scene { position: relative; background: linear-gradient(var(--sky-1), var(--sky-2)); overflow: hidden; }
.scene .land { display: block; width: 100%; height: clamp(250px, 30vw, 360px); }
.scene .over { position: absolute; left: max(20px, calc((100% - 1000px) / 2)); top: 50%; transform: translateY(-58%); max-width: min(520px, 62%); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.scene h1 { font-size: clamp(26px, 4vw, 44px); } .scene p { margin: 0; }
.scene .buddy { position: absolute; right: max(26%, calc((100% - 1000px) / 2 + 220px)); bottom: 8%; } .scene .buddy .mascot { width: clamp(84px, 11vw, 132px); height: auto; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: -34px; position: relative; }
.tile { background: var(--paper); border-radius: 24px; box-shadow: var(--lift); padding: 16px 18px; display: flex; gap: 14px; align-items: center; min-width: 0; }
.tile h3 { font-size: 18px; } .tile small { color: var(--mute); }
.ringbox { position: relative; width: 72px; height: 72px; flex: none; } .ring { width: 72px; height: 72px; transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 9; } .ring .bg { stroke: var(--sand); } .ring .fg { stroke: var(--meadow); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ringbox b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-width: 72px; justify-content: center; padding: 12px 14px; border-radius: 20px; font-family: var(--display); font-weight: 600; font-size: 22px; flex: none; } .badge svg { width: 22px; height: 22px; } .badge.honey { background: var(--honey-l); } .badge.fire { background: var(--fire-l); }
.wrap h2 { font-size: 26px; color: var(--forest); margin: 30px 4px 12px; }
.list { display: grid; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper); border-radius: 22px; padding: 12px 18px; box-shadow: var(--lift); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
@media (hover: hover) { .lesson:hover:not(.lock) { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(74, 90, 48, .14), inset 0 0 0 2px var(--honey); } } .lesson:active:not(.lock) { transform: scale(.99); }
.lesson .no { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 20px; background: var(--leaf-l); color: var(--forest); flex: none; }
.lesson .what { flex: 1; min-width: 0; } .lesson b { font-family: var(--display); font-weight: 600; font-size: 18px; display: block; } .lesson small { color: var(--mute); }
.lesson .bar { width: min(180px, 24vw); flex: none; } .lesson .score { width: 48px; text-align: right; font-family: var(--display); color: var(--forest); flex: none; }
.lesson.lock { background: var(--sand); box-shadow: none; color: var(--mute); cursor: default; } .lesson.lock .no { background: var(--line); color: var(--mute); }
.more { color: var(--mute); margin: 12px 4px 0; }
.bar { height: 14px; border-radius: 99px; background: var(--sand); overflow: hidden; } .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--meadow), #a3d977); transition: width .4s var(--ease); }
.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--mute); }

/* a paper dialog (a lesson's quizzes, small questions) */
body.sheet-open { overflow: hidden; }
.shade { position: fixed; inset: 0; background: rgba(59, 47, 36, .38); z-index: 20; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.sheet { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--cream); border-radius: var(--r-card); padding: 24px 22px; box-shadow: 0 30px 80px rgba(59, 47, 36, .3); animation: rise .28s var(--ease); }
.sheet .close { position: absolute; top: 14px; right: 14px; box-shadow: none; background: var(--sand); width: 38px; height: 38px; font-size: 22px; }
.sheet h2 { font-size: 26px; color: var(--forest); margin: 0 44px 10px 2px; } .sheet h3 { margin: 18px 2px 8px; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--meadow-d); }
.qz { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; text-decoration: none; color: inherit; background: var(--paper); border-radius: 20px; padding: 12px 16px; margin-bottom: 9px; box-shadow: inset 0 0 0 2px var(--line); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
@media (hover: hover) { .qz:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--honey), 0 10px 18px rgba(74, 90, 48, .10); } } .qz:active { transform: scale(.985); }
.qz b { flex: 1; min-width: 0; font-family: var(--display); font-weight: 500; font-size: 18px; } .qz small { display: block; font-family: var(--body); color: var(--mute); font-size: 14px; }
.stars { display: inline-flex; gap: 2px; } .stars svg { width: 22px; height: 22px; fill: var(--line); } .stars svg.on { fill: var(--honey); filter: drop-shadow(0 2px 2px rgba(220, 165, 31, .4)); }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(18px) scale(.97); opacity: 0; } }

/* the shelf: the student's books, when there is more than one */
.shelf { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 2px 0; }
.bk { font-family: var(--display); font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; }
.bk small { display: block; font-family: var(--body); font-size: 12px; color: var(--mute); }
@media (hover: hover) { .bk:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--honey), 0 8px 16px rgba(74, 90, 48, .10); } }
.bk.on { background: var(--honey-l); box-shadow: inset 0 0 0 2px var(--honey); }
.bk.on small { color: var(--honey-ink); }
/* a listening: the same card as a quiz, but it plays instead of asking */
.hear { background: var(--paper); border-radius: 20px; padding: 14px 16px; box-shadow: inset 0 0 0 2px var(--line); display: grid; gap: 10px; margin-bottom: 9px; }
.hear .hl b { font-family: var(--display); font-weight: 500; font-size: 18px; display: block; }
.hear .hl small { color: var(--mute); }
.hear audio { width: 100%; height: 40px; }
/* the player: one question on a paper card */
.play { flex: 1; width: min(720px, 100%); margin: 0 auto; display: flex; flex-direction: column; padding: 18px 16px 24px; gap: 16px; }
#app:has(.play), #app:has(.done) { background: linear-gradient(var(--sky-1), var(--sky-2) 240px, var(--cream) 520px); }
.phead { display: flex; align-items: center; gap: 14px; } .phead .bar { flex: 1; background: rgba(255, 255, 255, .8); }
.pbody { background: var(--paper); border-radius: var(--r-card); box-shadow: var(--lift); padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; animation: cardIn .28s var(--ease); }
.pbody.out { animation: cardOut .16s var(--ease) forwards; pointer-events: none; }
@keyframes cardIn { from { transform: translateX(26px) scale(.985); opacity: 0; } }
@keyframes cardOut { to { transform: translateX(-26px) scale(.98); opacity: 0; } }
.ask { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.200vw, 28px); line-height: 1.3; white-space: pre-line; }
.ask mark, .opt mark { background: var(--leaf-l); color: var(--forest); border-radius: 8px; padding: 0 5px; }
.gap { display: inline-block; min-width: 72px; border-bottom: 3px dashed var(--honey-d); margin: 0 4px; text-align: center; color: var(--forest); line-height: 1.1; }
.pic { align-self: center; width: min(46vw, 200px); height: min(46vw, 200px); object-fit: contain; }
.opts { display: grid; gap: 12px; margin-top: auto; } .opts.two { grid-template-columns: 1fr 1fr; }
.opt { font-family: var(--display); font-weight: 500; font-size: 19px; min-height: 58px; padding: 12px 16px; border-radius: var(--r-opt); background: var(--paper); text-align: center; box-shadow: inset 0 0 0 2px var(--line), 0 4px 10px rgba(74, 90, 48, .06); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; }
@media (hover: hover) { .opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--honey), 0 10px 18px rgba(74, 90, 48, .10); } } .opt:active:not(:disabled) { transform: scale(.97); }
.opt img { width: 76px; height: 76px; object-fit: contain; display: block; margin: 0 auto; }
.opt.sel { background: var(--honey-l); box-shadow: inset 0 0 0 2px var(--honey); }
.opt.good { background: var(--leaf-l); color: var(--forest); box-shadow: inset 0 0 0 2px var(--meadow); animation: pop .4s var(--ease); }
.opt.bad { background: var(--berry-l); color: var(--berry-d); box-shadow: inset 0 0 0 2px var(--berry); animation: wobble .45s; }
.opt.gone { opacity: .45; }
.gaps { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 2.2; }
.gapin { font: inherit; font-size: 17px; width: 7.5em; margin: 0 4px; padding: 4px 10px; border: 0; border-bottom: 3px dashed var(--honey-d); background: var(--honey-l); border-radius: 10px 10px 4px 4px; color: var(--forest); outline: none; }
.gapin:focus { background: #fff; box-shadow: 0 0 0 3px var(--honey-l); }
.gapin.good { background: var(--leaf-l); border-bottom-color: var(--meadow); color: var(--forest); }
.gapin.bad { background: var(--berry-l); border-bottom-color: var(--berry); color: var(--berry-d); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; } .cols > div { display: grid; gap: 12px; align-content: start; }
.seq { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 8px; border-radius: var(--r-opt); border: 2px dashed var(--line); } .seq .opt, .bank .opt { min-height: 44px; padding: 8px 14px; font-size: 17px; } .bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@keyframes pop { 45% { transform: scale(1.06); } } @keyframes wobble { 20%, 60% { transform: translateX(-6px) rotate(-1deg); } 40%, 80% { transform: translateX(6px) rotate(1deg); } }
.foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 24px; padding: 4px; min-height: 60px; } .foot:empty { display: none; }
.foot.good { background: var(--leaf-l); color: var(--forest); padding: 12px 16px; } .foot.bad { background: var(--berry-l); color: var(--berry-d); padding: 12px 16px; }
.foot > .btn { margin-left: auto; } .say { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; animation: rise .25s var(--ease); } .say .mascot { width: 60px; height: 60px; margin: 0; flex: none; }
.say b { display: block; font-family: var(--display); font-size: 20px; }
.theory { align-self: center; max-height: 52vh; border-radius: 18px; }

/* the result */
.done { width: min(520px, calc(100% - 32px)); margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 26px; text-align: center; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--lift); }
.done h1 { font-size: 34px; color: var(--forest); } .done p { margin: 0; color: var(--mute); }
.done .stars svg { width: 54px; height: 54px; } .done .stars svg.on { animation: star .5s backwards; } .done .stars svg:nth-child(2).on { animation-delay: .18s; } .done .stars svg:nth-child(3).on { animation-delay: .36s; }
@keyframes star { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25); } }
.done .tiles { margin: 8px 0 0; width: 100%; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.done .tile { flex-direction: column; gap: 0; padding: 12px 6px; box-shadow: none; border-radius: 20px; } .done .tile b { font-family: var(--display); font-size: 26px; } .done .tile small { font-size: 13px; }
.tile.xp { background: var(--honey-l); } .tile.sc { background: var(--leaf-l); } .tile.st { background: var(--fire-l); }
.bits { width: 100%; text-align: left; color: var(--mute); } .bits div { display: flex; justify-content: space-between; padding: 3px 6px; animation: rise .3s backwards; } .bits b { color: var(--honey-d); font-family: var(--display); }
.done .acts { width: 100%; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; } .done .acts .btn { flex: 1; }

#fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
#fx .bit { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 4px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--rot)); } }
#fx .spark { position: fixed; width: 9px; height: 9px; border-radius: 3px; animation: spark .75s var(--ease) forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--rot)); opacity: 0; } }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--sand); border-top-color: var(--meadow); animation: turn .8s linear infinite; margin: auto; } @keyframes turn { to { transform: rotate(360deg); } }
/* ---- the site (2026-11-22): menu links, the shelf of books like the old site's grid, book page, help, footer */
a { color: var(--forest); }
.nav .logo { text-decoration: none; margin-right: 8px; }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--bark); padding: 8px 14px; border-radius: 999px; transition: background .18s; }
@media (hover: hover) { .links a:hover { background: var(--leaf-l); } } .links a.on { background: var(--honey-l); color: var(--honey-ink); }
.nav > .btn.small { text-decoration: none; }
.books { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 24px; box-shadow: var(--lift); overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
@media (hover: hover) { a.bcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(74, 90, 48, .16), inset 0 0 0 2px var(--honey); } } a.bcard:active { transform: scale(.985); }
a.bcard:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.bc-in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bc-in h3 { font-size: 20px; } .bc-in small { color: var(--mute); font-size: 14px; } .bc-in small b { color: var(--forest); font-weight: 700; }
.bc-in .bar { height: 10px; } .bc-in .btn { margin-top: auto; width: 100%; } .bc-in .last { margin-bottom: 6px; }
.tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); box-shadow: 0 4px 10px rgba(220, 165, 31, .35); }
.tag svg, .btn svg { width: 15px; height: 15px; flex: none; }
.tag.lockt { background: rgba(255, 255, 255, .9); color: var(--mute); box-shadow: none; }
.bcard.lock { background: var(--sand); box-shadow: none; cursor: not-allowed; }
.bcard.lock .cv { filter: grayscale(.85) opacity(.55); } .bcard.lock h3 { color: var(--mute); }
.btn.ghost { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 2px var(--line); cursor: not-allowed; }
@media (hover: hover) { .btn.ghost:hover { transform: none; filter: none; box-shadow: inset 0 0 0 2px var(--line); } }
/* covers: a soft colour, two hills, a big rounded number or an icon, a leaf. Book colours come from the scene's palette. */
.cv { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; --c: var(--meadow); --h: rgba(255, 255, 255, .28); background: var(--c); color: #fff; }
.cv .hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; fill: var(--h); }
.cv .num { position: relative; font-family: var(--display); font-weight: 700; font-size: 86px; line-height: 1; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .12); }
.cv .ico { position: relative; width: 70px; height: 70px; color: #fff; } .cv .ico svg { width: 100%; height: 100%; }
.cv .lf { position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; color: rgba(255, 255, 255, .7); } .cv .lf svg { width: 100%; height: 100%; }
/* official Forest colours (owner, 2026-11-22) */
.cv.f1 { --c: #EF4050; } .cv.f2 { --c: #F89938; } .cv.f3 { --c: #FEE114; } .cv.f3 .num { color: var(--honey-ink); } .cv.f4 { --c: #93BA53; } .cv.f5 { --c: #258A67; }
.cv.f6 { --c: #2C95BA; } .cv.f7 { --c: #295BA9; } .cv.f8 { --c: #A74C87; } .cv.f9 { --c: #EC6B87; }
.cv.pt { --c: #5aa9e6; } .cv.other { --c: #c7a46a; }
/* a book's own page */
.crumbs { display: flex; gap: 8px; align-items: center; margin: 22px 4px 0; color: var(--mute); font-size: 15px; } .crumbs a { text-decoration: none; font-weight: 700; } @media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }
.bhead { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin-top: 16px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--lift); padding: 18px; }
.bhead .cv { border-radius: 18px; } .bhead h1 { font-size: clamp(28px, 4vw, 40px); color: var(--forest); } .bhead p { margin: 4px 0 10px; color: var(--mute); }
.bhead > div:not(.cv) { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .bhead .bar { width: 100%; max-width: 360px; } .bhead small { color: var(--mute); } .bhead .btn { margin-top: 8px; }
.lesson svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.note { display: flex; align-items: center; gap: 14px; background: var(--leaf-l); border-radius: 22px; padding: 12px 18px; margin-bottom: 12px; } .note .mascot { width: 54px; height: 54px; margin: 0; flex: none; }
/* the privacy page */
.wrap.narrow { max-width: 760px; }
.ptitle { font-size: clamp(32px, 5vw, 44px); color: var(--forest); margin: 34px 4px 6px; } .lead { margin: 0 4px 10px; color: var(--mute); font-size: 18px; }
.txt { margin: 0 4px 12px; } ul.txt { padding-left: 22px; } ul.txt li { margin: 4px 0; }
.sheet .sub { margin: 0 4px 16px; color: var(--mute); font-weight: 700; } .stack { display: grid; gap: 12px; } .stack .btn { text-decoration: none; }
/* Forest Books: five to a row on a wide screen, so 10 books are two even rows */
/*STAFF3*/ /* the teachers' library: 3 per row on a wide screen, both sections (owner, 2026-11-22); the phone keeps its 2 */
@media (min-width: 700px) { main.staff .books, main.staff .books.five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  main.staff .books .cv .num { font-size: clamp(72px, 9vw, 112px); } main.staff .books .cv .ico { width: clamp(64px, 8vw, 96px); height: clamp(64px, 8vw, 96px); }
  main.staff .books .bc-in { padding: 16px 20px 20px; } main.staff .books .bc-in h3 { font-size: 22px; } main.staff .books .bc-in .btn.small { font-size: 16px; padding: 10px 14px; } }
@media (min-width: 900px) { .books.five { grid-template-columns: repeat(5, 1fr); gap: 16px; } .books.five .cv .num { font-size: 70px; } .books.five .bc-in h3 { font-size: 18px; } .books.five .bc-in .btn.small { font-size: 14px; padding: 6px 8px; white-space: nowrap; } }
/* the name menu: a dropdown under the name */
.menu { position: fixed; z-index: 30; min-width: 220px; background: var(--paper); border-radius: 20px; box-shadow: 0 18px 40px rgba(59, 47, 36, .18), 0 0 0 1px var(--line); padding: 8px; animation: drop .16s var(--ease); }
.m-me { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .m-me b { display: block; font-family: var(--display); font-size: 17px; } .m-me small { color: var(--mute); font-size: 13px; }
.m-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; font-family: var(--display); font-weight: 600; }
.m-item:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
@media (hover: hover) { .m-item:hover { background: var(--leaf-l); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
/* the footer */
.foot-site { margin-top: auto; background: var(--sand); padding: 26px 20px 18px; }
.fs-in { max-width: 1000px; margin: 0 auto; display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.fs-brand { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; max-width: 520px; } .fs-brand b { font-family: var(--display); font-size: 20px; color: var(--forest); } .fs-brand span { grid-column: 1 / -1; color: var(--mute); font-size: 15px; }
.fs-links { display: flex; gap: 6px 18px; flex-wrap: wrap; } .fs-links a, .fs-links button { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--bark); } @media (hover: hover) { .fs-links a:hover, .fs-links button:hover { color: var(--forest); text-decoration: underline; } }
.fs-small { max-width: 1000px; margin: 18px auto 0; color: var(--mute); font-size: 13px; }
/* sign-in extras: the honeypot nobody sees, the hints, the links under the card */
.login-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 0; background: linear-gradient(var(--sky-1), var(--sky-2) 70%, var(--meadow) 70.2%); }
#app:has(.login) { background: none; padding: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 14px; color: var(--mute); text-align: center; } .hint b { color: var(--bark); }
.hint.staff { font-size: 12.5px; padding-top: 10px; border-top: 1px dashed var(--line, rgba(90,70,40,.18)); }
/* privacy (and later terms): small, quiet letters at the very bottom of every screen (owner, 2026-11-22) */
.legal-links { display: flex; justify-content: center; gap: 14px; padding: 6px 16px 10px; font-size: 11px; background: var(--sand); }
.login-page + .legal-links { background: var(--meadow); } .login-page + .legal-links a { color: rgba(255, 255, 255, .85); }
.legal-links a { color: var(--mute); text-decoration: none; letter-spacing: .02em; } @media (hover: hover) { .legal-links a:hover { text-decoration: underline; } }
.legal h2 { font-size: 20px; color: var(--forest); margin: 24px 4px 8px; } .legal p, .legal ul { margin: 0 4px 10px; font-weight: 500; font-size: 15px; } .legal ul { padding-left: 22px; } .legal li { margin: 3px 0; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: min(520px, calc(100% - 32px)); background: var(--bark); color: var(--cream); padding: 12px 20px; border-radius: 18px; box-shadow: 0 12px 30px rgba(59, 47, 36, .3); animation: rise .25s var(--ease); text-align: center; }
/* a quiz that carries its own recording */
.hear.inq { background: var(--sky-2); box-shadow: none; } .earmark { display: inline-block; width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--meadow-d); } .earmark svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .links a { padding: 6px 9px; font-size: 15px; } .nav { gap: 8px; } .nav .pill { display: none; } .logo { font-size: 19px; }
  .books { grid-template-columns: 1fr 1fr; gap: 12px; } .bc-in { padding: 10px 12px 12px; } .bc-in h3 { font-size: 17px; } .cv .num { font-size: 60px; } .tag { top: 8px; right: 8px; font-size: 12px; padding: 4px 9px; }
  .bc-in .btn.small { min-height: 38px; padding: 6px 10px; font-size: 14px; }
  .bhead { grid-template-columns: 1fr; } .bhead .cv { max-height: 150px; aspect-ratio: auto; height: 150px; }
}
@media (max-width: 640px) {
  .links a { white-space: nowrap; } .logo { font-size: 0; gap: 0; } .logo .fbl { width: 30px; }
  .who { max-width: 30vw; }
  .scene { display: flex; flex-direction: column; }
  .scene .over { position: relative; left: auto; top: auto; transform: none; max-width: none; padding: 22px 20px 4px; order: 0; }
  .scene .over .btn { width: 100%; }
  .bcard.lock .btn.ghost { display: none; } .cv .num { font-size: 54px; transform: translateY(8px); } .cv .ico { width: 48px; height: 48px; transform: translateY(8px); }
  .scene .land { height: 130px; order: 1; margin-top: -10px; } .scene .buddy { bottom: 10px; right: 16px; } .scene .buddy .mascot { width: 70px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: -26px; }
  .wrap .tile { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 20px; }
  .wrap .tile h3 { font-size: 14px; } .wrap .tile small { font-size: 12px; line-height: 1.2; display: block; }
  .wrap .tile .badge { min-width: 0; padding: 8px 10px; font-size: 18px; } .wrap .tile .ringbox, .wrap .tile .ring { width: 58px; height: 58px; }
}
@media (max-width: 340px) { .books { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lesson .bar { display: none; } .opts.two { grid-template-columns: 1fr 1fr; } .scene .over { max-width: 74%; } .scene .buddy { right: 4%; } .pbody { padding: 20px 16px; } .who small { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* «Scan QR code» on the sign-in page: the device's camera reads the card on the book (2026-11-22) */
.scanbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.scanbtn svg { width: 24px; height: 24px; flex: none; }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; font-weight: 700; }
.login .or::before, .login .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sheet.scan { text-align: center; }
.sheet.scan h2 { margin: 0 44px 6px; }
.scan-say { margin: 0 4px 14px; color: var(--mute); font-weight: 700; min-height: 1.4em; }
.scan-say.bad { color: var(--berry-d); }
.scan-box { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #24301f; margin-bottom: 16px; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.scan-frame { position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px solid rgba(255, 255, 255, .92); border-radius: 22px; box-shadow: 0 0 0 999px rgba(20, 30, 16, .28); animation: scanpulse 1.6s ease-in-out infinite; }
.sheet.scan.off .scan-frame, .shade.off .scan-frame { animation: none; opacity: .4; }
@keyframes scanpulse { 50% { border-color: rgba(253, 216, 102, .95); } }
@media (prefers-reduced-motion: reduce) { .scan-frame { animation: none; } }
.sheet.scan .btn { width: 100%; }
