/* ==========================================================
   Italian Lesson 1 – visual style taken from the Canva slides
   Fonts used in the slides: Amatic SC (headings), Mulish/Muli (text),
   Charm (alphabet words). All three are free Google Fonts.
   Brand colours sampled from the PDF.
   ========================================================== */
:root {
  color-scheme: light;
  --paper: #f8f4e8;      /* slide background */
  --paper-2: #fffcf3;    /* lighter surface for cards */
  --ink: #111111;        /* the slides use pure black; this is a hair softer */
  --muted: #4d4a43;
  --blue: #166ab8;
  --blue-deep: #0f4f8d;
  --yellow: #fdbe14;
  --red: #ff3131;        /* "hard" sounds, large text only */
  --red-ink: #c4161c;    /* red that is dark enough for small text */
  --green: #00cd2d;      /* "soft" sounds, large text only */
  --green-ink: #0d7a2b;  /* green that is dark enough for small text */
  --good-bg: #d4f0d8;
  --bad-bg: #fbd6d3;
  --line: #d9d1bd;      /* soft outline for quiet boxes (exercise questions) */
  --font-head: "Amatic SC", "Marker Felt", "Chalkboard SE", "Comic Sans MS", cursive;
  --font-body: "Mulish", "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-word: "Charm", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  --sketch: 22px 30px 20px 28px / 28px 20px 30px 22px;   /* hand-drawn corners */
  --sketch-sm: 14px 18px 12px 16px / 16px 12px 18px 14px;

  /* breathing room: between topics, and between the blocks inside one topic (smaller on phones) */
  --space-topic: clamp(56px, 9vw, 96px);
  --space-inner: clamp(32px, 5vw, 48px);
  /* small hand-drawn squiggle that separates topics, in blue #166ab8 (written out: colours inside an image can't use the variables) */
  --divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 22'%3E%3Cpath d='M4 12 C14 2 24 2 32 11 C40 20 50 20 56 11 C62 2 72 2 80 11 C88 20 98 20 106 10' fill='none' stroke='%23166ab8' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");

  /* hand-painted yellow brush stroke, used behind titles and on buttons */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 100' preserveAspectRatio='none'%3E%3Cpath fill='%23fdbe14' d='M10 20 C22 10 80 12 160 8 C260 4 360 12 488 14 C496 14 497 26 496 40 C495 55 498 70 494 84 C490 94 470 90 400 92 C300 96 180 88 90 94 C40 96 14 92 10 86 C5 70 12 50 6 32 C4 26 6 22 10 20Z'/%3E%3C/svg%3E");
  /* blue wave at the bottom of the slides */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath fill='%23166ab8' d='M0 28 C120 14 220 6 360 16 C520 28 640 40 800 30 C960 20 1080 24 1200 34 L1200 100 L0 100Z'/%3E%3C/svg%3E");
  /* light bulb on a yellow blob, used for tips */
  --bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill='%23fdbe14' d='M10 24 C8 10 24 2 38 6 C54 10 58 28 50 42 C42 56 18 56 10 42 C6 36 10 30 10 24Z'/%3E%3Cg fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 16 C22 16 18 22 18 27 C18 32 21 34 23 38 L37 38 C39 34 42 32 42 27 C42 22 38 16 30 16Z'/%3E%3Cpath d='M24 42 H36 M26 46 H34'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}
a { color: var(--blue); }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.blue :focus-visible, .hero-blue :focus-visible { outline-color: var(--yellow); }
[hidden] { display: none !important; }

.wrap { max-width: 880px; margin: 0 auto; padding: 8px 18px 0; position: relative; z-index: 1; }
.wave { height: 96px; margin-top: 56px; background: var(--wave) center bottom / 100% 100% no-repeat; }

/* ---------- hand-drawn doodles (injected by decor.js) ---------- */
.doodles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--ink); z-index: 0; }
.doodles.light { color: var(--paper); }
.doodle { position: absolute; width: var(--s, 44px); transform: rotate(var(--r, 0deg)); }
.doodle svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .doodle.far { display: none; } }

/* ---------- sketched boxes: black outline + hatched "thickness" ---------- */
.sketch {
  position: relative;   /* no stacking context here: the hatched ::before must sit BEHIND this box's own background */
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 20px;
  margin: 0 16px 16px 0;
}
.sketch::before {
  content: ""; position: absolute; z-index: -1; top: 12px; left: 12px; right: -14px; bottom: -14px;
  border: 3px solid var(--ink); border-radius: var(--sketch);
  background: repeating-linear-gradient(100deg, var(--paper) 0 6px, var(--ink) 6px 8px);
}
/* phones: a slimmer edge with finer hatching, so the narrow cards keep their room (Cosimo, 17 Nov 2026) */
@media (max-width: 480px) {
  .sketch { margin: 0 8px 8px 0; }
  .sketch::before { top: 6px; left: 6px; right: -7px; bottom: -7px; border-width: 2px;
    background: repeating-linear-gradient(100deg, var(--paper) 0 3px, var(--ink) 3px 4.5px); }
}
.sketch.yellow { background: var(--yellow); }
.sketch.blue { background: var(--blue); color: var(--paper-2); }

/* ---------- shared header bits ---------- */
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 0 0 18px; }
.brush {
  display: inline-block; background: var(--brush) center / 100% 100% no-repeat; color: var(--ink);
}
.brush-small { font-weight: 800; font-size: 1.15rem; padding: 10px 36px 8px; }

/* ---------- headings and text ---------- */
h2.sec {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; text-align: center;
  font-size: clamp(2.5rem, 7vw, 3.6rem); line-height: 1.05; margin: 0 0 16px;
}
.sec .b { color: var(--blue); }
.sec .r { color: var(--red); }
.sec .g { color: var(--green); }
h3.sub-h { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 2.2rem; line-height: 1.1; margin: var(--space-inner) 0 6px; text-align: center; }

/* Each topic gets plenty of empty space around it and a small squiggle between topics,
   so the sections read as separate stops instead of one long stream. */
