/* Sofia's Inclusive Space — shared styles */

:root {
  --bg: #fdfaf5;
  --surface: #ffffff;
  --ink: #2b2a33;
  --ink-soft: #5b5966;
  --brand: #3d6b8f;        /* calm blue */
  --brand-dark: #2c5070;
  --accent: #e8925b;       /* warm apricot */
  --accent-soft: #fbe6d6;
  --sage: #8fb59a;
  --sage-soft: #e3efe6;
  --lilac-soft: #ece6f6;
  --sun-soft: #fdf1c9;
  --border: #e7e1d8;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 42, 51, 0.08);
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-head: "Fredoka", "Atkinson Hyperlegible", system-ui, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.site-nav a:hover { background: var(--sage-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--sage-soft); }
.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

.header-inner .site-nav { margin-left: auto; }
/* The menu folds away earlier now that the header also holds the language flags. */
.logo, .site-nav a { white-space: nowrap; }
@media (max-width: 1340px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #2b2a33; }
.btn-accent:hover { background: #df7f43; color: #2b2a33; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 5rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
}
.hero-art svg { width: 82%; height: auto; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.trust-row span { display: flex; align-items: center; gap: 0.4rem; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; width: 100%; margin: 0 auto; }
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  display: block;
  padding: 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card .icon { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.cat-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.bg-sage { background: var(--sage-soft); }
.bg-peach { background: var(--accent-soft); }
.bg-lilac { background: var(--lilac-soft); }
.bg-sun { background: var(--sun-soft); }

/* ---------- Resource cards ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.resource-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.resource-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
}
.thumb-fan { display: flex; justify-content: center; align-items: center; width: 100%; padding: 0 8%; }
.thumb-fan .sym-card { width: 31%; margin: 0 -2%; box-shadow: 0 8px 18px rgba(43,42,51,.14); }
.thumb-fan .sym-card:nth-child(1) { transform: rotate(-8deg) translateY(6px); }
.thumb-fan .sym-card:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.thumb-fan .sym-card:nth-child(3) { transform: rotate(8deg) translateY(6px); }
.thumb-fan .sym-card .lbl { font-size: clamp(10px, 11cqw, 15px); }
.resource-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.resource-body h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.resource-body p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.price { font-weight: 700; font-size: 1.15rem; }
.price.free { color: #2f7a4a; }

/* ---------- Filters (resources page) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 180px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.result-count { color: var(--ink-soft); margin-bottom: 1rem; }
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
  border: 2px dashed #e5b892;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value .icon { font-size: 1.8rem; }

/* ---------- Testimonials ---------- */
.band { background: var(--sage-soft); }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.quote {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 0;
}
.quote p { font-size: 1.05rem; }
.quote footer { color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--brand);
  color: #fff;
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #dfe9f2; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.newsletter-form input {
  font: inherit;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  flex: 0 1 340px;
}
.form-msg { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-info .value { margin-bottom: 1rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

/* ---------- Page header ---------- */
.page-header { padding: 3.5rem 0 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2b2a33;
  color: #d9d6e0;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #d9d6e0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #44424f;
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Readability toggle ---------- */
body.easy-read {
  font-size: 1.2rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}
.a11y-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.a11y-toggle[aria-pressed="true"] { background: var(--brand); color: #fff; }

.emoji { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.hint { color: var(--ink-soft); font-size: 0.95rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.notice {
  background: var(--sun-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-weight: 700;
}
.notice:empty { display: none; }
.pro-badge {
  display: inline-block;
  background: var(--accent);
  color: #2b2a33;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
}
.smiley { width: 48px; height: 48px; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }

/* ---------- Symbol visuals (shared by maker, templates, games) ---------- */
.sym-visual {
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sym-emoji {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 66cqw;
  line-height: 1;
}
.sym-glyph, .sym-word {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.sym-glyph { font-size: 72cqw; }
.sym-word { font-size: 22cqw; text-align: center; overflow-wrap: anywhere; padding: 0 6%; }
.sym-svg { width: 88%; height: 88%; }
.sym-img { width: 92%; height: 92%; object-fit: contain; border-radius: 8px; }
.sym-num { display: flex; flex-direction: column; align-items: center; gap: 4cqw; }
.sym-num-n { font-family: var(--font-head); font-weight: 600; font-size: 42cqw; line-height: 1; color: var(--brand-dark); }
.sym-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; max-width: 64cqw; }
.sym-dots i { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--accent); }
.sym-dots.many { max-width: 80cqw; }
.sym-dots.many i { width: 6cqw; height: 6cqw; }

/* ---------- Symbol maker ---------- */
.maker {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}
.maker-library {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}
@media (max-width: 960px) {
  .maker { grid-template-columns: 1fr; }
  .maker-library { position: static; max-height: none; }
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.chip {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sym-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
}
.sym-tile {
  font: inherit;
  background: #fff;
  border: 2px solid var(--border);
  border-top: 5px solid var(--c, var(--border));
  border-radius: 12px;
  padding: 0.3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--ink);
}
.sym-tile:hover { border-color: var(--brand); border-top-color: var(--c, var(--brand)); }
.sym-tile .lbl { font-size: 0.74rem; font-weight: 700; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.cat-tile { font: inherit; color: var(--ink); background: #fff; border: 3px solid var(--c); border-radius: 16px; padding: 0.7rem 0.5rem; display: grid; justify-items: center; gap: 2px; cursor: pointer; text-align: center; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .emoji { font-size: 2rem; line-height: 1.1; }
.cat-tile b { font-size: 0.92rem; line-height: 1.15; }
.cat-tile small { color: var(--ink-soft); font-size: 0.76rem; }
.cat-open-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cat-open-head h3 { margin: 0; color: var(--c); }
.sub-head { margin: 1rem 0 0.45rem; font-size: 0.98rem; color: var(--c); border-bottom: 2px dashed var(--c); padding-bottom: 2px; }
.lib-count { font-weight: 700; margin: 0 0 0.5rem; }
.upload-box { background: var(--accent-soft); border: none; margin-top: 1rem; }
.upload-box h3 { margin-bottom: 0.3rem; }
.drop-zone { position: relative; display: grid; justify-items: center; gap: 2px; border: 3px dashed var(--border); border-radius: 16px; padding: 1rem; background: #fff; cursor: pointer; margin-top: 0.6rem; text-align: center; }
.drop-zone .emoji { font-size: 2rem; }
.drop-zone.over { border-color: var(--brand); background: #eef5fa; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tool-heading { font-size: 1.25rem; margin: 0 0 0.3rem; }
.tool-rows { display: grid; gap: 0.55rem; }
.tool-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 0.6rem; }
.tool-name { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 600px) { .tool-row { grid-template-columns: 1fr; gap: 0.25rem; } }
.seg { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.seg button { font: inherit; font-size: 0.86rem; font-weight: 700; border: 2px solid var(--border); background: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); }
.seg button:hover { border-color: var(--brand); }
.seg button[aria-pressed="true"] { border-color: var(--brand); background: #eaf2f8; }
.swatches button[style*="--sw"] { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--sw); border-color: #fff; box-shadow: 0 0 0 2px var(--border); }
.swatches button[style*="--sw"][aria-pressed="true"], .sw-custom.on { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--brand); }
.sw-custom { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); box-shadow: 0 0 0 2px var(--border); cursor: pointer; }
.sw-custom input { position: absolute; inset: -6px; width: 44px; height: 44px; opacity: 0; cursor: pointer; }
.sw-shape { width: 15px; height: 15px; border: 2.5px solid currentColor; display: inline-block; }
.sw-shape.rounded { border-radius: 4px; }
.sw-shape.soft { border-radius: 7px; }
.sw-shape.circle { border-radius: 50%; }
.sw-line { width: 24px; height: 0; border-top: 4px solid currentColor; display: inline-block; }
.sentence-box { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sentence-box input { flex: 1 1 200px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.toolbar .field { flex: 1 1 140px; }
.saved-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.saved-item {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}
.saved-item button { font: inherit; font-size: 0.9rem; font-weight: 700; border: none; background: none; padding: 0.35rem 0.75rem; cursor: pointer; color: var(--ink); }
.saved-item button + button { border-left: 2px solid var(--border); color: var(--ink-soft); }

.paper-wrap { background: #eceef1; border-radius: var(--radius); padding: 1.25rem; }
.paper {
  background: #fff;
  color: #2b2a33;
  max-width: 794px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.paper.landscape { max-width: 1123px; }
.paper-title { text-align: center; font-size: 2rem; margin-bottom: 1.25rem; }
.paper-foot { text-align: center; color: #8a8794; font-size: 0.8rem; margin: 1.25rem 0 0; }
[contenteditable="true"]:hover { outline: 2px dashed rgba(61, 107, 143, 0.35); outline-offset: 2px; }
.exporting [contenteditable="true"] { outline: none !important; }
.exporting .no-export { display: none !important; }

/* Boards flow like text: symbol size comes from the design tools, spacing from --gap */
.board { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gap, 16px); }
.board.space-grouped { --gap: 0px; }
.board.space-close { --gap: 6px; }
.board.space-normal { --gap: 16px; }
.board.space-spread { --gap: 34px; }
.board .sym-card { width: var(--w, 140px); box-sizing: border-box; }
.sym-card.size-s { --w: 100px; }
.sym-card.size-m { --w: 140px; }
.sym-card.size-l { --w: 180px; }
.sym-card.size-xl { --w: 240px; }
.board .sym-card.lbl-left, .board .sym-card.lbl-right { width: calc(var(--w, 140px) * 1.8); flex-direction: row; align-items: center; gap: 4px; }
.board .sym-card.lbl-left { flex-direction: row-reverse; }
.sym-card.lbl-left .sym-visual, .sym-card.lbl-right .sym-visual { width: 55%; flex-shrink: 0; }
.sym-card.lbl-left .lbl, .sym-card.lbl-right .lbl { flex: 1; font-size: clamp(11px, 9cqw, 30px); }
.sym-card.lbl-above { flex-direction: column-reverse; }
.sym-card.lbl-none .lbl { display: none; }
.sym-card.shape-square { border-radius: 0; }
.sym-card.shape-soft { border-radius: 32px; }
.sym-card.shape-circle { border-radius: 50%; aspect-ratio: 1; justify-content: center; padding: calc(var(--w, 140px) * 0.12); }
.sym-card.shape-circle .sym-visual { width: 78%; }
.sym-card.shape-circle .lbl { font-size: clamp(10px, 9cqw, 24px); }
.sym-card.selected { outline: 4px solid #ffd23f; outline-offset: 3px; }
.sym-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px; border: 3px dashed #c3a6e0; border-radius: 22px; background: #faf7ff; }
.board.sentence { justify-content: flex-start; align-items: flex-end; }
.board.sentence .word-only { border-color: transparent; width: auto; min-width: 0; padding-inline: 2px; container-type: normal; }
.board.sentence .word-only .sym-visual { width: 0; }
.board.sentence .word-only .lbl { white-space: nowrap; font-size: clamp(11px, calc(var(--w, 140px) * 0.12), 30px); }
.sent-break { flex-basis: 100%; height: 10px; }
.sym-card {
  container-type: inline-size;
  position: relative;
  border: var(--bw, 4px) var(--bs, solid) var(--c, #2b2a33);
  border-radius: 14px;
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  break-inside: avoid;
}
.sym-card .lbl {
  font-weight: 700;
  text-align: center;
  font-size: clamp(11px, 12cqw, 30px);
  line-height: 1.15;
  padding: 2px 4px;
  min-height: 1.2em;
  width: 100%;
  overflow-wrap: anywhere;
}
.board.caps .lbl { text-transform: uppercase; }
.board .sym-card { cursor: pointer; }
.board .sym-card .lbl { cursor: text; }
.card-ctrls {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.sym-card:hover .card-ctrls, .sym-card:focus-within .card-ctrls { opacity: 1; }
@media (hover: none) { .card-ctrls { opacity: 1; } }
.card-ctrls button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
  color: var(--ink);
}
.step-num {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--c, var(--brand));
  color: #fff;
  border-radius: 999px;
  width: 1.7em;
  height: 1.7em;
  display: grid;
  place-items: center;
  font-size: clamp(10px, 9cqw, 20px);
}
.board.strip .sym-card:not(:last-child)::after {
  content: "➜";
  position: absolute;
  right: -15px;
  top: 42%;
  font-size: 14px;
  color: #9a96a3;
}
.board.firstthen { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.board.firstthen .sym-card { width: 100%; }
.ft-col h3 { text-align: center; font-size: 2.2rem; margin-bottom: 0.5rem; }
.ft-empty {
  aspect-ratio: 1;
  border: 4px dashed #c9c4bb;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-align: center;
  padding: 1rem;
}
.board-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
  border: 3px dashed var(--border);
  border-radius: 14px;
}

/* ---------- Games ---------- */
.game-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.game-card {
  font: inherit;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 1.6rem;
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card .emoji { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.game-card p { color: var(--ink-soft); margin: 0; }
.game-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
}
.game-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.stars { font-size: 1.7rem; letter-spacing: 0.1em; color: #d9b23a; }
.game-settings { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.game-settings:empty { display: none; }
.game-prompt { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 0.5rem; }
.game-show {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem auto 1.5rem;
  max-width: 660px;
  min-height: 90px;
}
.game-show .smiley { width: 64px; height: 64px; }
.game-show .big-sym { width: 190px; }
.game-answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.answer {
  font: inherit;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  min-width: 120px;
  min-height: 88px;
  padding: 0.5rem 1.1rem;
  border-radius: 22px;
  border: 3px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.15s;
}
.answer:hover:not(:disabled) { transform: scale(1.05); border-color: var(--brand); }
.answer.pic { width: 140px; height: 140px; min-width: 0; padding: 8px; }
.answer.correct { background: var(--sage-soft); border-color: var(--sage); opacity: 1; }
.answer.wrong { opacity: 0.4; animation: wobble 0.4s; }
.answer:disabled { cursor: default; }
@keyframes wobble { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.game-feedback { font-size: 1.5rem; font-weight: 700; min-height: 2.4rem; margin: 1rem 0 0; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 0.75rem; justify-content: center; width: 100%; }
.mem-card {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 3px solid var(--brand-dark);
  background: var(--brand);
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
}
.mem-card .sym-visual { display: none; }
.mem-card .smiley { width: 60%; height: 60%; }
.mem-card.flipped, .mem-card.matched { background: #fff; border-color: var(--border); }
.mem-card.flipped .sym-visual, .mem-card.matched .sym-visual { display: grid; }
.mem-card.flipped .smiley, .mem-card.matched .smiley { display: none; }
.mem-card.matched { border-color: var(--sage); background: var(--sage-soft); cursor: default; }
.seq-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.seq-row .sym-card { width: 110px; }
.celebrate h2 { margin-top: 1rem; }
.celebrate .smiley { width: 170px; height: 170px; margin: 0 auto; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-12px); } }

/* ---------- Templates ---------- */
.tpl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.tpl-btn {
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.tpl-btn:hover { border-color: var(--brand); }
.tpl-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--sage-soft); }
.tpl-btn .emoji { font-size: 1.6rem; }
.tpl-title { text-align: center; font-size: 2.1rem; margin-bottom: 0.3rem; }
.tpl-sub { text-align: center; color: #5b5966; margin-bottom: 1.25rem; font-size: 1.1rem; }
.tpl-smiles { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.tpl-smiles .smiley { width: 40px; height: 40px; }
.tpl-table { width: 100%; border-collapse: separate; border-spacing: 6px; }
.tpl-table th { font-family: var(--font-head); font-size: 1.1rem; background: var(--sage-soft); border-radius: 10px; padding: 0.5rem; }
.tpl-table td { border: 3px solid #e7e1d8; border-radius: 12px; text-align: center; padding: 6px; height: 72px; }
.tpl-table td .smiley { width: 52px; height: 52px; }
.tpl-table td.task { text-align: left; font-weight: 700; padding: 8px 10px; background: var(--sun-soft); border-color: var(--sun-soft); width: 26%; }
.tpl-box {
  border: 4px dashed #c9c4bb;
  border-radius: 18px;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8a8794;
}
.tpl-label { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; text-align: center; margin: 0 0 0.5rem; }
.tpl-grid { display: grid; gap: 12px; }
.tpl-cell {
  container-type: inline-size;
  border: 3px solid var(--c, #e7e1d8);
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  break-inside: avoid;
}
.tpl-cell .lbl { font-weight: 700; font-size: clamp(12px, 11cqw, 22px); line-height: 1.2; }
.tpl-line { border-bottom: 2px solid #b9b3aa; height: 2em; }
.tpl-write { display: flex; gap: 0.75rem; align-items: flex-end; font-weight: 700; font-size: 1.15rem; margin-top: 1rem; }
.tpl-write .tpl-line { flex: 1; }
.tpl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 3px solid var(--c, #e7e1d8);
  border-radius: 14px;
  padding: 6px 14px;
  margin-bottom: 9px;
  break-inside: avoid;
}
.tpl-row .tpl-num { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; width: 1.5em; color: #8a8794; }
.tpl-row .tpl-sym { width: 70px; flex-shrink: 0; }
.tpl-row .lbl { flex: 1; font-size: 1.3rem; font-weight: 700; }
.tick { width: 42px; height: 42px; border: 3px solid #8fb59a; border-radius: 10px; flex-shrink: 0; }
.answer-box { width: 74px; height: 58px; border: 3px solid #3d6b8f; border-radius: 12px; margin-left: auto; flex-shrink: 0; }
.count-row { display: flex; flex-wrap: wrap; gap: 6px; }
.count-row .smiley { width: 46px; height: 46px; }
.token-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 1rem 0; }
.token-spot { width: 100px; height: 100px; border: 4px dashed #c9c4bb; border-radius: 50%; }
.tokens { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tokens .smiley { width: 88px; height: 88px; }
.certificate { border: 10px double #e8925b; border-radius: 20px; padding: 28px; text-align: center; }
.certificate .big-star { width: 150px; margin: 0 auto 0.5rem; display: block; }
.cert-name {
  font-family: var(--font-head);
  font-size: 2.6rem;
  border-bottom: 3px solid #e8925b;
  display: inline-block;
  min-width: 60%;
  padding: 0 1rem;
  margin: 0.4rem 0 1rem;
}
.cert-foot { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2rem; font-weight: 700; }
.cert-foot div { flex: 1; border-top: 2px solid #b9b3aa; padding-top: 0.4rem; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.billing-toggle button {
  font: inherit;
  font-weight: 700;
  border: none;
  background: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.plan {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.plan.popular { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.plan .amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.plan .per { color: var(--ink-soft); font-weight: 700; }
.plan .note { color: var(--ink-soft); font-size: 0.92rem; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; flex: 1; }
.plan li { padding: 0.35rem 0 0.35rem 1.9rem; position: relative; }
.plan li::before {
  content: "😊";
  position: absolute;
  left: 0;
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Advice ---------- */
.advice-layout { display: grid; grid-template-columns: 250px 1fr; gap: 3rem; align-items: start; padding-bottom: 3rem; }
.toc { position: sticky; top: 92px; }
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { margin-bottom: 0.45rem; }
.toc a { text-decoration: none; font-weight: 700; }
@media (max-width: 900px) {
  .advice-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}
.article > section { padding: 0 0 3rem; scroll-margin-top: 90px; }
.article h2 { margin-bottom: 0.75rem; }
.article h3 { margin-top: 1.5rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin-bottom: 0.35rem; }
.callout { background: var(--sage-soft); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 1.25rem 0; }
.callout.warm { background: var(--accent-soft); }
.callout.sun { background: var(--sun-soft); }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 0.35rem 0 0.35rem 3rem; margin-bottom: 0.6rem; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.do-dont > div { border-radius: 16px; padding: 1.2rem 1.4rem; }
.do-dont h3 { margin-top: 0; }
.do { background: var(--sage-soft); }
.dont { background: var(--accent-soft); }
@media (max-width: 640px) { .do-dont { grid-template-columns: 1fr; } }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.rules .value h3 { margin-top: 0.4rem; }
.faq details h4 { margin: 1rem 0 0.3rem; }
.faq details ul { color: var(--ink-soft); margin: 0.3rem 0 0; }

/* ---------- Home extras ---------- */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 72%;
}
.hero-cards .sym-card { box-shadow: var(--shadow); }
.hero-art .hero-smile svg { width: 64px; height: 64px; }
.pro-band {
  background: var(--accent-soft);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
.pro-band .smiles { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pro-band .smiley { width: 64px; height: 64px; }
@media (max-width: 760px) { .pro-band { grid-template-columns: 1fr; } }

/* ---------- A4 worksheet packs (Halloween tracing etc.) ---------- */
.ws-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.ws-controls .field { flex: 0 1 260px; }
.ws-scroll { overflow-x: auto; padding: 1.25rem 0 3rem; }
.ws-pages { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ws-page {
  width: 210mm;
  height: 297mm;
  padding: 11mm 14mm 9mm;
  box-sizing: border-box;
  background: #fff;
  color: #2b2a33;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  break-after: page;
  page-break-after: always;
  flex-shrink: 0;
}
.ws-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.ws-name { display: flex; align-items: flex-end; gap: 8px; flex: 1; }
.ws-name-line { flex: 0 1 75mm; border-bottom: 2px solid #8b86a0; height: 1.1em; }
.ws-num { font-family: var(--font-head); color: #7a5aa6; }
.ws-title { font-family: "Andika", var(--font-body); font-weight: 700; text-align: center; font-size: 40px; margin: 4mm 0 2mm; }
.ws-title .en { color: #7a5aa6; }
.ws-title .pt { color: #e8762b; }
.ws-title .dot { color: #c9c4d6; }
.ws-pic-wrap { display: flex; align-items: center; justify-content: center; gap: 8mm; margin-bottom: 3mm; }
.ws-pic { width: 62mm; height: 62mm; flex-shrink: 0; }
.ws-page.single .ws-pic { width: 82mm; height: 82mm; }
.ws-pic .tr, .hw-pic .tr { fill: none; stroke: #6f6a85; stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; stroke-linejoin: round; }
.ws-instr { max-width: 70mm; font-size: 17px; font-weight: 700; }
.ws-instr p { margin: 0 0 2mm; }
.ws-instr .pt { color: #b85a1c; }
.ws-instr .en { color: #5e4387; }
.ws-smiles { display: flex; gap: 6px; margin-top: 3mm; }
.ws-smiles .smiley { width: 34px; height: 34px; }
.ws-block { margin-top: 2mm; }
.ws-label { font-weight: 700; font-size: 14.5px; margin: 0 0 1mm; display: flex; align-items: center; gap: 8px; }
.ws-lang { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.ws-lang.en { background: #ece6f6; color: #5e4387; }
.ws-lang.pt { background: #fde3cc; color: #9a4a12; }
.ws-row { display: block; width: 100%; height: auto; margin-bottom: 1mm; }
.trace-text { font-family: "Andika", sans-serif; fill: #f4f1f9; stroke: #7d7896; stroke-width: 1.7; stroke-dasharray: 5 4; }
.ws-foot { margin-top: auto; text-align: center; font-size: 11px; color: #9a96a3; }

/* Picture + word rows (5 per page) */
.hw-title { font-size: 32px; margin: 3mm 0 1mm; }
.hw-instr { text-align: center; font-weight: 700; font-size: 15px; color: #5b5966; margin: 0 0 3mm; }
.hw-row {
  display: flex;
  align-items: center;
  gap: 6mm;
  height: 45mm;
  border: 2.5px dashed #f4a259;
  border-radius: 16px;
  padding: 2mm 5mm 2mm 3mm;
  margin-bottom: 2.6mm;
  box-sizing: border-box;
}
.hw-row.alt { border-color: #c3a6e0; }
.hw-pic { width: 36mm; height: 36mm; flex-shrink: 0; }
.hw-sym { width: 31mm; flex-shrink: 0; border-width: 3px; padding: 3px; }
.hw-word { flex: 1; }
.hw-word .ws-row { margin: 0; }

/* ---------- Two languages: show only the chosen one ---------- */
html:not([data-lang="pt"]) [data-l="pt"], html[data-lang="pt"] [data-l="en"] { display: none !important; }
.lang-switch { display: flex; gap: 4px; margin-left: 10px; padding: 3px; border: 2px solid var(--border); border-radius: 999px; background: var(--surface); flex-shrink: 0; }
.lang-switch a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; color: var(--ink); text-decoration: none; }
.lang-switch .emoji { font-size: 1.15rem; line-height: 1; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { background: #eaf2f8; }
@media (max-width: 900px) { .lang-switch .lang-code { display: none; } .lang-switch a { padding: 4px 7px; } }
/* ---------- Build a sentence (colourful semantics) ---------- */
.cs-app { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(14px, 3vw, 28px); box-shadow: var(--shadow); }
.cs-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cs-langs, .cs-levels { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-langs button, .cs-levels button { font: inherit; font-weight: 700; border: 2px solid var(--border); background: #fff; color: var(--ink); border-radius: 14px; padding: 8px 14px; cursor: pointer; }
.cs-langs button[aria-pressed="true"], .cs-levels button[aria-pressed="true"] { border-color: var(--blue, #3d6b8f); background: #eaf2f8; }
.cs-levels button { display: grid; justify-items: center; gap: 2px; line-height: 1.15; min-width: 96px; }
.cs-levels small { font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.cs-dots { display: flex; gap: 3px; }
.cs-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.cs-prompt { font-weight: 700; margin: 18px 0 12px; }
.cs-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(14px, 3vw, 28px); align-items: start; }
@media (max-width: 820px) { .cs-board { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cs-levels { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cs-levels button { min-width: 0; }
  .cs-group .cs-card.sym-card { width: 92px; }
}

.cs-pic { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #f2f6fb; border: 3px solid #fff; box-shadow: 0 10px 26px rgba(43,42,51,.12); container-type: inline-size; }
.cs-pic[class*="place-"] { background: linear-gradient(#dff0ff, #f4faff 65%); }
.cs-pic.time-morning { background: linear-gradient(#ffd3a1, #fff1dc 62%); }
.cs-pic.time-afternoon { background: linear-gradient(#8fcbff, #e2f2ff 62%); }
.cs-pic.time-night { background: linear-gradient(#1e2550, #3b4683 70%); }
.cs-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: #e9e4f2; }
.place-kitchen .cs-ground { background: repeating-linear-gradient(90deg, #f3e3cf 0 12%, #ead2b6 12% 24%); }
.place-bedroom .cs-ground { background: #f3d6e4; }
.place-park .cs-ground, .place-garden .cs-ground { background: #a9da98; }
.place-school .cs-ground { background: #d9d2ee; }
.place-beach .cs-ground { background: #f6e1a6; }
.place-bathroom .cs-ground { background: repeating-linear-gradient(90deg, #d7eef6 0 10%, #c3e4f0 10% 20%); }
.cs-decor { position: absolute; bottom: 18%; font-size: 17cqw; line-height: 1; z-index: 0; }
.cs-decor.d1 { left: 3%; }
.cs-decor.d2 { right: 3%; }
.cs-sky { position: absolute; right: 5%; top: 5%; font-size: 15cqw; line-height: 1; }
.cs-star { position: absolute; font-size: 5cqw; }
/* Animated action: who + what + props, all positioned in cqw of the picture */
/* the scene is drawn on a 56cqw stage, then scaled up so it fills the square picture */
.cs-stage { position: absolute; left: 22cqw; bottom: 7%; width: 56cqw; height: 44cqw; transform-origin: 30% 100%; scale: 1.65; }
.cs-stage > * { position: absolute; line-height: 1; }
.cs-who { left: 4cqw; bottom: 0; font-size: 30cqw; transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); z-index: 1; }
.cs-what { left: 36cqw; bottom: 0; font-size: 14cqw; z-index: 2; filter: drop-shadow(0 4px 4px rgba(0,0,0,.15)); }
.cs-prop { z-index: 3; }

/* eating and drinking: the food goes to the mouth */
.act-eat .cs-what { animation: cs-eat 3.2s ease-in-out infinite; }
.act-drink .cs-what { animation: cs-drink 3.2s ease-in-out infinite; }
@keyframes cs-eat { 0%, 18%, 86%, 100% { transform: none; } 40% { transform: translate(-14cqw, 1cqw) scale(.8); } 50% { transform: translate(-14cqw, 1cqw) scale(.55); } 62% { transform: translate(-14cqw, 1cqw) scale(.8); } }
@keyframes cs-drink { 0%, 18%, 86%, 100% { transform: none; } 40%, 64% { transform: translate(-14cqw, 0) rotate(-35deg) scale(.85); } }

/* reading: book held up, head nods along */
.act-read .cs-what { left: 29cqw; bottom: 1cqw; font-size: 14cqw; animation: cs-read 2.4s ease-in-out infinite; }
.act-read .cs-who { animation: cs-nod 2.4s ease-in-out infinite; }
@keyframes cs-read { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) translateY(-1cqw); } }
@keyframes cs-nod { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }

/* painting: the brush dabs colour onto the picture */
.act-paint .cs-what { left: 34cqw; bottom: 4cqw; font-size: 18cqw; z-index: 1; }
.act-paint .brush { left: 44cqw; bottom: 16cqw; font-size: 10cqw; animation: cs-brush 2.6s ease-in-out infinite; }
@keyframes cs-brush { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-6cqw, -6cqw) rotate(-15deg); } 50% { transform: translate(-1cqw, -9cqw) rotate(10deg); } 75% { transform: translate(-7cqw, -3cqw) rotate(-10deg); } }
.cs-dab { width: 3cqw; height: 3cqw; border-radius: 50%; opacity: 0; z-index: 2; animation: cs-dab 2.6s ease-in-out infinite; }
.cs-dab.d1 { left: 39cqw; bottom: 9cqw; background: #e8762b; }
.cs-dab.d2 { left: 44cqw; bottom: 13cqw; background: #7a5aa6; animation-delay: .65s; }
.cs-dab.d3 { left: 40cqw; bottom: 15cqw; background: #4caf62; animation-delay: 1.3s; }
@keyframes cs-dab { 0%, 20% { opacity: 0; transform: scale(.3); } 35%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* kicking: a little lean, then the ball flies */
.act-kick .cs-who { animation: cs-lean 2.6s ease-in-out infinite; }
.act-kick .cs-what { left: 34cqw; bottom: -2cqw; font-size: 9cqw; animation: cs-kick 2.6s ease-out infinite; }
@keyframes cs-lean { 0%, 22%, 50%, 100% { transform: none; } 30% { transform: rotate(-8deg); } }
@keyframes cs-kick { 0%, 28% { transform: none; opacity: 1; } 70% { transform: translate(26cqw, -18cqw) rotate(540deg); opacity: 1; } 80% { opacity: 0; } 92% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* hugging: teddy held close, swaying, a heart floats up */
.act-hug { animation: cs-sway 2.4s ease-in-out infinite; }
.act-hug .cs-what { left: 15cqw; bottom: -1cqw; font-size: 15cqw; }
.act-hug .heart { left: 30cqw; bottom: 26cqw; font-size: 7cqw; animation: cs-float 2.4s ease-out infinite; }
@keyframes cs-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes cs-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-12cqw) scale(1.1); opacity: 0; } }

/* cooking: the spoon stirs the pot and steam rises */
.act-cook .cs-what { left: 32cqw; font-size: 17cqw; }
.act-cook .spoon { left: 38cqw; bottom: 13cqw; font-size: 9cqw; animation: cs-stir 1.6s linear infinite; }
@keyframes cs-stir { 0% { transform: translate(0, 0) rotate(-20deg); } 25% { transform: translate(3cqw, -1cqw) rotate(0); } 50% { transform: translate(6cqw, 0) rotate(20deg); } 75% { transform: translate(3cqw, 1cqw) rotate(0); } 100% { transform: translate(0, 0) rotate(-20deg); } }
.cs-steam { width: 4cqw; height: 4cqw; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 6px rgba(0,0,0,.08); animation: cs-steam 2.4s ease-out infinite; }
.cs-steam.s1 { left: 36cqw; bottom: 17cqw; }
.cs-steam.s2 { left: 41cqw; bottom: 18cqw; animation-delay: .8s; }
.cs-steam.s3 { left: 46cqw; bottom: 17cqw; animation-delay: 1.6s; }
@keyframes cs-steam { 0% { transform: translateY(0) scale(.5); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-14cqw) scale(1.4); opacity: 0; } }

/* brushing teeth: the toothbrush moves at the mouth, bubbles float */
.act-brush .tbrush { left: 20cqw; bottom: 7cqw; font-size: 11cqw; animation: cs-scrub .45s ease-in-out infinite alternate; }
.act-brush .bubbles { left: 10cqw; bottom: 22cqw; font-size: 6cqw; animation: cs-float 2s ease-out infinite; }
@keyframes cs-scrub { from { transform: translateX(-2cqw) rotate(-25deg); } to { transform: translateX(2cqw) rotate(-25deg); } }

/* jumping */
.act-jump .cs-who { animation: cs-jump 1.2s ease-in-out infinite; }
.cs-shadow { left: 8cqw; bottom: -1.5cqw; width: 22cqw; height: 3cqw; border-radius: 50%; background: rgba(0,0,0,.18); animation: cs-shadow 1.2s ease-in-out infinite; }
@keyframes cs-jump { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 15% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14cqw) scale(.97, 1.03); } 85% { transform: translateY(0) scale(1); } }
@keyframes cs-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }

/* running across the picture */
.act-run .cs-who, .act-run .dust { animation: cs-run 2.8s linear infinite; }
.act-run .dust { left: -4cqw; bottom: 1cqw; font-size: 9cqw; }
@keyframes cs-run { 0% { transform: translate(-30cqw, 0); } 12.5% { transform: translate(-22cqw, -2cqw); } 25% { transform: translate(-14cqw, 0); } 37.5% { transform: translate(-6cqw, -2cqw); } 50% { transform: translate(2cqw, 0); } 62.5% { transform: translate(10cqw, -2cqw); } 75% { transform: translate(18cqw, 0); } 87.5% { transform: translate(26cqw, -2cqw); } 100% { transform: translate(34cqw, 0); } }

/* sleeping: slow breathing and floating zzz */
.act-sleep .cs-who { animation: cs-breathe 3s ease-in-out infinite; }
.act-sleep .zzz { left: 30cqw; bottom: 24cqw; font-size: 9cqw; animation: cs-float 3s ease-out infinite; }
@keyframes cs-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04, 1.06); } }

/* swimming: bobbing in moving water */
.act-swim .cs-who { animation: cs-bob 1.6s ease-in-out infinite; }
.cs-water { left: -30cqw; right: -30cqw; bottom: -4cqw; height: 12cqw; z-index: 3; border-radius: 40% 40% 0 0 / 30% 30% 0 0; background: repeating-linear-gradient(100deg, rgba(61,143,209,.85) 0 6cqw, rgba(110,180,235,.85) 6cqw 12cqw); background-size: 24cqw 100%; animation: cs-waves 2s linear infinite; }
@keyframes cs-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2.5cqw) rotate(4deg); } }
@keyframes cs-waves { to { background-position: 24cqw 0; } }

@media (prefers-reduced-motion: reduce) { .cs-stage, .cs-stage * { animation: none !important; } }
.cs-progress { text-align: center; font-family: var(--font-head); font-weight: 600; margin-top: 10px; }

.cs-sentence { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.cs-slot { min-height: 150px; border: 3px dashed var(--c); border-radius: 16px; padding: 6px 8px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-slot small { align-self: flex-start; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.cs-slot.filled { border-style: solid; background: color-mix(in srgb, var(--c) 22%, #fff); }
.cs-mini { width: 92px; border-width: 3px; padding: 3px 3px 5px; }
.cs-mini .lbl { font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.1; }
.cs-choices { display: grid; gap: 8px; margin-top: 14px; }
.cs-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 8px 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.cs-group-q { width: 100%; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.cs-card.sym-card { width: 104px; font: inherit; color: var(--ink); cursor: pointer; padding: 4px 4px 6px; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); transition: transform .1s; }
.cs-card .lbl { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.1; }
.cs-card:hover { transform: translateY(-2px); }
.cs-card.faded { opacity: .35; cursor: default; transform: none; }
.cs-card.wiggle { animation: cs-wiggle .45s; }
@keyframes cs-wiggle { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .cs-card.wiggle { animation: none; } }
.cs-feedback { min-height: 1.5em; font-weight: 700; margin: 12px 0 0; }
.cs-feedback.good { font-family: var(--font-head); font-size: 24px; color: #3e9a52; }
.cs-full { font-size: 22px; font-weight: 700; margin: 4px 0 12px; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-done { text-align: center; padding: 30px 0 10px; }
.cs-done-stars { font-size: 40px; }
.cs-done-smiles { display: flex; justify-content: center; gap: 8px; margin: 10px 0 20px; }
.cs-done-smiles .smiley { width: 56px; height: 56px; }

/* Halloween word match: pictures left, words right */
.wm-rows { display: flex; flex-direction: column; gap: 4.5mm; margin-top: 2mm; }
.wm-row { display: grid; grid-template-columns: 46mm 1fr 74mm; align-items: center; }
.wm-pic { position: relative; width: 42mm; }
.wm-pic .sym-card { width: 42mm; box-sizing: border-box; }
.wm-pic .wm-dot { position: absolute; right: -3.5mm; top: 50%; margin-top: -2.5mm; }
.wm-dot { width: 5mm; height: 5mm; border-radius: 50%; background: #2b2a33; flex-shrink: 0; box-shadow: 0 0 0 1.2mm #fff; }
.wm-word { display: flex; align-items: center; gap: 3mm; }
.wm-card { flex: 1; border: 2.5px solid #c9c4d6; border-radius: 14px; padding: 4mm 3mm; text-align: center; font-family: "Andika", sans-serif; font-weight: 700; font-size: 36px; line-height: 1.1; }
.wm-card.long { font-size: 25px; white-space: nowrap; }

/* Método das 28 Palavras (Portuguese literacy) */
.p28-body { display: flex; flex-direction: column; gap: 3mm; }
.p28-card.sym-card { width: 34mm; flex-shrink: 0; border-width: 3px; padding: 3px; }
.p28-row { display: flex; align-items: center; gap: 5mm; border: 2.5px dashed #f4a259; border-radius: 16px; padding: 2.5mm 4mm; }
.p28-row:nth-child(even) { border-color: #c3a6e0; }
.p28-row.short .p28-card.sym-card { width: 26mm; }
.p28-row.short { padding: 2mm 4mm; }
.p28-word { font-family: "Andika", sans-serif; font-weight: 700; font-size: 38px; min-width: 44mm; text-align: center; }
.p28-row.short .p28-word { font-size: 32px; min-width: 50mm; }
.p28-lines { flex: 1; display: grid; gap: 1mm; }
.p28-lines .ws-row { margin: 0; }
.p28-dots { display: flex; gap: 5mm; margin-left: auto; }
.p28-dots i { width: 14mm; height: 14mm; border-radius: 50%; border: 3px solid #8b86a0; }
.p28-boxes { display: flex; gap: 3mm; margin-left: auto; }
.p28-box { width: 24mm; height: 16mm; border: 2.5px dashed #8b86a0; border-radius: 10px; background: #faf8fd; }
.p28-syl { display: flex; align-items: center; gap: 2.5mm; }
.p28-syl span { font-family: "Andika", sans-serif; font-weight: 700; font-size: 28px; padding: 2mm 4mm; border: 3px solid #7a5aa6; border-radius: 12px; background: #f6f1fb; }
.p28-syl em { font-style: normal; font-family: var(--font-head); font-size: 26px; color: #e8762b; }
.p28-new { display: grid; gap: 1mm; min-width: 58mm; }
.p28-new small { font-weight: 700; font-size: 12px; color: #5b5966; }
.p28-match { display: flex; flex-direction: column; gap: 2.4mm; }
.p28-match-row { display: grid; grid-template-columns: 36mm 1fr 70mm; align-items: center; }
.p28-match .wm-pic, .p28-match .wm-pic .sym-card { width: 31mm; }
.p28-match .wm-card { font-size: 30px; padding: 2.5mm; }
.p28-sentence { border: 2.5px dashed #f4a259; border-radius: 16px; padding: 3mm 4mm 2mm; }
.p28-sentence:nth-child(even) { border-color: #c3a6e0; }
.p28-strip { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5mm 4mm; margin-bottom: 1mm; }
.p28-tile { display: grid; justify-items: center; gap: 1mm; --ic: 15mm; }
.p28-tile b { font-family: "Andika", sans-serif; font-size: 26px; line-height: 1; }
.p28-tile.card { border: 2.5px solid #c9c4d6; border-radius: 12px; padding: 1.5mm 3mm; background: #fff; }
.p28-tile.card.plain { align-self: flex-end; }
.p28-bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 3mm; padding: 3mm; border: 3px solid #7a5aa6; border-radius: 16px; background: #f6f1fb; }
.p28-bank span { font-family: "Andika", sans-serif; font-weight: 700; font-size: 24px; padding: 1mm 4mm; background: #fff; border-radius: 10px; border: 2px solid #c3a6e0; }
.p28-gap { font-family: "Andika", sans-serif; font-weight: 700; font-size: 26px; line-height: 1.6; }
.p28-blank { display: inline-block; width: 36mm; border-bottom: 3px solid #2b2a33; margin: 0 1mm; }

/* Literacy Steps phonics pack (builds on the early maths and 28 words styles) */
.ls-page .mt-sec { margin-top: 3mm; }
.ls-card.sym-card { width: 22mm; flex-shrink: 0; border-width: 3px; padding: 3px; }
.ls-card.sm.sym-card { width: 18mm; }
.ls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2mm 4mm; }
.ls-grid.two { grid-template-columns: 1fr 1fr; }
.ls-item { display: grid; justify-items: center; gap: 1.5mm; border: 1.5px dotted #d9d3e6; border-radius: 12px; padding: 1.6mm 2mm; }
.ls-item.row { display: flex; align-items: center; gap: 4mm; justify-content: flex-start; }
.ls-opts { display: flex; gap: 3mm; }
.ls-opt { width: 11.5mm; height: 11.5mm; border: 2.5px solid #8b86a0; border-radius: 50%; display: grid; place-items: center; font-family: "Andika", sans-serif; font-weight: 700; font-size: 25px; line-height: 1; }
.ls-opt.wide { width: 15mm; border-radius: 999px; font-size: 23px; }
.ls-word { display: flex; align-items: center; gap: 1.5mm; font-family: "Andika", sans-serif; font-weight: 700; font-size: 31px; line-height: 1; }
.ls-box { display: inline-block; width: 11mm; height: 12mm; border: 2.5px dashed #8b86a0; border-radius: 9px; background: #faf8fd; box-sizing: border-box; }
.ls-box.big { width: 13.5mm; height: 14mm; }
.ls-boxes { display: flex; gap: 2.5mm; }
.ls-blend { display: grid; gap: 1.6mm; }
.ls-hl { font-family: "Andika", sans-serif; font-size: 22px; color: #7a5aa6; }
.ls-find { display: flex; align-items: center; gap: 6mm; }
.ls-letter { width: 34mm; height: 34mm; flex-shrink: 0; border: 4px solid #7a5aa6; border-radius: 20px; background: #f6f1fb; display: grid; place-items: center; font-family: "Andika", sans-serif; font-weight: 700; font-size: 100px; line-height: 1; color: #7a5aa6; }
.ls-find-pics { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 3mm; flex: 1; }
.ls-match { gap: 2mm; }
.ls-match .p28-match-row { grid-template-columns: 28mm 1fr 30mm; }
.ls-match.read .p28-match-row { grid-template-columns: 28mm 1fr 62mm; }
.ls-match.read .wm-pic, .ls-match.read .wm-pic .sym-card { width: 25mm; }
.ls-match .wm-pic, .ls-match .wm-pic .sym-card { width: 22mm; }
.ls-match .wm-card { font-size: 40px; padding: 1.5mm; }
.ls-match.read .wm-card { font-size: 34px; }
.ls-rows { display: grid; }
.ls-row { display: flex; align-items: center; gap: 5mm; padding: 1mm 0; border-bottom: 1.5px dotted #d9d3e6; }
.ls-row:last-child { border-bottom: 0; }
.ls-sb { display: flex; gap: 2.5mm; min-width: 44mm; font-family: "Andika", sans-serif; font-weight: 700; font-size: 34px; line-height: 1; }
.ls-sb .g { display: grid; justify-items: center; gap: 2mm; }
.ls-sb i { display: block; background: #e8762b; }
.ls-sb i.dot { width: 4mm; height: 4mm; border-radius: 50%; }
.ls-sb i.line { width: 100%; height: 1.4mm; border-radius: 1mm; }
.ls-line { flex: 1; }
.ls-line .ws-row { margin: 0; }
.ls-bank { margin-bottom: 2mm; padding: 1.2mm; }
.ls-bank span { font-size: 26px; padding: 0 5mm; }
.ls-sentence { border-bottom: 1.5px dotted #d9d3e6; padding: 2mm 0 .5mm; }
.ls-sentence .p28-strip.mixed .p28-tile { --ic: 13mm; }
.ls-sentence:last-child { border-bottom: 0; }
.ls-sentence .p28-tile { --ic: 16mm; }
.ls-sentence .p28-tile b { font-size: 30px; }
.ls-complete { margin-top: 2.5mm; }
.ls-oops { font-family: "Andika", sans-serif; font-weight: 700; font-size: 30px; color: #5b5966; background: #fdf1c9; border-radius: 12px; padding: 1mm 5mm; display: inline-block; }
.ls-write { display: flex; align-items: center; gap: 5mm; padding: 2mm 0; border-bottom: 1.5px dotted #d9d3e6; }
.ls-write:last-child { border-bottom: 0; }
.ls-write-lines { flex: 1; }
.ls-write-lines .ws-row { margin: 0; }
.ls-start { font-family: "Andika", sans-serif; font-weight: 700; font-size: 24px; color: #7a5aa6; }
.ls-check { display: flex; gap: 3mm; justify-content: flex-end; margin-top: 1mm; }
.ls-check span { font-size: 12px; font-weight: 700; color: #5b5966; display: flex; align-items: center; gap: 1.5mm; }
.ls-check span::before { content: ""; width: 4mm; height: 4mm; border: 2px solid #8b86a0; border-radius: 3px; }
.ls-stars { color: #ffd23f; letter-spacing: 1px; }
.ls-stars i { font-style: normal; color: #fff; opacity: .35; }
.ls-trace .ws-row { margin: 0 0 1mm; }

/* Number Steps maths pack (builds on the early maths styles below) */
.ns-chips { display: flex; justify-content: center; gap: 8px; margin-bottom: 1mm; }
.ns-theme { font-family: var(--font-head); font-weight: 600; font-size: 14px; background: #fbe2cf; color: #9a4a12; padding: 4px 14px; border-radius: 999px; }
.ns-page .mt-title { margin-bottom: 1mm; }
.mt-cell.ns-wide, .mt-box.ns-wide { width: 19mm; font-size: 22px; }
.ns-nb { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.ns-nb-col { display: grid; gap: 1.6mm; justify-items: center; }
.ns-nb-row { display: flex; gap: 2mm; align-items: center; }
.ns-nb-head span { width: 13.6mm; text-align: center; font-weight: 700; font-size: 12px; color: #5b5966; white-space: nowrap; display: flex; justify-content: center; }
.ns-max100 .ns-nb-head span, .ns-max1000 .ns-nb-head span { width: 19mm; }
.ns-nb-head span:empty { visibility: hidden; }
.ns-to { display: flex; align-items: center; justify-content: space-between; gap: 4mm; padding: 1.6mm 0; border-bottom: 1.5px dotted #d9d3e6; }
.ns-to:last-child { border-bottom: 0; }
.ns-to-pics { display: flex; align-items: flex-end; gap: 1.6mm; flex-wrap: wrap; max-width: 112mm; }
.ns-stick { display: grid; grid-template-rows: repeat(10, 3.7mm); padding: .7mm; border: 2px solid #2b2a33; border-radius: 3mm; background: #fff8ec; --ic: 3.6mm; justify-items: center; }
.ns-ones { display: grid; grid-template-columns: repeat(2, auto); gap: .6mm; --ic: 4.6mm; margin-left: 2mm; }
.ns-write { display: flex; align-items: center; gap: 1.5mm; font-family: "Andika", sans-serif; font-weight: 700; font-size: 22px; white-space: nowrap; }
.ns-write small { font-family: var(--font-body); font-size: 12px; color: #5b5966; }
.ns-write .mt-box { width: 11mm; height: 11mm; }
.ns-write .mt-box.ns-wide { width: 18mm; }
.ns-blocks { height: 17mm; display: block; }
.ns-sq { display: grid; grid-template-columns: repeat(10, 1fr); border: 2.5px solid #2b2a33; border-radius: 6px; overflow: hidden; }
.ns-sq span { display: grid; place-items: center; height: 11.5mm; font-family: "Andika", sans-serif; font-weight: 700; font-size: 20px; border-right: 1px solid #c9c4d6; border-bottom: 1px solid #c9c4d6; }
.ns-sq span:nth-child(10n) { border-right: 0; }
.ns-sq span:nth-child(20n+1), .ns-sq span:nth-child(20n+2), .ns-sq span:nth-child(20n+3), .ns-sq span:nth-child(20n+4), .ns-sq span:nth-child(20n+5),
.ns-sq span:nth-child(20n+6), .ns-sq span:nth-child(20n+7), .ns-sq span:nth-child(20n+8), .ns-sq span:nth-child(20n+9), .ns-sq span:nth-child(20n+10) { background: #fdf6ee; }
.ns-sq span.blank { background: #f3eefa !important; }
.ns-sq-100 span { height: 9.6mm; font-size: 18px; }
.ns-sq-50 span { height: 13mm; font-size: 22px; }
.ns-skip { display: grid; justify-items: center; gap: .6mm; margin: 1mm 0; }
.ns-skip-tag { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #3d6b8f; }
.ns-skip .mt-track { margin: 0; }
.ns-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4mm 4mm; }
.ns-add-cell { border: 1.5px dotted #d9d3e6; border-radius: 12px; padding: 2mm 3mm; display: grid; gap: 2mm; justify-items: center; }
.ns-add-cell .mt-add-pics { min-height: 17mm; }
.ns-add-cell .mt-add-pics .grp { --ic: 7.5mm; }
.ns-max20 .ns-add-cell .mt-add-pics .grp { --ic: 5.6mm; gap: .8mm; }
.ns-add-cell .mt-eq { font-size: 26px; }
.ns-ex { font-family: var(--font-body); font-size: 12px; background: #fbe2cf; color: #9a4a12; padding: 2px 9px; border-radius: 999px; }
.ns-max20 .mt-add-pics .grp { --ic: 6.5mm; }
.mt-add-top.ns-short { min-height: 16mm; }
.ns-line-pic { --ic: 13mm; }
.ns-page .mt-add .mt-add-pics .grp { --ic: 9mm; }
.mt-add .ns-ex { position: absolute; right: 0; top: 0; }

/* Halloween early maths */
.mt-list { margin: .8rem 0 0; padding-left: 1.3rem; line-height: 1.7; }
.mt-page { padding: 10mm 13mm 8mm; }
.mi { display: grid; place-items: center; width: var(--ic, 12mm); height: var(--ic, 12mm); flex-shrink: 0; container-type: inline-size; }
.mi .sym-emoji { font-size: 92cqw; }
.mi .sym-svg { width: 100%; height: 100%; }
.mt-card { width: var(--ic, 20mm); box-sizing: border-box; border-width: 3px; padding: 2px 2px 1px; }
.mt-card .lbl { font-family: "Andika", sans-serif; font-size: 34cqw; line-height: 1; padding: 0 0 1px; }
.mt-card .sym-visual { width: 84%; }
.mt-max20 .mt-find { --ic: 17mm; }
.mt-max20 .mt-order-pics { --ic: 19mm; }
.mt-title { font-family: "Andika", var(--font-body); font-weight: 700; font-size: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2mm 0 1mm; }
.mt-title .mi { --ic: 13mm; }
.mt-title .en { color: #7a5aa6; }
.mt-title .pt { color: #e8762b; }
.mt-chip { font-family: var(--font-head); font-weight: 600; font-size: 15px; background: #3d6b8f; color: #fff; padding: 4px 14px; border-radius: 999px; }
.mt-sec { border: 2.5px dashed #f4a259; border-radius: 16px; padding: 2.2mm 4mm 2.5mm; margin-top: 2.4mm; }
.mt-sec.alt { border-color: #c3a6e0; }
.mt-label { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; margin: 0 0 1.5mm; }
.mt-step { width: 26px; height: 26px; border-radius: 50%; background: #3d6b8f; color: #fff; display: grid; place-items: center; font-family: var(--font-head); flex-shrink: 0; }
.mt-sw { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #2b2a33; vertical-align: -2px; margin-left: 2px; }
.mt-count { display: flex; align-items: center; justify-content: space-between; gap: 4mm; padding: 1.4mm 0; border-bottom: 1.5px dotted #d9d3e6; }
.mt-count:last-child { border-bottom: 0; }
.mt-group { display: grid; grid-template-columns: repeat(5, auto); gap: 1.6mm; --ic: 13mm; }
.mt-group.big { --ic: 18mm; gap: 2.5mm; }
.mt-opts { display: flex; gap: 4mm; }
.mt-opt { width: 14mm; height: 14mm; border: 2.5px solid #8b86a0; border-radius: 50%; display: grid; place-items: center; font-family: "Andika", sans-serif; font-weight: 700; font-size: 28px; }
.mt-frames { display: flex; gap: 4mm; }
.mt-frame { display: grid; grid-template-columns: repeat(5, 9.6mm); grid-auto-rows: 9.6mm; border: 2.5px solid #2b2a33; border-radius: 4px; --ic: 8mm; }
.mt-frame > div { border: 1px solid #c9c4d6; display: grid; place-items: center; }
.mt-track { display: flex; justify-content: center; gap: 1.5mm; margin: .8mm 0; }
.mt-cell { width: 13.6mm; height: 13.6mm; border: 2.5px solid #f4a259; border-radius: 10px; display: grid; place-items: center; font-family: "Andika", sans-serif; font-weight: 700; font-size: 25px; box-sizing: border-box; }
.mt-cell.blank { border-style: dashed; border-color: #8b86a0; background: #faf8fd; }
.mt-order-pics { display: flex; justify-content: center; gap: 6mm; --ic: 21mm; }
.mt-order-boxes { display: flex; justify-content: center; align-items: center; gap: 2mm; margin-top: 1.5mm; }
.mt-box { display: inline-block; width: 13.6mm; height: 13.6mm; border: 2.5px dashed #8b86a0; border-radius: 10px; box-sizing: border-box; background: #faf8fd; }
.mt-arrow { font-family: var(--font-head); font-size: 28px; color: #e8762b; }
.mt-find { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; gap: 1.5mm 2mm; --ic: 20mm; }
.mt-add { position: relative; padding: 1.5mm 0 .5mm; border-bottom: 1.5px dotted #d9d3e6; }
.mt-add:last-child { border-bottom: 0; }
.mt-add-top { display: flex; align-items: center; justify-content: space-between; gap: 4mm; min-height: 28mm; }
.mt-add-pics { display: flex; align-items: center; gap: 3mm; }
.mt-add-pics .grp { display: grid; gap: 1.2mm; --ic: 11mm; }
.mt-op { font-family: "Andika", sans-serif; font-weight: 700; font-size: 30px; color: #3d6b8f; }
.mt-eq { display: flex; align-items: center; gap: 2.5mm; font-family: "Andika", sans-serif; font-weight: 700; font-size: 30px; white-space: nowrap; }
.mt-eq .mt-box { display: grid; place-items: center; }
.mt-eq .mt-box.filled { color: #e8762b; border-color: #e8762b; background: #fff; }
.mt-ex { position: absolute; right: 0; top: 0; font-family: var(--font-body); font-size: 13px; background: #fbe2cf; color: #9a4a12; padding: 2px 10px; border-radius: 999px; }
.mt-nl { display: block; width: 100%; height: auto; }

/* Sheets only: used for printing and for generating the PDF files */
body.pdf-mode { background: #fff; }
body.pdf-mode .site-header, body.pdf-mode .site-footer, body.pdf-mode .page-header,
body.pdf-mode .ws-controls-wrap, body.pdf-mode .a11y-toggle { display: none !important; }
body.pdf-mode .container { max-width: none; padding: 0; }
body.pdf-mode .ws-scroll { padding: 0; overflow: visible; }
body.pdf-mode .ws-pages { gap: 0; }
body.pdf-mode .ws-page, #print-host .ws-page { box-shadow: none; }
@media print {
  .ws-pages { gap: 0 !important; }
  .ws-page { box-shadow: none !important; }
}

/* ---------- Printing ---------- */
#print-host { display: none; }
@media print {
  body.printing > *:not(#print-host) { display: none !important; }
  body.printing #print-host { display: block; }
  #print-host .paper { box-shadow: none; max-width: none; padding: 0; }
  #print-host .no-export { display: none !important; }
}

/* =====================================================================
   Brand v2 · "Colourful" (2026-10-27)
   Same logo colours, fonts and language code; brighter soft colours,
   a rainbow stripe signature, confetti dots and chunky friendly buttons.
   ===================================================================== */
:root {
  --orange: #e8762b; --purple: #7a5aa6; --blue: #3d6b8f; --green: #4fa36b;
  --sun: #ffc93c; --pink: #ec6f9a; --sky: #3fa2d8;
  --accent-soft: #ffe1c7; --sage-soft: #d6efdd; --lilac-soft: #e9ddfb;
  --sun-soft: #fff0b0; --sky-soft: #d7ecfb; --pink-soft: #ffdfea;
  --rainbow: linear-gradient(90deg, #e8762b 0 16.6%, #ffc93c 16.6% 33.3%, #4fa36b 33.3% 50%, #3fa2d8 50% 66.6%, #7a5aa6 66.6% 83.3%, #ec6f9a 83.3%);
  --confetti:
    radial-gradient(circle, rgba(232,118,43,.22) 3px, transparent 3.5px) 0 0 / 120px 120px,
    radial-gradient(circle, rgba(122,90,166,.2) 3px, transparent 3.5px) 40px 70px / 140px 140px,
    radial-gradient(circle, rgba(79,163,107,.22) 2.5px, transparent 3px) 90px 30px / 110px 110px,
    radial-gradient(circle, rgba(255,201,60,.4) 3.5px, transparent 4px) 20px 95px / 130px 130px;
  --shadow: 0 10px 30px rgba(43, 42, 51, 0.10);
}
.bg-sky { background: var(--sky-soft); }
.bg-pink { background: var(--pink-soft); }

/* Rainbow stripe: header, footer and panels */
.site-header { border-bottom: 0; box-shadow: 0 4px 18px rgba(43,42,51,.06); }
.site-header::before { content: ""; display: block; height: 6px; background: var(--rainbow); }
.site-nav li:nth-child(6n+1) a { --nc: var(--orange-soft, #ffe1c7); }
.site-nav li:nth-child(6n+2) a { --nc: #fff0b0; }
.site-nav li:nth-child(6n+3) a { --nc: #d6efdd; }
.site-nav li:nth-child(6n+4) a { --nc: #d7ecfb; }
.site-nav li:nth-child(6n+5) a { --nc: #e9ddfb; }
.site-nav li:nth-child(6n+6) a { --nc: #ffdfea; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--nc, var(--sage-soft)); }
.site-nav .nav-cta, .site-nav .nav-cta:hover { background: var(--blue); box-shadow: 0 3px 0 #264a66; }
@media (max-width: 1340px) { .site-nav { top: 78px; } }

/* Chunky buttons with a soft "pressable" edge */
.btn { box-shadow: 0 4px 0 var(--edge, rgba(43,42,51,.18)); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge, rgba(43,42,51,.18)); }
.btn-primary { --edge: #264a66; }
.btn-accent { background: #ff9a52; --edge: #c65f1c; }
.btn-accent:hover { background: #ff8a3a; }
.btn-outline { background: #fff; --edge: #c9d9e6; }

/* Eyebrows become little pills, headings get a dashed rainbow "tracing" line */
.eyebrow { background: var(--sky-soft); color: var(--blue); padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.78rem; }
.eyebrow::before { content: "●"; color: var(--orange); margin-right: 0.45em; }
.section-head h2::after, .page-header h1::after {
  content: ""; display: block; width: 120px; height: 7px; margin-top: 0.4em; border-radius: 4px; background: var(--rainbow);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 24px); mask: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 24px);
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* Hero: colour blobs and confetti behind the content */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--confetti); opacity: .9; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -220px; top: -160px; border-radius: 50%; background: var(--sun-soft); }
.hero-art { background: radial-gradient(circle at 30% 30%, #fff0b0 0 22%, transparent 23%), linear-gradient(135deg, var(--sky-soft), var(--lilac-soft) 55%, var(--pink-soft)); }
.hero-cards .sym-card:nth-child(1) { transform: rotate(-4deg); }
.hero-cards .sym-card:nth-child(2) { transform: rotate(3deg); }
.hero-cards .sym-card:nth-child(3) { transform: rotate(2deg); }
.hero-cards .sym-card:nth-child(4) { transform: rotate(-3deg); }
.trust-row span { background: #fff; padding: 0.3rem 0.8rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(43,42,51,.07); }

/* Inner pages: a soft colourful banner */
.page-header {
  position: relative; overflow: hidden; margin: 1.5rem 0 1.75rem; padding: 2.6rem 2.4rem 2.2rem; border-radius: 32px;
  background: var(--confetti), linear-gradient(120deg, var(--sky-soft), var(--lilac-soft) 50%, var(--accent-soft));
}
.page-header::after { content: ""; position: absolute; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,240,176,.85); z-index: 0; }
.page-header > * { position: relative; z-index: 1; }
.page-header .eyebrow { background: #fff; }
.page-header .lead { color: var(--ink); }
@media (max-width: 600px) { .page-header { padding: 1.8rem 1.3rem; border-radius: 24px; } }

/* Category cards: colour edge + icon bubble */
.cat-card { border-bottom: 6px solid var(--cc, var(--blue)); position: relative; overflow: hidden; isolation: isolate; }
.cat-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.45); z-index: -1; }
.cat-card .icon { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 4px 12px rgba(43,42,51,.08); }
.cat-card:hover { transform: translateY(-4px) rotate(-.6deg); }
.bg-sage { --cc: var(--green); } .bg-peach { --cc: var(--orange); } .bg-lilac { --cc: var(--purple); }
.bg-sun { --cc: #e9a800; } .bg-sky { --cc: var(--sky); } .bg-pink { --cc: var(--pink); }

/* Resource cards */
.resource-card { border: 0; box-shadow: 0 6px 20px rgba(43,42,51,.08); border-radius: 24px; }
.resource-thumb { position: relative; background-image: var(--confetti); border-bottom: 5px solid var(--cc, var(--blue)); }
.tag { border: 0; background: var(--sky-soft); color: #2c5070; }
.tag:nth-child(2) { background: var(--accent-soft); color: #9a4a12; }
.tag:nth-child(3) { background: var(--lilac-soft); color: #5e4387; }
.tag:nth-child(4) { background: var(--sage-soft); color: #2f6b45; }
.price.free { background: var(--sage-soft); padding: 0.1rem 0.7rem; border-radius: 999px; }
.filters { border: 0; box-shadow: var(--shadow); border-top: 6px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--rainbow) border-box; }

/* Value / info cards cycle through the palette */
.value { border: 0; box-shadow: 0 6px 20px rgba(43,42,51,.07); border-top: 6px solid var(--vc, var(--orange)); }
.value:nth-child(6n+2) { --vc: var(--purple); } .value:nth-child(6n+3) { --vc: var(--green); }
.value:nth-child(6n+4) { --vc: var(--sky); } .value:nth-child(6n+5) { --vc: var(--pink); } .value:nth-child(6n+6) { --vc: #e9a800; }
.value .icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--vc, var(--orange)) 18%, #fff); }

/* Bands, quotes, newsletter, pro, footer */
.band { background: var(--confetti), var(--sage-soft); }
.quote { position: relative; box-shadow: 0 6px 20px rgba(43,42,51,.07); }
.quote::before { content: "“"; position: absolute; top: -18px; left: 18px; font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--qc, var(--orange)); }
.quote:nth-child(2) { --qc: var(--purple); } .quote:nth-child(3) { --qc: var(--sky); }
.quote p { margin-top: 0.8rem; }
.newsletter { position: relative; overflow: hidden; background: radial-gradient(circle at 92% 12%, rgba(255,201,60,.35) 0 90px, transparent 91px), radial-gradient(circle at 6% 90%, rgba(236,111,154,.3) 0 110px, transparent 111px), var(--blue); }
.newsletter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rainbow); }
.pro-band { background: var(--confetti), linear-gradient(120deg, var(--accent-soft), var(--sun-soft)); }
.site-footer { background: #2f2a45; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }
.site-footer h4 { color: var(--sun); }
.portrait { background: var(--confetti), var(--accent-soft); }

/* Panels and tools (symbol maker, templates, games, sentences) */
.panel, .game-stage, .cs-app { border: 0; box-shadow: var(--shadow); border-top: 6px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--rainbow) border-box; }
.upload-box { background: linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box, var(--rainbow) border-box; }
.chip:hover { background: var(--sky-soft); }
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { box-shadow: 0 3px 0 #264a66; }
.seg button[aria-pressed="true"] { background: var(--sky-soft); }
.sym-tile { border-top-width: 6px; transition: transform .12s; }
.sym-tile:hover { transform: translateY(-2px); }
.cat-tile { background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, #fff); }
.paper-wrap { background: var(--confetti), #e9edf3; }
.tpl-btn { border: 0; box-shadow: 0 4px 14px rgba(43,42,51,.07); }
.tpl-btn .emoji { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--tc, var(--accent-soft)); }
.tpl-btn:nth-child(6n+2) { --tc: var(--sun-soft); } .tpl-btn:nth-child(6n+3) { --tc: var(--sage-soft); }
.tpl-btn:nth-child(6n+4) { --tc: var(--sky-soft); } .tpl-btn:nth-child(6n+5) { --tc: var(--lilac-soft); } .tpl-btn:nth-child(6n+6) { --tc: var(--pink-soft); }
.tpl-btn[aria-pressed="true"] { background: var(--sky-soft); box-shadow: 0 0 0 3px var(--blue); }
.game-card { border-bottom: 6px solid var(--cc, var(--blue)); position: relative; overflow: hidden; }
.game-card .emoji { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2.3rem; box-shadow: 0 4px 12px rgba(43,42,51,.08); }
.game-card:hover { transform: translateY(-4px) rotate(.6deg); }
.answer { background: #fff; box-shadow: 0 4px 0 #e2dcd2; }
.mem-card { background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.18) 0 18%, transparent 19%), var(--blue); }

/* Pricing and advice */
.plan.popular { border-color: var(--purple); }
.plan .ribbon { background: var(--sun); }
.steps li:nth-child(4n+2)::before { background: var(--orange); }
.steps li:nth-child(4n+3)::before { background: var(--purple); }
.steps li:nth-child(4n+4)::before { background: var(--green); }
.callout { border-left: 6px solid var(--green); }
.callout.warm { border-left-color: var(--orange); }
.callout.sun { border-left-color: #e9a800; }
.toc { background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }

/* A4 worksheets: rainbow edge, coloured step numbers, light tinted sections.
   Backgrounds only, so the A4 layout does not move. */
.ws-page {
  background: var(--rainbow) top / 100% 2.4mm no-repeat, var(--rainbow) bottom / 100% 1.2mm no-repeat, #fff;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.mt-sec { background: #fffaf5; }
.mt-sec.alt { background: #fbf8ff; }
.mt-sec:nth-of-type(4n+2) .mt-step { background: var(--orange); }
.mt-sec:nth-of-type(4n+3) .mt-step { background: var(--purple); }
.mt-sec:nth-of-type(4n+4) .mt-step { background: var(--green); }
.ws-foot { color: #8a86a0; }
.ws-foot::before { content: "● ● ●  "; letter-spacing: 1px; font-size: 9px; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Symbol maker workspace: board always on screen, side columns scroll ---------- */
.maker.app { display: grid; gap: 14px; padding: 14px; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(300px, 360px); grid-template-areas: "lib board tools"; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.maker.app .pane-lib { grid-area: lib; }
.maker.app .maker-board { grid-area: board; }
.maker.app .pane-tools { grid-area: tools; }
.maker.app .pane { display: grid; align-content: start; gap: 14px; padding: 2px 4px 5rem 2px; }
.maker.app .pane > .panel { margin: 0; }
.maker.app .maker-library { position: static; max-height: none; overflow: visible; }
.maker.app .toolbar .field { flex: 1 1 100%; }
.maker.app .tool-row { grid-template-columns: 1fr; gap: 0.25rem; }
.side-tabs { display: none; }
.maker-board { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; }
.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.board-bar-title { display: flex; align-items: center; gap: 10px; }
.board-bar-name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.board-bar .actions { margin: 0; }
.maker-board .notice { margin: 0 0 8px; }
.maker-board .saved-list { margin-bottom: 8px; }
.maker-board .saved-list:empty { display: none; }
.board-stage {
  flex: 1; min-height: 0; position: relative; border-radius: var(--radius); padding: 14px; overflow: hidden;
  background: var(--confetti), #e9edf3; display: flex; justify-content: center; align-items: flex-start;
  transition: box-shadow .15s, background-color .15s;
}
.board-stage.drag-over { box-shadow: inset 0 0 0 4px var(--sky); background-color: #dcebf7; }
.board-fit { position: relative; flex-shrink: 0; }
.board-fit > .paper { position: absolute; left: 0; top: 0; width: 794px; max-width: none; margin: 0; transform-origin: 0 0; }
.board-fit > .paper.landscape { width: 1123px; }
body:not(.exporting) .board-fit > .paper { min-height: 1123px; }
body:not(.exporting) .board-fit > .paper.landscape { min-height: 760px; }
.exporting .board-fit > .paper { position: static; transform: none !important; }
.board-tip { margin: 8px 0 0; font-size: 0.85rem; }
.sym-tile[draggable="true"] { cursor: grab; }
.board .sym-card.dragging { opacity: .35; }
.board .sym-card.drop-before { box-shadow: -10px 0 0 -4px var(--sky); }
.board .sym-card.drop-after { box-shadow: 10px 0 0 -4px var(--sky); }
.ft-col.drop-here .ft-empty, .ft-col.drop-here .sym-card { outline: 4px dashed var(--sky); outline-offset: 4px; }
.drag-ghost { position: fixed; left: -500px; top: 0; width: 90px; pointer-events: none; }

/* Wide and medium screens: only the side columns scroll, the page itself does not */
@media (min-width: 900px) {
  body.maker-page { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body.maker-page .site-footer { display: none; }
  body.maker-page .maker-main { flex: 1; min-height: 0; }
  body.maker-page .maker.app { height: 100%; }
  .maker.app .pane { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
  .maker.app > * { min-height: 0; }
  .maker.app .maker-board { overflow: hidden; }
}
/* Medium: one side column with Symbols / Tools tabs */
@media (min-width: 900px) and (max-width: 1279px) {
  .maker.app { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "tabs board" "side board"; }
  .maker.app .pane-lib, .maker.app .pane-tools { grid-area: side; }
}
@media (max-width: 1279px) {
  .side-tabs { display: flex; gap: 6px; grid-area: tabs; background: #fff; border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
  .side-tabs button { flex: 1; font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 0.5rem 0.8rem; background: none; color: var(--ink); cursor: pointer; }
  .side-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 0 3px 0 #264a66; }
  .maker.app[data-tab="lib"] .pane-tools, .maker.app[data-tab="tools"] .pane-lib { display: none; }
}
/* Phones: the board sticks to the top while the tabs and panels scroll underneath */
@media (max-width: 899px) {
  .maker.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "board" "tabs" "side"; padding: 10px; }
  .maker.app .pane-lib, .maker.app .pane-tools { grid-area: side; }
  .maker.app .maker-board { position: sticky; top: var(--hdr, 78px); z-index: 5; background: var(--bg); padding-bottom: 6px; }
  .board-stage { flex: none; height: 46vh; }
  .board-bar-title, .board-tip { display: none; }
}

/* Picture options: scenes built from layers (Boardmaker-style "who + what + arrow") */
.sym-scene { position: relative; display: block; width: 100%; height: 100%; }
.scn-e { position: absolute; line-height: 1; font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; white-space: nowrap; }
.scn-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.opt-badge { position: absolute; right: 3px; top: 3px; font-size: 10px; font-weight: 700; background: var(--sky-soft); color: #2c5070; border-radius: 999px; padding: 0 5px; line-height: 1.5; }
.sym-tile { position: relative; }
.opt-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt-picker button { width: 64px; padding: 3px; border-radius: 12px; border: 3px solid var(--border); background: #fff; cursor: pointer; }
.opt-picker button[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 3px 0 #264a66; }

/* ==========================================================================
   Easy navigation toolbar (replaces the fold-away "Menu" button)
   Always visible: big icon + word buttons, one soft colour each, current page
   clearly marked. Slides sideways on small screens instead of hiding.
   ========================================================================== */
.header-inner { min-height: 64px; gap: 0.75rem; }
.header-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-right .lang-switch { margin-left: 0; }
.logo-mark { width: 46px; height: 46px; }

.tb-pro {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  background: var(--blue, #3d6b8f); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 #264a66; white-space: nowrap;
}
.tb-pro:hover, .tb-pro[aria-current="page"] { background: #2c5070; color: #fff; }
.tb-pro:active { transform: translateY(2px); box-shadow: 0 1px 0 #264a66; }

.toolbar { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.6); }
.toolbar-list {
  display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0.55rem 0;
  overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.toolbar-list > li { flex: 1 0 auto; scroll-snap-align: start; }

.tb-btn {
  --tc: #ffe1c7; --te: #e8762b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  width: 100%; min-width: 88px; min-height: 64px; padding: 0.4rem 0.6rem;
  background: #fff; border: 2px solid var(--tc); border-bottom-width: 4px; border-bottom-color: var(--te);
  border-radius: 16px; color: var(--ink); font: inherit; font-weight: 700; font-size: 0.92rem; line-height: 1.15;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.tb-btn:hover { background: var(--tc); color: var(--ink); }
.tb-btn:active { transform: translateY(2px); }
.tb-btn:focus-visible, .tb-menu a:focus-visible, .tb-pro:focus-visible { outline: 3px solid #ffc93c; outline-offset: 2px; }
.tb-btn[aria-current="page"], .tb-btn.is-current {
  background: var(--tc); border-color: var(--te); box-shadow: inset 0 0 0 1px var(--te);
}
.tb-btn[aria-current="page"] .tb-label::after, .tb-btn.is-current .tb-label::after {
  content: ""; display: block; height: 3px; margin: 2px auto 0; width: 60%; border-radius: 3px; background: var(--te);
}
.tb-icon { font-size: 1.55rem; line-height: 1; }
.tb-caret { font-size: 0.8em; }
.tb-orange { --tc: #ffe1c7; --te: #e8762b; }
.tb-sun    { --tc: #fff0b0; --te: #e0a800; }
.tb-green  { --tc: #d6efdd; --te: #4fa36b; }
.tb-sky    { --tc: #d7ecfb; --te: #3fa2d8; }
.tb-purple { --tc: #e9ddfb; --te: #7a5aa6; }
.tb-pink   { --tc: #ffdfea; --te: #ec6f9a; }
.tb-teal   { --tc: #d2f1ee; --te: #26a69a; }

/* Learning packs drop-down (fixed so it is never clipped by the sliding toolbar) */
.tb-menu {
  position: fixed; z-index: 60; list-style: none; margin: 0; padding: 0.5rem;
  background: #fff; border: 2px solid #e9ddfb; border-bottom: 4px solid #7a5aa6; border-radius: 16px;
  box-shadow: 0 12px 30px rgba(43, 42, 51, 0.16);
}
.tb-menu[hidden] { display: none; }
.tb-menu a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 12px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.tb-menu a .emoji { font-size: 1.3rem; width: 1.6rem; text-align: center; }
.tb-menu a:hover, .tb-menu a[aria-current="page"] { background: #e9ddfb; }

/* Small screens: compact top row, toolbar slides sideways with a hint shadow */
@media (max-width: 760px) {
  .header-inner { min-height: 56px; }
  .logo { font-size: 1.05rem; }
  .logo-mark { width: 38px; height: 38px; }
  .tb-pro { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
  .toolbar .container { padding-right: 0; position: relative; }
  .toolbar .container::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none;
    background: linear-gradient(90deg, rgba(253,250,245,0), rgba(253,250,245,.95));
  }
  .toolbar-list > li { flex: 0 0 auto; }
  .tb-btn { min-width: 78px; min-height: 58px; font-size: 0.84rem; }
  .tb-icon { font-size: 1.35rem; }
}
@media (max-width: 420px) {
  .logo { font-size: 0.95rem; gap: 0.45rem; min-width: 0; }
  .logo-text { white-space: normal; line-height: 1.1; max-width: 9.5em; }
  .logo-mark { width: 34px; height: 34px; }
}

/* Easy-read mode: even bigger toolbar words */
body.easy-read .tb-btn { font-size: 1.05rem; min-height: 72px; }
body.easy-read .tb-icon { font-size: 1.8rem; }

@media print { .toolbar, .tb-menu, .tb-pro { display: none !important; } }
body.pdf-mode .toolbar { display: none !important; }

/* ==========================================================================
   Games: outdoor play scene, colourful tokens and reward track
   ========================================================================== */
.play-world {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 32px; margin-top: 0.5rem;
  background: linear-gradient(180deg, #bfe6ff 0%, #dff2ff 38%, #fff6dc 70%, #fdeee0 100%);
  box-shadow: 0 10px 30px rgba(43, 42, 51, 0.10);
  min-height: 640px;
}
.play-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.play-scene svg { width: 100%; height: 100%; display: block; }
.play-inner { position: relative; padding: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: clamp(9rem, 16vw, 12rem); }

/* Gentle movement (switched off for anyone who prefers reduced motion) */
.play-scene .cloud { animation: cloud-drift 38s ease-in-out infinite alternate; }
.play-scene .c2 { animation-duration: 46s; animation-delay: -12s; }
.play-scene .c3 { animation-duration: 30s; animation-delay: -6s; }
@keyframes cloud-drift { from { translate: -40px 0; } to { translate: 60px 0; } }
.play-scene .sun-rays { animation: sun-spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sun-spin { to { rotate: 360deg; } }
.play-scene .butterfly { animation: flutter 7s ease-in-out infinite; }
.play-scene .b2 { animation-duration: 9s; animation-delay: -3s; }
@keyframes flutter { 0%, 100% { translate: 0 0; } 25% { translate: 30px -24px; } 50% { translate: 60px -6px; } 75% { translate: 26px 14px; } }

/* Game choice cards: white "signboards" with a big coloured icon */
.play-world .game-picker { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.play-world .game-card {
  background: #fff; border: 3px solid color-mix(in srgb, var(--cc, #3d6b8f) 30%, #fff); border-bottom: 7px solid var(--cc, #3d6b8f);
  border-radius: 24px; padding: 1.3rem 1.3rem 1.4rem; text-align: center;
  box-shadow: 0 8px 20px rgba(43, 42, 51, 0.10);
}
.play-world .game-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,.55) 3px, transparent 3.5px) 0 0 / 22px 22px,
              color-mix(in srgb, var(--cc, #3d6b8f) 22%, #fff);
}
.play-world .game-card > * { position: relative; z-index: 1; }
.play-world .game-card .emoji {
  margin: 0.2rem auto 0.7rem; width: 84px; height: 84px; font-size: 2.6rem;
  border: 4px solid var(--cc, #3d6b8f); box-shadow: 0 5px 0 color-mix(in srgb, var(--cc, #3d6b8f) 35%, #fff);
}
.play-world .game-card h3 { margin: 0 0 0.35rem; }
.play-world .game-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 14px 28px rgba(43, 42, 51, 0.16); }
.play-world .game-card:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.play-world .game-card:focus-visible { outline: 4px solid #ffc93c; outline-offset: 3px; }
.play-world .game-card[style*="dashed"] { background: rgba(255,255,255,.7) !important; }
.play-world .game-card[style*="dashed"]::before { display: none; }
.bg-pink { --cc: var(--pink, #ec6f9a); }

/* The game board */
.play-world .game-stage {
  background: rgba(255, 255, 255, 0.94); border: 0; border-radius: 30px;
  box-shadow: 0 12px 34px rgba(43, 42, 51, 0.14); border-top: 0; padding: clamp(1rem, 3vw, 2rem);
  position: relative; scroll-margin-top: 170px;
}
.play-world .game-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 30px 30px 0 0; background: var(--rainbow);
}
.game-bar { margin-bottom: 0.5rem; }
.game-prompt {
  display: inline-block; position: relative; margin: 0.75rem auto 0.25rem;
  padding: 0.55rem 1.4rem 0.65rem; border-radius: 999px;
  background: #fff; border: 3px solid #7a5aa6; box-shadow: 0 5px 0 #e9ddfb;
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.game-prompt:empty { display: none; }

/* Reward track: five slots that fill with a different prize each time */
.token-track { display: flex; gap: 0.4rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: #fff8e1; border: 2px solid #ffe08a; }
.token-track .slot {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 3px dashed #e6cf8a; background: #fffdf5;
}
.token-track .slot.filled { border: 3px solid transparent; background: transparent; }
.token-track .token { width: 40px; height: 40px; }
.token-track .pop .token { animation: token-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes token-pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }

/* Counting tokens */
.count-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.8rem; padding: 1rem 1.2rem; border-radius: 26px;
  background: radial-gradient(circle, #e9f6ec 2.5px, transparent 3px) 0 0 / 20px 20px, #f6fbf4; border: 3px dashed #bfe3c8; }
.count-token { display: inline-block; rotate: var(--r, 0deg); animation: token-in .45s backwards cubic-bezier(.3, 1.5, .5, 1); animation-delay: var(--d, 0s); }
.count-token .token { width: 70px; height: 70px; display: block; filter: drop-shadow(0 4px 0 rgba(43,42,51,.10)); }
@keyframes token-in { from { transform: scale(0); opacity: 0; } }

/* Answer buttons: chunky, each a different colour */
.play-world .answer { --ac: #e8762b; background: #fff; border: 3px solid color-mix(in srgb, var(--ac) 40%, #fff); border-bottom: 7px solid var(--ac);
  box-shadow: 0 6px 14px rgba(43,42,51,.08); border-radius: 24px; }
.play-world .answer:nth-child(5n+2) { --ac: #3fa2d8; }
.play-world .answer:nth-child(5n+3) { --ac: #4fa36b; }
.play-world .answer:nth-child(5n+4) { --ac: #7a5aa6; }
.play-world .answer:nth-child(5n+5) { --ac: #ec6f9a; }
.play-world .answer:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); border-color: var(--ac); background: color-mix(in srgb, var(--ac) 10%, #fff); }
.play-world .answer:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 4px; }
.play-world .answer.correct { --ac: #4fa36b; background: #e3f5e8; border-color: #4fa36b; animation: happy-jump .5s; }
@keyframes happy-jump { 40% { transform: translateY(-10px) scale(1.06); } }
.play-world .answer.play-again { --ac: #ec6f9a; background: #ffdfea; font-size: 1.6rem; padding: 0.6rem 1.8rem; }

/* Feedback line */
.fb { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.35rem 1.1rem 0.35rem 0.5rem; border-radius: 999px; background: #ffeef4; }
.fb.good { background: #fff5cc; }
.fb .token { width: 44px; height: 44px; flex-shrink: 0; }
.fb.good .token { animation: token-pop .6s cubic-bezier(.3, 1.6, .5, 1); }

/* Memory cards: colourful backs with a heart-shaped smiley */
.play-world .mem-card { border: 3px solid rgba(43,42,51,.35); border-bottom-width: 6px; border-radius: 18px;
  background: radial-gradient(circle, rgba(255,255,255,.28) 3px, transparent 3.5px) 0 0 / 18px 18px, var(--mc, #3d6b8f); }
.play-world .mem-card:nth-child(6n+1) { --mc: #e8762b; } .play-world .mem-card:nth-child(6n+2) { --mc: #3fa2d8; }
.play-world .mem-card:nth-child(6n+3) { --mc: #4fa36b; } .play-world .mem-card:nth-child(6n+4) { --mc: #7a5aa6; }
.play-world .mem-card:nth-child(6n+5) { --mc: #ec6f9a; } .play-world .mem-card:nth-child(6n+6) { --mc: #e0a800; }
.play-world .mem-card .smiley { width: 64%; height: 64%; }
.play-world .mem-card:hover:not(.flipped):not(.matched) { transform: translateY(-3px) rotate(-2deg); }
.play-world .mem-card.flipped, .play-world .mem-card.matched { background: #fff; border-color: #e7e1d8; }
.play-world .mem-card.matched { background: #e3f5e8; border-color: #4fa36b; }

/* Celebration: big heart smiley and floating prizes */
.celebrate { position: relative; padding: 0.5rem 0 0.25rem; }
.celebrate .big-heart { width: 180px; height: 180px; display: block; margin: 0 auto; animation: bounce 1s ease-in-out infinite; }
.burst-layer { position: absolute; inset: -1rem -2rem; pointer-events: none; overflow: hidden; }
.burst { position: absolute; left: var(--x); bottom: -20%; width: var(--s); height: var(--s); rotate: var(--r);
  animation: float-up 3.2s ease-out var(--d) infinite; opacity: 0; }
.burst .token { width: 100%; height: 100%; }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-420px) scale(1.05); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .burst { opacity: .9; bottom: auto; top: calc(var(--x) * .6); } }

/* Small screens */
@media (max-width: 640px) {
  .play-world { border-radius: 22px; min-height: 0; }
  .play-inner { padding: 0.9rem 0.9rem 7rem; }
  .token-track .slot { width: 32px; height: 32px; }
  .token-track .token { width: 30px; height: 30px; }
  .count-token .token { width: 52px; height: 52px; }
  .game-bar { justify-content: center; }
  .game-bar .token-track { order: -1; width: 100%; justify-content: center; }
}

/* Notice shown when no Portuguese (Portugal) voice is installed */
.pt-voice-note {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 70;
  width: min(640px, calc(100% - 2rem)); display: flex; gap: 0.8rem; align-items: flex-start;
  background: #fff; border: 3px solid #e8762b; border-bottom-width: 6px; border-radius: 20px;
  padding: 0.9rem 1rem; box-shadow: 0 12px 30px rgba(43,42,51,.18); font-size: 0.95rem; line-height: 1.45;
}
.pt-voice-note .emoji { font-size: 1.6rem; }
.pt-voice-note button { margin-left: auto; flex-shrink: 0; border: 0; background: #ffe1c7; border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; cursor: pointer; }
/* Fix: keep the game list hidden while a game is being played */
.play-world [hidden] { display: none !important; }

/* ==========================================================================
   Seasonal packs and ASN pages
   ========================================================================== */
.pack-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pack-jump .chip { text-decoration: none; }
.pack-section { margin-top: 2.2rem; scroll-margin-top: 170px; }
.pack-head { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: 22px; margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--sc) 12%, #fff); border-left: 8px solid var(--sc); }
.pack-head h2 { margin: 0; }
.pack-head p { margin: .3rem 0 0; color: var(--ink-soft); }
.pack-emoji { font-size: 2.6rem; width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 0 color-mix(in srgb, var(--sc) 35%, #fff); }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.pack-card { background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid color-mix(in srgb, var(--pc) 22%, #fff); border-bottom: 6px solid var(--pc); box-shadow: 0 6px 18px rgba(43,42,51,.08); transition: transform .15s; }
.pack-card:hover { transform: translateY(-4px); }
.pack-thumb { background: color-mix(in srgb, var(--pc) 10%, #fff); padding: 14px 18px 0; display: flex; justify-content: center; }
.pack-thumb img { width: 100%; max-width: 190px; height: auto; display: block; border-radius: 8px 8px 0 0; box-shadow: 0 -2px 14px rgba(43,42,51,.12); }
.pack-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pack-body h3 { margin: 0; font-size: 1.15rem; }
.pack-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.pack-chip { font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--pc) 12%, #fff); }
.pack-meta { font-size: .85rem; color: var(--ink-soft); margin-top: auto; }
.pack-body .btn { align-self: flex-start; }
.pack-full { grid-column: span 2; flex-direction: row; }
.pack-full .pack-thumb { padding: 18px; width: 50%; flex-shrink: 0; align-items: center; }
.pack-full .pack-thumb img { max-width: 230px; border-radius: 8px; }
.pack-full .pack-body { justify-content: center; }
.pack-full h3 { font-size: 1.35rem; }
@media (max-width: 560px) { .pack-full { grid-column: auto; flex-direction: column; } .pack-full .pack-thumb { width: auto; padding: 14px 18px 0; } }
.asn-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.asn-tool { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid #d7ecfb; border-bottom: 6px solid #3fa2d8; box-shadow: 0 6px 16px rgba(43,42,51,.06); transition: transform .15s; }
.asn-tool:hover { transform: translateY(-3px); color: var(--ink); }
.asn-tool .emoji { font-size: 2rem; }
.asn-tool span:last-child { color: var(--ink-soft); font-size: .92rem; }
.asn-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.asn-tips > div { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border-radius: 18px; padding: .9rem 1rem; box-shadow: 0 4px 14px rgba(43,42,51,.06); }
.asn-tips .emoji { font-size: 1.7rem; }
.asn-tips p { margin: 0; }

/* ==========================================================================
   Lessons hub and slideshow player
   ========================================================================== */
.lesson-howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin: 1.2rem 0 1.4rem; }
.lesson-howto > div { display: flex; gap: .7rem; align-items: flex-start; background: #fff; border-radius: 18px; padding: .9rem 1rem; box-shadow: 0 4px 14px rgba(43,42,51,.06); }
.lesson-howto .emoji { font-size: 1.6rem; } .lesson-howto p { margin: 0; }
.lesson-filters { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.2rem; background: #fff; border-radius: 22px; box-shadow: 0 6px 18px rgba(43,42,51,.07); position: sticky; top: 150px; z-index: 5; }
.lf-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.lf-label { font-weight: 700; min-width: 5.5rem; color: var(--ink-soft); }
.lesson-filters .chip small { font-weight: 400; opacity: .75; }
.lesson-year { margin-top: 1.8rem; }
.lesson-year h2 { display: inline-block; padding: .25rem 1rem; border-radius: 999px; background: var(--sun-soft); font-size: 1.3rem; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: .8rem; }
.lesson-card { background: #fff; border-radius: 22px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem;
  border: 2px solid var(--ls); border-top: 8px solid var(--lc); box-shadow: 0 6px 18px rgba(43,42,51,.07); }
.lc-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 700; }
.lc-subj { color: #fff; background: var(--lc); border-radius: 999px; padding: .15rem .65rem; }
.lc-year { color: var(--lc); }
.lesson-card h3 { margin: .1rem 0 0; font-size: 1.15rem; }
.lc-obj { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.lc-actions { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; padding-top: .4rem; }
.lc-actions .btn { align-self: stretch; justify-content: center; }
.lc-link { font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--brand); padding: .2rem 0; }
.lc-link:hover { text-decoration: underline; }
.slide-player { margin-top: 1.2rem; }
.sp-info { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: .9rem; }
.sp-title { display: flex; flex-direction: column; flex: 1; min-width: 220px; }
.sp-title strong { font-family: var(--font-head); font-size: 1.3rem; }
.sp-title span { color: var(--ink-soft); font-size: .95rem; }
.sp-links { display: flex; gap: 1rem; }
.sp-stage { max-width: 1100px; margin: 0 auto; cursor: pointer; user-select: none; }
.sp-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin-top: 1rem; }
.sp-dots { display: flex; gap: .35rem; }
.sp-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #d9d3c8; cursor: pointer; padding: 0; }
.sp-dots button[aria-current="true"] { background: var(--brand); transform: scale(1.3); }
.sp-count { font-weight: 700; color: var(--ink-soft); min-width: 3.5rem; text-align: center; }
.sp-hint { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: .6rem; }
.slide-player.sp-fs, .slide-player.sp-big { background: #2f2a45; padding: 2vh 2vw; display: flex; flex-direction: column; justify-content: center; }
.slide-player.sp-fs .sp-info, .slide-player.sp-fs .sp-hint { display: none; }
.slide-player.sp-fs .sp-stage { width: min(96vw, 170vh); max-width: none; }
.slide-player.sp-fs .sp-count { color: #fff; }
.slide-player.sp-big { position: fixed; inset: 0; z-index: 100; }
.slide-player.sp-big .sp-info, .slide-player.sp-big .sp-hint { display: none; }
.slide-player.sp-big .sp-stage { width: min(96vw, 160vh); max-width: none; }
@media (max-width: 760px) { .lesson-filters { position: static; } .lf-label { min-width: 100%; } }
.pack-lessons { margin: -.3rem 0 1rem; }
.sp-stage { width: min(100%, calc((100vh - 290px) * 16 / 9)); min-width: min(100%, 520px); }

/* ==========================================================================
   Number fun and Draw & trace
   ========================================================================== */
.page-header.compact { padding-top: 1.4rem; padding-bottom: 1.4rem; margin-top: 1rem; }
.play-world.themed { background: linear-gradient(180deg, var(--sky1, #dff2ff) 0%, var(--sky2, #fff6dc) 100%); min-height: 0; margin-top: 1rem; }
.play-world.themed .play-inner { padding-bottom: 2rem; }
.theme-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.theme-deco span { position: absolute; font-family: "Noto Color Emoji", sans-serif; font-size: clamp(1.6rem, 3vw, 2.6rem); opacity: .35; rotate: var(--r); animation: deco-float 9s ease-in-out var(--d) infinite alternate; }
@keyframes deco-float { to { translate: 0 -14px; } }
.theme-dark .theme-deco span { opacity: .6; }
.theme-dark .page-header { color: inherit; }
.ng-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.reward-track { display: flex; gap: .4rem; padding: .35rem .6rem; border-radius: 999px; background: #fff8e1; border: 2px solid #ffe08a; }
.rt-slot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 3px dashed #e6cf8a; background: #fffdf5; font-size: 1.5rem; }
.rt-slot.filled { border: 3px solid transparent; background: transparent; }
.rt-slot.pop .emoji { animation: token-pop .6s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
.ng-settings { background: rgba(255,255,255,.92); border-radius: 24px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .55rem; box-shadow: 0 6px 18px rgba(43,42,51,.08); margin-bottom: 1rem; }
.ng-settings[hidden] { display: none; }
.ng-row { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: center; }
.ng-label { font-weight: 700; min-width: 6.5rem; color: var(--ink-soft); }
.ng-chips, .ng-modes, .ng-jumpers, .tr-colours { display: flex; flex-wrap: wrap; gap: .4rem; }
.ng-chips .chip small { font-weight: 400; opacity: .75; }
.ng-mode, .ng-jumper { display: flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700; cursor: pointer; padding: .5rem .9rem; border-radius: 16px;
  background: #fff; border: 2px solid #e2dcd2; border-bottom-width: 5px; color: var(--ink); }
.ng-mode .emoji, .ng-jumper .emoji { font-size: 1.5rem; }
.ng-jumper { flex-direction: column; gap: 0; padding: .35rem .8rem; min-width: 84px; }
.ng-jumper .emoji { font-size: 2.2rem; }
.ng-mode[aria-pressed="true"], .ng-jumper[aria-pressed="true"] { border-color: var(--accent, #3d6b8f); background: color-mix(in srgb, var(--accent, #3d6b8f) 14%, #fff); }
.ng-board { background: rgba(255,255,255,.95); border-radius: 30px; padding: clamp(1rem, 3vw, 1.8rem); text-align: center; box-shadow: 0 12px 34px rgba(43,42,51,.14); position: relative; }
.ng-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 30px 30px 0 0; background: var(--rainbow); }
.ng-prompt { font-family: var(--font-head); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 600; margin: .4rem 0 .8rem; }
.ng-eq { display: inline-flex; gap: .6rem; align-items: center; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.ng-eq b { color: var(--accent, #e8762b); }
.ng-qmark { display: inline-grid; place-items: center; min-width: 1.6em; padding: 0 .2em; border-radius: 16px; border: 4px dashed var(--accent, #e8762b); color: var(--accent, #e8762b); }
.ng-qmark.done { border-style: solid; background: #e3f5e8; color: #2f7a46; border-color: #4fa36b; animation: happy-jump .5s; }
.ng-line-area svg { width: 100%; height: auto; display: block; max-height: 230px; }
.nl-base { stroke: #2b2a33; stroke-width: 4; stroke-linecap: round; }
.nl-arrow { fill: #2b2a33; }
.nl-tick { stroke: #2b2a33; stroke-width: 2; } .nl-tick.major { stroke-width: 3; }
.nl-num { font-family: Fredoka, Poppins, sans-serif; font-weight: 600; font-size: 26px; text-anchor: middle; fill: #2b2a33; }
.nl-num.on { fill: var(--accent, #e8762b); font-size: 32px; }
.nl-q circle { fill: #fff; stroke: var(--accent, #e8762b); stroke-width: 3; stroke-dasharray: 5 4; }
.nl-q text { font-family: Fredoka, Poppins, sans-serif; font-weight: 700; font-size: 24px; text-anchor: middle; fill: var(--accent, #e8762b); }
.nl-arc { fill: none; stroke: var(--accent, #e8762b); stroke-width: 3; stroke-dasharray: 7 6; }
.nl-arc-label { font-family: Fredoka, Poppins, sans-serif; font-weight: 700; font-size: 20px; text-anchor: middle; fill: var(--accent, #e8762b); }
.nl-jumper text { font-family: "Noto Color Emoji", sans-serif; transform-box: fill-box; transform-origin: center; }
.ng-jump { margin: .5rem auto 0; font-size: 1.2rem; }
.ng-hint { color: var(--ink-soft); font-size: 1.05rem; margin: .4rem 0 0; }
.ng-show { margin: .6rem 0 1rem; }
.ng-groups { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem; }
.ng-pics { display: inline-flex; flex-wrap: wrap; gap: .2rem; max-width: 330px; justify-content: center; padding: .5rem .7rem; border-radius: 18px; background: #f6fbf4; border: 3px dashed #bfe3c8; }
.ng-pics .emoji { font-size: 2.3rem; animation: token-in .45s backwards; animation-delay: var(--d); }
.ng-pics .emoji.gone { opacity: .25; position: relative; filter: grayscale(1); }
.ng-op { font-size: 2.6rem; color: var(--accent, #e8762b); }
.ng-slots, .ng-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .8rem; }
.ng-slot, .ng-tile { min-width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 2rem; }
.ng-slot { border: 3px dashed #c9c4d1; background: #fff; }
.ng-slot.filled { border: 3px solid #4fa36b; background: #e3f5e8; display: flex; gap: .2rem; padding: 0 .5rem; animation: happy-jump .5s; }
.ng-slot .emoji { font-size: 1.2rem; }
.ng-tile { background: #fff; border: 3px solid #e2dcd2; }
.ng-tile.q { border: 4px dashed var(--accent, #e8762b); color: var(--accent, #e8762b); }
.ng-tile.done { border-color: #4fa36b; background: #e3f5e8; }
.ng-answers { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.ng-answer { --ac: #e8762b; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.4rem); min-width: 112px; min-height: 92px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .3rem 1rem; border-radius: 24px;
  background: #fff; border: 3px solid color-mix(in srgb, var(--ac) 40%, #fff); border-bottom: 7px solid var(--ac); color: var(--ink); transition: transform .12s; }
.ng-answer .emoji { font-size: 1.3rem; }
.ng-answer:nth-child(5n+2) { --ac: #3fa2d8; } .ng-answer:nth-child(5n+3) { --ac: #4fa36b; } .ng-answer:nth-child(5n+4) { --ac: #7a5aa6; } .ng-answer:nth-child(5n+5) { --ac: #ec6f9a; }
.ng-answer:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); background: color-mix(in srgb, var(--ac) 10%, #fff); }
.ng-answer.correct { --ac: #4fa36b; background: #e3f5e8; animation: happy-jump .5s; }
.ng-answer.wrong { opacity: .4; animation: wobble .4s; }
.ng-answer.placed { visibility: hidden; }
.ng-answer.play-again { --ac: #ec6f9a; background: #ffdfea; font-size: 1.5rem; }
.ng-feedback { min-height: 3rem; margin: 1rem 0 0; font-size: 1.4rem; font-weight: 700; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; align-items: center; }
.heart-face { width: 44px; height: 44px; }
.celebrate .burst.emoji { font-size: var(--s); width: auto; height: auto; }

/* Draw & trace */
.tr-picker { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-bottom: .8rem; }
.tr-picker[hidden], .tr-drawtools[hidden] { display: none; }
.tr-pick { font: inherit; font-family: Andika, "Atkinson Hyperlegible", sans-serif; font-weight: 700; font-size: 1.3rem; min-width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 2px solid #e2dcd2; border-bottom-width: 4px; color: var(--ink); }
.tr-pick.path { font-size: .9rem; font-family: inherit; display: flex; align-items: center; gap: .3rem; padding: 0 .7rem; }
.tr-pick.path .emoji { font-size: 1.3rem; }
.tr-pick[aria-pressed="true"] { border-color: var(--accent, #3d6b8f); background: color-mix(in srgb, var(--accent, #3d6b8f) 16%, #fff); }
.tr-swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px #e2dcd2; }
.tr-swatch.rainbow { background: conic-gradient(#e8473b, #ffc93c, #4fa36b, #3fa2d8, #7a5aa6, #ec6f9a, #e8473b); }
.tr-swatch[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.1); }
.tr-drawtools { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; margin-bottom: .8rem; }
.tr-sizes, .tr-stamps { display: flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.9); padding: .35rem .6rem; border-radius: 18px; }
.tr-size, .tr-stamp { width: 48px; height: 48px; border-radius: 14px; border: 2px solid #e2dcd2; background: #fff; cursor: pointer; display: grid; place-items: center; }
.tr-size span { width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); }
.tr-stamp .emoji { font-size: 1.6rem; }
.tr-size[aria-pressed="true"], .tr-stamp[aria-pressed="true"] { border-color: var(--accent, #3d6b8f); background: color-mix(in srgb, var(--accent, #3d6b8f) 16%, #fff); }
.tr-prompt { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.tr-word { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .7rem; border-radius: 999px; background: var(--sun-soft); font-size: .9em; }
.tr-board { position: relative; margin: 0 auto; aspect-ratio: 100 / 125; width: min(100%, calc(64vh * .8)); background: #fff; border-radius: 22px; border: 3px solid #e7e1d8;
  touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; cursor: crosshair; }
.tr-board.is-path { aspect-ratio: 400 / 240; width: min(100%, calc(62vh * 1.667)); }
.tr-board.is-draw { aspect-ratio: 400 / 260; width: min(100%, calc(66vh * 1.54)); background: #fffdf8; }
.tr-svg, .tr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tr-lines line { stroke: #c9d6e3; stroke-width: .6; } .tr-lines .mid { stroke-dasharray: 2 2; } .tr-lines .base { stroke: #8fa8c0; stroke-width: .9; }
.tr-guide { fill: none; stroke: #eef0f4; stroke-linecap: round; stroke-linejoin: round; }
.tr-guide.now { stroke: color-mix(in srgb, var(--accent, #3fa2d8) 18%, #fff); }
.tr-guide.ok { stroke: #d6efdd; }
.tr-dash { fill: none; stroke: #b9b5c2; stroke-width: .9; stroke-dasharray: 2.2 2.2; stroke-linecap: round; }
.is-path .tr-dash { stroke-width: 3; stroke-dasharray: 9 9; }
.tr-dash.later { opacity: .55; }
.tr-start { fill: #4fa36b; stroke: #fff; stroke-width: 1; }
.tr-start.later { fill: #c9c4d1; } .tr-start.ok { fill: #a8d5b5; }
.tr-start.now { animation: pulse-dot 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-dot { 50% { transform: scale(1.35); } }
.tr-num { font-family: Poppins, sans-serif; font-weight: 700; font-size: 6px; fill: #fff; text-anchor: middle; pointer-events: none; }
.tr-arrow { fill: #e8762b; } .tr-arrow.later, .tr-arrow.ok { opacity: 0; }
.tr-emoji { font-family: "Noto Color Emoji", sans-serif; text-anchor: middle; dominant-baseline: central; }
.tr-demo-ink { fill: none; stroke: #ec6f9a; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.tr-svg.all-done .tr-guide { stroke: #d6efdd; transition: stroke .3s; }
.tr-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .9rem; }
.tr-count { display: inline-flex; flex-wrap: wrap; gap: .15rem; font-size: 1.4rem; }
@media (max-width: 640px) { .ng-label { min-width: 100%; } .rt-slot { width: 32px; height: 32px; font-size: 1.1rem; } .ng-answer { min-width: 86px; min-height: 76px; } }
.tr-end { fill: #fff; stroke: #e8473b; stroke-width: 4; }

/* Toolbar cascade menus: year → subject → topic */
.tb-cascade-panel {
  position: fixed; z-index: 61; display: flex; align-items: stretch;
  background: #fff; border: 2px solid var(--border); border-bottom: 4px solid var(--tc, var(--blue)); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(43, 42, 51, .18); overflow: hidden; max-width: calc(100vw - 16px);
}
.tb-cascade-panel[hidden] { display: none; }
.tbc-col { width: 250px; padding: .5rem; overflow-y: auto; border-left: 2px solid var(--border); }
.tbc-col:first-child { border-left: 0; }
.tbc-topics { width: 290px; }
.tbc-title { margin: .2rem .5rem .4rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.tbc-item, .tbc-link { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 12px; background: none; font: inherit; font-weight: 700; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.tbc-item .emoji { font-size: 1.35rem; width: 1.7rem; text-align: center; flex: none; }
.tbc-item span:nth-child(2) { flex: 1; }
.tbc-arrow { color: var(--ink-soft); font-size: 1.2rem; }
.tbc-item:hover, .tbc-link:hover, .tbc-item.on { background: color-mix(in srgb, var(--tc, #3d6b8f) 16%, #fff); }
.tbc-link { font-weight: 400; padding: .45rem .7rem; justify-content: space-between; }
.tbc-link small { background: var(--bg); border-radius: 999px; padding: 0 .45rem; font-size: .78rem; color: var(--ink-soft); }
.tbc-link.all { font-weight: 700; background: var(--sun-soft); margin-bottom: .3rem; }
.tbc-group { margin: .6rem .7rem .15rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.tbc-back { display: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); padding: .4rem .6rem; cursor: pointer; }
/* Phones: one column at a time, with a back button */
@media (max-width: 760px) {
  .tb-cascade-panel { left: 8px !important; right: 8px; }
  .tbc-col { display: none; width: auto; flex: 1; border-left: 0; }
  .tbc-col:last-child { display: block; }
  .tbc-back { display: inline-block; }
}
@media print { .tb-cascade-panel { display: none !important; } }

.tbc-col { width: 270px; }
a.tbc-a { font-weight: 600; }
a.tbc-a small { margin-left: auto; background: var(--bg); border-radius: 999px; padding: 0 .45rem; font-size: .78rem; color: var(--ink-soft); }
a.tbc-a.main { background: var(--sun-soft); font-weight: 700; margin-bottom: .25rem; }
a.tbc-a[aria-current="page"] { outline: 2px solid var(--tc, #3d6b8f); }
.tbc-item:focus-visible { outline: 3px solid var(--tc, #3d6b8f); outline-offset: -3px; }
.tb-btn { -webkit-tap-highlight-color: transparent; }
/* "Sobre" and "Contactos" beside "Ser Pro" */
.tb-btn.tb-mini { flex-direction: row; width: auto; min-width: 0; min-height: 0; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; font-size: .92rem; }
.tb-mini .emoji { font-size: 1.05rem; }
.tb-mini .tb-caret { font-size: .7rem; }
@media (max-width: 760px) {
  .tb-btn.tb-mini { padding: .4rem .55rem; }
  .tb-mini .tb-mini-label, .tb-mini .tb-caret { display: none; }
}
@media print { .tb-mini { display: none !important; } }
/* Medium screens: tighter buttons so they all fit; smaller still: two tidy rows instead of sliding sideways */
@media (max-width: 1120px) and (min-width: 761px) {
  .toolbar .tb-btn:not(.tb-mini) { min-width: 78px; padding: .35rem .45rem; font-size: .88rem; }
}
@media (max-width: 1040px) and (min-width: 761px) {
  .toolbar-list { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .toolbar .container::after { display: none; }
}

/* Less scrolling: slimmer banners on every inner page */
.page-header { margin: 1rem 0 1.2rem; padding: 1.5rem 2rem 1.4rem; border-radius: 26px; }
.page-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .3rem; }
.page-header .lead { margin: .3rem 0 0; font-size: 1.05rem; }
.page-header .eyebrow { margin-bottom: .4rem; }
.page-header::after { width: 200px; height: 200px; top: -80px; right: -60px; }
@media (max-width: 600px) { .page-header { padding: 1.2rem 1.1rem; } }
/* Slightly shorter toolbar buttons so more of each page shows without scrolling */
.toolbar .tb-btn:not(.tb-mini) { min-height: 56px; padding-top: .3rem; padding-bottom: .3rem; }
.toolbar-list { padding: .45rem 0; }
/* Seasonal and ASN pages: no big empty gap between the banner and the first section */
.pack-section { padding-top: 0; padding-bottom: 0; margin-top: 1.4rem; }
/* Inner-page banners: just the title and one short line, so the content starts higher up */
.page-header { padding: 1.1rem 1.7rem 1.1rem; margin: .9rem 0 1rem; }
.page-header .eyebrow { display: none; }
.page-header h1::after { display: none; }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .25rem; }
.page-header .lead { font-size: 1rem; line-height: 1.45; }
.page-header::after { width: 150px; height: 150px; top: -70px; right: -50px; }

/* Drop-down menus: compact, always fully on screen */
.tbc-col { position: relative; padding: .45rem; overflow-y: auto; overscroll-behavior: contain; }
.tbc-item, .tbc-link { padding: .42rem .6rem; font-size: .95rem; border-radius: 10px; min-height: 40px; }
.tbc-item .emoji { font-size: 1.15rem; width: 1.5rem; }
.tbc-title { margin: .15rem .5rem .3rem; }
.tbc-group { margin: .4rem .6rem .1rem; }
.tbc-col.wide { width: 500px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 .3rem; align-content: start; }
.tbc-col.wide > .tbc-title, .tbc-col.wide > .tbc-back, .tbc-col.wide > .tbc-group, .tbc-col.wide > .main { grid-column: 1 / -1; }
.tbc-close { position: absolute; top: .35rem; right: .4rem; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--bg); font: inherit; font-size: .95rem; cursor: pointer; color: var(--ink-soft); z-index: 1; }
.tbc-close:hover { background: var(--border); color: var(--ink); }
.tbc-col:first-child > .tbc-title, .tbc-col:first-child > .main { margin-right: 2.2rem; }
.tbc-col::-webkit-scrollbar { width: 8px; } .tbc-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
@media (max-width: 760px) {
  .tbc-col.wide { width: auto; grid-template-columns: 1fr; }
  .tbc-item, .tbc-link { min-height: 44px; }
}
.tbc-col.wide.three { width: 660px; grid-template-columns: 1fr 1fr 1fr; }
/* Long topic lists flow into two (or three) columns so they fit on screen */
.tbc-col.flow { width: 460px; display: block; column-count: 2; column-gap: .4rem; }
.tbc-col.flow3 { width: 590px; column-count: 3; }
.tbc-col.flow > .tbc-title, .tbc-col.flow > .main, .tbc-col.flow > .tbc-close { column-span: all; }
.tbc-col.flow > .tbc-item { break-inside: avoid; }
.tbc-col.flow > .tbc-group { break-after: avoid; break-inside: avoid; }
.tbc-col.mini { width: 195px; }
/* "More ▼" button: only shown when a column still has items below */
.tbc-more { display: none; position: sticky; bottom: 0; width: 100%; margin-top: .3rem; padding: .45rem; border: 0; border-radius: 10px; background: var(--tc, #3d6b8f); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 -8px 14px #fff; grid-column: 1 / -1; column-span: all; }
.tbc-col.more > .tbc-more { display: block; }
@media (max-width: 760px) { .tbc-col.wide.three { width: auto; grid-template-columns: 1fr 1fr; } }

/* Scroll buttons on the right: move the page with a click or a tap (no keyboard needed) */
.scroll-ctl { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); border: 2px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: 0 6px 18px rgba(43,42,51,.14); }
.scroll-ctl[hidden] { display: none; }
.scroll-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue, #3d6b8f); color: #fff; font-size: 1.15rem; cursor: pointer; touch-action: none;
  box-shadow: 0 3px 0 #264a66; }
.scroll-ctl button:hover { filter: brightness(1.1); }
.scroll-ctl button:active { transform: translateY(2px); box-shadow: none; }
.scroll-ctl button:disabled { background: #cfd6de; box-shadow: none; cursor: default; }
.scroll-track { position: relative; width: 14px; height: 120px; border-radius: 999px; background: var(--bg, #f3efe8); cursor: pointer; touch-action: none; }
.scroll-track span { position: absolute; left: 0; right: 0; border-radius: 999px; background: var(--orange, #e8762b); min-height: 14px; }
/* A thicker, easier-to-grab page scroll bar as well */
html { scrollbar-width: auto; scrollbar-color: #e8762b #f3efe8; }
html::-webkit-scrollbar { width: 16px; } html::-webkit-scrollbar-track { background: #f3efe8; } html::-webkit-scrollbar-thumb { background: #e8762b; border-radius: 10px; border: 3px solid #f3efe8; }
@media (max-width: 760px) { .scroll-ctl { right: 6px; padding: 4px; } .scroll-ctl button { width: 40px; height: 40px; } .scroll-track { height: 80px; } }
@media print { .scroll-ctl { display: none !important; } }
body.pdf-mode .scroll-ctl { display: none !important; }

/* Fireworks mark-making game */
.fw-titlebar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: .8rem 0 .5rem; }
.fw-h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.fw-h1::after { display: none; }
.fw-sub { margin: 0; color: var(--ink-soft); }
.fw-world .play-inner { padding: .8rem; padding-bottom: .8rem; }
.fw-bar .fw-stars { margin-left: auto; }
.fw-levels .chip { color: var(--ink); }
.fw-bar { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin-bottom: .6rem; }
.fw-bar .ng-mode { padding: .45rem .8rem; }
.fw-choose { display: flex; gap: .3rem; align-items: center; }
.fw-arrow { min-width: 44px; }
.fw-picker { position: absolute; z-index: 20; left: .8rem; right: .8rem; top: 4.2rem; background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: .6rem; box-shadow: 0 14px 34px rgba(43,42,51,.2); }
.fw-picker[hidden] { display: none; }
.fw-app { position: relative; }
.fw-stars { font-size: 1.3rem; min-height: 1.6rem; }
.fw-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .4rem; margin-bottom: .6rem; }
.fw-pick { display: grid; justify-items: center; padding: .35rem .2rem; border-radius: 14px; border: 2px solid var(--border); background: #fff; cursor: pointer; font: inherit; }
.fw-pick .emoji { font-size: 1.5rem; line-height: 1; }
.fw-pick b { font-family: var(--font-head); font-size: .95rem; }
.fw-pick[aria-pressed="true"] { border-color: #1f2a5a; background: #e9e6fb; box-shadow: 0 3px 0 #1f2a5a; }
#fw-level-row { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.fw-colours { display: flex; flex-wrap: wrap; gap: .35rem; }
.fw-swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px var(--border); cursor: pointer; }
.fw-swatch.match { background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); font-size: 1rem; }
.fw-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #1f2a5a; transform: scale(1.08); }
.fw-stage { background: #1f2a5a; border-radius: 22px; padding: .6rem .8rem .7rem; color: #fff; box-shadow: 0 10px 28px rgba(31,42,90,.35); }
.fw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .8rem; }
.fw-head h2 { color: #fff; margin: 0; font-size: 1.2rem; }
.fw-head p { margin: 0 0 .4rem; opacity: .9; }
.fw-sky { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 20% 15%, #34407a 0, #1a2250 45%, #10163a 100%); }
.fw-sky::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), radial-gradient(circle, #ffd76a 0 1px, transparent 1.5px); background-size: 90px 80px, 130px 110px; background-position: 10px 20px, 50px 60px; opacity: .5; pointer-events: none; }
#fw-svg { display: block; width: 100%; height: clamp(260px, calc(100vh - 450px), 600px); touch-action: none; cursor: crosshair; position: relative; }
#fw-canvas { position: absolute; inset: 0; pointer-events: none; }
.fw-bottom { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: .5rem; }
.fw-count { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fw-num { width: 50px; height: 50px; border-radius: 50%; background: #ffc93c; color: #1f2a5a; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2rem; }
.fw-of { font-family: var(--font-head); font-size: 1.15rem; }
.fw-pcs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.fw-pc { width: 22px; height: 8px; border-radius: 6px; background: var(--c); opacity: .3; }
.fw-pc.on { opacity: 1; box-shadow: 0 0 8px var(--c); }
.fw-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 600px) { #fw-svg { height: 52vh; } .fw-picker { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); } }
/* Phones and tablets scroll by swiping: hide the scroll buttons there so they never cover a game */
@media (max-width: 760px), (pointer: coarse) { .scroll-ctl { display: none !important; } }

.menu-open .scroll-ctl { display: none; }

/* Bonfire Night key words: word mat (15 pictures, 3 across) */
.bw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm 6mm; margin-top: 3mm; }
.bw-grid .bw-card { width: auto; border-width: 3px; }
.bw-grid .bw-card { padding: 2px; } .bw-grid .bw-card .sym-visual { aspect-ratio: auto; height: 33mm; } .bw-grid .bw-card .sym-visual svg { width: 33mm; height: 33mm; }
.bw-grid .bw-card .lbl { font-family: "Andika", sans-serif; font-weight: 700; font-size: 22px; padding: 0; }

/* Printables, lesson plans and downloads: everyone sees the buttons, but only the site owner can open them (see main.js).
   The worksheet previews and the printables / lesson plan lists stay locked for everyone else. */
/* (launch) worksheet previews and the printables / lesson plan lists are visible to everyone; downloads ask for an email first */
.owner-note { display: flex; gap: .7rem; align-items: center; font-size: 1.1rem; font-weight: 700; margin: 1rem 0; }
.owner-note .emoji { font-size: 2rem; }
html.is-owner .owner-note { display: none; }
.lock-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 9999; background: #2b2a33; color: #fff; padding: .9rem 1.4rem; border-radius: 16px;
  font-weight: 700; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: min(92vw, 560px); text-align: center; }

/* Playdough communication board: A4 landscape, 7 × 5 grid with the playdough picture across the middle 3 × 3 */
.pd-page { width: 297mm; height: 210mm; box-sizing: border-box; padding: 7mm 8mm 4mm; background: #fff; margin: 0 auto 8mm; box-shadow: 0 4px 18px rgba(0,0,0,.08); display: flex; flex-direction: column; break-after: page; page-break-after: always; }
.pd-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(5, 1fr); gap: 2.4mm; min-height: 0; }
.pd-cell { min-height: 0; display: flex; }
.pd-card.sym-card { width: 100%; height: 100%; box-sizing: border-box; border-width: 3px; border-radius: 12px; padding: 1.2mm 1mm .6mm; display: flex; flex-direction: column; justify-content: space-between; }
.pd-card .sym-visual { aspect-ratio: auto; flex: 1; min-height: 0; width: 100%; }
.pd-card .lbl { font-family: "Andika", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.05; padding: 0; text-transform: lowercase; }
.pd-centre { border: 3px solid #f06292; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3mm; background: #fff8fb; }
.pd-big { width: 92mm; height: 70mm; container-type: inline-size; }
.pd-big .sym-scene, .pd-big .sym-emoji { width: 100%; height: 100%; }
.pd-word { font-family: "Andika", sans-serif; font-weight: 700; font-size: 34px; color: #2b2a33; }
.pd-foot { display: flex; align-items: center; justify-content: center; gap: 2mm; font-size: 9px; color: #6f6a85; padding-top: 1.5mm; }
.pd-foot img { width: 5mm; height: 5mm; }
.pd-note { margin: 0 0 2mm; font-size: 12px; font-weight: 700; }
.pd-cardgrid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr); gap: 0; border-top: 1px dashed #aaa; border-left: 1px dashed #aaa; min-height: 0; }
.pd-cardgrid > .pd-card { border-radius: 10px; margin: 1.6mm; width: auto; height: auto; }
.pd-cardgrid > .pd-card { outline: 1px dashed #aaa; outline-offset: 1.5mm; }
@media print { .pd-page { box-shadow: none; margin: 0; } }

/* ---------- Activity page (atividade.html): one activity, everything in one place ---------- */
.act-crumb { font-size: .95rem; color: var(--muted, #6b6680); margin: 18px 0 10px; } .act-crumb a { color: inherit; }
.act-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.act-hero { border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(43, 42, 51, .14); background: #fff; }
.act-hero-img { width: 100%; display: block; }
.act-hero .slide { border-radius: 0; box-shadow: none; }
.act-info h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.act-lead { font-size: 1.15rem; margin: 0 0 10px; } .act-for { margin: 0 0 14px; font-weight: 600; color: #8a5a2b; }
.act-chips, .act-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.act-chip { border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 600; background: #eaf3fb; color: #2d5f87; }
.act-chip.theme { background: #fff1de; color: #b0581a; }
.act-badge { border: 2px solid #e7dccf; border-radius: 12px; padding: 5px 12px; font-size: .9rem; font-weight: 600; background: #fff; }
.act-h2 { font-size: 1.35rem; margin: 26px 0 12px; }
.act-items { display: flex; flex-direction: column; gap: 12px; }
.act-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 18px; border: 2px solid #f0e8de; }
.act-item-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: #fff3e4; }
.act-item.k-plan .act-item-ico { background: #ffe9f1; } .act-item.k-slides .act-item-ico { background: #ece4f7; } .act-item.k-tool .act-item-ico { background: #e3f4e8; }
.act-item-txt { display: flex; flex-direction: column; gap: 2px; } .act-item-txt span { color: #6b6680; font-size: .95rem; }
.act-item-kind { text-transform: uppercase; letter-spacing: .04em; font-size: .75rem !important; font-weight: 700; color: #b0581a !important; }
.act-item-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.act-tips { background: #fffbea; border: 2px solid #f6e3a3; border-radius: 18px; padding: 4px 22px 12px; margin-top: 22px; } .act-tips li { margin: 6px 0; }
.act-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 40px; }
.act-rel { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #f0e8de; border-radius: 16px; padding: 12px 16px; font-weight: 700; text-decoration: none; color: inherit; }
.act-rel:hover { border-color: #e8762b; } .act-rel-emo { font-size: 28px; font-family: "Noto Color Emoji", sans-serif; }
@media (max-width: 760px) { .act-top { grid-template-columns: 1fr; } .act-item { grid-template-columns: 48px 1fr; } .act-item-btns { grid-column: 1 / -1; justify-content: flex-start; } .act-item-ico { width: 48px; height: 48px; font-size: 24px; } }
.owner-preview { position: fixed; left: 16px; bottom: 16px; z-index: 50; background: #7a5aa6; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
@media print { .owner-preview { display: none !important; } } .pdf-mode .owner-preview { display: none !important; }
/* Activities browsing page */
.act-head .lead { margin-bottom: 14px; }
.act-search { width: 100%; max-width: 560px; font-size: 1.1rem; padding: 12px 18px; border-radius: 999px; border: 2px solid #e7dccf; background: #fff; }
.act-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.act-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px; border-radius: 18px; background: #fff; border: 2px solid #f0e8de; text-decoration: none; color: inherit; font-weight: 700; font-size: .95rem; }
.act-tile:hover, .act-tile.on { border-color: #e8762b; background: #fff6ec; }
.act-tile-ico { font-size: 34px; font-family: "Noto Color Emoji", sans-serif; line-height: 1.1; } .act-tile small { color: #8b86a0; font-weight: 600; }
.act-tiles.themes { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.act-results-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.act-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 40px; }
.act-card { display: flex; flex-direction: column; background: #fff; border-radius: 20px; border: 2px solid #f0e8de; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.act-card:hover { transform: translateY(-3px); border-color: #e8762b; }
.act-card-img { display: block; height: 170px; background: #faf6f0; overflow: hidden; } .act-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.act-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; } .act-card-body b { font-size: 1.1rem; }
.act-card-lead { color: #6b6680; font-size: .93rem; }
.act-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .act-card-badges span { font-size: .78rem; font-weight: 700; background: #f6f1ea; border-radius: 8px; padding: 3px 8px; }
.act-none { color: #6b6680; } a.act-chip { text-decoration: none; }
/* Home: this month strip */
.month-strip { padding: 4px 0 8px; } .month-strip .container { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.month-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #fff1de, #ffe3c7); border: 2px solid #f4c08e; border-radius: 22px; padding: 16px 22px; text-decoration: none; color: inherit; }
.month-card.soon { background: #f2f7ef; border-color: #cfe3c4; }
.month-card .emoji { font-size: 44px; } .month-card b { display: block; font-size: 1.15rem; } .month-card small { color: #6b6680; font-size: .95rem; }
.month-go { margin-left: auto; font-weight: 800; color: #b0581a; white-space: nowrap; }
@media (max-width: 760px) { .month-strip .container { grid-template-columns: 1fr; } }
.act-tile { padding: 10px 8px; } .act-tile-ico { font-size: 28px; }

/* Activity badges are buttons: open the presentation / PDF straight away */
button.act-badge { cursor: pointer; font: inherit; font-size: .9rem; font-weight: 700; color: #2b4a6b; transition: transform .12s, border-color .12s, background .12s; }
button.act-badge:hover, button.act-badge:focus-visible { border-color: #e8762b; background: #fff4e8; transform: translateY(-1px); }
.act-card-badges .act-go { cursor: pointer; border: 1.5px solid transparent; }
.act-card-badges .act-go:hover { border-color: #e8762b; background: #fff4e8; }
@keyframes actFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,118,43,0); } 30% { box-shadow: 0 0 0 5px rgba(232,118,43,.55); } }
.act-item.act-flash { animation: actFlash 1.4s ease 2; border-color: #e8762b; }

/* Menus: items of the same group sit close together; groups are clearly separated (heading + line + space). */
.tbc-col.wide { row-gap: 2px; }
.tbc-item, .tbc-link { line-height: 1.2; padding-top: .32rem; padding-bottom: .32rem; min-height: 36px; }
.tbc-col.wide.three { width: 720px; }
.tbc-group { margin: 1rem .6rem .35rem; padding-top: .7rem; border-top: 2px solid var(--border); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.tbc-col > .main + .tbc-group, .tbc-col > .tbc-link.main + .tbc-group { margin-top: .6rem; }
@media (max-width: 760px) { .tbc-item, .tbc-link { min-height: 44px; } }

/* Portuguese school "a" (round, with a little tail) for the S. Martinho word tracing */
@font-face { font-family: "Andika Escolar"; src: url("../fonts/AndikaEscolar-Regular.ttf") format("truetype"); font-display: swap; }
.sm-trace .trace-text { font-family: "Andika Escolar", "Andika", sans-serif; }

/* ---------- 15-minute blocks (blocos.html) ---------- */
.blk-how { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: .6rem; margin: 0 0 1rem; }
.blk-how div { background: #fff; border: 2px solid var(--border); border-radius: 18px; padding: .7rem 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.blk-how div.main { border-color: var(--brand); background: #fff8ef; }
.blk-how b { font-family: Fredoka, sans-serif; font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.blk-how span { font-weight: 700; } .blk-how small { color: var(--muted, #6b6680); }
.blk-filters { display: grid; gap: .2rem; margin-bottom: 1rem; }
.blk-frow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.blk-frow .chips { margin: .3rem 0; }
.blk-flabel { font-weight: 700; min-width: 7.5em; }
.blk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.blk-card { background: #fff; border: 2px solid var(--border); border-radius: 22px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.blk-card header { display: flex; gap: .8rem; align-items: flex-start; }
.blk-ico { font-size: 2.6rem; line-height: 1; } .blk-ico svg { width: 2.6rem !important; height: 2.6rem !important; }
.blk-area { font-size: .8rem; font-weight: 700; color: var(--muted, #6b6680); text-transform: uppercase; letter-spacing: .03em; }
.blk-card h3 { margin: .1rem 0 .2rem; font-size: 1.2rem; } .blk-card header p { margin: 0; }
.blk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.blk-steps li { display: flex; gap: .6rem; align-items: baseline; background: var(--bg); border-radius: 12px; padding: .35rem .6rem; font-size: .95rem; }
.blk-steps li.main { background: #fff3e2; }
.blk-steps b { font-family: Fredoka, sans-serif; color: var(--brand); min-width: 2.2em; }
.blk-lvtabs { display: flex; gap: .3rem; align-items: center; }
.blk-lvtabs button { font: inherit; font-weight: 700; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--border); background: #fff; cursor: pointer; }
.blk-lvtabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.blk-lvname { font-weight: 700; margin-left: .3rem; font-size: .9rem; }
.blk-lv { border-left: 4px solid var(--brand); padding-left: .7rem; } .blk-lv p { margin: 0 0 .3rem; }
.blk-reslist { display: flex; flex-wrap: wrap; gap: .3rem; }
.blk-res { font-size: .88rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--bg); text-decoration: none; }
.blk-mat { margin: 0; font-size: .9rem; }
.blk-tip { margin: 0; background: #f1f7f3; border-radius: 12px; padding: .5rem .7rem; font-size: .92rem; }
.blk-tips summary { cursor: pointer; font-weight: 700; } .blk-tips ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.blk-add { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.blk-plan h2 { margin-top: 0; }
.blk-plan-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.blk-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; margin: .8rem 0; }
.blk-slot { background: var(--bg); border-radius: 16px; padding: .7rem .9rem; display: grid; gap: .4rem; }
.blk-slot h3 { margin: 0; font-size: 1.05rem; }
.blk-slot select, .blk-plan-form select, .blk-plan-form input { font: inherit; padding: .45rem .6rem; border-radius: 10px; border: 2px solid var(--border); width: 100%; box-sizing: border-box; }
.blk-paper { max-width: 760px; margin: 1rem auto 0; font-size: 15px; }
.pp-head { display: flex; gap: 14px; align-items: center; border-bottom: 3px solid var(--brand); padding-bottom: 8px; margin-bottom: 10px; }
.pp-head .logo-mark { width: 54px; height: 54px; } .pp-head h2 { margin: 0; font-size: 1.5rem; } .pp-head p { margin: 2px 0 0; }
.pp-slot { border: 2px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; page-break-inside: avoid; }
.pp-slot h3 { margin: 0 0 6px; font-size: 1.1rem; } .pp-slot h3 small { font-weight: 400; color: #6b6680; }
.pp-steps { width: 100%; border-collapse: collapse; } .pp-steps td { padding: 4px 6px; border-top: 1px dashed #ddd; vertical-align: top; }
.pp-steps td:first-child { font-family: Fredoka, sans-serif; font-weight: 600; color: var(--brand); width: 36px; }
.pp-mat, .pp-tip { margin: 6px 0 0; font-size: .92rem; }
.pp-how { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .pp-how span { font-size: 1.3rem; }
.pp-how .pp-line { flex: 1; border-bottom: 1.5px solid #bbb; height: 1.2em; }
.pp-foot { text-align: center; color: #8b86a0; font-size: .8rem; margin: 6px 0 0; }
@media (max-width: 600px) { .blk-how { grid-template-columns: 1fr; } .blk-grid { grid-template-columns: 1fr; } }
/* Home: mission, 3 steps and before/now */
.mission-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.mission-steps > div { background: #fff; border: 2px solid var(--border); border-radius: 22px; padding: 1rem 1.2rem; }
.mission-steps .emoji { font-size: 2.2rem; } .mission-steps h3 { margin: .3rem 0; } .mission-steps p { margin: 0; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.before-after > div { border-radius: 22px; padding: 1rem 1.2rem; } .before-after h3 { margin: 0 0 .3rem; } .before-after p { margin: 0; }
.ba-before { background: #f3f1f6; } .ba-after { background: #fff3e2; border: 2px solid var(--brand); }
@media (max-width: 600px) { .before-after { grid-template-columns: 1fr; } }
.pp-avatar { width: 56px; height: 56px; border-radius: 50%; }
.pp-face { width: 26px; height: 26px; } .pp-box { width: 14px; height: 14px; border: 2px solid #8b86a0; border-radius: 3px; margin-right: 6px; }
.blk-items { display: grid; gap: .5rem; margin: .8rem 0; }
.blk-items .blk-slot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .5rem .7rem; }
.blk-items .blk-slot select { width: auto; flex: 1 1 200px; }
.blk-slot-n { font-family: Fredoka, sans-serif; font-weight: 600; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.blk-slot-btns button { font: inherit; border: 2px solid var(--border); background: #fff; border-radius: 8px; width: 2rem; height: 2rem; cursor: pointer; }
.pp-break { background: #eef7f0; border: 2px dashed #8fd18b; border-radius: 12px; padding: 6px 10px; margin-bottom: 10px; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.pp-break.pp-calm { background: #eef4fb; border-color: #90bde8; }
.pp-brpic { flex: none; width: 70px; height: 70px; background: #fff; border-radius: 10px; }
.pp-brpic svg, .blk-slot-pic svg { width: 100%; height: 100%; display: block; }
.blk-slot-pic { flex: none; width: 40px; height: 40px; }
/* Back button (every page except home) */
.back-row { padding-top: .7rem; }
.back-btn { font: inherit; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1.1rem;
  border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.back-btn span { font-size: 1.2rem; line-height: 1; }
.back-btn:hover, .back-btn:focus-visible { border-color: var(--brand); color: var(--brand); }
@media print { .back-row { display: none !important; } }
/* Create with help (criar.html) */
.ai-form { display: grid; gap: .6rem; margin-bottom: 1rem; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.ai-form input, .ai-form select, .ai-form textarea, .ai-review input { font: inherit; padding: .5rem .65rem; border-radius: 10px; border: 2px solid var(--border); width: 100%; box-sizing: border-box; }
.ai-summary { background: #fff3e2; border-radius: 14px; padding: .7rem 1rem; }
#ai-items { display: grid; gap: .7rem; margin-bottom: 1rem; }
.ai-card label { display: grid; gap: .2rem; font-weight: 700; font-size: .9rem; }
.ai-card textarea { font: inherit; font-weight: 400; padding: .45rem .6rem; border-radius: 10px; border: 2px solid var(--border); resize: vertical; }
.ai-change-row { display: flex; gap: .5rem; margin: .4rem 0 .6rem; } .ai-change-row input { flex: 1; }
body.ai-busy #ai-go, body.ai-busy #ai-redo, body.ai-busy #ai-again { opacity: .5; pointer-events: none; }
.blk-ai { font-size: 1.1rem; }
/* PDF preview */
.pdfpv { position: fixed; inset: 0; z-index: 1000; background: rgba(43,42,51,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pdfpv-box { background: #fff; border-radius: 22px; width: min(860px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.pdfpv-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 2px solid var(--border); }
.pdfpv-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted, #6b6680); }
.pdfpv-count { font-size: .85rem; color: var(--muted, #6b6680); }
.pdfpv-x { font: inherit; font-size: 1.2rem; border: 0; background: var(--bg); width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; }
.pdfpv-pages { overflow: auto; padding: 12px; background: #eceaf1; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; min-height: 240px; }
.pdfpv-pages canvas { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); border-radius: 4px; }
.pdfpv-wait, .pdfpv-more { color: var(--muted, #6b6680); font-weight: 700; }
.pdfpv-foot { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-top: 2px solid var(--border); justify-content: flex-end; flex-wrap: wrap; }
.pdfpv-note { margin-right: auto; font-size: .9rem; }
/* Activity pictures in blocks */
.blk-lvbody { display: flex; gap: .7rem; align-items: flex-start; }
.blk-thumb { position: relative; flex: 0 0 110px; width: 110px; aspect-ratio: 210 / 297; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.blk-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.blk-thumb canvas { display: block; }
.blk-thumb-wait { font-size: 1.6rem; width: 100%; height: 100%; display: grid; place-items: start center; }
.blk-thumb-tag { position: absolute; left: 4px; right: 4px; bottom: 4px; background: rgba(255,255,255,.92); border-radius: 999px; font-size: .66rem; white-space: nowrap; overflow: hidden; font-weight: 700; text-align: center; padding: 2px 4px; }
.blk-thumb:hover, .blk-thumb:focus-visible { border-color: var(--brand); }
.blk-checks { display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.blk-check { display: inline-flex; align-items: center; gap: .35rem; background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: .3rem .7rem; font-weight: 700; font-size: .9rem; cursor: pointer; }
.blk-check:has(input:checked) { border-color: var(--brand); background: #e7f0f7; }
.blk-profs-field { grid-column: 1 / -1; }
.blk-tip ul { margin: .3rem 0 0; padding-left: 1.1rem; }
/* Block pictures and visual timetables */
.blk-ico { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; background: var(--bg); border-radius: 16px; }
.blk-ico svg { width: 72px !important; height: 72px !important; }
.tt-paper { max-width: 1040px; margin: 1rem auto 0; }
.tt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.tt-headpic svg { width: 84px; height: 84px; } .tt-head h3 { margin: 0; font-size: 1.6rem; } .tt-head p { margin: 2px 0 0; color: #6b6680; }
.tt-row { display: flex; align-items: stretch; gap: 6px; }
.tt-ph { flex: 1; border: 3px solid var(--ph); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tt-phname { background: var(--ph); color: #fff; font-weight: 700; font-size: 1.25rem; text-align: center; padding: 4px; }
.tt-phname small { font-weight: 600; opacity: .9; }
.tt-cards { display: flex; gap: 8px; padding: 8px; justify-content: center; flex: 1; }
.tt-card { flex: 1; max-width: 150px; border: 2px solid #e0dbe8; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; align-items: center; background: #fff; }
.tt-pic svg { width: 100%; height: auto; max-width: 130px; display: block; }
.tt-lab { font-family: Andika, sans-serif; font-weight: 700; font-size: 1.05rem; text-align: center; line-height: 1.15; min-height: 2.3em; display: grid; place-items: center; }
.tt-done { width: 26px; height: 26px; border: 3px solid #b9b3c9; border-radius: 6px; margin-top: 4px; }
.tt-arrow { align-self: center; font-size: 1.6rem; color: #8b86a0; }
.tt-mini { margin: 4px 0 8px; } .tt-mini .tt-phname { font-size: .85rem; padding: 2px; }
.tt-mini .tt-cards { padding: 4px; gap: 4px; } .tt-mini .tt-card { padding: 3px; border-radius: 8px; }
.tt-mini .tt-pic svg { max-width: 64px; } .tt-mini .tt-lab { font-size: .72rem; min-height: 2.2em; } .tt-mini .tt-done { display: none; } .tt-mini .tt-arrow { font-size: 1rem; }
/* Who is in the pictures (boy, girl, darker skin, wheelchair) */
.who-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.who-pick button { width: 64px; height: 64px; padding: 3px; border-radius: 12px; border: 3px solid var(--border); background: #fff; cursor: pointer; }
.who-pick button .sym-visual, .who-pick button svg { width: 100%; height: 100%; display: block; }
.who-pick button[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 3px 0 #264a66; }

.cat-ico { display: block; width: 72px; height: 72px; }
.cat-ico svg { width: 100%; height: 100%; display: block; }
.cat-head { display: flex; align-items: center; gap: .5rem; }
.cat-head .cat-ico { width: 48px; height: 48px; }

.act-video { grid-column: 1 / -1; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; justify-self: center; border-radius: 14px; background: #000; }
.act-hero-video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 18px; background: #000; }

/* Activities: themes first, then 5 learning areas that open windows */
.act-sec { margin-top: 8px; } .act-step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8762b; color: #fff; font-size: 1.05rem; margin-right: 8px; vertical-align: middle; }
.act-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.act-theme { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 10px; border-radius: 20px; border: 2px solid rgba(0,0,0,.06); text-decoration: none; color: inherit; transition: transform .15s; }
.act-theme:hover { transform: translateY(-3px); border-color: #e8762b; } .act-theme b { font-size: 1rem; } .act-theme small, .act-group small, .act-sub small { color: #6b6680; font-weight: 600; }
.act-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.act-group { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; border: 3px solid; text-decoration: none; color: inherit; transition: transform .15s; }
.act-group:hover { transform: translateY(-3px); } .act-group-ico { grid-row: 1 / 3; font-size: 46px; font-family: "Noto Color Emoji", sans-serif; text-align: center; }
.act-group-txt { display: flex; flex-direction: column; gap: 2px; } .act-group-txt b { font-size: 1.2rem; } .act-group-txt span { color: #5f5a6e; font-size: .9rem; } .act-group small { grid-column: 2; }
.act-all { text-align: center; margin: 26px 0 40px; }
body.act-win-open { overflow: hidden; }
.act-win-bg { position: fixed; inset: 0; z-index: 60; background: rgba(43,42,51,.45); display: flex; align-items: flex-start; justify-content: center; padding: 3vh 14px; overflow-y: auto; }
.act-win { background: #fffaf3; width: min(1100px, 100%); border-radius: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.act-win-head { position: sticky; top: 0; display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: #fffaf3; border-bottom: 2px solid #f0e8de; border-radius: 26px 26px 0 0; z-index: 1; }
.act-win-title { flex: 1; } .act-win-title h2 { margin: 0; font-size: 1.5rem; } .act-win-title p { margin: 2px 0 0; color: #6b6680; font-weight: 600; }
.act-win-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #e7dccf; font-size: 1.2rem; font-weight: 800; text-decoration: none; color: #2b2a33; }
.act-win-back { font-weight: 700; text-decoration: none; background: #fff; border: 2px solid #e7dccf; border-radius: 999px; padding: 8px 14px; color: #2b2a33; white-space: nowrap; }
.act-win-body { padding: 20px 22px 26px; } .act-win-body .act-cards { margin-bottom: 0; }
.act-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.act-sub { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 12px; border-radius: 20px; background: #fff; border: 3px solid; text-decoration: none; color: inherit; transition: transform .15s; }
.act-sub:hover { transform: translateY(-3px); } .act-sub b { font-size: 1.1rem; } .act-sub-all { border-style: dashed !important; background: #fdfbf8; }
@media (max-width: 760px) { .act-groups { grid-template-columns: 1fr; } .act-win-bg { padding: 0; } .act-win { border-radius: 0; min-height: 100%; } }

.act-sub-soon { opacity: .55; border-style: dashed !important; border-color: #cfc8bd !important; cursor: default; }

.tb-caret { display: inline-block; padding: 4px 6px; margin: -4px -6px -4px 0; border-radius: 6px; cursor: pointer; } .tb-caret:hover { background: rgba(0,0,0,.08); }

/* Activity series: one card in lists, numbered steps on each page */
.act-ser { background:#fff8ec; border:2px solid #f0dcb8; border-radius:16px; padding:.7rem .9rem; margin:.4rem 0 1rem; }
.act-ser-t { display:block; font-weight:700; font-size:.95rem; margin-bottom:.45rem; color:#5a4630; }
.act-ser-steps { list-style:none; display:flex; flex-wrap:wrap; gap:.45rem; margin:0; padding:0; }
.act-ser-step { display:flex; align-items:center; gap:.45rem; padding:.4rem .8rem .4rem .4rem; border-radius:999px; background:#fff; border:2px solid #ead9bd; color:#4a3b2a; text-decoration:none; font-weight:600; font-size:.92rem; }
.act-ser-step:hover { border-color:#d9a24a; }
.act-ser-step.on { background:#d9822b; border-color:#d9822b; color:#fff; }
.act-ser-num { display:inline-grid; place-items:center; width:1.6rem; height:1.6rem; border-radius:50%; background:#f3e3cf; color:#5a4630; font-weight:800; }
.act-ser-step.on .act-ser-num { background:#fff; color:#d9822b; }
.act-next { margin:1.1rem 0 .4rem; }
.act-ser-n { font-size:.82rem; font-weight:700; background:#fff3df; border:1px solid #f0dcb8; border-radius:999px; padding:.15rem .6rem; }
@media (max-width:600px){ .act-ser-step{ font-size:.85rem; } }

/* Sheet viewer: one sheet at a time, ◀ ▶, dots */
.sv-bg { position:fixed; inset:0; z-index:9000; background:rgba(40,30,20,.6); display:grid; place-items:center; padding:12px; }
.sv { background:#fffaf3; border-radius:18px; box-shadow:0 12px 40px rgba(0,0,0,.3); width:min(96vw, 860px); max-height:96vh; display:flex; flex-direction:column; overflow:hidden; }
.sv-head { display:flex; align-items:center; gap:.6rem; padding:.6rem .8rem; border-bottom:1px solid #eadfce; }
.sv-name { flex:1; font-size:1rem; line-height:1.25; color:#3d3024; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sv-x { width:44px; height:44px; border-radius:50%; border:2px solid #e2d3bd; background:#fff; font-size:1.1rem; cursor:pointer; flex:none; }
.sv-stage { display:flex; align-items:center; justify-content:center; gap:.5rem; padding:.6rem; min-height:0; }
.sv-page { width:min(78vh, calc(96vw - 140px), 700px); aspect-ratio:1/1; background-color:#f1ece4; background-repeat:no-repeat; border-radius:10px; touch-action:pan-y; flex:none; }
.sv-nav { width:56px; height:56px; flex:none; border-radius:50%; border:none; background:#d9822b; color:#fff; font-size:1.4rem; cursor:pointer; box-shadow:0 3px 8px rgba(0,0,0,.18); }
.sv-nav:disabled { background:#e6dccd; color:#fff; cursor:default; box-shadow:none; }
.sv-one .sv-nav, .sv-one .sv-dots { display:none; }
.sv-foot { display:flex; flex-direction:column; align-items:center; gap:.35rem; padding:.2rem .6rem .8rem; }
.sv-count { font-weight:700; color:#5a4630; }
.sv-dots { display:flex; flex-wrap:wrap; justify-content:center; gap:.3rem; }
.sv-dot { width:34px; height:34px; border-radius:50%; border:2px solid #e2d3bd; background:#fff; font-weight:700; color:#5a4630; cursor:pointer; }
.sv-dot.on { background:#d9822b; border-color:#d9822b; color:#fff; }
@media (max-width:600px){
  .sv-stage { position:relative; padding:.4rem; }
  .sv-page { width:calc(96vw - 24px); }
  .sv-nav { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; opacity:.92; }
  .sv-prev { left:6px; } .sv-next { right:6px; }
}
.act-ser-top { display:flex; align-items:center; justify-content:space-between; gap:.6rem; flex-wrap:wrap; margin-bottom:.45rem; }
.act-ser-top .act-ser-t { margin-bottom:0; }
.act-ser-tt { border:2px solid #d9822b; background:#fff; color:#a65a14; font-weight:700; font-size:.9rem; border-radius:999px; padding:.35rem .85rem; cursor:pointer; font-family:inherit; }
.act-ser-tt:hover { background:#fff3df; }
.act-ser-btns { display:flex; gap:.4rem; flex-wrap:wrap; }

/* ---------- Phones: nothing wider than the screen (Nov 2026 launch check) ---------- */
@media (max-width: 700px) {
  main select, main input, main textarea { max-width: 100%; }
  .blk-slot { flex-wrap: wrap; min-width: 0; }
  .blk-slot select { min-width: 0; flex: 1 1 100%; }
  .blk-slot-btns { flex-wrap: wrap; }
  .contact-form, .contact-info, .contact-info .value { min-width: 0; max-width: 100%; }
  main .field, main .field select { min-width: 0; max-width: 100%; }
  .tpl-table { display: block; overflow-x: auto; max-width: 100%; }
}

/* Método das 28 Palavras · jogos */
.p28-word { font-family: Andika, sans-serif; font-size: 2.4rem; }
.p28-target { font-family: Andika, sans-serif; font-size: 4rem; text-align: center; padding: .5rem 1.5rem; background: #fff; border: 4px solid var(--brand); border-radius: 24px; display: inline-block; }
.game-show:has(.p28-target) { text-align: center; }
.p28-build { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.p28-model { font-family: Andika, sans-serif; font-size: 2.2rem; color: var(--ink-soft); }
.p28-dot { margin: 0 .4rem; color: #c9c3d3; }
.p28-slots { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.p28-slot { min-width: 120px; height: 110px; border: 4px solid #2b2a33; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; font-family: Andika, sans-serif; font-size: 3.2rem; }
.p28-slot.filled { background: var(--sage-soft); border-color: var(--sage); }
.p28-tile { min-width: 120px; height: 110px; border: 4px solid var(--brand); border-radius: 20px; background: #fffdf5; font-family: Andika, sans-serif; font-size: 3.2rem; cursor: pointer; margin: .4rem; transition: transform .15s; }
.p28-tile:hover:not(:disabled) { transform: scale(1.06); }
.p28-tile.used { opacity: .25; }
.p28-tile.wrong { animation: wobble .4s; }
@media (max-width: 700px) { .p28-slot, .p28-tile { min-width: 84px; height: 84px; font-size: 2.3rem; } .p28-target { font-size: 2.8rem; } }

/* Email gate for free downloads */
.eg-bg { position: fixed; inset: 0; background: rgba(43,42,51,.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.eg { position: relative; background: #fff; border-radius: 24px; padding: 1.8rem 1.6rem 1.4rem; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: .8rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.eg h2 { margin: 0; font-size: 1.4rem; } .eg p { margin: 0; color: var(--ink-soft); }
.eg-emoji { font-size: 2.6rem; line-height: 1; }
.eg-x { position: absolute; top: .7rem; right: .8rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.eg-l { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; }
.eg-l input { font-size: 1.05rem; padding: .6rem .8rem; border-radius: 12px; border: 2px solid var(--border, #ddd); }
.eg-c { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; } .eg-c input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; }

.news-consent { flex-basis: 100%; justify-content: center; align-items: center; display: inline-flex; gap: .5rem; font-size: 1rem; }
.news-consent > span { flex: 0 1 auto; text-align: left; }
.newsletter .news-consent a { color: #fff; text-decoration: underline; font-weight: 700; }
.newsletter-form .news-consent input[type=checkbox] { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; min-width: 0; padding: 0; margin: 0; }

.ai-ask{margin-top:1.4rem;background:#fff7e8}
.ai-ask h3{margin:0 0 .3rem}
.ai-ask-msg{min-height:1.2em;font-weight:700;color:#2e7d32;margin:.4rem 0 0}

.pdf-mode .owner-visit{display:none!important}
@media print{.owner-visit{display:none!important}}
