/* The island world's own screens (screens.js): a clay panel above the map for a sign, the Lexique, Réglages,
   Confidentialité and Mon profil; the welcome screens of a first visit. Uses the lesson screen's pieces too (lesson.css: .tv, .chipbtn, .popt). */
html.paneled, html.paneled body { overflow:hidden; }
button.daily, button.scard { cursor:pointer; }
button.scard { font:inherit; text-align:left; }
.go.ghost { background:var(--card); color:var(--ink); box-shadow:0 4px 0 var(--edge); }
.go.ghost:active { box-shadow:0 1px 0 var(--edge); }

.panel { position:fixed; inset:0; z-index:70; display:grid; grid-template-rows:auto 1fr; color:var(--ink);
  background:var(--paper); }   /* 23 Nov (Eliott): no beach behind the panels; the same cream as the path */
.panel > * { width:min(100%, 520px); margin:0 auto; }
.panel-top { display:flex; align-items:center; gap:12px; padding:calc(12px + env(safe-area-inset-top)) 16px 8px; }
.panel-top h2 { margin:2px 0 0; font:700 clamp(22px, 6.4vw, 28px)/1.1 "Francois One", sans-serif; overflow-wrap:anywhere; }
.panel-top h2:focus { outline:none; }
.panel-body { overflow-y:auto; overscroll-behavior:contain; padding:6px 16px calc(28px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; }
.panel-body > .note { margin:0; text-align:center; }
.panel-body h3 { margin:6px 0 0; font:700 18px/1.2 "Francois One", sans-serif; }
.panel.sign .tv { align-self:center; }
.panel .tv-ctl, .panel .credit { align-self:center; text-align:center; }
.panel .go { margin-top:4px; }
.go.danger { background:#d0583a; box-shadow:0 4px 0 #9e3a22; }

/* a sign's sheet */
.mstats { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.mstats > div { display:flex; flex-direction:column; align-items:center; gap:4px; background:var(--card); border-radius:16px; padding:9px 4px; box-shadow:0 4px 0 var(--edge); }
.mstats small { font-size:12px; font-weight:600; color:var(--ink2); }
.mstats b { font:700 18px/1 "Francois One", sans-serif; }
.story { background:var(--card); border-radius:20px; padding:12px 14px; box-shadow:0 4px 0 var(--edge); font-size:14px; line-height:1.4; }
.story h3 { margin:0 0 6px; font-size:16px; }
.story p { margin:6px 0 0; }
.story .note { margin-top:4px; font-weight:500; }
.hist { display:block; width:100%; height:auto; margin-top:6px; }
.hist line { stroke:#e3ecf6; stroke-width:1; }
.hist polyline { fill:none; stroke:var(--pink); stroke-width:2.5; stroke-linejoin:round; }
.hist circle.ok { fill:var(--pink); } .hist circle.no { fill:#fff; stroke:var(--pink); stroke-width:2.5; }

/* the Lexique */
.search { width:100%; font:600 16px/1.2 "Francois One", sans-serif; color:var(--ink); background:var(--card); border:3px solid var(--card); border-radius:16px; padding:12px 14px;
  box-shadow:0 4px 0 var(--edge); }
.search:focus-visible { outline:3px solid var(--pink); outline-offset:1px; }
.panel .filters { margin:0; justify-content:center; }
.panel .filters button { background:var(--card); border:1px solid var(--line); padding:7px 13px; }
.panel .filters button[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); }
.dict { display:flex; flex-direction:column; gap:8px; }
.drow { display:flex; flex-direction:column; gap:2px; text-align:left; font:inherit; color:var(--ink); background:var(--card); border:0; border-left:8px solid var(--uc, var(--edge));
  border-radius:14px; padding:10px 14px; box-shadow:0 3px 0 var(--edge); cursor:pointer; }
.drow:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
.drow b { font:700 17px/1.15 "Francois One", sans-serif; }
.drow span { font-size:12.5px; font-weight:600; color:var(--ink2); }
.drow em { font-style:normal; color:var(--good-t); }

/* Réglages */
.setrow { display:flex; align-items:center; gap:12px; width:100%; text-align:left; font:inherit; color:var(--ink); background:var(--card); border:0; border-radius:18px;
  padding:12px 14px; box-shadow:0 4px 0 var(--edge); cursor:pointer; }
.setrow:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
.setrow > div { flex:1; min-width:0; }
.setrow b { display:block; font:700 16px/1.2 "Francois One", sans-serif; }
.setrow span:not(.tgl):not(.avbox):not(.chev) { display:block; font-size:13px; line-height:1.35; color:var(--ink2); margin-top:2px; }
.tgl { flex:none; width:48px; height:28px; border-radius:99px; background:var(--fill); position:relative; transition:background .2s; }
.tgl::after { content:""; position:absolute; left:3px; top:3px; width:22px; height:22px; border-radius:50%; background:var(--card); box-shadow:0 2px 3px rgba(0,0,0,.2); transition:translate .2s cubic-bezier(.34,1.56,.64,1); }
.setrow[aria-checked="true"] .tgl { background:#5fc27e; }
.setrow[aria-checked="true"] .tgl::after { translate:20px 0; }
.setrow.me { box-shadow:0 4px 0 var(--pink); }
.avbox { flex:none; width:54px; height:54px; border-radius:50%; overflow:hidden; background:var(--fill); display:grid; place-items:center; }
.avbox svg, .avbox img { width:100%; height:100%; object-fit:contain; }
.chev { font:700 26px/1 "Francois One", sans-serif; color:var(--ink2); }
.wide-btn { width:100%; font:700 16px/1 "Francois One", sans-serif; color:var(--ink); background:var(--card); border:0; border-radius:16px; padding:13px; box-shadow:0 4px 0 var(--edge); cursor:pointer; }
.wide-btn:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
.two-btn { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:end; }
.two-btn .go { margin:0; }
.setrow:focus-visible, .wide-btn:focus-visible, .drow:focus-visible, .go:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }

/* Confidentialité */
.priv { background:var(--card); border-radius:20px; padding:4px 16px 14px; box-shadow:0 4px 0 var(--edge); font-size:14.5px; line-height:1.45; }
.priv h3 { margin-top:12px; }
.priv p, .priv ul { margin:6px 0 0; }
.priv ul { padding-left:20px; }

/* Mon profil */
.prof-pic { align-self:center; width:150px; height:150px; border-radius:50%; overflow:hidden; background:var(--card); box-shadow:0 0 0 5px var(--card), 0 8px 18px rgba(var(--shade), .14); }
.prof-pic svg { width:100%; height:100%; display:block; }
.prof-name { display:flex; flex-direction:column; gap:6px; font-weight:600; }
.prof-name b { font:700 15px/1 "Francois One", sans-serif; }
.prof-name input { font:600 17px/1.2 "Francois One", sans-serif; color:var(--ink); border:3px solid var(--card); border-radius:14px; padding:10px 12px; box-shadow:0 4px 0 var(--edge); }
.prof-name input:focus-visible { outline:3px solid var(--pink); outline-offset:1px; }
.prof-tabs { display:flex; gap:6px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:none; }
.prof-tabs button { flex:none; font:700 14px/1 "Francois One", sans-serif; color:var(--ink); background:var(--card); border:0; border-radius:99px; padding:9px 14px; box-shadow:0 3px 0 var(--edge); cursor:pointer; }
.prof-tabs button[aria-selected="true"] { background:var(--pink); color:#fff; box-shadow:0 3px 0 var(--pink-d); }
.prof-panel { background:var(--card); border-radius:20px; padding:12px; box-shadow:0 4px 0 var(--edge); display:flex; flex-direction:column; gap:8px; }
.prof-h { font:700 14px/1 "Francois One", sans-serif; }
.prof-sw { display:flex; flex-wrap:wrap; gap:8px; }
.prof-sw button { width:36px; height:36px; border-radius:50%; border:3px solid var(--card); box-shadow:0 2px 0 var(--edge); cursor:pointer; }
.prof-sw button[aria-pressed="true"] { outline:3px solid var(--ink); outline-offset:1px; }
.prof-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(76px, 1fr)); gap:8px; }
.prof-grid button { display:flex; flex-direction:column; align-items:center; gap:2px; font:600 11.5px/1.1 "Francois One", sans-serif; color:var(--ink); background:var(--fill);
  border:3px solid transparent; border-radius:14px; padding:4px; cursor:pointer; }
.prof-grid button[aria-pressed="true"] { border-color:var(--pink); background:var(--card); }
.prof-grid svg { width:56px; height:56px; }
.prof-tabs button:focus-visible, .prof-sw button:focus-visible, .prof-grid button:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }

/* the welcome screens: Mimi on a little stage, her words in a speech bubble, the rest slides in piece by piece */
.welcome { position:fixed; inset:0; z-index:80; overflow-y:auto; color:var(--ink); background:color-mix(in oklab, #cfe9f7 var(--tint), var(--card)) url(img/lesson/backdrop.webp) center bottom / cover no-repeat; animation:w-fade .35s ease-out; }
.welcome-in { width:min(100%, 480px); min-height:100%; box-sizing:border-box; margin:0 auto; padding:calc(16px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:center; }
.welcome-in > * { animation:w-in .45s cubic-bezier(.2,.9,.3,1.15) both; animation-delay:calc(var(--k, 0) * 70ms + 60ms); }
.welcome-in > .wdots { animation:none; }
.welcome h2.wsay { position:relative; align-self:center; max-width:100%; margin:10px 0 2px; padding:12px 18px; border-radius:22px; background:var(--card); box-shadow:0 4px 0 var(--edge);
  font:700 clamp(21px, 6vw, 26px)/1.15 "Francois One", sans-serif; transform-origin:50% 0; animation-name:w-say; }
.welcome h2.wsay::before { content:""; position:absolute; left:50%; top:-9px; width:20px; height:20px; translate:-50% 0; rotate:45deg; border-radius:5px 0 0 0; background:var(--card); }
.welcome h2:focus { outline:none; }
.wlead { margin:2px 6px 8px; font:500 17px/1.4 "Francois One", sans-serif; color:var(--ink2); }
.wdots { display:flex; gap:6px; justify-content:center; }
.wdots i { width:9px; height:9px; border-radius:99px; background:rgba(255,255,255,.8); transition:width .3s, background .3s; }
.wdots i.done { background:#f3b6cb; }
.wdots i.on { width:24px; background:var(--pink); animation:w-dot .35s ease-out; }
.wcard { background:var(--card); border-radius:20px; padding:12px 16px; text-align:left; box-shadow:0 4px 0 var(--edge); }
.wcard b { font:700 16px/1.2 "Francois One", sans-serif; }
.wcard p { margin:4px 0 0; font-size:14px; line-height:1.4; color:var(--ink2); }
.welcome .go { margin:auto 0 0; }   /* the buttons sit at the bottom of a tall screen */
@keyframes w-fade { from { opacity:0; } }
@keyframes w-in { from { transform:translateX(34px); opacity:0; } }
@keyframes w-say { 0% { transform:scale(.5); opacity:0; } 70% { transform:scale(1.05); opacity:1; } }
@keyframes w-dot { from { width:9px; } }

/* the flame and the star (world.js openStreak, openXp): the streak and the XP, and how they grow */
.top button.chip { border:0; font:inherit; font-weight:600; color:inherit; cursor:pointer; position:relative; -webkit-tap-highlight-color:transparent; }
.top button.chip:active { transform:translateY(2px); box-shadow:0 1px 0 var(--edge); }
.top button.chip:focus-visible { outline:3px solid var(--ink); outline-offset:2px; }
.card .bignum { display:flex; align-items:center; gap:10px; margin:6px 0 4px; }
.bignum img { width:60px; height:60px; object-fit:contain; animation:bounce-in .6s cubic-bezier(.34,1.56,.64,1); }
.bignum b { font:700 46px/1 "Francois One", sans-serif; }
.bignum span { font:600 16px/1.2 "Francois One", sans-serif; color:var(--ink2); }
.bignum:focus { outline:none; }
.card .status { margin:4px 0 10px; font-size:14.5px; font-weight:600; line-height:1.4; }
.status.ok { color:var(--good-t); } .status.warn { color:#b25a12; }
.week { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; margin:0 0 6px; }
.week span { display:flex; flex-direction:column; align-items:center; gap:4px; }
.week i { width:100%; max-width:40px; aspect-ratio:1; border-radius:50%; background:var(--fill); display:grid; place-items:center; }
.week .on i { background:color-mix(in oklab, #ffe3c2 var(--tint), var(--card)); box-shadow:inset 0 0 0 2px #f5a35a; }
.week i img { width:70%; height:70%; object-fit:contain; }
.week small { font-size:12px; font-weight:700; color:var(--ink2); }
.week .today small { color:var(--pink-t); }
.week .today i { outline:2px dashed var(--pink); outline-offset:2px; }
.howh { margin:12px 0 4px; font:700 16px/1.2 "Francois One", sans-serif; }
.how { margin:0; padding-left:20px; font-size:14px; line-height:1.45; }
.how li + li { margin-top:4px; }
.how.earn { list-style:none; padding:0; }
.how.earn li { display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-top:2px solid var(--edge-soft); }
.how.earn li:first-child { border-top:0; }
.how.earn b { flex:none; color:var(--pink-t); font-family:"Francois One", sans-serif; }
.goal { background:var(--fill); border-radius:16px; padding:10px 12px 2px; }
.goal-top { display:flex; justify-content:space-between; font-size:14px; }
.goal-top span { font-weight:700; }
.goal .status { margin:6px 0 8px; font-size:13.5px; }
.panel-body { padding-bottom:calc(var(--tabh, 0px) + 24px); }

/* Profil and Trophées (20 Nov) */
.me-head { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.me-av { width:120px; height:120px; border-radius:50%; overflow:hidden; background:var(--card); box-shadow:0 0 0 5px var(--card), 0 8px 18px rgba(var(--shade), .14); display:grid; place-items:center; }
.me-av svg, .me-av img { width:100%; height:100%; object-fit:contain; }
.me-head .note { margin:0; }
.stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.stat { display:flex; flex-direction:column; align-items:center; gap:2px; background:var(--card); border-radius:18px; padding:10px 4px 9px; box-shadow:0 4px 0 var(--edge); text-align:center; }
.stat img { width:34px; height:34px; object-fit:contain; }
.stat b { font:700 21px/1.1 "Francois One", sans-serif; }
.stat small { font-size:11.5px; font-weight:600; color:var(--ink2); line-height:1.2; }
.me-trophies { display:flex; justify-content:center; gap:10px; }
.me-trophies img { width:62px; height:auto; filter:drop-shadow(0 3px 2px rgba(20,60,110,.2)); }
img.off { filter:grayscale(1) opacity(.45); }
.wide-btn .ic { width:20px; height:20px; vertical-align:-4px; }
.trophies { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.trophy { display:flex; flex-direction:column; align-items:center; gap:4px; background:var(--card); border-radius:20px; padding:12px 10px; text-align:center;
  box-shadow:0 4px 0 var(--edge); }
.trophy img { width:72px; height:auto; filter:grayscale(1) opacity(.45); }
.trophy.won { background:var(--card); box-shadow:0 4px 0 color-mix(in oklab, #f0d27a var(--tint), var(--card)); }
.trophy.won img { filter:drop-shadow(0 4px 3px rgba(20,60,110,.22)); animation:bounce-in .6s cubic-bezier(.34,1.56,.64,1); }
.trophy b { font:700 15px/1.15 "Francois One", sans-serif; }
.trophy small { font-size:12px; line-height:1.3; color:var(--ink2); }
.trophy em { font-style:normal; font-size:12px; font-weight:700; color:var(--ink2); }
.trophy.won em { color:var(--good-t); }
.trophy .qbar { width:100%; height:8px; margin-top:2px; }

/* Mes signes, the full page (20 Nov) */
.sum { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.sum .stat b small { font-size:13px; color:var(--ink2); }
.mygrid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
/* nothing to show yet (28 Nov): Manu waves above the sentence, instead of one grey line on a blank page */
.mygrid .empty { grid-column:1 / -1; display:flex; flex-direction:column; align-items:center; gap:12px; padding:36px 20px 16px; font-size:15px; line-height:1.4; text-align:center; }
.mygrid .empty::before { content:""; width:140px; height:140px; background:url(img/mimi/wave.webp) center / contain no-repeat; }
.mycard { display:flex; flex-direction:column; gap:4px; background:var(--card); border-radius:20px; padding:8px 8px 10px; box-shadow:0 4px 0 var(--edge); min-width:0; }
/* 28 Nov: one edge colour for every card; the level is already on the tag and in the stars */
.mycard.due { outline:2px dashed var(--pink); outline-offset:-2px; }
.thumb { position:relative; display:block; width:100%; aspect-ratio:4 / 3; padding:0; border:0; border-radius:14px; overflow:hidden; background:#26364a; cursor:pointer; }
.thumb video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); display:block; }
.thumb.lefty video { transform:none; }
.thumb .lv { position:absolute; left:6px; top:6px; font:700 11px/1 "Francois One", sans-serif; padding:4px 8px; border-radius:99px; background:var(--card); color:var(--ink); box-shadow:0 2px 0 rgba(0,0,0,.15); }
.l1 .lv { background:color-mix(in oklab, #fff3c4 var(--tint), var(--card)); } .l3 .lv { background:color-mix(in oklab, #d8f5e1 var(--tint), var(--card)); color:var(--good-t); } .l5 .lv { background:var(--ink); color:var(--card); }
.mycard .w { font:700 17px/1.15 "Francois One", sans-serif; overflow-wrap:anywhere; margin-top:2px; }
.stars { display:flex; gap:1px; font-size:16px; line-height:1; color:#dfe6ef; }
.stars i { font-style:normal; } .stars i.on { color:#f5b41a; text-shadow:0 1px 0 #c98a0a; }
.mycard small { font-size:12px; line-height:1.3; color:var(--ink2); }
.mycard .when { font-weight:700; }
.mycard.due .when { color:var(--pink-t); }
.acts { display:flex; gap:6px; margin-top:4px; }
.acts .chipbtn { flex:1; padding:10px 6px; }
/* 28 Nov: filled pink is for the page's main button ("Réviser"); a card's own action is outlined, like "Réessayer" after a camera try */
.chipbtn.go-mini { color:var(--pink-t); border:1.5px solid var(--pink); }
@media (min-width:560px) { .mygrid { grid-template-columns:repeat(3, minmax(0, 1fr)); } }

/* the profile picture (20 Nov): a clay animal or a photo, always inside its circle; tap it to change it */
.pic { display:block; width:100%; height:100%; object-fit:cover; }
.pic.clay { object-fit:cover; }   /* square, transparent, shoulders on the bottom edge: the circle cuts it like a portrait */
.pic.mimi { object-fit:cover; }
.me-av { position:relative; border:0; padding:0; cursor:pointer; overflow:visible; }
.me-av .pic { border-radius:50%; overflow:hidden; }
.me-av .pen { position:absolute; right:2px; bottom:2px; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-size:17px;
  background:var(--card); box-shadow:0 3px 0 var(--edge); }
.me-av:active { transform:scale(.97); }
.me-av:focus-visible, .prof-pic:focus-visible, .claygrid button:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
button.prof-pic { border:0; padding:0; cursor:pointer; overflow:hidden; }
.prof-pic .pic { border-radius:50%; }
.claygrid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; --bg:#f3d9c4; }
.claygrid button { aspect-ratio:1; border:0; border-radius:50%; padding:0; overflow:hidden; cursor:pointer; background:var(--bg);
  box-shadow:0 0 0 3px var(--card), 0 4px 10px rgba(20,60,110,.14); transition:transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s, background .25s; }
.claygrid button img { width:100%; height:100%; object-fit:cover; display:block; }
.claygrid button[aria-pressed="true"] { box-shadow:0 0 0 3px var(--card), 0 0 0 6px var(--pink), 0 6px 14px rgba(20,60,110,.2); transform:scale(1.06); }
.bgrow { display:grid; grid-template-columns:repeat(6, 1fr); gap:10px; }
.bgrow button { aspect-ratio:1; border:0; border-radius:50%; padding:0; cursor:pointer; box-shadow:0 0 0 3px var(--card), 0 3px 8px rgba(20,60,110,.14); transition:transform .15s; }
.bgrow button[aria-pressed="true"] { box-shadow:0 0 0 3px var(--card), 0 0 0 6px var(--ink); transform:scale(1.08); }
.bgrow button:focus-visible { outline:3px solid var(--ink); outline-offset:5px; }
.avbox .pic { border-radius:50%; }
.tabav .pic { border-radius:50%; }

/* a short screen scrolls the page; it never squeezes its pieces (the round pictures went flat, 20 Nov) */
.panel-body > * { flex-shrink:0; }

/* Compte (account.js, off until it is set up): why an account, the Google button, this device and the account side by side */
.acct { display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:center; }
.acct > div { display:flex; flex-direction:column; gap:12px; }
.acct-mimi { align-self:center; width:120px; height:auto; }
.acct-why { list-style:none; margin:0; padding:6px 16px; background:var(--card); border-radius:20px; box-shadow:0 4px 0 var(--edge); text-align:left; }
.acct-why li { display:flex; align-items:center; gap:12px; padding:10px 0; font-size:14.5px; line-height:1.4; color:var(--ink2); }
.acct-why li + li { border-top:2px solid var(--edge-soft); }
.acct-why img { flex:none; width:38px; height:38px; object-fit:contain; }
.acct-why b { color:var(--ink); font-family:"Francois One", sans-serif; }
.gbtn { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; padding:14px; border:2px solid var(--edge-line); border-radius:16px; background:var(--card); color:var(--ink);
  font:600 17px/1 "Francois One", sans-serif; box-shadow:0 4px 0 var(--edge); cursor:pointer; }
.gbtn:active:not(:disabled) { transform:translateY(4px); box-shadow:0 1px 0 var(--edge); }
.gbtn:disabled { opacity:.55; cursor:default; }
.gbtn:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.acct .note { margin:0; }
.acct .plink { align-self:center; }
.acct-who { margin:0; font-size:15px; }
.acct-two { display:grid !important; grid-template-columns:1fr 1fr; gap:10px; }
.acct-row img { width:36px; height:36px; object-fit:contain; flex:none; }
.acct-row[data-acctstate="in"] b { color:var(--good-t); }
.acct .note.acct-oops { padding:10px 14px; border-radius:16px; background:color-mix(in oklab, #fff1e3 var(--tint), var(--card)); box-shadow:0 4px 0 color-mix(in oklab, #f0c79d var(--tint), var(--card)); color:var(--ink); }   /* a sign-in that failed */

/* Profil, calmer (21 Nov, ideas from Duolingo): the scene pale behind, one white card per group, three big numbers */
.panel.me { background:var(--paper); }
.me-card { display:flex; flex-direction:column; align-items:center; gap:12px; background:var(--card); border-radius:24px; padding:18px 16px 16px; box-shadow:0 4px 0 var(--edge); }
.me-card .go { margin:0; }
.me-card .wide-btn { box-shadow:0 4px 0 var(--edge); background:var(--fill); }
.me-since { margin:0; font-size:14.5px; font-weight:600; color:var(--ink2); text-align:center; }
.big3 .stat { padding:14px 6px 12px; gap:4px; animation:bounce-in .5s cubic-bezier(.34,1.56,.64,1) backwards; }
.big3 .stat:nth-child(2) { animation-delay:.07s; } .big3 .stat:nth-child(3) { animation-delay:.14s; }
.big3 .stat img { width:44px; height:44px; }
.big3 .stat b { font-size:30px; }
.big3 .stat small { font-size:12.5px; }
.big3 .stat.zero b { color:#b9c6d6; }
.big3 .stat.zero small { color:var(--pink-t); }
.me-more { background:var(--card); border-radius:18px; box-shadow:0 4px 0 var(--edge); }
.me-more summary { cursor:pointer; list-style:none; padding:13px 16px; font:700 16px/1 "Francois One", sans-serif; display:flex; justify-content:space-between; align-items:center; }
.me-more summary::-webkit-details-marker { display:none; }
.me-more summary::after { content:"›"; display:inline-block; font-size:24px; color:var(--ink2); transition:rotate .2s; }
.me-more[open] summary::after { rotate:90deg; }
.me-more summary:focus-visible { outline:3px solid var(--ink); outline-offset:3px; border-radius:18px; }
.me-more ul { list-style:none; margin:0; padding:0 16px 8px; }
.me-more li { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:2px solid var(--edge-soft); font-size:14.5px; font-weight:600; }
.me-more li img { width:32px; height:32px; object-fit:contain; flex:none; }
.me-more li span { flex:1; }
.me-more li b { font:700 20px/1 "Francois One", sans-serif; }
.me-more li.zero span { color:var(--ink2); } .me-more li.zero b { color:#b9c6d6; }
@media (prefers-reduced-motion: reduce) { .big3 .stat { animation:none; } .me-more summary::after { transition:none; } }

/* LSFFacile+ (plus.js, 21 Nov): the lessons stay free; this page offers the extras */
.plus { display:flex; flex-direction:column; gap:12px; text-align:center; }
.plus-mimi { align-self:center; width:120px; height:auto; }
.plus-lead { margin:0; padding:12px 16px; border-radius:20px; background:var(--card); box-shadow:0 4px 0 var(--edge); font-size:15.5px; line-height:1.45; }
.plus-perks { list-style:none; margin:0; padding:4px 16px; border-radius:20px; background:var(--card); box-shadow:0 4px 0 var(--edge); text-align:left; }
.plus-perks li { display:flex; align-items:center; gap:12px; padding:10px 0; font-size:14px; line-height:1.4; color:var(--ink2); }
.plus-perks li + li { border-top:2px solid var(--edge-soft); }
.plus-perks img { flex:none; width:40px; height:40px; object-fit:contain; }
.plus-perks b { display:block; color:var(--ink); font:700 15.5px/1.25 "Francois One", sans-serif; }
[data-plusbody] { display:flex; flex-direction:column; gap:12px; }   /* 28 Nov: its pieces (the plans, the button, the small print) touched each other */
.plus-plans { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.plus-plan { position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; padding:18px 8px 12px; border:3px solid var(--card); border-radius:20px; background:var(--card);
  color:var(--ink); font:inherit; cursor:pointer; box-shadow:0 4px 0 var(--edge); transition:border-color .15s, transform .15s; }
.plus-plan b { font:700 26px/1.05 "Francois One", sans-serif; }
.plus-plan span { font-size:14px; color:var(--ink2); }
.plus-plan small { font-size:12px; white-space:nowrap; color:var(--pink-t); font-weight:600; }
.plus-plan i { position:absolute; top:-11px; left:50%; translate:-50% 0; white-space:nowrap; padding:3px 9px; border-radius:99px; background:var(--pink); color:#fff; font:700 11px/1.2 "Francois One", sans-serif; font-style:normal; }
.plus-plan[aria-pressed="true"] { border-color:var(--pink); box-shadow:0 4px 0 var(--pink-d); transform:translateY(-2px); }
.plus-plan:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.plus .go { margin:0; }
.plus-soon { margin:0; padding:12px 16px; border-radius:20px; background:color-mix(in oklab, #fdeef3 var(--tint), var(--card)); font-size:15px; line-height:1.45; }
.plus-soon b { color:#c6396b; }
.plus-wait { display:flex; flex-direction:column; gap:8px; }
.plus-wait label { font-weight:700; font-size:15px; }
.plus-wait input { font:inherit; font-size:17px; padding:12px 14px; border-radius:16px; border:2px solid var(--edge-line); background:var(--card); color:var(--ink); }
.plus-wait input:focus { outline:none; border-color:#c6396b; }
.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; }
.plus-small { margin:0; font-size:13px; color:var(--ink2); }
.plus-small a { color:var(--ink); font-weight:600; }
.plus-have { display:flex; flex-direction:column; gap:4px; padding:14px 16px; border-radius:20px; background:color-mix(in oklab, #e6f8ec var(--tint), var(--card)); box-shadow:0 5px 0 var(--edge); }
.plus-have b { font:700 18px/1.2 "Francois One", sans-serif; }
.plus .note.acct-oops { padding:10px 14px; border-radius:16px; background:color-mix(in oklab, #fff1e3 var(--tint), var(--card)); box-shadow:0 4px 0 color-mix(in oklab, #f0c79d var(--tint), var(--card)); color:var(--ink); }
.plus-row img { width:36px; height:36px; object-fit:contain; flex:none; }
.bgrow button.locked { position:relative; opacity:.55; }
.bgrow button.locked::after { content:"+"; position:absolute; right:-4px; top:-4px; width:18px; height:18px; border-radius:50%; background:var(--pink); color:#fff;
  font:700 13px/18px "Francois One", sans-serif; text-align:center; box-shadow:0 0 0 2px var(--card); }

/* LSFFacile+ thank-you (screens.js thanks(), 21 Nov): once, after a purchase. Mimi's beach scene, the title in its sky,
   then what LSFFacile+ gives, each with a button. The cards come in one after another, unless motion is reduced. */
/* full screen, above the tab bar: the scene edge to edge with the ✕ in its sky, then a sheet rising over the sand */
.panel.thanks-page { z-index:85; display:block; background:var(--page); }
.panel.thanks-page > .panel-top { position:absolute; top:0; left:50%; translate:-50% 0; z-index:2; pointer-events:none; }
.panel.thanks-page > .panel-top .pbtn { pointer-events:auto; }
.panel.thanks-page > .panel-top div { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }   /* the title stays for screen readers */
.panel.thanks-page > .panel-body { height:100%; padding:0; gap:0; }
.thanks { display:flex; flex-direction:column; }
.thanks-scene { position:relative; flex:none; height:min(60svh, 500px); background:color-mix(in oklab, #bfe0f0 var(--tint), var(--card)); }
.thanks-scene video, .thanks-scene img { display:block; width:100%; height:100%; object-fit:cover; object-position:45% 60%; }
.thanks-title { position:absolute; inset:calc(64px + env(safe-area-inset-top)) 6% auto; margin:0; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.thanks-title b { font:700 clamp(34px, 11vw, 48px)/1.05 "Francois One", sans-serif; color:var(--ink); text-shadow:0 3px 0 #fff, 0 0 18px rgba(255,255,255,.9);
  animation:thanks-pop .7s .15s cubic-bezier(.34,1.56,.64,1) both; }
.thanks-title span { padding:5px 12px; border-radius:99px; background:rgba(255,255,255,.88); font-size:14px; line-height:1.35; color:var(--ink); animation:thanks-in .5s .5s both; }
.thanks-sheet { position:relative; margin-top:-28px; padding:18px 16px calc(24px + env(safe-area-inset-bottom)); border-radius:28px 28px 0 0; background:var(--page);
  box-shadow:0 -6px 18px rgba(120,80,30,.12); display:flex; flex-direction:column; gap:12px; }
.panel.thanks-page ~ .panel { z-index:86; }   /* Mon profil, opened from it, goes on top */
.panel.thanks-page ~ .confetti { z-index:90; }
@keyframes thanks-pop { from { opacity:0; transform:scale(.4) rotate(-6deg); } }
.thanks-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.thanks-list li { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:20px; background:var(--card); box-shadow:0 4px 0 var(--edge);
  font-size:14px; line-height:1.4; color:var(--ink2); animation:thanks-in .45s cubic-bezier(.2,.8,.3,1.2) both; }
.thanks-list li { animation-delay:.6s; }
.thanks-list li:nth-child(2) { animation-delay:.72s; }
.thanks-list li:nth-child(3) { animation-delay:.84s; }
.thanks-list img { flex:none; width:44px; height:44px; object-fit:contain; }
.thanks-list div { flex:1; display:flex; flex-direction:column; gap:2px; }
.thanks-list b { color:var(--ink); font:700 16px/1.25 "Francois One", sans-serif; }
.thanks-list button { align-self:flex-start; margin:8px 0 0; width:auto; padding-inline:18px; }
.thanks-list .soon { background:var(--fill); box-shadow:0 5px 0 var(--edge); }
.thanks-plan { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 16px; border-radius:20px; background:color-mix(in oklab, #e6f8ec var(--tint), var(--card)); box-shadow:0 5px 0 var(--edge); text-align:center; }
.thanks-plan b { font:700 16px/1.25 "Francois One", sans-serif; }
.thanks-plan span { font-size:14px; color:var(--ink2); }
.thanks .plink { align-self:center; }
.thanks .note:empty { display:none; }
.thanks .note.acct-oops { padding:10px 14px; border-radius:16px; background:color-mix(in oklab, #fff1e3 var(--tint), var(--card)); box-shadow:0 4px 0 color-mix(in oklab, #f0c79d var(--tint), var(--card)); color:var(--ink); }
@keyframes thanks-in { from { opacity:0; transform:translateY(14px) scale(.97); } }
.bgrow.glow { border-radius:18px; animation:bg-glow 1.6s ease-out 2; }
@keyframes bg-glow { 0%, 100% { box-shadow:0 0 0 0 rgba(198,57,107,0); } 40% { box-shadow:0 0 0 8px rgba(198,57,107,.28); } }
@media (prefers-reduced-motion: reduce) { .thanks-list li, .thanks-title b, .thanks-title span, .bgrow.glow { animation:none; } }

/* Trophées: the day's quests on top (27 Nov: Quêtes left the tab bar for Épeler) */
.quests-btn { display:flex; align-items:center; gap:8px; justify-content:center; }
.quests-btn b { margin-left:auto; font:700 15px "Francois One", sans-serif; }

/* Épeler (27 Nov 2026): the open alphabet model on the camera (spell.js) */
.sp-modes { display:flex; gap:6px; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:4px; align-self:center; }
.sp-modes button { font:600 15px "Francois One", sans-serif; color:var(--ink); background:none; border:0; border-radius:999px; padding:8px 16px; cursor:pointer; }
.sp-modes button[aria-pressed="true"] { background:var(--ink); color:var(--card); }
.sp-name { display:flex; flex-direction:column; gap:10px; }
.sp-name[hidden] { display:none; }   /* 28 Nov: "display:flex" above beat the hidden attribute, so the word box showed in "Lettre libre" too */
.sp-name [hidden] { display:none; }   /* Chrono hides the word input; .search's display must not beat it */
.sp-chrono { display:grid; grid-template-columns:1fr auto; grid-template-areas:"t a" "b a"; align-items:center; gap:0 12px; background:var(--card); border-radius:18px; padding:10px 16px; box-shadow:0 4px 0 var(--edge); }
.sp-time { grid-area:t; font:700 40px/1 "Francois One", sans-serif; color:var(--ink); font-variant-numeric:tabular-nums; }
.sp-time.won { color:#4fa864; animation:bounce-in .5s cubic-bezier(.34,1.56,.64,1); }
.sp-best { grid-area:b; color:var(--ink2); font-weight:700; }
.sp-again { grid-area:a; font:600 15px "Francois One", sans-serif; color:var(--card); background:var(--ink); border:0; border-radius:999px; padding:10px 16px; cursor:pointer; }
.sp-word { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; min-height:46px; }
.sp-word span { width:40px; height:46px; display:grid; place-items:center; border-radius:12px; background:var(--card); box-shadow:0 4px 0 var(--edge);
  font:700 24px "Francois One", sans-serif; color:var(--ink2); }
.sp-word span.now { outline:3px solid var(--ink); color:var(--ink); }
.sp-word span.done { background:#7ccf8e; color:#fff; box-shadow:0 4px 0 #4fa864; animation:bounce-in .5s cubic-bezier(.34,1.56,.64,1); }
.sp-cam { position:relative; aspect-ratio:4 / 3; border-radius:22px; overflow:hidden; background:#26364a; box-shadow:0 4px 0 var(--edge); }
.sp-cam video, .sp-cam canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.sp-idle { position:absolute; inset:0; display:grid; place-items:center; }
.sp-out { display:grid; grid-template-columns:auto 1fr; grid-template-areas:"l s" "l b"; align-items:center; gap:2px 16px; background:var(--card); border-radius:22px;
  padding:12px 18px; box-shadow:0 4px 0 var(--edge); }
.sp-letter { grid-area:l; font:700 88px/1 "Francois One", sans-serif; color:var(--ink); min-width:70px; text-align:center; }
.sp-letter.idle { color:#d9d0bf; }   /* no hand in view: a pale dot, not a black one (spell.js) */
.sp-sure { grid-area:s; font-weight:700; color:var(--ink2); min-height:1.4em; }
.sp-bars { grid-area:b; }
.sp-bar { display:grid; grid-template-columns:20px 1fr 44px; gap:8px; align-items:center; font:700 14px "Francois One", sans-serif; margin:3px 0; min-height:20px; }
.sp-bar i { height:10px; border-radius:6px; background:var(--track); overflow:hidden; }
.sp-bar i b { display:block; height:100%; background:var(--ink); border-radius:6px; }
.sp-bar em { font-style:normal; text-align:right; color:var(--ink2); }
.sp-idle .go { width:auto; padding-left:28px; padding-right:28px; }

/* Réglages → Thème (28 Nov, dark mode): Auto, Clair, Sombre */
.theme-row { cursor:default; flex-wrap:wrap; }
.theme-row > div:first-child { flex:1 1 100%; }
.seg { flex:1 1 100%; display:flex; gap:4px; padding:4px; border-radius:14px; background:var(--fill); }
.seg button { flex:1; border:0; border-radius:10px; padding:8px 12px; font:600 14px/1 "Francois One", sans-serif; color:var(--ink2); background:none; cursor:pointer; }
.seg button[aria-pressed="true"] { background:var(--card); color:var(--ink); box-shadow:0 2px 0 var(--edge); }