.topic { margin: var(--space-topic) 0 0; }
.topic:first-of-type { margin-top: var(--space-topic); }
.topic + .topic::before {
  content: ""; display: block; width: 110px; height: 22px; margin: 0 auto var(--space-topic);
  background: var(--divider) center / contain no-repeat;
}
h2.sec { margin-bottom: 26px; }
/* topic number in a yellow circle above the heading */
h2.sec .num {
  display: flex; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; margin: 0 auto 14px;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  font-size: .8em; line-height: 1; padding-top: .08em;
}
.topic > p { max-width: 66ch; margin-left: auto; margin-right: auto; }
.lead { color: var(--red-ink); font-size: 1.25rem; font-weight: 600; text-align: center; }
.sub { color: var(--muted); margin: 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.wrap > .note { margin-top: 38px; }
.center { text-align: center; }

/* tip box with the light bulb */
.tip {
  position: relative; margin: var(--space-inner) auto 6px; max-width: 66ch; padding: 14px 18px 14px 50px;
  background: var(--paper-2); border: 3px solid var(--ink); border-radius: var(--sketch); font-size: 1rem; font-weight: 600;
}
.tip::before { content: ""; position: absolute; left: -24px; top: -20px; width: 58px; height: 58px; background: var(--bulb) center / contain no-repeat; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  padding: 10px 18px; border: 3px solid var(--ink); border-radius: var(--sketch-sm);
  background: var(--paper-2); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn.primary { background: var(--blue); color: var(--paper-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; align-items: center; }

.practice { text-align: center; margin: var(--space-inner) 0 0; }
.practice-link {
  display: inline-block; background: var(--brush) center / 100% 100% no-repeat;
  padding: 16px 40px 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem;
  color: var(--ink); text-decoration: none; transition: transform .12s;
}
.practice-link:hover { transform: rotate(-1.5deg) scale(1.04); }

/* ---------- video frame ---------- */
.video {
  aspect-ratio: 16 / 9; border-radius: 10px; background: #1b1b1b; color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; gap: 6px;
}
.video .play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.video small { color: #b9b4a6; }

/* ---------- alphabet ---------- */
.alphabet { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 18px; }
.letter {
  border: 2px solid var(--ink); border-radius: var(--sketch-sm); padding: 6px 4px 8px; text-align: center;
  background: var(--paper-2); color: var(--ink); font-family: inherit;
}
button.letter { cursor: pointer; }
button.letter:hover { background: var(--yellow); }
.letter b { display: block; font-family: var(--font-head); font-size: 2.1rem; line-height: 1.05; font-weight: 700; }
.letter span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.letter.silent { border-style: dashed; }
.words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 4px 12px; margin-top: 12px; }
.wordbtn {
  font-family: var(--font-word); font-weight: 700; font-size: 2.1rem; line-height: 1.2; text-align: left;
  background: none; border: 2px solid transparent; border-radius: 14px; padding: 0 10px; color: var(--ink); cursor: pointer;
}
.wordbtn:hover { border-color: var(--ink); background: var(--paper-2); }
.wordbtn .i { color: var(--red); }
.foreign p { margin: 0 0 4px; font-weight: 600; text-align: center; }
.missing { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.missing .letter { min-width: 118px; }

/* ---------- rule cards (C/G, SC, GLI/GN) ---------- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 26px; margin-top: 30px; }
.rule { margin-bottom: 20px; text-align: center; padding: 18px 16px 18px; }
.rule h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; margin: 0 0 10px; }
.rule .sound { margin: 0 0 14px; font-weight: 700; font-size: .98rem; }
.tag {
  display: inline-block; padding: 1px 12px; margin-right: 6px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper-2); font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em;
}
.tag.hard { color: var(--red-ink); }
.tag.soft { color: var(--green-ink); }
.tag.neutral { color: var(--blue); }
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; font-size: .98rem; padding: 3px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper-2); color: var(--ink); cursor: pointer;
}
.chip:hover { background: var(--ink); color: var(--paper-2); }
.pairs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.pairs .chip { font-size: 1.05rem; padding: 5px 18px; background: var(--yellow); }
.pairs .chip:hover { background: var(--ink); }

/* ---------- list page ---------- */
.hero-blue { background: var(--blue); position: relative; overflow: hidden; padding: 20px 18px 64px; color: var(--paper); }
.hero-blue .inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.hero-blue .crumbs, .hero-blue .crumbs a { color: var(--paper); }
.hero-blue .eyebrow { text-align: center; margin: 26px 0 0; color: var(--paper); }
.hero-blue .sub { color: var(--paper); text-align: center; font-weight: 600; max-width: 560px; margin: 4px auto 0; }
.title-card { max-width: 600px; margin: 18px auto 22px; text-align: center; padding: 20px 28px 18px; color: var(--ink); }
.title-card h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 9vw, 4.6rem); text-transform: uppercase; line-height: 1.02; margin: 0; }
.crumbs { font-size: 14px; font-weight: 600; margin: 4px 0 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.hero-blue .crumbs a:hover { color: var(--yellow); }

/* lesson page header: same blue band and comic-shade title card as the list pages,
   with a bigger title, a "Prima Lezione" sticker on the card and the video inside the band */
.hero-lesson { padding-top: 34px; padding-bottom: clamp(48px, 7vw, 72px); }
.lesson-title { max-width: 560px; margin-top: 22px; margin-bottom: 38px; padding: 26px 28px 34px; }
.lesson-title h1 { font-size: clamp(3.6rem, 13vw, 6.4rem); }
.lesson-title .brush {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%) rotate(-3deg); white-space: nowrap;
}
.hero-lesson .sub { margin-bottom: clamp(30px, 5vw, 44px); }
.intro-video { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Framed pages (every page uses body.framed + main.page-panel): the header's blue carries on down both sides, around a cream content panel.
   The wave sits at the bottom of the panel, so the cream flows back into the blue. */
body.framed { background: var(--blue); }
html:has(body.framed) { background: var(--blue); }
/* The panel is centred and at most 1160px wide, so the blue sides grow on wider screens; the content inside stays 880px wide. */
.page-panel { max-width: 1160px; padding: 8px 18px 0; background: var(--paper); border-radius: 28px 28px 0 0; }
.page-panel > :not(.wave) { max-width: 880px; margin-left: auto; margin-right: auto; }
.page-panel .wave { margin: 56px -18px 0; }
@media (max-width: 1199px) { .page-panel { margin: 0 20px; } }
@media (max-width: 640px) {
  .page-panel { margin: 0 10px; padding: 8px 16px 0; border-radius: 20px 20px 0 0; }
  .page-panel .wave { margin-left: -16px; margin-right: -16px; }
}

/* On phones this header is tall, so the two doodles still shown (decor.js places them by %) would land on the text.
   Pin them into the top corners instead, above the eyebrow (!important beats decor.js's inline position). */
@media (max-width: 640px) {
  .hero-lesson { padding-top: 76px; }
  .hero-lesson .doodle:nth-child(1) { left: 6% !important; top: 16px !important; }
  .hero-lesson .doodle:nth-child(2) { left: auto !important; right: 8%; top: 18px !important; }
  /* list and exercise headers have links at the top, so their two doodles go in the empty bottom corners */
  .hero-blue:not(.hero-lesson) .doodle:nth-child(1), .hero-ex .doodle:nth-child(1) { left: 6% !important; top: auto !important; bottom: 12px; }
  .hero-blue:not(.hero-lesson) .doodle:nth-child(2), .hero-ex .doodle:nth-child(2) { left: auto !important; right: 8%; top: auto !important; bottom: 14px; }
}

/* exercise page header: a YELLOW band (list pages are blue), more compact, with the same comic-shade
   title card and a blue "Easy · Exercise 1" sticker on its top edge, so you can tell at a glance you're in an exercise */
.hero-ex { background: var(--yellow); position: relative; overflow: hidden; padding: 20px 18px 44px; color: var(--ink); }
.hero-ex .inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.hero-ex .crumbs, .hero-ex .crumbs a { color: var(--ink); }
.hero-ex .crumbs a:hover { color: var(--blue); }
.ex-card { max-width: 540px; margin: 36px auto 22px; padding: 28px 24px 18px; }
.ex-card h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); }
.level-sticker {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%) rotate(-3deg); white-space: nowrap;
  background: var(--blue); color: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 16px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hero-ex .sub { text-align: center; font-weight: 600; max-width: 560px; margin: 4px auto 0; }
/* The yellow header sits INSIDE the blue frame: same width as the cream panel, with blue above it too.
   It joins the panel below with a straight edge, so header and questions read as one framed sheet. */
.hero-ex { max-width: 1160px; margin: 28px auto 0; border-radius: 28px 28px 0 0; }
.hero-ex + .page-panel { border-radius: 0; }
@media (max-width: 1199px) { .hero-ex { margin: 20px 20px 0; } }
@media (max-width: 640px) {
  .hero-ex { margin: 10px 10px 0; border-radius: 20px 20px 0 0; padding-bottom: 72px; }   /* room for the two corner doodles below the text */
}

.level { margin: 40px 0 0; }
.level h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 3rem; line-height: 1; margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.level h2 small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; color: var(--muted); }
.level.easy h2 .name { color: var(--green-ink); }
.level.medium h2 .name { color: var(--blue); }
.level.hard h2 .name { color: var(--red-ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, 84px); gap: 12px; max-width: 468px; margin-top: 16px; }   /* 5 per row on a computer (10 tiles = 2 rows); fewer on phones */
.tile {
  width: 84px; padding: 10px 4px 10px; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; justify-content: center;   /* number centred, even next to taller "coming soon" tiles */
  background: var(--paper-2); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--sketch);
}
.tile .n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.tile .t { display: block; font-size: .78rem; font-weight: 700; margin-top: 2px; }
a.tile { background: var(--blue); color: var(--paper-2); box-shadow: 4px 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
a.tile:hover { background: var(--yellow); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
span.tile { border: 3px dashed #8d887b; background: transparent; color: var(--muted); cursor: not-allowed; }

/* ---------- exercise page ---------- */
/* The header carries the visual weight; each question is a light sheet of school notebook paper:
   faint blue ruled lines, a red margin line, and the question number written in the margin. */
#exercise { max-width: 720px; margin: 40px auto 0; }
.q {
  --margin-x: 46px;   /* where the red margin line sits */
  position: relative; border: 2px solid var(--line); border-radius: 4px;
  padding: 14px 16px 16px calc(var(--margin-x) + 14px); margin: 0 0 18px;
  background-color: #fffdf7;
  background-image:
    linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), rgba(255, 49, 49, .5) calc(var(--margin-x) - 1px) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 27px, rgba(22, 106, 184, .16) 27px 28px);
  box-shadow: 0 2px 0 rgba(17, 17, 17, .06);
}
.q.correct { border-color: var(--green-ink); }
.q.wrong { border-color: var(--red-ink); }
.q.blank { border-style: dashed; border-color: #8d887b; }
.q-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* the number sits in the margin, like a handwritten exercise number */
.q-num {
  position: absolute; left: 0; top: 14px; width: var(--margin-x); text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--blue);
}
@media (max-width: 640px) { .q { --margin-x: 36px; padding-right: 12px; } }
.q-word { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.q-head .btn { margin-left: auto; padding: 4px 12px; font-size: .88rem; border-width: 2px; box-shadow: none; }
.q-head .btn:hover { transform: none; box-shadow: none; background: var(--yellow); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
/* four options: a 2 x 2 grid, so long words get room (four in a row overflowed); one per line on phones */
.opts-4 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .opts-4 { grid-template-columns: 1fr; } }
/* safety net: a word that still doesn't fit wraps inside its box instead of spilling out */
.opt span { min-width: 0; overflow-wrap: anywhere; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 1.08rem; font-weight: 700;
  border: 2px solid var(--line); border-radius: var(--sketch-sm); background: var(--paper); cursor: pointer;
}
.opt:hover { background: #fff3c8; }
.opt input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; margin: 0; }
.opt.sel { background: var(--yellow); border-color: var(--ink); }
.opt.locked { cursor: default; }
.opt.locked:hover { background: var(--paper); }
.opt.locked.sel:hover { background: var(--yellow); }
.opt.is-answer, .opt.is-answer:hover { background: var(--good-bg); border-color: var(--green-ink); }
.opt.is-wrong, .opt.is-wrong:hover { background: var(--bad-bg); border-color: var(--red-ink); }
/* Hard exercises: the student types the word */
.typed {
  display: block; width: 100%; max-width: 320px; margin-top: 12px; padding: 8px 12px;
  font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--sketch-sm); background: var(--paper);
}
.typed:focus { border-color: var(--blue); outline: none; background: var(--paper-2); }
.typed::placeholder { color: #a39e90; font-weight: 600; }
.typed.is-answer { background: var(--good-bg); border-color: var(--green-ink); }
.typed.is-wrong { background: var(--bad-bg); border-color: var(--red-ink); }
.typed.is-blank { border-style: dashed; }
.verdict { margin: 14px 0 0; font-size: .98rem; font-weight: 600; }
.verdict b { margin-right: 4px; }
.q.correct .verdict b { color: var(--green-ink); }
.q.wrong .verdict b { color: var(--red-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 26px; }
.actions .count { color: var(--muted); font-size: .95rem; font-weight: 700; }
.result { text-align: center; padding: 22px 22px 26px; max-width: 620px; margin: 0 auto 16px; }
.result:focus { outline: none; }
.result h2 { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; text-transform: uppercase; margin: 0; line-height: 1; }
.result .score { font-family: var(--font-head); font-weight: 700; font-size: 5rem; line-height: 1; margin: 6px 0; }
.result p { font-weight: 600; margin: 0 0 4px; }
.result .row { justify-content: center; margin-top: 18px; }
.result .btn.primary { background: var(--yellow); color: var(--ink); }

/* ---------- recording script (teacher's checklist) ---------- */
.rec-tips { margin-top: 40px; }
.rec-progress { text-align: center; font-weight: 800; margin: 30px 0 0; }
.rec-group { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 2.2rem; line-height: 1.1; margin: 34px 0 8px; }
.rec-row {
  display: grid; grid-template-columns: auto 6.5em 9em 1fr; align-items: baseline; gap: 4px 14px;
  padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.rec-row input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; align-self: center; }
.rec-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; color: var(--blue); font-weight: 700; }
.rec-say { font-weight: 800; font-size: 1.15rem; }
.rec-info { font-size: .92rem; color: var(--muted); font-weight: 600; }
.rec-info small { display: block; font-size: .8rem; font-weight: 500; }
.rec-row.is-done .rec-say, .rec-row.is-done .rec-id { text-decoration: line-through; opacity: .55; }
@media (max-width: 640px) {
  .rec-row { grid-template-columns: auto 1fr; }
  .rec-row .rec-id { grid-column: 2; }
  .rec-row .rec-say, .rec-row .rec-info { grid-column: 2; }
}
/* printing: plain black on white, no frame, header or decorations */
@media print {
  html, body.framed { background: #fff; }
  .hero-blue, .wave, .doodles, .rec-tips::before, .note { display: none; }
  .page-panel { margin: 0; padding: 0; border-radius: 0; }
  .rec-row { break-inside: avoid; padding: 5px 0; }
  .rec-group { break-after: avoid; font-size: 1.6rem; }
}

/* ---------- endless mode ---------- */
.endless { max-width: 720px; margin: 36px auto 0; }
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { text-align: center; background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--sketch-sm); padding: 6px 4px 8px; }
.stat-n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--blue); }
.stat.best .stat-n { color: var(--red-ink); }
.stat-l { font-size: .8rem; font-weight: 700; color: var(--muted); }
.endless-q { margin-bottom: 14px; }
button.opt { font: inherit; font-size: 1.08rem; font-weight: 700; color: var(--ink); text-align: left; width: 100%; }
button.opt.locked { cursor: default; }
.typed-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.typed-row .typed { margin-top: 0; flex: 1 1 200px; }
.endless-feedback {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--sketch-sm); padding: 14px 16px;
}
.endless-feedback.is-right { border-color: var(--green-ink); }
.endless-feedback.is-wrong { border-color: var(--red-ink); }
.fb-mark { font-size: 3.2rem; line-height: 1; width: 64px; text-align: center; }
.fb-mark svg { width: 60px; height: 60px; fill: none; stroke: var(--green-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.fb-mark circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: fb-draw .45s ease-out forwards; }
.fb-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: fb-draw .3s .35s ease-out forwards; }
.is-wrong .fb-mark { animation: fb-shake .5s ease-in-out; transform-origin: 50% 90%; }
.fb-title { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; margin: 0; }
.is-right .fb-title { color: var(--green-ink); }
.is-wrong .fb-title { color: var(--red-ink); }
.fb-line { margin: 4px 0 0; font-size: .98rem; font-weight: 600; }
.fb-next { grid-column: 1 / -1; justify-self: end; }
@keyframes fb-draw { to { stroke-dashoffset: 0; } }
@keyframes fb-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.confetti span {
  position: fixed; width: 9px; height: 13px; border-radius: 2px; opacity: 0;
  animation: confetti-pop 1.1s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes confetti-pop {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 90px)) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .fb-mark circle, .fb-mark path { animation: none; stroke-dashoffset: 0; } .is-wrong .fb-mark { animation: none; } }
