/* Marqué theme (refonte 2026-11, mockup E, audit 100/100): only loaded when core.SiteSettings.ui_theme = "marque".
   Everything is scoped to [data-ui="marque"] so Palmeraie stays byte for byte as it is. See docs/design-system.md, Themes.
   The look: 3px ink outlines, hard offset shadows (no blur), a few tilted objects, dome banners, dunes and a palm. */

/* Tokens. The dark rules repeat data-ui so they beat both the plain dark rules of tokens.css and the light block below. */
:root[data-ui="marque"]{
  --bg:#FFF6E0; --ink:#1E1B16; --line:#1E1B16; --muted:#4A453D; --sunken:#F7EBCB;
  --locked:#FFFFFF; --locked-edge:#1E1B16; --locked-ink:#5E5647; --track:#F3DDA8;
  --o:#1E1B16; --bw:3px; --bw-2:2px;
  --sh-xs:2px 3px 0 var(--o); --sh-sm:3px 4px 0 var(--o); --sh-md:4px 5px 0 var(--o); --sh-lg:5px 6px 0 var(--o);
  --dune-back:#F3DDA8; --dune-front:#ECCB8E; --ornament:#1F5C2A; --tab-on:#DDF3CF; --sheet-ok:#BDEBA4; --sheet-err:#F9C9C2; --tile-orange:#FFE2C7; --tile-on-ink:#1F5C2A; --tile-orange-ink:#8A4308;
  --tabs-h:80px;
  /* Logo v2 (templates/_logo_marque_*.html, tools/brand/build.py). */
  --logo-ink:#1E1B16; --logo-face:#2E7D3A; --logo-shade:#1F5C2A; --logo-gold:#F2B705; --logo-page:#FFF6E0; --logo-cast:#1E1B16; --logo-word:#1E1B16;
}
@media (prefers-color-scheme:dark){
  :root[data-ui="marque"]:not([data-theme="light"]){
    --bg:#262017; --surface:#3B3328; --sunken:#2F281E; --ink:#FFF1D6; --line:#0B0906; --muted:#D6CAB2;
    --locked:#3B3328; --locked-edge:#0B0906; --locked-ink:#B9AD93; --track:#4A4134; --o:#0B0906;
    --dune-back:#6E5A36; --dune-front:#5C4A2B; --ornament:#174A22; --tab-on:#21452A; --sheet-ok:#1F4A26; --sheet-err:#4A221C; --tile-orange:#4D3320; --tile-on-ink:#93D69A; --tile-orange-ink:#FFB070;
    --logo-ink:#FFF1D6; --logo-page:#3B3328; --logo-cast:#0B0906; --logo-word:#FFF1D6;
  }
}
:root[data-ui="marque"][data-theme="dark"]{
  --bg:#262017; --surface:#3B3328; --sunken:#2F281E; --ink:#FFF1D6; --line:#0B0906; --muted:#D6CAB2;
  --locked:#3B3328; --locked-edge:#0B0906; --locked-ink:#B9AD93; --track:#4A4134; --o:#0B0906;
  --dune-back:#6E5A36; --dune-front:#5C4A2B; --ornament:#174A22; --tab-on:#21452A; --sheet-ok:#1F4A26; --sheet-err:#4A221C; --tile-orange:#4D3320; --tile-on-ink:#93D69A; --tile-orange-ink:#FFB070;
    --logo-ink:#FFF1D6; --logo-page:#3B3328; --logo-cast:#0B0906; --logo-word:#FFF1D6;
}

