/* The island map, the app's home screen (at the app root since 21 Nov 2026; it lived in app/world/ before). */
/* Francois One (OFL, app/fonts, 25 Nov 2026): the app's one font, as in the Figma designs. It has a single weight, so each
   face covers every weight (100 to 900): the browser then uses the real letters for bold too, never a smeared fake bold. */
@font-face { font-family:"Francois One"; font-weight:100 900; font-display:swap; src:url(fonts/francoisone-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Francois One"; font-weight:100 900; font-display:swap; src:url(fonts/francoisone-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sea:#45b4e8; --sea-d:#2f97d3; --foam:#ffffff;
  --ink:#27324a; --ink2:#5b6884; --card:#ffffff;
  --pink:#c6396b; --pink-d:#962650;      /* Mimi's raspberry */
  --sun:#ffc93c; --sun-d:#d99a0b;
  --lock:#b9c6d6; --lock-d:#8fa0b5;
  /* What each colour means, everywhere (21 Nov): pink = the main action of a screen and Mimi; green = right, done, signed in;
     red-orange = a mistake or a danger; yellow = XP and rewards; white = everything else (cards, other buttons). */
  --good:#2f8a50; --bad:#d0583a; --reward:#f5b41a;
  --pink-t:var(--pink-d); --good-t:var(--good); --bad-t:var(--bad);   /* the same colours as text: lighter in dark mode */
  --u1:#f5a3c4; --u2:#bcaaf5; --u3:#94d0ec; --u4:#a3dfb9; --u5:#f8bb8b; --u6:#f4d877;
  /* 28 Nov (the polish pass): the values every screen shares. One edge under white cards and buttons (the path's own),
     one neutral fill, one shadow tint. Before, the panels still had three cold blues from the sea map. */
  /* 28 Nov, later (Eliott: "get rid of the beige background everywhere"): the page and the neutrals are a cool grey now; were cream (#f6f1e8, #ddd3c1…) */
  --paper:#f4f6fa; --page:var(--paper);                        /* the page */
  --edge:#d3dbe6; --edge-line:#dfe5ee; --edge-soft:#e9edf3;    /* the lip under a card or a button; a border; a divider inside a card */
  --fill:#eef1f6; --track:#e3e8ef;                             /* a neutral fill (chips, tiles); the track of a progress bar */
  --shade:39,50,74; --float:0 6px 16px rgba(var(--shade), .13);   /* the one shadow tint (the ink); what floats above the map */
  --good-d:#216a3c; --bad-d:#96401f;                           /* the lip of the green and of the red main button */
  --off:#dfe5ee; --off-d:#c3ccd8; --off-ink:#6b7385;           /* a main button that cannot be pressed yet */
  --tint:100%;                                                 /* how much of a pale tint shows (pink, green, yellow panels); 100% in light */
  color-scheme:light;
}
/* Dark mode (28 Nov 2026, Eliott: "make the dark mode too"). Réglages → Thème: Auto follows the phone, or Clair / Sombre
   (S.theme, set on <html data-theme> by theme-mode.js before the first paint). Only the values change: every screen reads
   them. Pale tints are mixed into the dark card (--tint), so a pink or green panel stays a hint of pink or green. */
:root[data-theme="dark"] {
  --paper:#11151d; --card:#1b212c; --ink:#eef1f6; --ink2:#a6b0c2;
  --edge:#090c12; --edge-line:#2b3342; --edge-soft:#252c39; --fill:#252c39; --track:#2f3747;
  --shade:0,0,0; --float:0 6px 16px rgba(0,0,0,.45);
  --off:#2b3342; --off-d:#171c25; --off-ink:#8792a6;
  --lock:#3a4458; --lock-d:#262e3c;
  --pink-t:#ee8fb1; --good-t:#5fcf8a; --bad-t:#f08a6c;
  --tint:18%;
  color-scheme:dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper:#11151d; --card:#1b212c; --ink:#eef1f6; --ink2:#a6b0c2;
  --edge:#090c12; --edge-line:#2b3342; --edge-soft:#252c39; --fill:#252c39; --track:#2f3747;
  --shade:0,0,0; --float:0 6px 16px rgba(0,0,0,.45);
  --off:#2b3342; --off-d:#171c25; --off-ink:#8792a6;
  --lock:#3a4458; --lock-d:#262e3c;
  --pink-t:#ee8fb1; --good-t:#5fcf8a; --bad-t:#f08a6c;
  --tint:18%;
  color-scheme:dark;
} }
* { box-sizing:border-box; }
html { background:var(--sea); }
body { margin:0; min-height:100vh; font-family:"Francois One", system-ui, sans-serif; font-weight:500; color:var(--ink);
  background:
    radial-gradient(60% 30% at 20% 10%, #7fd0f3 0, transparent 70%),
    radial-gradient(50% 25% at 85% 45%, #6cc6ef 0, transparent 70%),
    radial-gradient(60% 30% at 15% 80%, #6cc6ef 0, transparent 70%),
    linear-gradient(var(--sea), var(--sea-d));
  overflow-x:hidden; }

/* ---------- top bar ---------- */
.top { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:8px; width:min(100%, 480px); margin:0 auto; padding:calc(10px + env(safe-area-inset-top)) 14px 10px; }   /* below the notch when installed or in the phone app (29 Nov) */
.logo { font:700 22px/1 "Francois One", sans-serif; color:#fff; text-shadow:0 2px 0 var(--sea-d); margin-right:auto; }
.chip { display:inline-flex; align-items:center; gap:4px; background:var(--card); border-radius:99px; padding:6px 12px; font-weight:600; font-size:14px; box-shadow:0 3px 0 var(--edge); }

/* ---------- the world: everything is placed by world.js, in % of this box ---------- */
.world { position:relative; width:min(100%, 480px); margin:0 auto; overflow:hidden; }   /* gulls start off-screen: they must not widen the page */
.world > * { position:absolute; }
.isle { z-index:1; height:auto; pointer-events:none; user-select:none;
  filter:drop-shadow(0 5px 0 rgba(255,255,255,.6)) drop-shadow(0 16px 10px rgba(10,60,110,.35)); transition:filter .6s; }
.isle.locked { filter:grayscale(.6) contrast(.85) brightness(1.1) drop-shadow(0 5px 0 rgba(255,255,255,.5)) drop-shadow(0 16px 10px rgba(10,60,110,.25)); }

/* the island's name: a clay wooden sign with the name carved in it (img/signs/name-N.webp, 20 Nov), and a small clay tag under it
   for the lessons done ("1/3 leçons", "à débloquer") */
.banner { z-index:5; pointer-events:none; filter:drop-shadow(0 8px 6px rgba(10,60,110,.3)); }
.banner > img { display:block; width:100%; height:auto; user-select:none; }
/* an island without a painted name sign (the alphabet, 22 Nov): its name on a clay plank drawn by code */
.banner > .plank { display:block; margin:18% 8% 0; padding:.35em .6em .45em; text-align:center; font:700 clamp(13px, 2.6vw, 26px)/1.1 "Francois One", system-ui, sans-serif;
  color:#fff8ec; background:linear-gradient(#c98a55, #a9693a); border-radius:14px; box-shadow:inset 0 -4px 0 #8a5229, 0 3px 0 #6f411f; text-shadow:0 2px 0 #7a4824; }
.banner.locked > .plank { filter:grayscale(.55) brightness(1.05); }
.banner .tag { position:absolute; left:50%; top:88%; translate:-50% 0; display:inline-flex; align-items:center; gap:3px; white-space:nowrap;
  font:700 clamp(10px, 2.8vw, 12.5px)/1 "Francois One", sans-serif; color:#6b4421; background:color-mix(in oklab, #fff6e6 var(--tint), var(--card)); border-radius:99px; padding:4px 9px;
  box-shadow:0 2px 0 #d9b98c; }
.banner .tag img { width:1.25em; height:1.25em; object-fit:contain; }
.banner.done .tag { color:#fff; background:#5fc27e; box-shadow:0 2px 0 #3e9e5f; }
.banner.locked > img { filter:grayscale(.55) brightness(1.05); }
.banner.locked .tag { color:var(--ink2); background:#eef2f7; box-shadow:0 2px 0 #c9d6e6; }

/* boats, birds, clouds: Eliott's Gemini sprites (img/sea), decoration only */
.deco { z-index:2; translate:0 -50%; pointer-events:none; user-select:none; }
.deco img { display:block; position:relative; z-index:1; width:100%; height:auto; transform-origin:50% 85%; animation:float 4.5s ease-in-out var(--d, 0s) infinite; }
/* clouds and balloons fly over the sea and the islands: their shadow falls on the water far below them, which shows how high they are */
.deco.sky, .deco.air { z-index:7; animation:drift 26s ease-in-out var(--d, 0s) infinite alternate; }
.deco.sky img { animation:none; filter:drop-shadow(0 6px 6px rgba(10,60,110,.18)); opacity:.96; }
.deco.air img { animation:bob 5s ease-in-out var(--d, 0s) infinite; }
.deco.sky::after, .deco.air::after { content:""; position:absolute; left:12%; right:12%; top:var(--alt, 190%); height:22%; border-radius:50%;
  background:radial-gradient(closest-side, rgba(8,50,100,.28), transparent); }
.deco.air::after { left:22%; right:22%; height:14%; }
@keyframes bob { 50% { transform:translateY(-10px) rotate(2deg); } }
/* things that float: a dark patch of water under the hull, and a ring of ripples that spreads from it */
.deco.water::before { content:""; position:absolute; left:-14%; right:-14%; bottom:-9%; height:38%; border-radius:50%;
  background:radial-gradient(closest-side, rgba(12,70,130,.5), rgba(12,70,130,.22) 60%, transparent); }
.deco.water::after { content:""; position:absolute; left:-6%; right:-6%; bottom:-5%; height:30%; border-radius:50%; border:2px solid rgba(255,255,255,.75);
  animation:ripple 3.4s ease-out var(--d, 0s) infinite; }
/* sprites drawn without foam sit in the water: the bottom of the hull fades out, and a foam line marks the waterline */
.deco.sink img { -webkit-mask-image:linear-gradient(#000 80%, transparent 96%); mask-image:linear-gradient(#000 80%, transparent 96%); }
.deco.sink::before { box-shadow:inset 0 3px 0 -1px rgba(255,255,255,.55); }
@keyframes ripple { from { transform:scale(.55); opacity:.9; } to { transform:scale(1.3); opacity:0; } }
.gull { z-index:7; aspect-ratio:1; pointer-events:none; animation:fly 26s linear infinite; }
.gull img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; animation:flap .7s steps(1) infinite; }
.gull img + img { animation-delay:-.35s; }
@keyframes float { 50% { transform:translateY(-4px) rotate(-2deg); } }
@keyframes drift { to { transform:translateX(var(--dx, 40px)); } }
@keyframes fly { from { transform:translate(0, 0); } to { transform:translate(-560px, -70px); } }
@keyframes flap { 0% { opacity:1; } 50% { opacity:0; } }

/* lesson buttons on the sand path: chunky, like the clay */
/* lesson buttons: clay stepping stones set in the sand path (img/stones); the stone's top face sits on the path spot */
.node { z-index:4; width:13%; min-width:46px; aspect-ratio:256 / 215; transform:translate(-50%, -54%); border:0; padding:0; background:none; cursor:pointer;
  filter:drop-shadow(0 4px 3px rgba(20,40,60,.35)); transition:transform .12s; -webkit-tap-highlight-color:transparent; }
.node img { display:block; width:100%; height:100%; object-fit:contain; user-select:none; pointer-events:none; }
.node:active { transform:translate(-50%, calc(-54% + 3px)); }
.node:focus-visible { outline:3px solid var(--ink); outline-offset:3px; border-radius:40%; }
.node.now { width:15.5%; min-width:54px; z-index:6; }
/* an island with more than 3 lessons (the alphabet: 6): smaller stones, so they fit along one path */
.node.small { width:9.5%; min-width:40px; }
.node.small.now { width:11.5%; min-width:46px; }
.node.todo { filter:drop-shadow(0 3px 2px rgba(20,40,60,.25)) saturate(.9); }
/* the current stone glows: a soft white halo that breathes (no motion with "reduce motion": see the end of this file) */
.node.now::before { content:""; position:absolute; inset:2% -6% 16%; border-radius:50%; background:radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,236,150,.55) 60%, transparent);
  z-index:-1; animation:glow 1.8s ease-in-out infinite; }
.node.now::after { content:"Continuer"; position:absolute; left:calc(100% + 14px); top:50%; translate:0 -50%; white-space:nowrap; background:var(--card); color:var(--ink);
  font:700 14px/1 "Francois One", sans-serif; padding:7px 11px; border-radius:11px; box-shadow:0 3px 0 rgba(20,70,120,.3); animation:bob 1.4s ease-in-out infinite; }
@keyframes glow { 50% { transform:scale(1.18); opacity:.55; } }
@keyframes bob { 50% { translate:5px -50%; } }

.more { text-align:center; color:#fff; font-weight:600; padding:26px 0 48px; margin:0; text-shadow:0 1px 0 var(--sea-d); position:relative; }
.more a { margin-top:10px; font:inherit; font-size:13px; color:var(--ink); background:var(--card); border:0; border-radius:99px; padding:7px 14px; cursor:pointer; display:inline-block; text-decoration:none; text-shadow:none; box-shadow:0 3px 0 rgba(20,70,120,.25); }

/* ---------- lesson sheet ---------- */
.sheet { position:fixed; inset:0; z-index:40; display:grid; align-items:end; background:rgba(var(--shade), .4); }
.sheet[hidden] { display:none; }
.card { width:min(100%, 480px); margin:0 auto; background:var(--card); border-radius:24px 24px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); animation:up .22s ease-out; }
@keyframes up { from { transform:translateY(40px); opacity:0; } }
.kicker { margin:0; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); }
.card h2 { margin:4px 0 12px; font:700 26px/1.1 "Francois One", sans-serif; }
.signs { display:flex; flex-wrap:wrap; gap:6px; }
.signs span { background:var(--fill); border-radius:99px; padding:6px 12px; font-weight:600; font-size:14px; }
.note { margin:12px 0 0; font-size:13px; font-weight:700; color:var(--ink2); min-height:1.2em; }
/* the main button (28 Nov, the polish pass): one height and one small lip on every screen; it sinks when pressed (.pgo in lesson.css is its twin) */
.go { display:block; width:100%; margin-top:12px; border:0; border-radius:16px; padding:17px 14px; font:700 18px/1 "Francois One", sans-serif; color:#fff; background:var(--pink); box-shadow:0 4px 0 var(--pink-d); cursor:pointer;
  transition:transform .12s, box-shadow .12s; }
.go:active { transform:translateY(3px); box-shadow:0 1px 0 var(--pink-d); }
.go:disabled { background:var(--off); color:var(--off-ink); box-shadow:0 4px 0 var(--off-d); cursor:default; }
.close { display:block; margin:14px auto 0; border:0; background:none; font:inherit; font-weight:600; color:var(--ink2); cursor:pointer; padding:6px 12px; }

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

.isle.fog { filter:drop-shadow(0 16px 10px rgba(10,60,110,.25)); }

/* ---------- reviews and quests (18 Nov) ---------- */
button.chip { border:0; font-family:inherit; color:inherit; cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
button.chip:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
button.chip:focus-visible, .fab:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.chip.ready::after { content:""; position:absolute; top:-3px; right:-3px; width:12px; height:12px; border-radius:50%; background:var(--pink); border:2px solid var(--card); }
/* the dock (18 Nov): the sign of the day and "Réviser", above the tab bar. 28 Nov (Eliott: "there are too many buttons here"): one row,
   not a stack, and "Essayer la caméra" is gone (every lesson opens the camera now, and so does the Épeler tab). Both pills share
   one recipe: a border, a small lip, the app's font. Only "Réviser" is filled. */
.dock { position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom)); translate:-50% 0; z-index:30; width:max-content; max-width:calc(100% - 24px);
  display:flex; align-items:stretch; justify-content:center; gap:8px; pointer-events:none; }
.dock > * { pointer-events:auto; }
/* 28 Nov (Eliott, on buttons that look "so clickable"): a flat bright colour, bold text and a thick darker edge under it, like a key
   you can push down. The edge is 5px here (it was 3px, with a look closer to a label). */
.fab, .daily { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:8px 20px 8px 14px; border:2px solid var(--edge-line); border-radius:25px;
  background:var(--card); color:var(--ink); font:600 17px/1.15 "Francois One", sans-serif; text-decoration:none; white-space:nowrap;
  box-shadow:0 5px 0 var(--edge), var(--float); -webkit-tap-highlight-color:transparent; transition:translate .1s, box-shadow .1s; }
.fab { flex:none; background:var(--sun); border-color:var(--sun); color:#27324a; box-shadow:0 5px 0 var(--sun-d), var(--float); }
.fab[hidden] { display:none; }
.fab:active { translate:0 4px; box-shadow:0 1px 0 var(--sun-d); }
.quest { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:9px 0; border-top:2px solid var(--edge-soft); }
.quest:first-child { border-top:0; }
.quest .qi { font-size:22px; line-height:1; } .quest .qi .ic { width:26px; height:26px; }
.quest b { font-size:14.5px; font-weight:600; }
.quest small { font-size:12.5px; font-weight:600; color:var(--ink2); min-width:46px; text-align:right; }   /* one width: the three bars end at the same place */
.qbar { height:8px; margin-top:6px; border-radius:99px; background:var(--track); overflow:hidden; }
.qbar i { display:block; height:100%; border-radius:99px; background:var(--sun); }
.quest.done .qbar i { background:#5fc27e; }
.go[hidden] { display:none; }
.note:empty { display:none; }
.world ~ .more { padding-bottom:calc(var(--dockh, 100px) + 48px); }   /* room for the dock (sign of the day, "Réviser") under the last line */   /* room for the "Réviser" button under the last line */

/* ---------- Mes signes and Réglages (18 Nov) ---------- */
a.chip { text-decoration:none; color:inherit; -webkit-tap-highlight-color:transparent; }
a.chip:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
a.chip:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.top { flex-wrap:wrap; justify-content:flex-end; }   /* a safety: on a very narrow screen the bar wraps instead of scrolling sideways */
/* five chips: a little tighter everywhere; the logo gives way on phones (measured: 412 px wrapped with the logo, 12 480 XP and a 128-day streak) */
.top { gap:6px; } .chip { padding:6px 10px; }
@media (max-width:480px) { .logo { display:none; } }
@media (max-width:360px) { .top { padding-left:10px; padding-right:10px; } .chip { padding:6px 8px; font-size:13px; } }
.card.tall { max-height:86vh; max-height:86dvh; overflow-y:auto; overscroll-behavior:contain; }
.card h2:focus { outline:none; }
.filters { display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 12px; }
.filters[hidden] { display:none; }
.filters button { font:inherit; font-weight:600; font-size:13px; color:var(--ink); background:var(--fill); border:0; border-radius:99px; padding:6px 12px; cursor:pointer; }
.filters button[aria-pressed="true"] { background:var(--ink); color:var(--card); }
.filters button:focus-visible, .scard:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
#sg-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
#sg-grid .empty { grid-column:1 / -1; text-align:center; }
.scard { display:flex; flex-direction:column; gap:6px; min-width:0; padding:10px 10px 9px; border-radius:16px; background:var(--fill); color:var(--ink);
  text-decoration:none; border:2px solid color-mix(in srgb, var(--uc) 70%, var(--card)); box-shadow:0 4px 0 var(--uc); -webkit-tap-highlight-color:transparent; }
.scard:active { transform:translateY(3px); box-shadow:0 1px 0 var(--uc); }
.scard .sw { font:700 17px/1.15 "Francois One", sans-serif; overflow-wrap:anywhere; }
.dots { display:flex; gap:4px; }
.dots i { width:9px; height:9px; border-radius:50%; background:var(--card); border:2px solid var(--lock-d); }
.dots i.on { background:var(--pink); border-color:var(--pink); }
.badges { display:flex; flex-wrap:wrap; gap:4px; min-height:18px; }
.badges i { font-style:normal; font-size:12px; font-weight:600; }
.badges .due { color:#fff; background:var(--pink); border-radius:99px; padding:1px 7px; }

/* ---------- the sign of the day (18 Nov): a pill in the dock, beside "Réviser". Its look is the dock's (.fab, .daily above). ---------- */
.daily { min-width:0; }
.daily[hidden] { display:none; }
.daily:active { translate:0 4px; box-shadow:0 1px 0 var(--edge); }
.daily:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.daily .dk { flex:none; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--pink-t); }
.daily b { min-width:0; overflow:hidden; text-overflow:ellipsis; font:inherit; }
/* phones: the label shrinks to its envelope, and a long word ("consultation sur place (livre)") may take two lines, never cut mid-word */
@media (max-width:480px) {
  .daily { white-space:normal; }
  .daily .dk { display:none; }
  .daily b { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; text-align:center; }
}
/* a lesson brought into view (the current one, on load) is centred above the dock, not under it */
.node { scroll-margin-bottom:calc(var(--dockh, 0px) + 16px + env(safe-area-inset-bottom)); }

/* ---------- clay icons (18 Nov, Gemini sheet by Eliott, cut by design/world/cut-icons.py): they replace the emojis ---------- */
.ic { width:20px; height:20px; flex:none; object-fit:contain; vertical-align:-4px; user-select:none; -webkit-user-drag:none; }
.fab .ic, .daily .ic { width:26px; height:26px; margin:0; vertical-align:0; }
.go .ic { width:22px; height:22px; margin-right:6px; }
#setChip .ic { width:22px; height:22px; }
.q-box { display:flex; justify-content:center; margin:10px 0 0; }
.q-box img { width:150px; height:150px; display:block; }
#q-chest[data-icon]::before { content:""; display:inline-block; width:26px; height:26px; margin-right:6px; vertical-align:-7px; background:center / contain no-repeat; }
#q-chest[data-icon="chest"]::before { background-image:url(img/icons/chest.webp); }
#q-chest[data-icon="chest-open"]::before { background-image:url(img/icons/chest-open.webp); }

/* ---------- the app's sections (20 Nov): a clay tab bar at the bottom, like a game's menu ---------- */
:root { --tabh:calc(70px + env(safe-area-inset-bottom)); }
.logo { display:inline-flex; align-items:center; gap:8px; margin-right:auto; }
/* 23 Nov (Eliott): the top bar shows Mimi alone, on a transparent background (img/icons/mimi-logo.webp), not the app icon's blue tile */
.logo img { width:auto; height:40px; object-fit:contain; filter:drop-shadow(0 2px 2px rgba(44,53,83,.15)); }
@media (max-width:480px) { .logo { display:inline-flex; font-size:0; } .logo img { width:auto; height:38px; } }   /* phones: Mimi alone */
.tabs { position:fixed; left:0; right:0; bottom:0; z-index:75; display:flex; justify-content:center; gap:2px; height:var(--tabh);
  padding:6px 8px env(safe-area-inset-bottom); background:var(--card); border-radius:22px 22px 0 0; box-shadow:0 -3px 0 var(--edge-line), 0 -8px 20px rgba(var(--shade), .06); }
html.playing .tabs { display:none; }
.tabs button { position:relative; flex:1; max-width:104px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  border:0; background:none; border-radius:16px; padding:4px 2px; font:600 11.5px/1 "Francois One", sans-serif; color:var(--ink2); cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:background .2s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.tabs button > img, .tabav { width:34px; height:34px; object-fit:contain; transition:transform .25s cubic-bezier(.34,1.56,.64,1); }
.tabs button[aria-current="page"] { background:color-mix(in oklab, #fde8ef var(--tint), var(--card)); color:var(--pink-t); box-shadow:inset 0 0 0 2px color-mix(in oklab, #f6c3d5 var(--tint), var(--card)); }
.tabs button[aria-current="page"] > img, .tabs button[aria-current="page"] .tabav { transform:translateY(-2px) scale(1.12); }
.tabs button:active { transform:scale(.94); }
.tabs button:focus-visible { outline:3px solid var(--ink); outline-offset:1px; }
.tabs .badge { position:absolute; top:2px; right:calc(50% - 30px); min-width:18px; padding:2px 5px; border-radius:99px; background:var(--pink); color:#fff;
  font:700 10.5px/1.2 "Francois One", sans-serif; box-shadow:0 0 0 2px var(--card); }
.tabs .badge:empty, .tabs .badge[data-zero] { display:none; }
.tabs button.ready .badge { background:#f2a33a; animation:pop .6s ease 2; }
.tabav { display:grid; place-items:center; border-radius:50%; overflow:hidden; background:var(--fill); box-shadow:0 0 0 2px var(--card), 0 2px 0 2px var(--edge); }
.tabav svg, .tabav img { width:100%; height:100%; object-fit:cover; }
/* everything else keeps clear of the bar: the dock, the bottom sheets, the panels and the end of the map */
.dock { bottom:calc(var(--tabh) + 12px); }
.sheet { padding-bottom:var(--tabh); }
.world ~ .more { padding-bottom:calc(var(--dockh, 100px) + var(--tabh) + 36px); }
.node { scroll-margin-bottom:calc(var(--dockh, 0px) + var(--tabh) + 16px); }

/* ?town: the town map test (22 Nov). Each street is one painted picture, full width; the buttons sit on its platforms. */
#world.town .street { position:absolute; left:0; width:100%; object-fit:cover; z-index:1; pointer-events:none; user-select:none; }
#world.town .street.locked { filter:saturate(.55) brightness(1.04); }
/* the lid covers its painted platform exactly: the width comes from world.js, the centre is the platform's centre */
#world.town .node.town { min-width:0; aspect-ratio:320 / 173; transform:translate(-50%, -50%); filter:none; }
#world.town .node.town:active { transform:translate(-50%, calc(-50% + 2px)); }
#world.town .node.town.now::before { inset:-14% -8%; background:radial-gradient(closest-side, rgba(255,236,170,.75), rgba(255,220,120,.35) 60%, transparent); }
#world.town .node.town.now::after { left:auto; right:calc(100% + 10px); }

/* ---------- the world path (23 Nov; the default map on the app/town-test branch, ?islands for the old map) ----------
   A cream page; each unit is a world in its own tint, its header stays at the top while you are in it; the lessons are
   clay lids, the hosts' scenes stand on the free side of the path. Mockup: design/modern-test/mockups4.html. */
html.path, html.path body { background:var(--paper); }
html.path .top { background:var(--paper); z-index:22; }
html.path .more { display:none; }
html.path .logo { color:var(--ink); text-shadow:none; }   /* the logo was white on the sea; on cream it is navy */
html.path .world { overflow:clip; padding-bottom:calc(var(--dockh, 100px) + var(--tabh) + 24px); }
.world.path > * { position:relative; }
/* 23 Nov (Eliott): no coloured block per unit; the whole path sits on the page's one cream. The banner alone gives each unit its colour. */
.world.path .unit { padding-bottom:6px; }
/* the unit's banner (img/banners/unit-N.webp): a clay plaque with the host; the code writes the name on the plaque, in Francois One.
   It is a button: it opens the unit's welcome (openUnit). It scrolls with the page: a banner this tall would hide the path if it stuck. */
.world.path .uhead { display:block; width:calc(100% - 20px); margin:14px 10px 0; padding:0; border:0; background:none; cursor:pointer; position:relative;
  -webkit-tap-highlight-color:transparent; transition:transform .15s; }
.world.path .uhead > img { display:block; width:100%; height:auto; user-select:none; filter:drop-shadow(0 6px 6px rgba(44,53,83,.14)); }
.world.path .uhead:active { transform:translateY(2px) scale(.99); }
.world.path .uhead:focus-visible { outline:3px solid var(--ink); outline-offset:3px; border-radius:20px; }
/* 28 Nov (Eliott, from his Figma frame "Carte · unité 6": "the big word on the left, and then the unity and the number of lessons on
   the right", "the big word bigger"): the name is as big as in the frame (about 7% of the banner's width), and "UNITÉ 6 → 0/3 LEÇONS"
   sits on its right. Where one line is too long for the plaque, the small text takes two lines beside the word; it goes under the
   word only for a very long name. The text stops where the host's hands begin (38% from the right). */
.world.path .uhead .utext { position:absolute; left:6%; right:38%; bottom:8%; display:flex; flex-wrap:wrap; align-items:center; align-content:center; gap:1px 10px; text-align:left; color:#fff; }
.world.path .uhead b { flex:none; font:600 clamp(22px, 6.7vw, 32px)/1.05 "Francois One", sans-serif; text-shadow:0 1px 0 rgba(0,0,0,.12); }
.world.path .uhead small { flex:1 1 70px; min-width:0; display:flex; flex-wrap:wrap; column-gap:.45em; font:600 11px/1.25 "Francois One", sans-serif; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.world.path .uhead small span { white-space:nowrap; }
.world.path .unit.locked .uhead > img { filter:saturate(.6) brightness(1.03) drop-shadow(0 6px 6px rgba(44,53,83,.1)); }
.world.path .field { position:relative; }
.world.path .field > * { position:absolute; }

/* 28 Nov (Eliott: "buttons that face more us and are brighter are more clickable"; then, on a try with the chunky stones of the old
   map: "it doesn't look like the same style as the clay things", and the green check popped too much): the lesson buttons are the
   clay lids (lid-*.webp), the same clay and navy rim as the platforms of the scenes, drawn in a taller box so the disc faces the
   learner. The lid to do now is brighter than the others. */
.world.path .node.lid { width:min(22%, 88px); min-width:0; aspect-ratio:320 / 250; transform:translate(-50%, -50%); filter:none; z-index:3; }
.world.path .node.lid img { width:100%; height:100%; object-fit:fill; filter:saturate(1.1) brightness(1.04) drop-shadow(0 6px 4px rgba(44,53,83,.18)); }
.world.path .node.lid:active { transform:translate(-50%, calc(-50% + 3px)); }
.world.path .node.lid.now { width:min(22%, 88px); z-index:5; }
.world.path .node.lid.now img { filter:saturate(1.35) brightness(1.08) drop-shadow(0 6px 4px rgba(44,53,83,.18)) drop-shadow(0 0 0 rgba(226,169,59,0)); animation:lidglow 2.4s ease-in-out infinite; }
.world.path .node.lid.now::before { content:""; position:absolute; inset:-16% -14% -12%; border-radius:50%; background:none; border:3px solid #e2a93b; animation:lidring 2.4s ease-in-out infinite; }
.world.path .node.lid.now::after { content:"Commencer"; left:50%; top:auto; bottom:calc(100% + 12px); translate:-50% 0; font:700 12px/1 "Francois One", sans-serif; letter-spacing:.08em;
  text-transform:uppercase; padding:8px 12px; border:2px solid var(--edge-line); box-shadow:0 3px 0 var(--edge-line); animation:none; }
.world.path.started .node.lid.now::after { content:"Continuer"; }   /* "Commencer" only before the first XP, as the lesson card says */
@keyframes lidglow { 50% { filter:saturate(1.35) brightness(1.08) drop-shadow(0 6px 4px rgba(44,53,83,.18)) drop-shadow(0 0 14px rgba(226,169,59,.7)); } }   /* the same list of filters as the lid at rest, so the glow fades in smoothly */
@keyframes lidring { 0%,100% { opacity:.65; scale:1; } 50% { opacity:.25; scale:1.08; } }
.world.path .scene, .world.path .chest { translate:-50% -50%; z-index:1; pointer-events:none; }
.world.path .scene { width:min(42%, 175px); }
.world.path .chest { left:50%; width:min(31%, 124px); }
.world.path .scene img, .world.path .chest img { display:block; width:100%; height:auto; user-select:none; transform-origin:50% 85%;
  filter:drop-shadow(0 10px 10px rgba(44,53,83,.12)); animation:breathe 4s ease-in-out infinite; }
.world.path .chest img { animation:chestbob 3s ease-in-out infinite; }
.world.path .chest:not(.open) img { filter:saturate(.55) drop-shadow(0 10px 10px rgba(44,53,83,.1)); }
@keyframes breathe { 50% { transform:translateY(-3px) scaleY(1.012); } }
@keyframes chestbob { 50% { transform:translateY(-5px); } }
.world.path .unit.locked .scene img { filter:saturate(.45) brightness(1.04) drop-shadow(0 10px 10px rgba(44,53,83,.08)); }
.world.path .say { z-index:4; margin:-12px 0 0 8px; background:var(--card); border-radius:16px 16px 16px 4px; padding:8px 12px; font:600 14px "Francois One", sans-serif; color:var(--ink);
  border:2px solid var(--edge-line); box-shadow:0 3px 0 var(--edge-line); white-space:nowrap; animation:say 6s ease-in-out 1s infinite both; }
@keyframes say { 0%,8% { opacity:0; translate:0 6px; } 14%,70% { opacity:1; translate:0 0; } 78%,100% { opacity:0; translate:0 -4px; } }

/* the lesson card: opens under the lid tapped (placeCard in world.js), not from the bottom of the screen */
html.path .sheet#sheet:not([hidden]) { background:rgba(44,53,83,.12); padding:0; display:block; }
html.path .sheet#sheet .card { position:fixed; width:min(320px, calc(100% - 24px)); margin:0; border-radius:20px; padding:14px; border:2px solid var(--edge-line);
  box-shadow:0 3px 0 var(--edge-line), 0 10px 24px rgba(var(--shade), .16); animation:cardin .18s ease-out; }
html.path .sheet#sheet .card::before { content:""; position:absolute; left:var(--ax, 50%); top:-9px; width:16px; height:16px; background:var(--card);
  border-left:2px solid var(--edge-line); border-top:2px solid var(--edge-line); rotate:45deg; translate:-50% 0; }
html.path .sheet#sheet .card.above::before { top:auto; bottom:-9px; rotate:225deg; }
@keyframes cardin { from { opacity:0; transform:translateY(-6px) scale(.97); } }
html.path #sheet h2 { font-size:21px; margin:2px 0 10px; }
html.path #sheet .signs span { background:var(--fill); border-radius:10px; }
html.path #sheet .go { margin-top:10px; padding:13px 12px; font-size:16px; }
html.path #sheet .close { margin-top:6px; padding:4px 10px; font-size:14px; }
html.path #sheet .note:empty { display:none; }
html.path #sheet .intro { margin:0 0 10px; font:500 15px/1.4 "Francois One", sans-serif; color:var(--ink); }
html.path #sheet .intro[hidden], #sheet .go[hidden] { display:none; }
@media (prefers-reduced-motion: reduce) { html.path .sheet#sheet .card { animation:none; } }

/* 28 Nov 2026: sections on the path, and the locked card after the next lessons (world.js pathMap) */
.world.path .section-head { margin:22px 16px 0; font:600 clamp(20px, 6vw, 26px)/1.1 "Francois One", sans-serif; color:var(--ink); text-align:center; }
.world.path .section-head small { display:block; font:600 11px/1.2 "Francois One", sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); margin-bottom:4px; }
.world.path .unit.cut .field { -webkit-mask-image:linear-gradient(to bottom, #000 72%, transparent); mask-image:linear-gradient(to bottom, #000 72%, transparent); }
.world.path .locked-more { margin:4px 16px 28px; padding:18px 18px 16px; border-radius:22px; background:var(--card); border:2px solid var(--edge-line); box-shadow:0 3px 0 var(--edge-line); text-align:center; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; gap:8px; font:600 16px/1.3 "Francois One", sans-serif; }
.world.path .locked-more img { width:44px; height:auto; }
.world.path .locked-more p { margin:0; font-size:14px; color:var(--ink2); }
.world.path .locked-more ul { list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; width:100%; }
.world.path .locked-more li { padding:10px 12px; border-radius:14px; background:var(--fill); color:var(--ink2); font-size:15px; }
.world.path .locked-more li small { display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

/* LSFFacile+ at the end of the path (28 Nov): before payments open, a quiet card that opens the waitlist */
.world.path .plus-teaser { display:flex; align-items:center; gap:12px; width:calc(100% - 32px); margin:0 16px 28px; padding:14px 16px; border:0; border-radius:22px;
  background:var(--card); box-shadow:0 5px 0 color-mix(in oklab, #f0c9d8 var(--tint), var(--card)); color:var(--ink); text-align:left; font:inherit; cursor:pointer; }
.world.path .plus-teaser img { width:40px; height:40px; object-fit:contain; flex:none; }
.world.path .plus-teaser span { flex:1; display:flex; flex-direction:column; gap:2px; font-size:14px; color:var(--ink2); }
.world.path .plus-teaser b { font:700 17px/1.2 "Francois One", sans-serif; color:var(--ink); }
.world.path .plus-teaser i, .soon-tag { font-style:normal; font:700 11px/1 system-ui, sans-serif; letter-spacing:.06em; text-transform:uppercase; padding:3px 7px; border-radius:99px; background:#c6396b; color:#fff; vertical-align:2px; margin-left:4px; }
.world.path .plus-teaser .chev { flex:none; font-size:22px; color:#c6396b; }