@media (max-width: 480px) { .stat-n { font-size: 2rem; } .fb-mark { width: 48px; font-size: 2.6rem; } .fb-mark svg { width: 46px; height: 46px; } }

/* the result box always keeps its space (measured: the tallest result fits), so answering doesn't make the page jump */
.endless-feedback { min-height: 172px; }
@media (max-width: 767px) { .endless-feedback { min-height: 220px; } }
@media (max-width: 480px) { .endless-feedback { min-height: 280px; } }
@media (max-width: 360px) { .endless-feedback { min-height: 330px; } }
.endless-feedback.is-empty { visibility: hidden; }
/* endless question: meaning and Listen stay side by side, with room for a two-line meaning, so the card keeps one height */
.endless-q .q-head { flex-wrap: nowrap; align-items: flex-start; min-height: calc(2 * 1.15 * 1.35rem); }
.endless-q .q-word { flex: 1 1 auto; min-width: 0; }
.endless-q .q-head .btn { flex: none; }
@media (max-width: 360px) { .endless-q .q-head { min-height: calc(3 * 1.15 * 1.35rem); } }

/* the 10th tile on a level: endless mode. Same size and colour as the other tiles, showing ∞,
   with "⚠ ENDLESS MODE!" slapped on top like a comic sound effect ("POW!") on a yellow burst */
.tile.endless-tile { position: relative; overflow: visible; }
.tile.endless-tile .n { font-family: var(--font-body); font-weight: 800; font-size: 2.3rem; height: 2.8rem; line-height: 2.8rem; }
.pow {
  position: absolute; left: 50%; bottom: -18px; z-index: 2; pointer-events: none; white-space: nowrap;
  transform: translateX(-50%) rotate(-9deg);
  padding: 10px 16px 9px; font-family: var(--font-body); font-weight: 900; font-style: italic; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--red-ink);
  /* thin black outline on the letters */
  text-shadow: 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink);
}
/* the burst: a black burst behind a slightly smaller yellow one = a thick comic-book outline */
.pow::before, .pow::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(0% 22%, 12% 14%, 9% 0%, 26% 9%, 38% 0%, 48% 11%, 62% 1%, 70% 13%, 88% 3%, 87% 20%, 100% 27%, 92% 47%, 100% 70%, 87% 78%, 91% 100%, 72% 88%, 58% 100%, 47% 87%, 32% 99%, 26% 85%, 8% 95%, 11% 76%, 0% 66%, 6% 46%);
}
.pow::before { inset: -5px -6px; background: var(--ink); }
.pow::after { inset: 0; background: var(--yellow); }
a.tile.endless-tile:hover .pow { transform: translateX(-50%) rotate(-12deg) scale(1.08); }
/* text only for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* on phones the endless tile sits at the left edge: start the burst at the tile's edge so it stays inside the page */
@media (max-width: 480px) {
  .pow { left: 2px; transform: rotate(-9deg); }
  a.tile.endless-tile:hover .pow { transform: rotate(-12deg) scale(1.08); }
}
/* endless: sound effects on/off, small and out of the way */
.endless-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: -6px 0 10px; }
.sfx-toggle { padding: 3px 12px; font-size: .85rem; border-width: 2px; box-shadow: none; }
.sfx-toggle:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--yellow); }
.sfx-toggle[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
.sfx-toggle[hidden] { display: none; }
/* Endless Autoplay: a thin bar fills the Next button during the half second before the next question */
.fb-next.auto-next { position: relative; overflow: hidden; }
.fb-next.auto-next::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--yellow);
  transform-origin: left; animation: auto-next var(--auto-ms, .5s) linear forwards; }
@keyframes auto-next { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .fb-next.auto-next::after { animation: none; transform: scaleX(1); } }
.listen-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Recording studio (teacher tool) ---------- */
.studio-setup, .studio-desk { padding: 26px 28px; margin-top: 40px; }
.studio-h { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; margin: 0 0 12px; }
.studio-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0; }
.studio-status { flex: 1 1 260px; margin: 0; font-size: .95rem; color: var(--muted); }
.studio-mic { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.studio-mic select { font: inherit; font-weight: 600; max-width: 100%; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); }
.studio-options { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; }
.studio-options input { accent-color: var(--blue); margin-right: 6px; }
.studio-options small { color: var(--muted); font-weight: 500; }
.studio-warn { margin-top: 40px; }
.studio-progress { text-align: center; font-weight: 800; margin: 0 0 14px; }
.studio-meta { text-align: center; margin: 0; color: var(--muted); font-weight: 600; }
.studio-say { text-align: center; font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 800; line-height: 1.1; margin: 6px 0; overflow-wrap: anywhere; }
.studio-note { text-align: center; color: var(--muted); margin: 0 0 18px; }
.studio-meter { height: 14px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.studio-meter div { height: 100%; width: 0; background: var(--line); transition: width .05s linear; }
.studio-meter div.good { background: var(--green); }
.studio-meter div.hot { background: var(--red); }
.studio-state { text-align: center; font-weight: 700; min-height: 3em; margin: 10px 0; }
.studio-desk.is-recording .studio-state { color: var(--red-ink); }
.studio-desk.is-recording .studio-meter { box-shadow: 0 0 0 4px var(--bad-bg); }
.studio-wave { display: block; width: 100%; height: 110px; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper-2); }
.studio-notes { min-height: 1.5em; margin: 10px 0 0; padding-left: 20px; font-size: .92rem; font-weight: 600; color: var(--red-ink); }
.studio-notes .studio-numbers { list-style: none; margin-left: -20px; color: var(--muted); font-weight: 500; }
.studio-buttons, .studio-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.studio-nav { align-items: center; font-weight: 600; font-size: .95rem; }
.studio-nav input { font: inherit; width: 7em; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); }
.studio-buttons kbd { font-family: var(--font-body); font-size: .7rem; font-weight: 700; padding: 1px 5px; margin-left: 4px; border: 1.5px solid currentColor; border-radius: 5px; opacity: .8; }
@media (max-width: 640px) { .studio-setup, .studio-desk { padding: 20px 16px; } .studio-buttons kbd { display: none; } }
.studio-flag { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: -8px 0 18px; }
.studio-flag-state { color: var(--red-ink); font-weight: 700; font-size: .92rem; }
.studio-flag-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.studio-flag-form input { font: inherit; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); min-width: 0; width: 16em; max-width: 100%; }
.studio-flag kbd { font-family: var(--font-body); font-size: .7rem; font-weight: 700; padding: 1px 5px; margin-left: 4px; border: 1.5px solid currentColor; border-radius: 5px; opacity: .8; }

/* Zen mode tile (double consonants): the ☯️ symbol, with a soft "thought cloud" label instead of the spiky
   Endless burst, as in a comic about meditating. It sits on top of the tile, where the burst hangs below. */
.tile.zen-tile { position: relative; overflow: visible; }
.tile.zen-tile .n { font-family: var(--font-body); font-size: 2.1rem; height: 2.8rem; line-height: 2.8rem; }
.pow.zen-pow {
  top: -17px; bottom: auto;   /* a thought cloud floats above the tile, away from the Endless burst below */
  transform: translateX(-50%) rotate(-4deg);
  padding: 10px 18px 9px; color: var(--blue-deep); font-style: normal; letter-spacing: .08em; text-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M30 64 C10 64 6 44 22 38 C14 22 34 12 48 21 C56 6 82 4 93 17 C105 3 133 5 139 20 C154 11 177 18 173 35 C192 39 192 62 171 64 C165 77 140 78 128 68 C116 79 88 79 77 68 C64 78 38 77 30 64 Z' fill='%23d4f0d8' stroke='%23111' stroke-width='3.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.pow.zen-pow::before, .pow.zen-pow::after { content: none; }
a.tile.zen-tile:hover .pow { transform: translateX(-50%) rotate(-2deg) scale(1.06); }
@media (max-width: 480px) {
  .pow.zen-pow { left: 2px; transform: rotate(-4deg); }
  a.tile.zen-tile:hover .pow { transform: rotate(-2deg) scale(1.06); }
}
/* the Zen symbol, drawn like the tile numbers: an outline in the text colour (cream on a tile, ink on a card),
   one half yellow, the other half showing what is behind it (the tile's blue), slightly tilted like a doodle */
.zen-icon { display: inline-block; width: 2.5rem; height: 2.5rem; vertical-align: middle; transform: rotate(-14deg); overflow: visible; }
.zen-icon .zen-yang { fill: var(--yellow); stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.zen-icon .zen-ring { fill: none; stroke: currentColor; stroke-width: 6; }
.zen-icon .zen-dot-yang { fill: var(--yellow); stroke: currentColor; stroke-width: 3.5; }
.zen-icon .zen-dot-yin { fill: var(--blue); stroke: currentColor; stroke-width: 3.5; }
.tile.zen-tile .zen-icon { margin-top: .15rem; }
h1 .zen-icon { width: .9em; height: .9em; margin: -.1em .1em 0 0; }

/* ---------- Site structure pages: landing, home, all lessons, all exercises (first draft, kept simple) ---------- */
.landing-block { margin-top: var(--space-inner); }
.placeholder { color: var(--muted); font-style: italic; background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(253,190,20,.15) 8px 16px); padding: 2px 6px; border-radius: 6px; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 36px; }
.door { padding: 24px 26px; }
.door h2, .door h3 { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; margin: 0 0 8px; }
a.door-link { color: inherit; text-decoration: none; display: block; transition: transform .1s; }
a.door-link:hover { transform: translate(-2px, -2px); }
.door .btn { margin-top: 8px; }
.lesson-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.lesson-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; }
.lesson-card h2 { font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin: 0; }
.lesson-card h2 a { color: inherit; }
.lesson-card p { margin: 6px 0 0; }
.lesson-n { flex: none; min-width: 52px; height: 52px; padding: 0 6px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; }
.lesson-card.is-soon, .lesson-card.is-locked { opacity: .75; }
.lesson-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--ink); }
.badge.free { background: var(--good-bg); }
.badge.soon { background: var(--paper); color: var(--muted); border-style: dashed; }
.badge.locked { background: var(--yellow); }
.ex-lesson { margin-top: var(--space-inner); }
.ex-lesson.is-soon { opacity: .7; }
.topic-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.topic-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.topic-link { font-weight: 800; font-size: 1.1rem; }
.topic-sub { grid-column: 1; color: var(--muted); font-size: .92rem; }
.learn-link { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-size: .92rem; white-space: nowrap; }
@media (max-width: 560px) { .topic-list li { grid-template-columns: 1fr; } .learn-link { grid-column: 1; grid-row: auto; white-space: normal; } }
.learn-cta { text-align: center; font-weight: 700; margin-top: 36px; }

