/* TN HAPPY KIDS — kids learning corner */

:root{
  --ink:#1d3a57;
  --green:#5f9645;
  --green-deep:#41702c;
  --orange:#e8763f;
  --sky:#3f9bbd;
  --paper:#fffdf7;
  --soft:#eef3e7;
  --line:#e3e9dc;
  --muted:#6a7a86;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Nunito,system-ui,sans-serif;
}
h1,h2,h3{font-family:'Baloo 2',Nunito,sans-serif;font-weight:800;letter-spacing:-.01em;margin:0}
a{text-decoration:none;color:inherit}
button{font-family:inherit}
:focus-visible{outline:3px solid var(--sky);outline-offset:3px}

/* ---------- shared bits ---------- */
.art{width:64px;height:64px;display:block;flex:none}
.art-shadow .shadow-fill *{fill:#6f685c;stroke:#6f685c}

.kids-nav{
  height:84px;padding:0 max(4vw,22px);
  display:flex;align-items:center;justify-content:space-between;
  background:#fff;border-bottom:1px solid var(--line);
}
.kids-logo{width:210px;height:60px}
.kids-logo img{width:100%;height:100%;object-fit:contain;object-position:left center}
.kids-back{
  padding:10px 16px;border-radius:999px;background:var(--soft);
  color:var(--green-deep);font-weight:800;font-size:14px;
}
.kids-back:hover{background:#e1ecd6}
.kids-foot{padding:26px;text-align:center;background:#173a61;color:#cdddea;font-size:13px}

/* ---------- hub hero ---------- */
.hub-hero{
  width:min(1180px,92%);margin:auto;padding:58px 0 26px;
  display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center;
}
.hub-words h1{font-size:clamp(38px,5vw,62px);line-height:1.02;max-width:11ch}
.hub-words p{max-width:52ch;color:var(--muted);font-size:17px;line-height:1.6}
.hub-start{
  display:inline-block;margin-top:10px;padding:15px 26px;border-radius:999px;
  background:var(--orange);color:#fff;font-weight:900;box-shadow:0 10px 20px #e8763f33;
}
.hub-start:hover{background:#d96732}
.hub-note{font-size:13px;color:#8b9aa4;margin-top:16px}
.hero-sheet{width:100%;max-width:440px;margin-left:auto;display:block;
  filter:drop-shadow(0 18px 34px rgba(29,58,87,.13))}

/* ---------- hub list ---------- */
.hub-list{width:min(1180px,92%);margin:auto;padding:30px 0 80px}
.hub-head{max-width:60ch;margin-bottom:26px}
.hub-head h2{font-size:34px}
.hub-head p{color:var(--muted);margin:6px 0 0}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;
  display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(29,58,87,.12)}
.card-art{width:100%;height:auto;display:block}
.card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-skill{color:var(--green);font-size:13px;font-weight:800}
.card h3{font-size:23px}
.card-body p{margin:0;color:var(--muted);font-size:14px;line-height:1.5;flex:1}
.card-foot{margin-top:10px;font-size:12px;color:#93a1aa}
.card.is-done .card-skill::after{content:' · finished';color:var(--orange)}

/* ---------- play layout ---------- */
.play{
  width:min(1200px,94%);margin:auto;padding:34px 0 70px;
  display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr);gap:26px;align-items:start;
}
.sheet{
  padding:30px 32px 36px;border-radius:22px;background:#fff;
  border:1px solid var(--line);
  background-image:radial-gradient(#eef1e8 1.4px,transparent 1.4px);
  background-size:22px 22px;background-position:12px 12px;
  box-shadow:0 14px 30px rgba(29,58,87,.08);
}
.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.sheet-pill{padding:8px 16px;border-radius:999px;background:var(--green);color:#fff;font-weight:800;font-size:14px}
.sheet-code{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.sheet-code b{color:var(--green-deep);font-size:13px}
.sheet-code i{color:#9aa7b0;font-style:normal;font-size:12px}
.sheet h1{margin:18px 0 6px;font-size:clamp(28px,3.4vw,40px)}
.sheet-instruction{margin:0 0 22px;color:var(--muted);font-size:16px;max-width:60ch}
.stage{min-height:340px}

[hidden]{display:none!important}
.finish{
  margin-top:26px;padding:20px;border-radius:16px;background:var(--soft);
  display:flex;align-items:center;gap:18px;
}
.finish .badge{width:72px;height:72px;flex:none}
.finish h2{font-size:26px}
.finish p{margin:4px 0 0;color:var(--muted)}

/* ---------- coach panel ---------- */
.coach{display:grid;gap:18px;position:sticky;top:20px}
.coach-card{padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.coach-card h2{font-size:20px;margin-bottom:12px}
.talk{
  margin:0 0 16px;padding:14px 16px;border-radius:14px;
  background:var(--soft);color:var(--green-deep);font-weight:700;font-size:15px;line-height:1.45;
}
.talk.happy{background:#e4f2dd}
.talk.soft{background:#fdeede;color:#b8552a}
.bar{height:10px;border-radius:999px;background:#eef1ea;overflow:hidden}
.bar span{display:block;height:100%;width:0;border-radius:999px;background:var(--green);transition:width .3s ease}
.bar-text{margin:8px 0 16px;font-size:13px;color:var(--muted)}
.coach-actions{display:flex;gap:10px;flex-wrap:wrap}
.coach-actions button,.coach-actions a{
  padding:12px 18px;border:0;border-radius:999px;font-weight:800;font-size:14px;cursor:pointer;
}
.coach-actions button{background:var(--soft);color:var(--green-deep)}
.coach-actions a{background:var(--orange);color:#fff}
.activity-list{display:grid;gap:4px}
.list-item{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border-radius:12px}
.list-item:hover{background:#f6f8f3}
.list-item b{display:block;font-size:14px}
.list-item em{font-style:normal;font-size:12px;color:var(--muted)}
.list-tick{
  width:18px;height:18px;flex:none;margin-top:2px;border-radius:50%;
  border:2px solid var(--line);
}
.list-item.is-done .list-tick{border-color:var(--green);background:var(--green)}
.list-item.is-current{background:var(--soft)}
.coach-note{margin:12px 0 0;font-size:12px;color:#93a1aa}

/* ---------- matching board ---------- */
.pair-board{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,7vw,90px)}
.pair-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pair-lines line{stroke:var(--green);stroke-width:4;stroke-linecap:round}
.pair-col{display:grid;gap:10px;align-content:start}
.pair-item{
  display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;
  border:2px solid var(--line);border-radius:16px;background:#fff;text-align:left;
}
.pair-right .pair-item{flex-direction:row-reverse}
.pair-face{display:flex;align-items:center;justify-content:center;width:64px;flex:none}
.pair-face.is-wide{width:auto}
.pair-name{font-weight:800;font-size:15px;color:var(--ink)}
.face-text{font-family:'Baloo 2',sans-serif;font-size:42px;font-weight:800;line-height:1}
.pair-face.is-wide .face-text{font-size:28px}
.pair-dot{width:12px;height:12px;border-radius:50%;background:var(--green);margin-left:auto;flex:none}
.pair-right .pair-dot{margin:0 auto 0 0}
.pair-item.is-picked{border-color:var(--sky);background:#eff7fb}
.pair-item.is-done{border-color:var(--green);background:#f3f8ee}
.pair-item.is-wrong{border-color:#e07a6a;animation:shake .35s}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* ---------- counting ---------- */
.count-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.count-box{
  padding:14px;border:2px solid var(--line);border-radius:16px;background:#fff;
  display:flex;flex-direction:column;gap:12px;
}
.count-objects{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;min-height:96px;align-items:center}
.count-objects .art{width:44px;height:44px}
.count-options{display:flex;gap:8px;justify-content:center}
.count-opt{
  width:46px;height:46px;border-radius:50%;cursor:pointer;
  border:2px solid var(--line);background:#fff;color:var(--ink);
  font-family:'Baloo 2',sans-serif;font-size:22px;font-weight:800;
}
.count-opt:hover:not(:disabled){border-color:var(--green)}
.count-opt.is-right{border-color:var(--green);background:var(--green);color:#fff}
.count-opt.is-wrong{border-color:#e07a6a;animation:shake .35s}
.count-box.is-done{background:#f7faf4;border-color:var(--green)}

/* ---------- comparison ---------- */
.choice-list{display:grid;gap:12px}
.choice-row{
  display:grid;grid-template-columns:minmax(120px,190px) 1fr;gap:16px;align-items:center;
  padding:14px 16px;border:2px solid var(--line);border-radius:16px;background:#fff;
}
.choice-q{margin:0;font-weight:800;font-size:17px}
.choice-opts{display:flex;gap:18px;align-items:center;justify-content:flex-start;flex-wrap:wrap}
.choice-opt{
  padding:10px;border:3px solid transparent;border-radius:50%;background:none;cursor:pointer;
}
.choice-pic{display:flex;align-items:flex-end;justify-content:center;gap:2px;flex-wrap:wrap;max-width:130px}
.choice-opt:hover{border-color:#dfe6d7}
.choice-opt.is-right{border-color:var(--green);background:#f3f8ee}
.choice-opt.is-wrong{border-color:#e07a6a;animation:shake .35s}
.choice-row.is-done{border-color:var(--green);background:#f9fbf6}

/* ---------- colouring ---------- */
.colour-wrap{display:grid;justify-items:center;gap:16px}
.palette{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.swatch{
  display:flex;align-items:center;gap:8px;padding:8px 14px;cursor:pointer;
  border:2px solid var(--line);border-radius:999px;background:#fff;font-weight:800;font-size:14px;
}
.swatch span{width:18px;height:18px;border-radius:50%;background:var(--swatch)}
.swatch.is-on{border-color:var(--ink);background:#f6f8f3}
.colour-scene{width:min(560px,100%);height:auto}
.colour-scene .region{fill:#fff;stroke:#c4cabd;stroke-width:2;cursor:pointer}
.colour-scene .region:hover{stroke:var(--ink)}
.colour-scene .region.is-done{stroke:#a9b4a0;cursor:default}
.colour-legend{margin:0;color:var(--muted);font-size:14px;font-weight:700}

/* ---------- tracing ---------- */
.trace-wrap{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;justify-items:center}
.trace-words{display:grid;gap:22px}
.trace-words figure{margin:0;display:grid;justify-items:center;gap:6px}
.trace-words .art{width:76px;height:76px}
.trace-words figcaption{font-weight:800;color:var(--orange);font-size:15px}
.trace-sheet{width:min(320px,100%);height:auto;touch-action:none;cursor:crosshair}
.trace-track{stroke:#eceee7;stroke-width:30;stroke-linecap:round}
.trace-dash{stroke:#b4bdaa;stroke-width:2;stroke-dasharray:7 8}
.trace-ink{stroke:#f4c542;stroke-width:26;stroke-linecap:round}
.trace-ink.is-done{stroke:#f0b81f}
.trace-start{fill:#e0574f}
.trace-start.is-done{fill:var(--green)}
.trace-num{font-family:'Baloo 2',sans-serif;font-size:19px;font-weight:800;fill:var(--ink)}

/* ---------- sticker pages ---------- */
.sticker-wrap{display:grid;gap:18px}
.sticker-scene{
  position:relative;min-height:330px;border:3px dashed #dde5d3;border-radius:20px;background:#fdfdf8;
}
.scene-label{position:absolute;top:12px;left:16px;font-weight:800;color:#a9b4a0;font-size:13px}
.scene-figure{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.scene-figure .art{width:min(210px,42vw);height:auto}
.sticker-slot{
  position:absolute;transform:translate(-50%,-50%);width:86px;height:86px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:3px dashed #cdd8c2;border-radius:18px;background:#ffffffcc;
}
.sticker-slot:hover{border-color:var(--green)}
.slot-ghost{opacity:.3}
.slot-ghost .art{width:56px;height:56px}
.sticker-slot.is-filled{border-style:solid;border-color:var(--green);background:#f4f9ef;cursor:default}
.slot-art .art{width:52px;height:52px}
.slot-name{font-size:12px;font-weight:800;color:var(--green-deep)}
.sticker-slot.is-wrong{border-color:#e07a6a;animation:shake .35s}
.sticker-tray{padding:16px;border:2px solid var(--line);border-radius:18px;background:#fff}
.sticker-tray p{margin:0 0 12px;font-weight:800;color:var(--muted);font-size:14px}
.tray-items{display:flex;flex-wrap:wrap;gap:10px}
.tray-item{
  display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 12px;cursor:grab;
  border:2px solid var(--line);border-radius:14px;background:#fff;touch-action:none;
}
.tray-item span{font-size:12px;font-weight:800;color:var(--ink)}
.tray-item .art{width:48px;height:48px}
.tray-item.is-picked{border-color:var(--sky);background:#eff7fb}
.tray-item.is-used{opacity:.32;cursor:default}
.drag-ghost{
  position:fixed;z-index:60;transform:translate(-50%,-50%);pointer-events:none;opacity:.92;
  display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 12px;
  border:2px solid var(--sky);border-radius:14px;background:#fff;box-shadow:0 10px 20px rgba(29,58,87,.2);
}
.drag-ghost .art{width:48px;height:48px}
.drag-ghost span{font-size:12px;font-weight:800}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .play{grid-template-columns:1fr}
  .coach{position:static}
  .hub-hero{grid-template-columns:1fr;padding-top:40px}
  .hero-sheet{margin:0 auto}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .trace-wrap{grid-template-columns:1fr}
  .trace-words{grid-auto-flow:column;gap:26px}
}
@media (max-width:640px){
  .kids-logo{width:150px;height:46px}
  .sheet{padding:22px 18px 28px}
  .card-grid{grid-template-columns:1fr}
  .count-grid{grid-template-columns:repeat(2,1fr)}
  .choice-row{grid-template-columns:1fr}
  .pair-board{gap:14px}
  .pair-item{padding:8px 10px;gap:8px}
  .pair-face{width:48px}
  .pair-face .art{width:48px;height:48px}
  .face-text{font-size:34px}
  .sticker-slot{width:68px;height:68px;border-radius:14px}
  .slot-ghost .art{width:42px;height:42px}
  .slot-name{font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---------- social row (footer) ---------- */
.social-row{display:flex;gap:10px;justify-content:center;margin-top:12px}
.social-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #ffffff2e;color:#cdddea;background:#ffffff0f;transition:.2s}
.social-btn svg{width:17px;height:17px}
.social-btn:hover{color:#fff;transform:translateY(-2px)}
.social-instagram:hover{background:linear-gradient(135deg,#f58529,#dd2a7b 60%,#8134af)}
.social-whatsapp:hover{background:#25d366}
.social-facebook:hover{background:#1877f2}
.social-youtube:hover{background:#ff0000}