/* Buttons: an outline and a hard shadow that the press removes (the button moves onto its shadow). */
[data-ui="marque"] .btn{border:var(--bw) solid var(--o);box-shadow:var(--sh-lg)}
[data-ui="marque"] .btn:active{transform:translate(5px,6px);box-shadow:0 0 0 transparent}
[data-ui="marque"] .btn-ghost{background:var(--surface);color:var(--ink);box-shadow:var(--sh-md)}
[data-ui="marque"] .btn-gold{background:var(--accent);color:#1E1B16;box-shadow:var(--sh-md)}
[data-ui="marque"] .btn-flat{border-color:transparent;box-shadow:none;color:var(--primary-text)}
[data-ui="marque"] .btn-flat:active{transform:none}
[data-ui="marque"] .btn-danger{box-shadow:var(--sh-md)}
[data-ui="marque"] .btn:disabled,[data-ui="marque"] .btn[aria-disabled="true"]{background:var(--surface);color:var(--locked-text);border-style:dashed;box-shadow:none;transform:none}

/* Top bar: no rule under it, the counters are outlined chips (streak orange, coins and XP gold). */
[data-ui="marque"] .top{border-bottom:0}
[data-ui="marque"] .stats .stat{height:44px;padding:0 10px;border:var(--bw) solid var(--o);border-radius:var(--r-sm);background:var(--surface);box-shadow:var(--sh-sm);
  color:var(--ink);font-family:var(--f-display);font-size:17px}
[data-ui="marque"] .stats .stat[data-stat="streak"]{background:var(--flame);color:#1E1B16}
[data-ui="marque"] .stats .stat[data-stat="dinars"],[data-ui="marque"] .stats .stat[data-stat="xp"]{background:var(--accent);color:#1E1B16}
[data-ui="marque"] .stats .stat[data-stat] i{color:#1E1B16}
[data-ui="marque"] .stats .stat.is-off[data-stat="streak"]{background:var(--surface);color:var(--ink)}
[data-ui="marque"] .stats .stat.is-off[data-stat="streak"] i{color:var(--locked-ink)}
[data-ui="marque"] .stats a.stat:active{transform:translate(3px,4px);box-shadow:none}
/* Chips packed together as in mockup E: language alone on the left on phones, last of the group on desktop. */
[data-ui="marque"] .stats{justify-content:flex-end;gap:10px}
[data-ui="marque"] .top .stats .langmenu{margin-right:auto}
@media (min-width:700px){[data-ui="marque"] .aside .stats{gap:10px}[data-ui="marque"] .aside .stats .langmenu{order:9}}

/* Tab bar: a floating outlined card with labels; the current tab is a light green tile. */
[data-ui="marque"] .tabs{inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px)) 12px;height:68px;padding:5px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;
  background:var(--surface);border:var(--bw) solid var(--o);border-radius:20px;box-shadow:var(--sh-lg)}
[data-ui="marque"] .tabs .tab{width:auto;height:100%;display:flex;flex-direction:column;justify-content:center;gap:3px;border:var(--bw-2) solid transparent;border-radius:14px;
  font-size:20px;color:var(--muted)}
[data-ui="marque"] .tabs .tab .label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 11px/1 var(--f-body);letter-spacing:.02em}
[data-ui="marque"] .tabs .tab[aria-current="page"]{background:var(--tab-on);border-color:var(--o);color:var(--ink)}
[data-ui="marque"] .tab[aria-current="page"] i{color:var(--primary-text)}

/* Desktop rail: an outlined column; the current entry gets the same green tile. */
@media (min-width:700px){
  [data-ui="marque"] .side{border-right:var(--bw) solid var(--o)}
  [data-ui="marque"] .side .tab{border:var(--bw-2) solid transparent;color:var(--muted)}
  [data-ui="marque"] .side .tab[aria-current="page"]{background:var(--tab-on);border-color:var(--o);color:var(--ink);box-shadow:var(--sh-xs)}
}

/* Cards (right column, profile, shop, lesson intro): outlined, medium shadow. */
[data-ui="marque"] .panel,[data-ui="marque"] .up-next,[data-ui="marque"] .intro-card{box-shadow:var(--sh-md)}
[data-ui="marque"] .meter{height:16px;border:var(--bw-2) solid var(--o);background:var(--surface)}
[data-ui="marque"] .chips li{background:var(--surface);border:var(--bw-2) solid var(--o);box-shadow:var(--sh-xs)}
@media (min-width:700px){[data-ui="marque"] .tabs{display:none}}

/* Map banner (mockup E): a tall dome, everything centred, the Arabic heading large, the exam a gold sticker under the title.
   Never tilted: the banners stack and slide over each other, a tilt would let the pinned one peek out (tools/check_map.py).
   No min-height here: map.js gives every open banner the tallest one's height (--unit-h). The skirt starts under the shadow. */
[data-ui="marque"] .unit{flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;padding:30px 22px 14px;text-align:center;
  border:var(--bw) solid var(--o);border-radius:150px 150px 22px 22px;box-shadow:var(--sh-lg)}
[data-ui="marque"] .unit::before{content:"";position:absolute;inset:7px;border:var(--bw-2) solid var(--ornament);border-radius:143px 143px 16px 16px;pointer-events:none}
[data-ui="marque"] .unit > *{position:relative}
[data-ui="marque"] .unit::after{top:calc(100% + 9px)}
[data-ui="marque"] .unit-title{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;max-width:100%}
[data-ui="marque"] .unit-title small{flex-direction:column;gap:2px;margin:0}
[data-ui="marque"] .unit-title .kick{font:800 12px/1.2 var(--f-body);letter-spacing:.12em;color:#FFF6D6}
[data-ui="marque"] .unit-title .unit-ar{margin:0;font:700 32px/1.3 var(--f-ar-ui)}
[data-ui="marque"] .unit h2{font:700 15px/1.25 var(--f-body)}
[data-ui="marque"] [data-book="2"] .unit:not(.is-locked){box-shadow:var(--sh-lg)}
[data-ui="marque"] [data-book="2"] .unit:not(.is-locked)::before{border-color:var(--book-2-dark)}
[data-ui="marque"] .unit.is-locked{border-style:dashed;box-shadow:none}
[data-ui="marque"] .unit.is-locked::before{display:none}
[data-ui="marque"] .unit.is-locked .kick{color:inherit}
[data-ui="marque"] .unit .guide{margin-top:8px;border:var(--bw) solid var(--o);background:var(--surface);color:var(--ink);box-shadow:var(--sh-sm)}
[data-ui="marque"] .unit .guide[data-exam]{width:auto;height:44px;padding:0 16px;display:flex;align-items:center;background:var(--accent);color:#1E1B16;transform:rotate(3deg)}
[data-ui="marque"] .unit .guide[data-exam] i{display:none}
[data-ui="marque"] .unit .guide[data-exam] span{font:800 13px/1 var(--f-body);letter-spacing:.06em}
[data-ui="marque"] .unit .guide.is-ready{background:var(--accent);color:#1E1B16}
[data-ui="marque"] .unit .guide:active{transform:translate(3px,4px) rotate(3deg);box-shadow:none}
/* Long Arabic headings wrap inside the dome instead of running out of it (founder 2026-11-04, lessons 21 and 23). */
[data-ui="marque"] .unit-title .unit-ar{white-space:normal;text-wrap:balance;overflow-wrap:anywhere}
/* An exam not open yet: a white sticker, not the gold one faded over the green (it read as olive). */
[data-ui="marque"] .unit .guide[data-exam][aria-disabled="true"]{opacity:1;background:var(--surface);color:var(--muted)}
/* Phone: a low arch instead of the tall dome, it took a third of the screen (founder 2026-11-04). */
@media (max-width:699px){
  [data-ui="marque"] .unit{padding:16px 18px 12px;border-radius:50% 50% 20px 20px / 64px 64px 20px 20px}
  [data-ui="marque"] .unit::before{border-radius:50% 50% 14px 14px / 57px 57px 14px 14px}
  [data-ui="marque"] .unit-title .kick{font-size:11px}
  [data-ui="marque"] .unit-title .unit-ar{font-size:clamp(21px,6.6vw,26px);line-height:1.35}
  [data-ui="marque"] .unit h2{font-size:14px}
  [data-ui="marque"] .unit .guide{margin-top:6px}
  [data-ui="marque"] .unit .guide[data-exam]{padding:0 14px}
  [data-ui="marque"] .unit .guide[data-exam] span{font-size:12px}
}
@media (min-width:700px){
  [data-ui="marque"] .unit{width:100%;max-width:520px;margin-left:auto;margin-right:auto;padding:60px 130px 18px;border-radius:50% 50% 24px 24px / 150px 150px 24px 24px}
  [data-ui="marque"] .unit::before{border-radius:50% 50% 17px 17px / 143px 143px 17px 17px}
  [data-ui="marque"] .unit .guide[data-exam]{position:absolute;right:26px;bottom:22px;margin:0;transform:rotate(4deg)}
  [data-ui="marque"] .unit .guide[data-exam]:active{transform:translate(3px,4px) rotate(4deg)}
}

/* Steps (mockup E): outlined discs with a hard shadow, tilted one way then the other, joined by an ink dashed line.
   Gold = done, green = current (larger, no ring), white = open, dashed white = locked. The numeral turns with its disc. */
[data-ui="marque"] .path li{position:relative;--dy:99px}
[data-ui="marque"] .path li:nth-child(odd){--tilt:-7deg}
[data-ui="marque"] .path li:nth-child(even){--tilt:7deg}
/* Mockup E zigzag, theme only: centre, left 70, centre, right 80, again. --px is the previous node's offset; the
   inline --x of the palmeraie wave is overridden (!important beats inline), the button inherits it. Node 4n (right) gets its bubble on the left. */
[data-ui="marque"] .path li{--x:0px!important;--px:80px!important}
[data-ui="marque"] .path li:first-child{--px:0px!important}
[data-ui="marque"] .path li:nth-child(4n+2){--x:-70px!important;--px:0px!important}
[data-ui="marque"] .path li:nth-child(4n+3){--px:-70px!important}
[data-ui="marque"] .path li:nth-child(4n){--x:80px!important;--px:0px!important}
[data-ui="marque"] .path li .node{--x:inherit!important}
/* the connector runs from this disc's edge to the previous one's (centre to centre minus a radius at each end), under
   the discs. Stopping at the edges keeps it off the previous disc when the open step is lifted above the banners
   (app.css li:has(.pop) z-index), which makes that step a stacking context painted over the earlier steps. */
[data-ui="marque"] .path li+li::before{content:"";position:absolute;z-index:-1;left:calc(50% + var(--x,0px));top:35px;height:0;
  width:calc(hypot(calc(var(--px,0px) - var(--x,0px)),var(--dy)) - 84px);border-top:var(--bw) dashed var(--o);transform-origin:0 0;
  transform:rotate(atan2(calc(-1 * var(--dy)),calc(var(--px,0px) - var(--x,0px)))) translateX(42px);pointer-events:none}
[data-ui="marque"] .path li.is-current{margin:14px 0}
[data-ui="marque"] .path li.is-current,[data-ui="marque"] .path li.is-current+li{--dy:113px}
[data-ui="marque"] .node::before,[data-ui="marque"] .node .face::before,[data-ui="marque"] .node .face::after{display:none}
[data-ui="marque"] .node .face{box-sizing:border-box;border:var(--bw) solid var(--o);box-shadow:var(--sh-md);transform:rotate(var(--tilt,0deg))}
[data-ui="marque"] .node .n{padding-bottom:4px;font-size:34px;color:#1E1B16;-webkit-text-stroke:0;text-shadow:none;transform:rotate(var(--tilt,0deg))}
[data-ui="marque"] .node:active .face{transform:translate(4px,5px) rotate(var(--tilt,0deg));box-shadow:none}
[data-ui="marque"] .node:active .n{transform:translate(4px,5px) rotate(var(--tilt,0deg))}
[data-ui="marque"] .node[data-state="current"]{--tilt:-6deg}
[data-ui="marque"] .node[data-state="current"] .face{left:-7px;top:-7px;width:84px;height:84px;box-shadow:var(--sh-lg)}
[data-ui="marque"] .node[data-state="current"] .n{font-size:40px;color:#fff}
[data-ui="marque"] .ring{display:none}
[data-ui="marque"] .node[data-state="open"]{--face:var(--surface)}
[data-ui="marque"] .node[data-state="open"] .n{color:var(--primary-text)}
[data-ui="marque"] .node[data-state="locked"]{--face:var(--surface)}
[data-ui="marque"] .node[data-state="locked"] .face{border-style:dashed;box-shadow:none}
[data-ui="marque"] .node[data-state="locked"] .n{color:var(--locked-ink)}
/* the jar is the outline jar of the mockup (static/img/marque-jar.svg as a mask, so it takes the numeral colour) */
[data-ui="marque"] .node.jar .n{color:#1E1B16}
[data-ui="marque"] .node.jar .n i{display:none}
[data-ui="marque"] .node.jar .n::before{content:"";width:34px;height:34px;background:currentColor;-webkit-mask:url("../img/marque-jar.9972f3688266.svg") center/contain no-repeat;mask:url("../img/marque-jar.9972f3688266.svg") center/contain no-repeat}
[data-ui="marque"] .node.jar[data-state="locked"] .n{color:var(--ink)}
[data-ui="marque"] .node.jar[data-state="locked"]{--face:var(--surface)}

/* "Commencer": a tilted sticker beside the current disc, its tail pointing at it (on the left side when the disc sits right). */
[data-ui="marque"] .start{left:96px;top:24px;bottom:auto;transform:rotate(6deg);border:var(--bw) solid var(--o);border-radius:10px;padding:6px 10px;
  color:var(--ink);box-shadow:var(--sh-sm)}
[data-ui="marque"] .start::before{left:-9px;top:50%;width:12px;height:12px;margin-top:-7px;box-sizing:border-box;border:0;border-left:var(--bw) solid var(--o);
  border-bottom:var(--bw) solid var(--o);background:var(--surface);transform:rotate(45deg)}
[data-ui="marque"] .start::after{display:none}
[data-ui="marque"] .path li:nth-child(4n) .start{left:auto;right:96px;transform:rotate(-6deg)}
[data-ui="marque"] .path li:nth-child(4n) .start::before{left:auto;right:-9px;transform:rotate(225deg)}
@media (prefers-reduced-motion:no-preference){
  [data-ui="marque"] .start{animation-name:marque-bob}
  [data-ui="marque"] .path li:nth-child(4n) .start{animation-name:marque-bob-l}
}
@keyframes marque-bob{50%{transform:translateY(-4px) rotate(6deg)}}
@keyframes marque-bob-l{50%{transform:translateY(-4px) rotate(-6deg)}}
[data-ui="marque"] .pop{border:var(--bw) solid var(--o);box-shadow:var(--sh-lg)}
[data-ui="marque"] .pop.is-locked,[data-ui="marque"] .pop.is-done{border-color:var(--o);box-shadow:var(--sh-lg)}
[data-ui="marque"] .pop::before{top:-12px;margin-left:-11px;border-width:0 11px 12px;border-bottom-color:var(--o)}
[data-ui="marque"] .pop::after{content:"";position:absolute;top:-7px;left:var(--arrow,50%);margin-left:-7px;border:7px solid transparent;border-top:0;border-bottom-color:var(--pop-bg)}
[data-ui="marque"] .pop .btn{border-color:var(--o);color:var(--primary-text);box-shadow:var(--sh-md)}
[data-ui="marque"] .pop.is-done .btn{color:#1E1B16}
[data-ui="marque"] .pop.is-locked .btn{background:var(--surface);color:var(--ink);box-shadow:var(--sh-md)}
[data-ui="marque"] .pop.is-locked .btn.btn-gold{background:var(--accent);color:#1E1B16;box-shadow:var(--sh-md)}

/* Dunes and a palm fixed at the bottom of the map screen, behind the path (mockup E). Files: the CSP allows 'self' images. */
[data-ui="marque"] body:has([data-map])::before{content:"";position:fixed;z-index:-1;left:0;right:0;bottom:0;height:180px;pointer-events:none;
  background:url("../img/marque-palm.45509bab0d2c.svg") right 12px top 4px/76px 108px no-repeat,url("../img/marque-dunes-phone.63b0c9b1b748.svg") 0 0/100% 100% no-repeat}
@media (min-width:700px){[data-ui="marque"] body:has([data-map])::before{height:260px;
  background:url("../img/marque-palm.45509bab0d2c.svg") right 40px top 10px/90px 130px no-repeat,url("../img/marque-dunes-wide.e6a65777f1a0.svg") 0 0/100% 100% no-repeat}}
@media (prefers-color-scheme:dark){:root[data-ui="marque"]:not([data-theme="light"]) body:has([data-map])::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-dunes-phone-dark.3591f3579610.svg")}}
:root[data-ui="marque"][data-theme="dark"] body:has([data-map])::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-dunes-phone-dark.3591f3579610.svg")}
@media (min-width:700px) and (prefers-color-scheme:dark){:root[data-ui="marque"]:not([data-theme="light"]) body:has([data-map])::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-dunes-wide-dark.9c417c6c2283.svg")}}
@media (min-width:700px){:root[data-ui="marque"][data-theme="dark"] body:has([data-map])::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-dunes-wide-dark.9c417c6c2283.svg")}}

/* Player top: an outlined quit box, an outlined progress bar, the combo as a small tilted sticker once it counts. */
[data-ui="marque"] .quit{margin-left:0;border:var(--bw) solid var(--o);border-radius:var(--r-sm);background:var(--surface);color:var(--ink);font-size:20px;box-shadow:var(--sh-sm)}
[data-ui="marque"] .quit:active{transform:translate(3px,4px);box-shadow:none}
[data-ui="marque"] .progress{height:22px;border:var(--bw) solid var(--o);background:var(--surface)}
[data-ui="marque"] .progress i{border-radius:0;border-right:var(--bw) solid var(--o)}
[data-ui="marque"] .progress i::after{display:none}
[data-ui="marque"] .progress-count{color:var(--ink)}
[data-ui="marque"] .combo{padding:4px 8px;border:var(--bw) solid var(--o);border-radius:8px;background:var(--surface);box-shadow:var(--sh-xs)}
[data-ui="marque"] .combo:not(.is-off){background:var(--flame);color:#1E1B16;transform:rotate(6deg)}
[data-ui="marque"] .combo:not(.is-off) i,[data-ui="marque"] .combo.is-hot{color:#1E1B16}

/* Exercise: the kind is a gold sticker; tiles, options and keys are outlined with a hard shadow. */
[data-ui="marque"] .ex-kicker{align-self:flex-start;padding:5px 10px;border:var(--bw) solid var(--o);border-radius:8px;background:var(--accent);color:#1E1B16;box-shadow:var(--sh-xs);transform:rotate(-4deg);margin-bottom:10px}
[data-ui="marque"] .bubble,[data-ui="marque"] .letters,[data-ui="marque"] .intro-items li{box-shadow:var(--sh-sm)}
[data-ui="marque"] .say{border:var(--bw) solid var(--o);background:var(--surface);color:var(--ink);box-shadow:var(--sh-sm)}
[data-ui="marque"] .say:active{transform:translate(3px,4px);box-shadow:none}
[data-ui="marque"] .bubble .say{box-shadow:var(--sh-xs)}
[data-ui="marque"] .opt{box-shadow:var(--sh-md)}
[data-ui="marque"] .opt kbd{border-color:var(--o);border-width:var(--bw-2)}
/* chosen = a gold tint, never the green of a right answer; right and wrong come after it so they win once checked */
[data-ui="marque"] .opt[aria-checked="true"]{border-color:var(--o);background:color-mix(in srgb,var(--accent) 24%,var(--surface));box-shadow:var(--sh-md)}
[data-ui="marque"] .opt[aria-checked="true"] kbd{border-color:var(--o);background:var(--accent);color:#1E1B16}
[data-ui="marque"] .opt.is-right{border-color:var(--o);background:var(--ok-bg);box-shadow:var(--sh-md)}
[data-ui="marque"] .opt.is-wrong{border-color:var(--o);background:var(--err-bg);box-shadow:var(--sh-md)}
[data-ui="marque"] .word{min-height:56px;border-radius:14px;box-shadow:var(--sh-md);color:var(--ink)}
[data-ui="marque"] .word:nth-child(3n+1){transform:rotate(-2deg)}
[data-ui="marque"] .word:nth-child(3n){transform:rotate(2deg)}
[data-ui="marque"] .word[aria-pressed="true"],[data-ui="marque"] .word.is-right{border-color:var(--o);box-shadow:var(--sh-md)}
[data-ui="marque"] .key{border:var(--bw-2) solid var(--o);box-shadow:var(--sh-xs)}
[data-ui="marque"] .key:active{transform:translate(2px,3px);box-shadow:none}
[data-ui="marque"] .mark{box-shadow:var(--sh-sm)}
[data-ui="marque"] .mark:active{transform:translate(3px,4px);box-shadow:none}
[data-ui="marque"] .hint-btn{box-shadow:var(--sh-sm)}
[data-ui="marque"] .hint-btn:disabled{box-shadow:none}
[data-ui="marque"] .sheet.is-hinted{background:var(--surface);color:var(--ink)}
[data-ui="marque"] .hint-btn:active{transform:translate(3px,4px);box-shadow:none}
[data-ui="marque"] .cloze .gap{border-bottom-color:var(--o)}
[data-ui="marque"] .answer{border-bottom-color:var(--o)}

/* Answer sheet: a green (or red) sheet with an ink rule on top; the text is ink, the button keeps its colour. */
[data-ui="marque"] .sheet{border-top:var(--bw) solid var(--o);background:var(--sheet-ok);color:var(--ink)}
[data-ui="marque"] .sheet.is-wrong{background:var(--sheet-err);color:var(--ink)}
[data-ui="marque"] .sheet .btn{background:var(--primary);color:#fff;box-shadow:var(--sh-lg)}
[data-ui="marque"] .sheet.is-wrong .btn{background:var(--err-solid);color:#fff;box-shadow:var(--sh-lg)}
[data-ui="marque"] .sheet-alt .btn-flat{background:none;box-shadow:none;color:inherit}
/* Mockup E sheet: a tilted outlined disc with the tick (or cross), the title, the listen button as a square on the same row,
   the explanation under the title. With a « Pourquoi ? » box the tools keep their own row (the answer opens there). */
[data-ui="marque"] .sheet:not(.is-quit){display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center;padding:18px 20px calc(20px + env(safe-area-inset-bottom,0px))}
[data-ui="marque"] .sheet:not(.is-quit)>*{grid-column:1/-1}
[data-ui="marque"] .sheet:not(.is-quit)>.sheet-title{grid-column:1;grid-row:1;margin:0 0 4px;font-size:26px}
[data-ui="marque"] .sheet>.sheet-tools:not(:has(.why)){grid-column:2;grid-row:1;margin:0 0 4px}
[data-ui="marque"] .sheet:not(.is-quit)>p{margin:0 0 14px 48px;font-size:15px}
[data-ui="marque"] .sheet p .ar{font-size:21px}  /* 26 px made the sheet so tall that it hid the words and cut Continue on a short phone (founder 2026-11-04) */
[data-ui="marque"] .sheet:not(.is-quit)>.btn{margin-top:8px}
[data-ui="marque"] .sheet:not(.is-quit)>.btn{grid-row:auto}  /* the desktop rule of app.css (rows 1-2, column 2) put Continuer over the title once it spans 1/-1 here */
[data-ui="marque"] .sheet-title>i{flex:none;width:38px;height:38px;box-sizing:border-box;border:var(--bw) solid var(--o);border-radius:50%;background:var(--surface);box-shadow:2px 3px 0 var(--o);transform:rotate(-6deg);display:grid;place-items:center}
[data-ui="marque"] .sheet-title>i::before{content:"";width:18px;height:18px;background:var(--ink);-webkit-mask:url("../img/marque-ico-check.9729a083e240.svg") center/contain no-repeat;mask:url("../img/marque-ico-check.9729a083e240.svg") center/contain no-repeat}
[data-ui="marque"] .sheet-title>i.fa-circle-xmark::before{-webkit-mask-image:url("../img/marque-ico-x.ded1e0659308.svg");mask-image:url("../img/marque-ico-x.ded1e0659308.svg")}
[data-ui="marque"] .sheet-title>i.fa-lightbulb::before{-webkit-mask-image:url("../img/marque-ico-bulb.24e9a253d0ca.svg");mask-image:url("../img/marque-ico-bulb.24e9a253d0ca.svg")}
[data-ui="marque"] .sheet .say-text{width:44px;height:44px;padding:0;justify-content:center;border:var(--bw) solid var(--o);border-radius:12px;background:var(--surface);box-shadow:3px 4px 0 var(--o);color:var(--ink)}
[data-ui="marque"] .sheet .say-text span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
[data-ui="marque"] .say>i::before{content:"";display:block;width:22px;height:22px;background:currentColor;-webkit-mask:url("../img/marque-ico-sound.a0e12db1dd66.svg") center/contain no-repeat;mask:url("../img/marque-ico-sound.a0e12db1dd66.svg") center/contain no-repeat}
[data-ui="marque"] .why-btn{border:var(--bw) solid var(--o);background:var(--surface);color:var(--ink);box-shadow:var(--sh-sm)}
[data-ui="marque"] .player-foot{border-top-color:var(--o)}

/* End of step (mockup E-Fin): a tilted dome standing on a dune band with a palm, the step numeral on a gold disc, the XP as a
   white sticker on its shoulder, two tilted tiles (accuracy, streak) and the new words as chips. Share sits under Continue. */
[data-ui="marque"] .player.is-finished .player-top{display:none}  /* E-Fin: the screen starts with the dome, Continue is the way out */
[data-ui="marque"] .player.is-finished .player-foot{border-top-color:transparent}
[data-ui="marque"] .done-screen{position:relative;isolation:isolate;justify-content:flex-start;margin:0 -16px;padding:calc(40px + env(safe-area-inset-top,0px)) 20px 24px}
[data-ui="marque"] .done-screen::before{content:"";position:absolute;z-index:-1;left:0;right:0;top:calc(110px + env(safe-area-inset-top,0px));height:170px;pointer-events:none;
  background:url("../img/marque-palm.45509bab0d2c.svg") calc(50% + 139px) 26px/76px 108px no-repeat,url("../img/marque-done-dunes.04f643fb7bdb.svg") 0 0/100% 100% no-repeat}
@media (prefers-color-scheme:dark){:root[data-ui="marque"]:not([data-theme="light"]) .done-screen::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-done-dunes-dark.9096605225c5.svg")}}
:root[data-ui="marque"][data-theme="dark"] .done-screen::before{background-image:url("../img/marque-palm-dark.46c1e546a5fb.svg"),url("../img/marque-done-dunes-dark.9096605225c5.svg")}
[data-ui="marque"] .done-badge{flex:none;width:204px;height:204px;box-sizing:border-box;margin:0;border:var(--bw) solid var(--o);border-radius:102px 102px 22px 22px;
  background:var(--primary);box-shadow:var(--sh-lg);transform:rotate(-3deg)}
[data-ui="marque"] .done-badge::before{content:"";position:absolute;inset:7px;border:var(--bw-2) solid var(--primary-dark);border-radius:95px 95px 16px 16px}
[data-ui="marque"] .done-badge.is-gold{background:var(--accent);box-shadow:var(--sh-lg)}
[data-ui="marque"] .done-badge.is-gold::before{border-color:var(--accent-dark)}
[data-ui="marque"] .done-badge>i,[data-ui="marque"] .done-num{position:relative;width:108px;height:108px;box-sizing:border-box;border:var(--bw) solid var(--o);border-radius:50%;
  background:var(--accent);box-shadow:var(--sh-md);transform:rotate(-6deg);display:grid;place-items:center;color:#1E1B16}
[data-ui="marque"] .done-badge.is-gold>i,[data-ui="marque"] .done-badge.is-gold .done-num{background:#FFFFFF}
[data-ui="marque"] .done-badge:has(.done-num)>i{display:none}
[data-ui="marque"] .done-num{display:grid;padding-bottom:6px;font:700 58px/1 var(--f-ar-num)}
[data-ui="marque"] .done-badge>i::before{content:"";width:46px;height:46px;background:#1E1B16;-webkit-mask:url("../img/marque-ico-check.9729a083e240.svg") center/contain no-repeat;mask:url("../img/marque-ico-check.9729a083e240.svg") center/contain no-repeat}
[data-ui="marque"] .done-hero{position:absolute;top:calc(46px + env(safe-area-inset-top,0px));left:calc(50% + 61px);margin:0;padding:8px 12px;border:var(--bw) solid var(--o);border-radius:12px;
  background:#FFFFFF;box-shadow:var(--sh-sm);transform:rotate(8deg);font:800 18px/1.2 var(--f-display);color:#1E1B16;white-space:nowrap}
[data-ui="marque"] .done-hero b{font-size:inherit;color:inherit}
[data-ui="marque"] .done-screen h1{margin:52px 0 4px;font-size:34px}
[data-ui="marque"] .done-line{font-size:16px}
[data-ui="marque"] .done-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;max-width:420px;margin:22px 0 0;text-align:start}
[data-ui="marque"] .done-stats>div{padding:12px 14px;border:var(--bw) solid var(--o);border-radius:16px;background:var(--tab-on);transform:rotate(-2deg)}
[data-ui="marque"] .done-stats>.is-streak{background:var(--tile-orange);transform:rotate(2deg)}
[data-ui="marque"] .done-stats dt{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
[data-ui="marque"] .done-stats dd{margin:0;font:800 28px/1.3 var(--f-display);color:var(--tile-on-ink)}
[data-ui="marque"] .done-stats>.is-streak dd{color:var(--tile-orange-ink)}
[data-ui="marque"] .done-words{width:100%;max-width:420px;margin-top:18px;text-align:start}
[data-ui="marque"] .done-words p{margin:0 0 8px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
[data-ui="marque"] .done-words ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
[data-ui="marque"] .done-words li{display:flex;align-items:center;gap:8px;padding:5px 12px;border:var(--bw-2) solid var(--o);border-radius:12px;background:var(--surface);
  box-shadow:var(--sh-xs);font-weight:700;color:var(--ink)}
[data-ui="marque"] .done-words .ar{font:700 20px/1.5 var(--f-ar-ui)}
[data-ui="marque"] .done-next{border-color:var(--o);box-shadow:var(--sh-xs)}
[data-ui="marque"] .done-remind select{border-color:var(--o)}
[data-ui="marque"] .player.is-finished .player-foot .btn:not(.btn-flat){min-height:56px}
@media (min-width:700px){
  /* E-Bureau-Fin: the dune band stays the phone's 390 px with faded ends, Continue spans the 480 px column, wide dunes at the bottom */
  [data-ui="marque"] .done-screen::before{left:calc(50% - 195px);right:auto;width:390px;
    -webkit-mask:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
  [data-ui="marque"] .player.is-finished .ex{flex:0 1 auto}  /* Continue follows the words, the dunes fill the rest; a taller end screen (« Demain », source chips) scrolls instead of going under Continue */
  [data-ui="marque"] .done-screen{padding-top:16px;padding-bottom:0}
  [data-ui="marque"] .done-screen::before{top:52px}
  [data-ui="marque"] .done-hero{top:26px;left:calc(50% + 86px)}
  [data-ui="marque"] .done-stats,[data-ui="marque"] .done-words,[data-ui="marque"] .done-next,[data-ui="marque"] .done-source{max-width:480px}
  /* An 800 px window holds the whole end screen, « Demain » and the source question included, above Continue: the six source
     chips on one line, less air above and below (the last chip sat cut under the scroll edge, 2026-11-14) */
  [data-ui="marque"] .player.is-finished .ex{padding-block:8px}
  [data-ui="marque"] .done-screen h1{margin-top:20px}
  [data-ui="marque"] .done-next{margin-top:12px}
  [data-ui="marque"] .done-source{margin:12px 0}
  [data-ui="marque"] .done-source .done-source-q{margin-bottom:6px}
  [data-ui="marque"] .done-source .done-source-chips{gap:6px}
  [data-ui="marque"] .done-source .chip{min-height:38px;padding:0 10px;font-size:13px}
  [data-ui="marque"] .player.is-finished .player-foot{padding-block:6px 14px}
  [data-ui="marque"] .player.is-finished .player-foot .done-share{margin-top:6px}
  [data-ui="marque"] .player.is-finished .player-foot .row{max-width:480px;margin-inline:auto}
  [data-ui="marque"] .player.is-finished .player-foot .row .btn{flex:1}
  [data-ui="marque"] body:has(.player.is-finished)::before{content:"";position:fixed;z-index:-1;left:0;right:0;bottom:0;height:170px;pointer-events:none;
    background:url("../img/marque-dunes-wide.e6a65777f1a0.svg") 0 0/100% 100% no-repeat}
  [data-ui="marque"] .player.is-finished,[data-ui="marque"] .player.is-finished .player-foot{background:transparent}
}
@media (min-width:700px) and (prefers-color-scheme:dark){:root[data-ui="marque"]:not([data-theme="light"]) body:has(.player.is-finished)::before{background-image:url("../img/marque-dunes-wide-dark.9c417c6c2283.svg")}}
@media (min-width:700px){:root[data-ui="marque"][data-theme="dark"] body:has(.player.is-finished)::before{background-image:url("../img/marque-dunes-wide-dark.9c417c6c2283.svg")}}
[data-ui="marque"] .player-foot .done-share{width:100%;justify-content:center;margin-top:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
[data-ui="marque"] .done-recap li{box-shadow:var(--sh-xs)}

/* Language menu in the counters: the code itself is the chip (the details box stays bare, its summary is 44px high already). */
[data-ui="marque"] .stats .langmenu.stat{padding:0;border:0;background:none;box-shadow:none}
[data-ui="marque"] .langmenu summary span[aria-hidden]{display:grid;place-items:center;box-sizing:border-box;height:44px;padding:0 10px;border:var(--bw) solid var(--o);border-radius:var(--r-sm);
  background:var(--surface);box-shadow:var(--sh-sm);font:800 15px/1 var(--f-display);color:var(--ink)}
/* Other tabs: the same sticker language (ink outline, offset shadow, a gold tint for what is chosen). */
[data-ui="marque"] .review-glass{border:var(--bw) solid var(--o);box-shadow:var(--sh-md);color:#1E1B16;transform:rotate(-4deg)}
[data-ui="marque"] .choice input:checked+span,[data-ui="marque"] .lang-choice a[aria-current]{border-color:var(--o);background:color-mix(in srgb,var(--accent) 24%,var(--surface));box-shadow:var(--sh-sm)}
[data-ui="marque"] .row.is-me{border:var(--bw) solid var(--o);box-shadow:var(--sh-sm)}
[data-ui="marque"] .avatar,[data-ui="marque"] .avatar[class*="av-"]{border:var(--bw-2) solid var(--o)}
[data-ui="marque"] .avatar.big{border-width:var(--bw);box-shadow:var(--sh-sm)}
[data-ui="marque"] .ach-bar{height:14px;border:var(--bw-2) solid var(--o)}
[data-ui="marque"] .quests,[data-ui="marque"] .shop-item,[data-ui="marque"] .ach-list{box-shadow:var(--sh-md)}
[data-ui="marque"] .plan{box-shadow:var(--sh-md)}

/* Outline icons of the mockup (static/img/marque-ico-*.svg as masks, so they take the text colour) in the tabs, the rail and
   the day's quests; the font icons stay elsewhere. Révisions is the turning arrow of the mockup, not the hourglass. */
[data-ui="marque"] .tab i::before,[data-ui="marque"] .quest>i::before{content:"";display:block;width:22px;height:22px;background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
[data-ui="marque"] i.fa-route{--ico:url("../img/marque-ico-map.76b6742af796.svg")}
[data-ui="marque"] .tab i.fa-hourglass-half,[data-ui="marque"] .quest>i.fa-hourglass-half{--ico:url("../img/marque-ico-review.c97fcdf3f37c.svg")}
[data-ui="marque"] .tab i.fa-trophy{--ico:url("../img/marque-ico-trophy.0f5af399e836.svg")}
[data-ui="marque"] .tab i.fa-store{--ico:url("../img/marque-ico-shop.1a9d7e3e13a8.svg")}
[data-ui="marque"] .tab i.fa-user{--ico:url("../img/marque-ico-user.1da0cadab1d5.svg")}
[data-ui="marque"] .quest>i.fa-flag-checkered{--ico:url("../img/marque-ico-flag.c09d11f67280.svg")}
/* each quest icon sits in a small outlined tile (green for steps, orange for reviews), its meter fills green */
[data-ui="marque"] .quest>i{flex:none;display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;border:var(--bw-2) solid var(--o);border-radius:12px;
  background:var(--tab-on);color:var(--ink)}
[data-ui="marque"] .quest>i::before{width:20px;height:20px}
[data-ui="marque"] .quest>i.fa-hourglass-half{background:var(--tile-orange)}
[data-ui="marque"] .quest .meter i{background:var(--primary)}
@media (min-width:700px){[data-ui="marque"] .side{border-right:0}}

/* Trace exercise: the pad is an outlined card with a hard shadow; the baseline stays light (--line is the ink here). */
[data-ui="marque"] .trace{--trace-base:var(--line-strong)}
[data-ui="marque"] .trace-pad{border-color:var(--o);box-shadow:var(--sh-md)}
[data-ui="marque"] .trace.is-ok .trace-pad{border-color:var(--ok);box-shadow:var(--sh-md)}
[data-ui="marque"] .trace.is-wrong .trace-pad{border-color:var(--err);box-shadow:var(--sh-md)}
/* « Ouvrir dans le navigateur » pill (app.css .inapp-hint): the theme's ink outline and hard shadow */
[data-ui="marque"] .inapp-pill{border:var(--bw) solid var(--o);box-shadow:var(--sh-md)}