/* ---------- Lesson 2: the slides' colour code for genders (pink = feminine, purple = masculine) ---------- */
:root { --fem: #e0479e; --fem-ink: #b5246f; --masc: #7c4ddf; --masc-ink: #5b2fbf; }
.q-hint { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
/* Easter-egg doodles next to a hint (common.js doodle()): the zombie shambles gently */
.easter-doodle { display: inline-block; width: 2.6em; height: 2.6em; vertical-align: -1em; margin-left: .3em;
  transform-origin: 40% 95%; animation: shamble 2.6s ease-in-out infinite; }
.easter-doodle svg { width: 100%; height: 100%; overflow: visible; }
.doodle-zombie .zb-skin { fill: #bfe3a8; stroke: var(--ink, #2b2b2b); stroke-width: 2.4; stroke-linejoin: round; }
.doodle-zombie .zb-shirt { fill: var(--blue); stroke: var(--ink, #2b2b2b); stroke-width: 2.4; stroke-linejoin: round; }
.doodle-zombie .zb-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doodle-zombie .zb-eye { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-zombie .zb-pupil { fill: var(--red); }
@keyframes shamble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(5deg) translateX(2px); } }
.doodle-birthday, .doodle-birthdayboy { animation: sob 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
.doodle-birthday .sb-skin, .doodle-birthdayboy .sb-skin { fill: #ffe0bd; stroke: var(--ink, #2b2b2b); stroke-width: 2.2; stroke-linejoin: round; }
.doodle-birthday .sb-line, .doodle-birthdayboy .sb-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 2; stroke-linecap: round; }
.doodle-birthday .sb-cake, .doodle-birthdayboy .sb-cake { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: 2.2; stroke-linejoin: round; }
.doodle-birthday .sb-icing, .doodle-birthdayboy .sb-icing { fill: #ffb3d1; stroke: var(--ink, #2b2b2b); stroke-width: 2; stroke-linejoin: round; }
.doodle-birthday .sb-candle, .doodle-birthdayboy .sb-candle { fill: var(--yellow); stroke: var(--ink, #2b2b2b); stroke-width: 1.8; }
.doodle-birthday .sb-flame, .doodle-birthdayboy .sb-flame { fill: #ff9b2f; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; animation: flicker .5s ease-in-out infinite alternate; transform-origin: 51px 32px; }
.doodle-birthday .sb-tear, .doodle-birthdayboy .sb-tear { fill: #7cc4ff; stroke: var(--blue); stroke-width: 1; animation: tear 1.4s ease-in infinite; }
.doodle-birthday .sb-tear.t2, .doodle-birthdayboy .sb-tear.t2 { animation-delay: .7s; }
@keyframes sob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }
@keyframes tear { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(13px); opacity: 0; } }
.doodle-birthday .sb-tear, .doodle-birthdayboy .sb-tear { animation-name: tear-s; }
@keyframes tear-s { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes flicker { from { transform: scale(1); } to { transform: scale(.85, 1.1); } }
/* grandparent character models (nonna, nonno): shared "gp-" parts, reusable by any doodle */
.doodle-nonna, .doodle-nonno { width: 1.6em; animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.easter-doodle .gp-skin { fill: #ffe0bd; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; stroke-linejoin: round; }
.easter-doodle .gp-hair { fill: #e3e3e3; stroke: var(--ink, #2b2b2b); stroke-width: 1.5; stroke-linejoin: round; }
.easter-doodle .gp-tuft { fill: none; stroke: #a8a8a8; stroke-width: 2.4; stroke-linecap: round; }
.easter-doodle .gp-brow { fill: none; stroke: #9a9a9a; stroke-width: 1.8; stroke-linecap: round; }
.easter-doodle .gp-tash { fill: #e3e3e3; stroke: var(--ink, #2b2b2b); stroke-width: 1.1; stroke-linejoin: round; }
.easter-doodle .gp-shine { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.easter-doodle .gp-eye { fill: var(--ink, #2b2b2b); }
.easter-doodle .gp-glass { fill: rgba(255,255,255,.35); stroke: var(--ink, #2b2b2b); stroke-width: 1.2; }
.easter-doodle .gp-cheek { fill: #ff9fb8; opacity: .55; }
.easter-doodle .gp-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linecap: round; }
.easter-doodle .gp-thin { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: .8; stroke-linecap: round; }
.easter-doodle .gp-chain { fill: none; stroke: #b5b5b5; stroke-width: .8; stroke-dasharray: .6 .9; stroke-linecap: round; }
.easter-doodle .gp-ground { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; stroke-linecap: round; }
.easter-doodle .gp-dress { fill: #ff8fc0; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; stroke-linejoin: round; }
.easter-doodle .gp-cardigan { fill: #b79be8; stroke: var(--ink, #2b2b2b); stroke-width: 1.5; stroke-linejoin: round; }
.easter-doodle .gp-sleeve { fill: none; stroke: #b79be8; stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .gp-pearl { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: .5; }
.easter-doodle .gp-bag { fill: #c0392b; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.easter-doodle .gp-strap { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.3; }
.easter-doodle .gp-leg { fill: none; stroke: #e8c9a6; stroke-width: 3.6; stroke-linecap: round; }
.easter-doodle .gp-shoe { fill: var(--ink, #2b2b2b); }
.easter-doodle .gp-shirt { fill: #cfe8ff; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; stroke-linejoin: round; }
.easter-doodle .gp-vest { fill: #a9805a; stroke: var(--ink, #2b2b2b); stroke-width: 1.5; stroke-linejoin: round; }
.easter-doodle .gp-sleeve2 { fill: none; stroke: #cfe8ff; stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .gp-button { fill: #f3e2c7; }
.easter-doodle .gp-collar { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: 1.1; stroke-linejoin: round; }
.easter-doodle .gp-belt { fill: none; stroke: #5a3d24; stroke-width: 1.8; }
.easter-doodle .gp-trousers { fill: #7d8590; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; stroke-linejoin: round; }
.easter-doodle .gp-shoe2 { fill: #5a3d24; stroke: var(--ink, #2b2b2b); stroke-width: 1; }
.easter-doodle .gp-cane { fill: none; stroke: #8b5a2b; stroke-width: 2.4; stroke-linecap: round; }
/* more character models (donna, uomo, ragazza, ragazzo, bambina, bambino), 16 Nov 2026 */
.doodle-donna, .doodle-uomo, .doodle-ragazza, .doodle-ragazzo, .doodle-bambina, .doodle-bambino { width: 1.6em; animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.easter-doodle .sk { stroke: var(--ink, #2b2b2b); stroke-width: 1.5; stroke-linejoin: round; }
.easter-doodle .sk-a { fill: #ffe6cf; } .easter-doodle .sk-b { fill: #f1c7a0; } .easter-doodle .sk-c { fill: #c68a5e; }
.easter-doodle .sk-d { fill: #a86b43; } .easter-doodle .sk-e { fill: #ffd6b0; } .easter-doodle .sk-f { fill: #8d5a3b; }
.easter-doodle .ch-limb-ink { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 4.4; stroke-linecap: round; }
.easter-doodle .ch-limb { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.easter-doodle .k-a { stroke: #ffe6cf; } .easter-doodle .k-b { stroke: #f1c7a0; } .easter-doodle .k-c { stroke: #c68a5e; }
.easter-doodle .k-d { stroke: #a86b43; } .easter-doodle .k-e { stroke: #ffd6b0; } .easter-doodle .k-f { stroke: #8d5a3b; }
.easter-doodle .f-teal, .easter-doodle .f-jeans, .easter-doodle .f-white, .easter-doodle .f-green, .easter-doodle .f-chino,
.easter-doodle .f-black, .easter-doodle .f-red, .easter-doodle .f-greyjeans, .easter-doodle .f-yellow, .easter-doodle .f-hairbrown,
.easter-doodle .f-hairdark, .easter-doodle .f-hairblack, .easter-doodle .f-pink, .easter-doodle .f-mohawk, .easter-doodle .f-redshoe,
.easter-doodle .f-blue, .easter-doodle .f-leather, .easter-doodle .f-bone { stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .f-teal { fill: #2bb3a3; } .easter-doodle .f-jeans { fill: #3f6fb5; } .easter-doodle .f-white { fill: #fff; }
.easter-doodle .f-green { fill: #3e7d4f; } .easter-doodle .f-chino { fill: #d8c3a0; } .easter-doodle .f-black { fill: #262626; }
.easter-doodle .f-red { fill: #e74c3c; } .easter-doodle .f-greyjeans { fill: #5c6670; } .easter-doodle .f-yellow { fill: var(--yellow); }
.easter-doodle .f-hairbrown { fill: #7a4b2a; } .easter-doodle .f-hairdark { fill: #3b2a1f; } .easter-doodle .f-hairblack { fill: #1e1a18; }
.easter-doodle .f-pink { fill: #ff7fb5; } .easter-doodle .f-mohawk { fill: #3ddc84; } .easter-doodle .f-redshoe { fill: #d63031; }
.easter-doodle .f-blue { fill: var(--blue); } .easter-doodle .f-leather { fill: #3a3a3a; } .easter-doodle .f-bone { fill: #f4f1e8; }
.easter-doodle .n-gold { fill: #f2c230; } .easter-doodle .n-silver { fill: #d9dde3; } .easter-doodle .n-ink { fill: var(--ink, #2b2b2b); }
.easter-doodle .n-silverline { fill: none; stroke: #c3c8cf; stroke-width: .8; } .easter-doodle .n-stubble { fill: #8a8a8a; }
.easter-doodle .n-freckle { fill: #b9773f; } .easter-doodle .n-plaster { fill: #f3d6a4; stroke: #c9a46a; stroke-width: .5; }
.easter-doodle .s-blue, .easter-doodle .s-dark, .easter-doodle .s-ink, .easter-doodle .s-thinink, .easter-doodle .s-lip, .easter-doodle .s-lipmen,
.easter-doodle .s-lipdark, .easter-doodle .s-hairdark, .easter-doodle .s-hairbrown, .easter-doodle .s-bone, .easter-doodle .s-plaid, .easter-doodle .s-lace,
.easter-doodle .s-rip, .easter-doodle .s-rip2, .easter-doodle .s-chain, .easter-doodle .s-streak, .easter-doodle .s-white, .easter-doodle .s-stick,
.easter-doodle .s-sock { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.easter-doodle .s-teal, .easter-doodle .s-green, .easter-doodle .s-black, .easter-doodle .s-leather, .easter-doodle .s-red, .easter-doodle .s-yellow { fill: none; stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .s-teal { stroke: #2bb3a3; } .easter-doodle .s-green { stroke: #3e7d4f; } .easter-doodle .s-black { stroke: #262626; }
.easter-doodle .s-leather { stroke: #3a3a3a; } .easter-doodle .s-red { stroke: #e74c3c; } .easter-doodle .s-yellow { stroke: var(--yellow); }
.easter-doodle .s-blue { stroke: var(--blue); stroke-width: 1; } .easter-doodle .s-dark { stroke: #6b4a35; stroke-width: 1.1; }
.easter-doodle .s-ink { stroke: var(--ink, #2b2b2b); stroke-width: 1.1; } .easter-doodle .s-thinink { stroke: var(--ink, #2b2b2b); stroke-width: .8; }
.easter-doodle .s-lip { stroke: #c0392b; stroke-width: 1.4; } .easter-doodle .s-lipmen { stroke: #f3d1c0; stroke-width: 1.2; }
.easter-doodle .s-lipdark { stroke: #6c2a5a; stroke-width: 1.5; } .easter-doodle .s-hairdark { stroke: #3b2a1f; stroke-width: 1.5; }
.easter-doodle .s-hairbrown { stroke: #7a4b2a; stroke-width: 1.6; } .easter-doodle .s-bone { stroke: #f4f1e8; stroke-width: 1; }
.easter-doodle .s-plaid { stroke: #7a1f1f; stroke-width: .7; } .easter-doodle .s-lace { stroke: #fff; stroke-width: .6; }
.easter-doodle .s-tights { fill: none; stroke: #262626; stroke-width: 4.2; stroke-linecap: round; }
.easter-doodle .s-rip { stroke: #ffe6cf; stroke-width: .9; } .easter-doodle .s-rip2 { stroke: #a86b43; stroke-width: 1; }
.easter-doodle .s-chain { stroke: #c3c8cf; stroke-width: 1; stroke-dasharray: 1 .8; } .easter-doodle .s-streak { stroke: #ff4fa0; stroke-width: 1.8; }
.easter-doodle .s-white { stroke: #fff; stroke-width: 1.2; } .easter-doodle .s-stick { stroke: #fff; stroke-width: 1.2; }
.easter-doodle .s-sock { stroke: #fff; stroke-width: 2.8; }
.easter-doodle .f-lolly2 { fill: #6fd3ff; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.easter-doodle .s-mascara { fill: none; stroke: #262626; stroke-width: .9; stroke-linecap: round; opacity: .8; }
.easter-doodle .ch-stick-ink { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 2.4; stroke-linecap: round; }
/* skipping-rope grandparents (16 Nov 2026): the rope swings over and under, they hop when it's under */
.doodle-ropenonna, .doodle-ropenonno { width: 1.6em; animation: none; }
.doodle-ropenonni { width: 3.1em; animation: none; }   /* viewBox 96 × 80 */
.easter-doodle .rp-rope { fill: none; stroke: #c0392b; stroke-width: 1.3; stroke-linecap: round; }
.easter-doodle .rp-a { animation: rope-a .7s steps(1) infinite; }
.easter-doodle .rp-b { animation: rope-b .7s steps(1) infinite; }
@keyframes rope-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes rope-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.easter-doodle .rp-hop { animation: hop .7s ease-in-out infinite; }
@keyframes hop { 0%, 50% { transform: translateY(0); } 75% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.easter-doodle .rp-handle { fill: #3a3a3a; stroke: var(--ink, #2b2b2b); stroke-width: .8; }
.easter-doodle .rp-band { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.easter-doodle .f-lilac { fill: #b79be8; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .f-pinksuit { fill: #ff8fc0; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .f-bluesuit { fill: var(--blue); stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .s-pinksuit { fill: none; stroke: #ff8fc0; stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .s-bluesuit { fill: none; stroke: var(--blue); stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .s-stripe { fill: none; stroke: #fff; stroke-width: .7; stroke-linecap: round; }
.easter-doodle .s-whiteline { fill: none; stroke: #fff; stroke-width: .9; stroke-linecap: round; }
/* vampire grandparents and two unimpressed children (16 Nov 2026) */
.doodle-vampnonna, .doodle-vampnonno { width: 3.5em; animation: none; }   /* viewBox 108 × 80 */
.doodle-vampnonni { width: 4.35em; animation: none; }                    /* viewBox 134 × 80 */
.easter-doodle .vp-cloak { fill: #1e1a18; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .vp-lining { fill: #c0392b; }
.easter-doodle .vp-collar { fill: #1e1a18; stroke: #c0392b; stroke-width: 1; stroke-linejoin: round; }
.easter-doodle .vp-arm { fill: none; stroke: #1e1a18; stroke-width: 4.6; stroke-linecap: round; }
.easter-doodle .vp-mouth { fill: #6b1f1f; stroke: var(--ink, #2b2b2b); stroke-width: .9; }
.easter-doodle .vp-fang { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: .6; stroke-linejoin: round; }
.easter-doodle .vp-laugh { fill: #6b1f1f; stroke: var(--ink, #2b2b2b); stroke-width: .9; stroke-linejoin: round; }
.easter-doodle .vp-haha { font: 700 7px "Amatic SC", "Comic Sans MS", cursive; fill: var(--blue); }
.easter-doodle .vp-lid { stroke-width: 1.1; }
.easter-doodle .rp-b { opacity: 0; }
.easter-doodle .vp-yawn { fill: #6b1f1f; stroke: var(--ink, #2b2b2b); stroke-width: .9; animation: yawn 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes yawn { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1.1); } }
.easter-doodle .vp-boo { font: 700 11px "Amatic SC", "Comic Sans MS", cursive; fill: var(--red); stroke: var(--ink, #2b2b2b); stroke-width: .35; }
.easter-doodle .vp-spook { animation: spook 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes spook { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-1px); } }
/* super-grandma: hulk hands stop the taxi; the taxi shudders, the impact lines flash */
.doodle-taxi { animation: none; width: 3.6em; }   /* wider: a side-view taxi (viewBox 112 × 80) */
.doodle-taxi .gx-hulk { fill: #7bc74d; stroke: var(--ink, #2b2b2b); stroke-width: 2; stroke-linejoin: round; }
.doodle-taxi .gx-hair { fill: #e3e3e3; stroke: var(--ink, #2b2b2b); stroke-width: 1.8; }
.doodle-taxi .gx-dress { fill: #9b6bd6; stroke: var(--ink, #2b2b2b); stroke-width: 2; stroke-linejoin: round; }
.doodle-taxi .gx-limb { fill: none; stroke: #4f8f2e; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.doodle-taxi .gx-limb2 { fill: none; stroke: #5fa83a; stroke-width: 5.5; stroke-linecap: round; }
.doodle-taxi .gx-hulk2 { fill: #5fa83a; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; }
.doodle-taxi .gx-glass { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.doodle-taxi .gx-brow { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 2.2; stroke-linecap: round; }
.doodle-taxi .gx-mouth { fill: #7a1f1f; stroke: var(--ink, #2b2b2b); stroke-width: 1.2; stroke-linejoin: round; }
.doodle-taxi .gx-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.8; stroke-linecap: round; }
.doodle-taxi .gx-thin { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1; stroke-linecap: round; }
.doodle-taxi .gx-pram-body { fill: #8fd3ff; stroke: var(--ink, #2b2b2b); stroke-width: 1.8; }
.doodle-taxi .gx-hood { fill: var(--blue); stroke: var(--ink, #2b2b2b); stroke-width: 1.8; stroke-linejoin: round; }
.doodle-taxi .gx-taxi { fill: var(--yellow); stroke: var(--ink, #2b2b2b); stroke-width: 2; stroke-linejoin: round; }
.doodle-taxi .gx-sign { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.doodle-taxi .gx-window { fill: #cfe8ff; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.doodle-taxi .gx-wheel { fill: var(--ink, #2b2b2b); }
.doodle-taxi .gx-check { fill: var(--ink, #2b2b2b); }
.doodle-taxi .gx-hub { fill: #c9c9c9; }
.doodle-taxi .gx-dust { fill: none; stroke: #b9b9b9; stroke-width: 1.6; stroke-linecap: round; }
.doodle-taxi .gx-light { fill: #fff6b0; stroke: var(--ink, #2b2b2b); stroke-width: .9; }
.doodle-taxi .gx-pow { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; animation: pow .5s steps(2) infinite; }
.doodle-taxi .gx-fly { animation: fly 1s ease-out infinite; }
@keyframes fly { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(3px, -4px); opacity: 0; } }
.doodle-taxi .gx-car { animation: shudder .18s linear infinite alternate; }
@keyframes shudder { from { transform: translateX(0); } to { transform: translateX(1.2px); } }
@keyframes pow { 0% { opacity: 1; } 100% { opacity: .15; } }
/* thug-life grandparents: smoke curling up, heads nodding to the beat */
.doodle-balcony { animation: nod 1.2s ease-in-out infinite; transform-origin: 50% 100%; width: 3em; }   /* viewBox 92 × 80 */
.doodle-balcony .gb-bars { fill: none; stroke: #8a8f98; stroke-width: 2; }
.doodle-balcony .gb-floor { fill: #c9c2b0; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.doodle-balcony .gb-skin { fill: #ffe0bd; stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-balcony .gb-hairfill { fill: #e3e3e3; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; }
.doodle-balcony .gb-hair { fill: none; stroke: #9a9a9a; stroke-width: 2.2; stroke-linecap: round; }
.doodle-balcony .gb-shirt { fill: var(--blue); stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-balcony .gb-shirt2 { fill: #ff8fc0; stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-balcony .gb-shades { fill: #111; }
.doodle-balcony .gb-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.8; stroke-linecap: round; }
.doodle-balcony .gb-cig { fill: #fff; stroke: var(--ink, #2b2b2b); stroke-width: .9; }
.doodle-balcony .gb-ember { fill: #ff7a1a; }
.doodle-balcony .gb-rail { fill: #8a8f98; stroke: var(--ink, #2b2b2b); stroke-width: 1.6; }
.doodle-balcony .gb-smoke { fill: none; stroke: #b9b9b9; stroke-width: 1.8; stroke-linecap: round; animation: smoke 2.2s ease-out infinite; }
.doodle-balcony .gb-smoke.s2 { animation-delay: 1.1s; }
@keyframes nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.2px); } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
/* gym grandpa: pressing the bar up and down */
.doodle-gym { animation: none; width: 3.1em; }   /* viewBox 96 × 80: grandpa on the bench, grandma behind */
.doodle-gym .gn-bar { fill: #4a4f57; }
.doodle-gym .gn-plate { fill: #4a4f57; stroke: var(--ink, #2b2b2b); stroke-width: .8; }
.doodle-gym .gn-curl { transform-box: fill-box; transform-origin: 50% 0; }
.doodle-gym .gn-l { animation: curl-l 1.6s ease-in-out infinite alternate; }
.doodle-gym .gn-r { animation: curl-r 1.6s ease-in-out infinite alternate; animation-delay: -.8s; }
@keyframes curl-l { from { transform: rotate(8deg); } to { transform: rotate(150deg); } }
@keyframes curl-r { from { transform: rotate(-8deg); } to { transform: rotate(-150deg); } }
.doodle-gym .gg-skin { fill: #ffe0bd; stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-gym .gg-hair { fill: none; stroke: #9a9a9a; stroke-width: 2.4; stroke-linecap: round; }
.doodle-gym .gg-band { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.doodle-gym .gg-shirt { fill: var(--green); stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-gym .gg-bench { fill: var(--blue); stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-gym .gg-limb { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.doodle-gym .gg-line { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 2.2; stroke-linecap: round; }
.doodle-gym .gg-plate { fill: #4a4f57; stroke: var(--ink, #2b2b2b); stroke-width: 2; }
.doodle-gym .gg-plate2 { fill: #8a8f98; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; }
.doodle-gym .gg-bar { fill: #e3e3e3; }
.doodle-gym .gg-drop { fill: #7cc4ff; stroke: var(--blue); stroke-width: .8; animation: tear 1.6s ease-in infinite; }
.doodle-gym .gg-press { animation: press 1.4s ease-in-out infinite; }
.doodle-gym .gg-eye { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linecap: round; }
.doodle-gym .gg-thigh { fill: none; stroke: #7d8590; stroke-width: 6; stroke-linecap: round; }
.doodle-gym .gg-shin { fill: none; stroke: #7d8590; stroke-width: 5; stroke-linecap: round; }
@keyframes press { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .easter-doodle, .easter-doodle * { animation: none !important; } }
.opt.opt-m span { color: var(--masc-ink); font-weight: 800; }
.opt.opt-f span { color: var(--fem-ink); font-weight: 800; }
.opt.opt-m.sel { background: #e7dcff; } .opt.opt-f.sel { background: #ffd9ec; }
.hear-btn { padding: 2px 10px; font-size: .85rem; border-width: 2px; box-shadow: none; margin-top: 4px; }
.hear-btn:hover { transform: none; box-shadow: none; background: var(--yellow); }
.m-word { color: var(--masc-ink); font-weight: 800; } .f-word { color: var(--fem-ink); font-weight: 800; }
.tag.tag-m { background: var(--masc); color: #fff; } .tag.tag-f { background: var(--fem); color: #fff; }
.l2-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 26px 0; }
.l2-pair { padding: 16px 18px; }
.l2-pair .en { margin: 0; color: var(--muted); font-weight: 700; }
.l2-pair .it { margin: 4px 0 8px; font-size: 1.3rem; font-weight: 800; }
.l2-pair .note-s { margin: 0; font-size: .9rem; }
.l2-table-wrap { overflow-x: auto; margin: 22px 0; }
.l2-table { border-collapse: collapse; margin: 0 auto; min-width: min(100%, 420px); background: var(--paper-2); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; }
.l2-table th, .l2-table td { padding: 10px 14px; border: 1.5px solid var(--line); text-align: center; }
.l2-table thead th { font-family: var(--font-head); font-size: 1.5rem; }
.l2-articles td { font-size: 1.3rem; font-weight: 800; }
.l2-list { line-height: 1.6; padding-left: 22px; }
.l2-list li { margin: 6px 0; }
.l2-part-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.2rem); text-align: center; margin: var(--space-topic) 0 0; color: var(--blue); }
.l2-roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 26px; }
.l2-part { padding: 14px 18px; }
.l2-story { margin: 22px 0; padding: 16px 20px; font-size: 1.1rem; font-style: italic; }
.l2-nine { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px; margin: 24px 0; }   /* il lo la · i gli le · un uno una */
.l2-nine span { font-size: 1.6rem; min-width: 64px; text-align: center; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); }
.rule .note-s { font-size: .88rem; margin: 10px 0 0; text-align: left; }

/* ---------- Lesson 3: verb tables (usage crunch draft, 1 Nov 2026) ---------- */
.l3-verb td { text-align: left; }
.l3-verb td.en { color: var(--muted); font-size: .92rem; font-weight: 600; }
.l3-recap td { font-weight: 700; }
@media (max-width: 520px) { .l3-verb th, .l3-verb td, .l3-recap td { padding: 8px 8px; font-size: .95rem; } }

/* ---------- Lesson 4: verb tables built by the page script (usage crunch draft, 1 Nov 2026) ---------- */
.l4-verbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 4px 18px; }
.l4-verbs .l2-table-wrap { margin: 10px 0; }
.l4-verb { width: 100%; min-width: 0; }
.l4-verb caption { caption-side: top; text-align: left; padding: 0 4px 6px; font-size: 1.05rem; }
.l4-verb caption span { color: var(--muted); font-size: .9rem; }
.l4-verb td { padding: 6px 8px; text-align: left; }
.l4-verb td.who { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.l4-say { font: inherit; font-weight: 700; background: none; border: 0; padding: 2px 4px; cursor: pointer; border-radius: 6px; color: var(--ink); }
.l4-say:hover { background: var(--yellow); }
.l4-say .end { color: var(--blue); font-weight: 800; }
.l4-say .mid { color: var(--red-ink); font-weight: 800; }
.l4-turn { margin: 18px 0; padding: 12px 16px; }
.l4-turn summary { cursor: pointer; }
.l4-recap td.same { background: var(--good-bg); font-weight: 800; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .l4-verb td { padding: 5px 5px; } .l4-verb td.who { font-size: .75rem; } .l4-say { font-size: .92rem; padding: 2px 2px; } }

/* ---------- Article + noun flashcards (exercises/flashcards.html, usage crunch draft, 1 Nov 2026) ---------- */
.fc-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; justify-content: center; margin: 8px 0 18px; }
.fc-field { display: grid; gap: 4px; font-weight: 800; font-size: .9rem; }
.fc-field select { font: inherit; font-weight: 600; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); max-width: 100%; }
.fc-dir { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-dir .btn[aria-pressed="true"] { background: var(--blue); color: var(--paper-2); }
.fc-boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 0 auto 18px; }
.fc-box { display: grid; justify-items: center; padding: 6px 2px; border: 2px dashed var(--line); border-radius: 12px; background: var(--paper-2); }
.fc-box .n { font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.fc-box .l { font-size: .72rem; color: var(--muted); text-align: center; }
.fc-box.is-here { border: 2px solid var(--blue); }
.fc-stage { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.fc-card { min-height: 220px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; cursor: pointer; margin: 0 16px 0 0; }
.fc-side { margin: 0; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.fc-front { margin: 0; font-family: var(--font-head); font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.05; }
.fc-back { display: grid; justify-items: center; gap: 6px; border-top: 2px dashed var(--line); padding-top: 10px; width: 100%; }
.fc-answer { margin: 0; font-size: 1.6rem; font-weight: 800; }
.fc-more { margin: 0; color: var(--muted); font-size: .92rem; }
.fc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fc-actions .btn { min-width: 140px; }
.fc-again:hover { background: var(--bad-bg); }

/* Hand-drawn icons for the Endless and Zen controls (9 Nov 2026): ink outline, blue fill; the Oopsie stop sign is red and white */
.hand-icon { width: 1.35em; height: 1.35em; vertical-align: -0.32em; margin-right: .35em; overflow: visible; }
.hand-icon path { stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.hand-icon .fill { fill: var(--blue); }
.hand-icon .stop { fill: var(--red); }
.hand-icon .white { fill: none; stroke: #fff; stroke-width: 1.3; }
.hand-icon .white-bar { fill: #fff; stroke: none; }
.hand-icon .white-line { fill: none; stroke: #fff; stroke-width: 1.6; }
.hand-icon .hollow { fill: var(--paper-2); }
.hand-icon .line { fill: none; }
.sfx-toggle[aria-pressed="false"] .hand-icon .fill, .sfx-toggle[aria-pressed="false"] .hand-icon .stop { fill: var(--paper-2); }
.sfx-toggle[aria-pressed="false"] .hand-icon .white, .sfx-toggle[aria-pressed="false"] .hand-icon .white-bar, .sfx-toggle[aria-pressed="false"] .hand-icon .white-line { stroke: var(--muted); fill: none; }

/* Endless controls as a tidy row (standard since 9 Nov 2026; Endless and Zen pages use class "tools-grid"): every
   visible button gets an equal share of the width, lined up with the score boxes above. On phones the buttons show
   only their icons (the words stay for screen readers). */
.endless-tools.tools-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.tools-grid .sfx-toggle { display: flex; align-items: center; justify-content: center; padding: 6px 8px; white-space: nowrap; }
@media (max-width: 720px) {
  .tools-grid .sfx-toggle { padding: 8px 0; }
  .tools-grid .sfx-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tools-grid .hand-icon { width: 1.9em; height: 1.9em; margin: 0; vertical-align: middle; }
}
/* An option this exercise doesn't use: greyed out, with a diagonal bar from corner to corner (any button size) */
.sfx-toggle.unavailable { position: relative; opacity: .45; cursor: not-allowed; }
.sfx-toggle.unavailable::after { content: ""; position: absolute; inset: 3px; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--ink) calc(50% - 1.5px), var(--ink) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
/* Oopsie stop while Autoplay is off: it has nothing to do yet, so it's dimmed (still clickable) */
.sfx-toggle.idle { opacity: .55; }

/* VERB FEEDBACK (11 Nov 2026): answer line, tappable verb with its table, one matching tip behind "tips" */
.vf-answer { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }
.vf-form { color: var(--red-ink); }
.vf-form.is-ok { color: var(--green-ink); }
.vf-verb { font: inherit; font-weight: 800; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline dotted 2px; text-underline-offset: 3px; }
.vf-verb:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vf-conj { margin: 10px 0 2px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--sketch-sm); padding: 8px 10px; }
.vf-conj-title { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vf-conj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-weight: 600; }
.vf-conj-grid > span { padding: 2px 6px; white-space: nowrap; }
.vf-conj-grid .vf-p { color: var(--muted); margin-right: .35em; }
.vf-conj-grid .is-here { background: var(--brush) center / 100% 100% no-repeat; font-weight: 800; }
.vf-conj-grid .is-here .vf-p { color: var(--ink); }
.vf-tips { margin-top: 8px; }
.vf-tips summary { cursor: pointer; color: var(--blue); font-weight: 700; font-size: .95rem; }
.vf-tip { margin: 6px 0 0; font-weight: 600; }
.vf-also { margin: 6px 0 0; font-weight: 600; color: var(--blue); }
.vf-ex { margin: 6px 0 0; padding-left: 10px; border-left: 4px solid var(--yellow); }
.vf-ex i { font-weight: 700; display: block; }
.vf-ex span { color: var(--muted); font-size: .92rem; display: block; }
.endless-feedback .fb-text { min-width: 0; }
@media (max-width: 440px) {
  .vf-conj { padding: 6px 6px; }
  .vf-conj-grid { gap: 2px 4px; font-size: .95rem; }
  .vf-conj-grid > span { padding: 2px 4px; white-space: normal; }
}
/* the English behind a tap (present tense: hideEn, common.js hint()) */
.q-hint-btn { font: inherit; font-size: .78rem; font-weight: 700; color: var(--blue); background: none; border: 0;
  padding: 2px 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.q-hint-btn:hover, .q-hint-btn:focus-visible { color: var(--ink, #1d2a3a); }

/* ---------- the tidy noun feedback (plurals, 16 Nov 2026; common.js nounFeedback / sayCorner / artBlank) ----------
   "la chiave → le ___", one answer line after checking, the tip behind "tips", the drawn speaker in the top-right
   corner (the speaker from Endless's toolbar; whether it should be the speech bubble is on the before-launch list). */
.art-one, .art-blank { white-space: nowrap; }
.q-head:has(.art-blank) { padding-right: 58px; }   /* room for the speaker that appears after checking: no jump */
.art-arrow { color: var(--blue); margin-right: .2em; }
/* The, Hard: the noun's shape under the English ("___ c+-+", 19 Nov 2026) */
.q-shape { display: block; margin-top: 4px; font-weight: 700; white-space: nowrap; }
.q-shape .blank { display: inline-block; width: 2.2em; border-bottom: 2px solid currentColor; vertical-align: -.1em; }
.q-shape .sh-first, .q-shape .sh-v, .q-shape .sh-c { display: inline-block; min-width: .9em; text-align: center; }
.q-shape .sh-v { color: var(--blue); }
.art-one .blank, .art-blank .blank { display: inline-block; width: 3.2em; border-bottom: 2px solid currentColor; vertical-align: -.1em; }
.q.has-say { position: relative; }
.say-corner { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; }
.say-corner:hover { background: var(--yellow); }
.say-corner:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.say-corner .hand-icon { width: 26px; height: 26px; margin: 0; vertical-align: 0; }
.nf-answer { display: inline; margin: 0; }
.nf-it { font-weight: 800; }
.verdict .vf-tips { margin-top: 2px; }
.nf-mistake { margin: 6px 0 0; font-weight: 600; text-align: left; }
.nf-mistake i { font-style: normal; color: var(--red-ink); }
.nf-rule { margin: 4px 0 0; font-size: .92rem; color: var(--muted); text-align: left; }
.fb-line .nf-answer { display: block; }
/* phone width: singular and plural always on two lines, no arrow (Cosimo, 16 Nov 2026) */
@media (max-width: 480px) { .art-blank { display: block; } .art-arrow { display: none; } }

/* ---- THE PATH (home page) and topic navigation, 17 Nov 2026 (built by tools/site/build-site.py) ---- */
.crumbs-right { text-align: right; }
.start-row { margin: 22px 0 0; }
.start-btn { background: var(--yellow); color: var(--ink); font-size: 1.15rem; }
.path-note { text-align: center; color: var(--muted); font-weight: 600; margin: 8px auto 0; max-width: 560px; }
.area-card { padding: 22px 24px 24px; margin: var(--space-inner) auto 0; }
.area-step { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--blue); margin: 0; }
.area-card h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1.05; margin: 2px 0 0; }
.area-it { font-style: italic; color: var(--muted); margin: 0 0 8px; }
.area-blurb { margin: 0; }
.area-card .topic-list li { display: block; }
.area-card .topic-link { display: block; }
.topic-it { display: block; font-style: italic; color: var(--muted); font-size: .92rem; }
.area-card .topic-sub { display: block; }
.topic-next { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: var(--space-inner); text-align: center; }
/* "Nothing beats a one-to-one tutor" (19 Nov 2026): a quiet card under Next / Back on every topic page */
.tutor-note { max-width: 640px; margin: var(--space-inner) auto 0; text-align: center; }
.tutor-note p { margin: 0; }
.back-link { font-weight: 700; }
/* "How it works": the theory at the bottom of a topic page (17 Nov 2026) */
.theory-link { text-align: center; font-weight: 700; margin: 8px 0 0; }
.theory { padding: 22px 24px 20px; margin: var(--space-inner) auto 8px; scroll-margin-top: 12px; }
.theory h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 7vw, 2.8rem); margin: 0 0 8px; }
.theory h3 { font-size: 1.12rem; font-weight: 800; margin: 22px 0 4px; }
.theory p, .theory li { margin: 6px 0; line-height: 1.6; }
.theory ul { padding-left: 20px; margin: 6px 0; }
.theory .center { margin-top: 22px; }
.theory table { border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.theory th, .theory td { border: 1.5px solid var(--line); padding: 5px 10px; text-align: left; }
.theory .ex { margin: 8px 0 8px 14px; }
.theory .table-wrap { overflow-x: auto; max-width: 100%; }   /* a wide table scrolls in its box, never the page */
.theory td i { white-space: nowrap; }   /* never split a form at its hyphens (parl-iamo) */
@media (max-width: 480px) {
  .theory { padding: 18px 16px 18px; }
  .theory table { font-size: .84rem; }
  .theory th, .theory td { padding: 4px 6px; }
}
/* About us */
.about-text { max-width: 66ch; margin-left: auto; margin-right: auto; }
.about-text h2 { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; margin: var(--space-inner) 0 6px; }

/* ---- About us doodles (assets/about-doodles.js), 17 Nov 2026 ---- */
.about-doodle.easter-doodle { display: block; width: auto; height: auto; margin: 0; vertical-align: baseline; animation: none; transform: none; }
.about-doodle svg, .about-doodle.easter-doodle svg { display: block; width: 100%; height: auto; overflow: visible; }
.about-doodle [class^="ad-"], .about-doodle [class*=" ad-"] { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.about-doodle .ad-panel { fill: #fffdf6; stroke: none; }
.about-doodle .ad-panel-line { fill: none; stroke-width: 2.4; }
.about-doodle .ad-floor { fill: none; stroke-width: 1.6; }
.about-doodle .ad-say.ad-loud { font-size: 19px; }
.about-doodle .ad-say.ad-small { font-size: 11.5px; }
.about-doodle .ad-arm-black { fill: none; stroke: #262626; stroke-width: 8; }
.about-doodle .ad-skin { fill: #ffe6cf; }
.about-doodle .ad-stubble { fill: #5b4a3d; opacity: .55; stroke: none; }
.about-doodle .ad-brow { fill: none; stroke-width: 3.4; }
.about-doodle .ad-ink { fill: var(--ink); stroke: none; }
.about-doodle .ad-shine, .about-doodle .ad-paper { fill: #fff; stroke: none; }
.about-doodle .ad-line, .about-doodle .ad-motion { fill: none; }
.about-doodle .ad-motion { stroke-width: 2; }
.about-doodle .ad-beard { fill: #3a2a20; stroke-width: 1.5; }
.about-doodle .ad-lid { fill: #9aa3ad; }
.about-doodle .ad-screen { fill: var(--blue); }
.about-doodle .ad-cam { fill: var(--ink); stroke: none; }
.about-doodle .ad-face { fill: none; stroke: var(--paper); stroke-width: 3; }
.about-doodle .ad-mouth { fill: var(--paper); stroke: var(--paper); stroke-width: 1.5; }
.about-doodle .ad-cheek { fill: #ff9fb6; stroke: none; opacity: .9; }
.about-doodle .ad-glove { fill: #fff; }
.about-doodle .ad-arm { fill: none; stroke-width: 2.6; }
.about-doodle .ad-metal { fill: #c9ced6; }
.about-doodle .ad-handle { fill: none; stroke-width: 4; }
.about-doodle .ad-steam { fill: none; stroke-width: 2; opacity: .7; }
.about-doodle .ad-shirt { fill: #1f1f1f; }
.about-doodle .ad-bump { fill: #ffb3a7; }
.about-doodle .ad-star { fill: var(--yellow); stroke-width: 1.6; }
.about-doodle .ad-bubble { fill: #fff; }
.about-doodle .ad-say, .about-doodle .ad-boing, .about-doodle .ad-tagtext, .about-doodle .ad-chalk {
  font-family: var(--font-head); font-weight: 700; stroke: none; }
.about-doodle .ad-say { font-size: 14px; fill: var(--ink); }
.about-doodle .ad-boing { font-size: 10px; fill: var(--ink); }
.about-doodle .ad-burst { fill: var(--yellow); stroke-width: 2; }
.about-doodle .ad-base { fill: #7d8691; }
.about-doodle .ad-handle-out { stroke: var(--ink); stroke-width: 9; fill: none; }
.about-doodle .ad-handle-in { stroke: var(--yellow); stroke-width: 5; fill: none; }
.about-doodle .ad-hammer { fill: #ff6f91; }
.about-doodle .ad-gloss { fill: none; stroke: #fff; stroke-width: 2.6; opacity: .8; }
.about-doodle .ad-crust { fill: #e0a456; }
.about-doodle .ad-cheese { fill: #fdd76a; }
.about-doodle .ad-pepperoni { fill: var(--red); stroke-width: 1.6; }
.about-doodle .ad-tag { fill: #fff; }
.about-doodle .ad-tagtext { font-size: 14px; fill: var(--green); }
.about-doodle .ad-light { fill: var(--yellow); stroke: none; opacity: .45; }
.about-doodle .ad-frame { fill: #fff8e0; }
.about-doodle .ad-door { fill: #c98a52; }
.about-doodle .ad-soil { fill: #8a5a3c; }
.about-doodle .ad-stem { fill: none; stroke: #1f8a3a; stroke-width: 3; }
.about-doodle .ad-leaf { fill: var(--green); }
.about-doodle .ad-wood { fill: #c98a52; }
.about-doodle .ad-board { fill: #2f5d46; }
.about-doodle .ad-chalk { font-size: 17px; fill: #fff; }
.about-doodle .ad-window { fill: #fff; }
.about-doodle .ad-dot-r { fill: var(--red); stroke-width: 1; } .about-doodle .ad-dot-y { fill: var(--yellow); stroke-width: 1; }
.about-doodle .ad-dot-g { fill: var(--green); stroke-width: 1; }
.about-doodle .ad-heart { fill: #ff4f7b; }
.about-doodle .ad-lock { fill: var(--yellow); } .about-doodle .ad-shackle { fill: none; stroke-width: 2.6; }
.about-doodle .ad-lens { fill: #e8f3ff; }
.about-doodle .ad-eye { fill: #fff; }
.about-doodle .ad-slash { stroke: var(--red); stroke-width: 4.5; }
.about-doodle .ad-mic { fill: #c9ced6; }
.about-doodle .ad-brain { fill: #ffb3c7; }
.about-doodle .ad-fold { fill: none; stroke: #c4577a; stroke-width: 2.2; }
.about-doodle .ad-spark { fill: none; stroke: var(--yellow); stroke-width: 3; }
.about-doodle .ad-stand { fill: none; stroke-width: 2.8; }
.about-doodle .ad-wave { fill: none; stroke: var(--blue); stroke-width: 2.4; }
.about-doodle .ad-sun { fill: var(--yellow); }
.about-doodle .ad-rays { fill: none; stroke: #f59b0b; stroke-width: 3; }
.about-doodle .ad-sea { fill: #7fb3e6; stroke: none; }
.about-doodle .ad-sea-line { fill: none; stroke: #fff; stroke-width: 2; opacity: .8; }
.about-doodle .ad-hill { fill: #6cc07a; }
/* COSIMO and CLAUDIO character models (common.js, 17 Nov 2026) */
.easter-doodle .n-shave { fill: #4a3b30; opacity: .42; }
.easter-doodle .f-beard { fill: #33241a; stroke: #2b2b2b; stroke-width: .4; stroke-linejoin: round; }
.easter-doodle .n-shavelight { fill: #4a3b30; opacity: .18; }
.easter-doodle .s-brow { fill: none; stroke: #2a1d15; stroke-width: 1.5; stroke-linecap: round; }
.easter-doodle .s-tee { fill: none; stroke: #4a4a4a; stroke-width: 1; stroke-linecap: round; }
.easter-doodle .f-mouth { fill: #7a2e2e; stroke: var(--ink, #2b2b2b); stroke-width: .8; stroke-linejoin: round; }
.easter-doodle .k-g { stroke: #7d8691; }
.easter-doodle .f-laptop, .easter-doodle .f-laptopdark, .easter-doodle .f-screen, .easter-doodle .f-pad, .easter-doodle .f-pizza {
  stroke: var(--ink, #2b2b2b); stroke-width: 1.4; stroke-linejoin: round; }
.easter-doodle .f-laptop { fill: #b8c0c9; } .easter-doodle .f-laptopdark { fill: #7d8691; }
.easter-doodle .f-screen { fill: var(--blue); } .easter-doodle .f-pad { fill: #d9dde3; stroke-width: 1; }
.easter-doodle .f-pizza { fill: #fdd76a; stroke-width: 1; }
.easter-doodle .s-keys { fill: none; stroke: #6b737d; stroke-width: 1.6; stroke-dasharray: 1.7 .8; }
.easter-doodle .s-glare { fill: none; stroke: #fff; stroke-width: 1; stroke-linecap: round; opacity: .45; }
.easter-doodle .s-scr { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; }
.easter-doodle .s-scr2 { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.easter-doodle .f-scrcheek { fill: #ff9fb8; opacity: .8; }
.easter-doodle .f-drop { fill: #bfe6ff; stroke: #fff; stroke-width: .6; }
.easter-doodle .s-pin-ink { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 7.6; stroke-linecap: round; }
.easter-doodle .s-pin { fill: none; stroke: #e4b273; stroke-width: 5.2; stroke-linecap: round; }
.easter-doodle .s-pinhandle-ink { fill: none; stroke: var(--ink, #2b2b2b); stroke-width: 3.4; stroke-linecap: round; }
.easter-doodle .s-pinhandle { fill: none; stroke: #b9803f; stroke-width: 1.4; stroke-linecap: round; }
/* About us page layout (17 Nov 2026) */
.about-page { --peek-w: min(440px, calc(100vw - 36px)); }
.about-page > .about-peek { width: var(--peek-w); max-width: none; margin: calc(-0.325 * var(--peek-w) - 8px) auto 0; position: relative; z-index: 2; }
.about-brush { padding: .05em .55em .1em; }
.about-text h2 { text-align: left; }
.about-item, .about-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.about-item p { margin-top: 4px; }
.about-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 12px; }
.about-icon { display: block; width: 52px; }
.about-strip.about-doodle { max-width: 640px; margin: 12px auto 8px; }
@media (max-width: 600px) { .about-strip.about-doodle { display: none; } }
@media (max-width: 480px) { .about-icon { width: 44px; }
  .about-item, .about-list li { grid-template-columns: 44px 1fr; gap: 10px; } }
.about-sunset.about-doodle { max-width: 460px; margin: var(--space-inner) auto 0; }
.about-signoff { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 10px auto 0; }
.about-cta { margin-top: 36px; }
.about-hero { padding-bottom: calc(0.325 * min(440px, calc(100vw - 36px)) + 40px); }

/* ---- The top bar and the foot links (24 Nov 2026): on every visitor page (tools/site/build-site.py, topbar() and
   footlinks(); the players in practice/ copy them). The bar sits on the blue frame, above the page's own header. ---- */
.topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 12px 22px 0; color: var(--paper); position: relative; z-index: 2; }
.topbar a { color: var(--paper); text-decoration: none; }
.topbar a:hover, .topbar a:focus-visible { color: var(--yellow); }
.topbar-home { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.topbar-links { display: flex; gap: 6px 18px; font-weight: 700; font-size: 15px; }
.topbar-links a { padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar-links a:hover, .topbar-links a:focus-visible { border-bottom-color: var(--yellow); }
.topbar-links a[aria-current="page"] { border-bottom-color: var(--yellow); }
.topbar + .hero-blue { padding-top: 6px; }
.topbar + .hero-ex { margin-top: 14px; }
@media (max-width: 640px) {
  .topbar { padding: 10px 14px 0; }
  .topbar-home { font-size: 1.45rem; }
  .topbar-links { gap: 14px; font-size: 14px; }
  .topbar + .hero-ex { margin-top: 10px; }
}
.footlinks { text-align: center; font-weight: 700; font-size: 14px; color: var(--muted); margin-top: var(--space-inner); }
.footlinks a { color: var(--muted); }
.footlinks a:hover, .footlinks a:focus-visible { color: var(--blue); }
.footlinks + .wave { margin-top: 24px; }

/* ---- Plain pages built from tools/site/plain/ (Contact and privacy, 24 Nov 2026): the same reading width as About us ---- */
.plain-text { max-width: 66ch; margin-left: auto; margin-right: auto; }
.plain-text h2 { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; margin: var(--space-inner) 0 6px; }
.plain-list { padding-left: 1.2em; }
.plain-list li { margin: 0 0 12px; }
.contact-address { font-size: 1.25rem; font-weight: 800; margin: 8px 0 12px; overflow-wrap: anywhere; }
.contact-tutoring { border-left: 4px solid var(--yellow); padding: 6px 0 6px 14px; }

/* ---- Progress in the browser (job B, 24 Nov 2026: assets/common.js "PROGRESS", assets/progress-page.js) ---- */
/* tiles on a topic page: a green tick in the corner for a sheet done 100%, the best score for one tried */
a.tile { position: relative; }
.tile-tick, .tile-score { position: absolute; font-family: var(--font-body); font-weight: 800; line-height: 1; pointer-events: none; }
.tile-tick { top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-ink); color: #fff; border: 2px solid var(--ink); font-size: 17px; }
.tile-score { bottom: -10px; right: -8px; padding: 3px 6px; border-radius: 10px; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink); font-size: 12px; }
/* the home page: a thin bar under a topic, once something there was tried; "Continue" under "Start here" */
.topic-progress { display: block; grid-column: 1 / -1; height: 8px; max-width: 320px; margin-top: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.topic-progress-fill { display: block; height: 100%; min-width: 4px; background: var(--green-ink); border-radius: 6px; }
.topic-progress-text { display: block; grid-column: 1 / -1; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.continue-row { margin: 14px 0 0; }
.continue-row .btn { background: var(--paper-2); color: var(--ink); }
/* the dot on "Progress": new progress, not saved for 5 days */
.topbar a.has-dot { position: relative; }
.topbar a.has-dot::after { content: ""; position: absolute; top: 0; right: -10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 2px var(--blue); }
/* under an exercise's result */
.save-nudge { font-weight: 700; margin-top: 10px; }
.result .tutor-line { font-style: italic; opacity: .92; margin-top: 6px; }
/* the result card is blue: a normal (blue) link vanished on it (found on the iPhone, 25 Nov 2026) */
.result .save-nudge a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
/* the Progress page */
.save-card { padding: 4px 22px 18px; background: var(--paper-2); margin-top: 18px; }
.start-offer-text { font-weight: 700; margin-top: 16px; }   /* Start over's "share first" offer */
.save-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.save-status { font-weight: 700; color: var(--muted); min-height: 1.4em; }
.btn.danger { background: var(--paper-2); color: var(--red-ink); border-color: var(--red-ink); box-shadow: 4px 4px 0 var(--red-ink); }
.progress-summary { font-weight: 800; font-size: 1.1rem; margin-top: var(--space-inner); }
.progress-area h2 { font-family: var(--font-head); font-weight: 700; font-size: 2rem; margin: 26px 0 6px; }
.progress-topic { border: 2px solid var(--line); border-radius: 14px; background: var(--paper-2); padding: 10px 14px; margin: 0 0 12px; }
.progress-topic h3 { margin: 0 0 6px; font-size: 1.1rem; }
.progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0; }
.progress-level { width: 4.5em; font-weight: 800; font-size: .9rem; }
.progress-level.easy { color: var(--green-ink); } .progress-level.medium { color: var(--blue); } .progress-level.hard { color: var(--red-ink); }
.progress-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 34px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; font-weight: 800;
  font-size: 13px; text-decoration: none; border: 2px solid var(--line); color: var(--muted); background: var(--paper); }
.chip.is-done { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.chip.is-tried { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.progress-streak { font-size: .88rem; font-weight: 700; color: var(--muted); }
@media (max-width: 480px) { .progress-level { width: 100%; } }
