/* Komzig: a warm, light interface over the house (dark over the night neon look). Targets of 44 px,
   text that grows to 200 % through html { font-size }, no horizontal scroll at 360 px. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --papier: #FFFBF5;
  --papier-2: #F6EEE3;
  --encre: #2B2433;
  --encre-douce: #5E5468;
  --accent: #C2410C;
  --accent-clair: #FFE3D3;
  --ligne: rgba(43, 36, 51, 0.14);
  --ombre: 0 10px 30px rgba(43, 36, 51, 0.16), 0 2px 6px rgba(43, 36, 51, 0.1);
  --rayon: 16px;
  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --fond-haut: #FDF6EC;
  --fond-bas: #E7EEF7;
}
/* The night look takes Kertredan's colours: navy panels, cyan lines, orange buttons with dark text. */
body[data-style="neon"] {
  --papier: #11132A;
  --papier-2: #1A1D3D;
  --encre: #F1F3FF;
  --encre-douce: #B9BEE6;
  --accent: #FF7634;
  --accent-clair: #2C2F5C;
  --ligne: rgba(79, 209, 255, 0.4);
  --ombre: 0 0 0 1px rgba(79, 209, 255, 0.4), 0 0 26px rgba(79, 209, 255, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--texte); color: var(--encre); line-height: 1.45;
  background: linear-gradient(180deg, var(--fond-haut), var(--fond-bas)) fixed;
  overflow: hidden; overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.petit { font-size: 0.85rem; color: var(--encre-douce); }
.icone { flex: none; }

.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
/* The last picture of the old place, fading over the new one when the place changes (scene/fondu.js). */
.scene-fondu { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------------------------------------------------------- home (Komzig, 19/11/2026)
   The sign of the village hangs from its post on the left (painted fir green and gold by day, neon tubes by night),
   the way in is a fingerpost arrow, the village builds itself in the middle, and the other worlds float as islands on
   the right (on a phone they become the arrows of the fingerpost, under the way in). Never the centred rounded card. */
.accueil {
  --sapin: #1D4A37; --sapin-2: #2B6149; --sapin-3: #12301F; --or: #E2BC62; --creme: #FBF0CF; --fer: #1D4A37;
  --panneau-clair: rgba(255, 251, 245, 0.94); --encre-plaque: #1D4A37;
  position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; pointer-events: none; overscroll-behavior: contain;
}
.accueil[hidden], .accueil [hidden] { display: none !important; }
.accueil.sortie { opacity: 0; transition: opacity 0.3s ease; }
.accueil .poteau { position: fixed; left: 56px; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, var(--sapin-3), var(--sapin-2) 45%, var(--sapin-3)); }
.accueil .poteau::before { content: ''; position: absolute; left: -7px; top: 14px; width: 32px; height: 14px; border-radius: 7px; background: var(--sapin-3); }
.accueil .colonne {
  position: relative; margin-left: 92px; width: min(400px, calc(100vw - 108px)); padding: 82px 0 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.accueil .colonne > * { pointer-events: auto; }
.accueil .colonne > .enseigne-bloc { pointer-events: none; }

/* the sign and its wrought-iron bracket */
.enseigne-bloc { position: relative; width: 100%; color: var(--fer); }
.enseigne-bloc::before { content: ''; position: absolute; left: -36px; right: -16px; top: -66px; height: 12px; background: currentColor; border-radius: 0 6px 6px 0; }
.enseigne-bloc::after { content: ''; position: absolute; left: 13%; right: 13%; top: -54px; height: 58px; border-left: 3px dashed #3A3A3A; border-right: 3px dashed #3A3A3A; }
.enseigne-bloc .volute { position: absolute; left: -36px; top: -60px; width: 120px; height: 70px; }
.enseigne {
  position: relative; z-index: 1; margin: 0; padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: center; text-align: center;
  container-type: inline-size; color: var(--creme); background: linear-gradient(180deg, #235640, var(--sapin) 60%, #19402F); border-radius: 12px;
  box-shadow: inset 0 0 0 5px var(--sapin), inset 0 0 0 7px var(--or), inset 0 0 0 11px var(--sapin), inset 0 0 0 12px rgba(226, 188, 98, 0.55), 0 18px 30px rgba(31, 27, 43, 0.32);
  transform-origin: 50% -60px; animation: balancer 2.6s ease-out both;
}
@keyframes balancer { 0% { transform: rotate(2.2deg); } 30% { transform: rotate(-1.3deg); } 55% { transform: rotate(0.6deg); } 78% { transform: rotate(-0.2deg); } 100% { transform: rotate(0); } }
.enseigne .maisons { width: 66%; height: auto; display: block; margin-top: 2px; }
.maisons .plein { fill: var(--or); }
.maisons .creux { fill: var(--sapin); }
.maisons .store { fill: var(--creme); }
.maisons .rayures { fill: #C2410C; }
.maisons .aiguilles { fill: none; stroke: var(--or); stroke-width: 1.6; }
.enseigne .nom { display: block; font-family: var(--titre); font-weight: 700; font-size: min(5.2rem, 24cqi); line-height: 1; color: var(--or); text-shadow: 0 3px 0 #0E2A1D, 0 0 1px #0E2A1D; margin-top: -2px; }
.enseigne .devise { display: block; margin-top: 6px; font-family: var(--titre); font-weight: 600; font-size: min(1.25rem, 6.4cqi); color: var(--creme); }

/* what the village is doing, the way in, the words of welcome */
.accueil .etat { margin: 0; padding: 0.3rem 0.8rem; border-radius: 14px; background: var(--panneau-clair); color: var(--encre-douce); font-size: 0.92rem; box-shadow: 0 4px 12px rgba(31, 27, 43, 0.1); }
.accueil .etat:empty { display: none; }
.accueil .entrer { position: relative; display: inline-flex; padding: 0; margin: 4px 0 0 -14px; border: 0; background: none; font: inherit; cursor: pointer; border-radius: 6px; filter: drop-shadow(0 8px 10px rgba(31, 27, 43, 0.3)); }
.entrer .planche {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 58px 6px 24px;
  font-family: var(--titre); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: var(--creme); text-align: left;
  background: var(--or); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%);
}
.entrer .planche::before { content: ''; position: absolute; inset: 3px; z-index: -1; background: linear-gradient(180deg, #235640, var(--sapin)); clip-path: polygon(0 0, calc(100% - 33px) 0, calc(100% - 1px) 50%, calc(100% - 33px) 100%, 0 100%); }
.entrer .clou { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
.accueil .entrer[disabled] { cursor: progress; opacity: 0.6; }
.accueil .entrer:not([disabled]):hover .planche { transform: translateX(4px); }
.entrer .planche { transition: transform 0.2s ease; }
.accueil .accroche { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--panneau-clair); font-size: 1.02rem; line-height: 1.45; box-shadow: 0 6px 16px rgba(31, 27, 43, 0.12); }
.accueil .accroche strong { font-family: var(--titre); }
.son-accueil {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--ligne);
  background: var(--panneau-clair); font: inherit; font-weight: 700; color: var(--encre); cursor: pointer;
}
.son-accueil[disabled] { opacity: 0.6; cursor: progress; }

/* the worlds: a button each, a picture (the map seen whole) and a small painted plaque with the name and the state */
.univers h2 { margin: 0 0 6px; font-family: var(--titre); font-size: 1.25rem; color: var(--encre-plaque); }
.univers .iles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ile { display: grid; justify-items: center; width: 100%; padding: 4px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.ile .image { display: block; width: 100%; }
.ile .image img, .ile .image svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 8px rgba(31, 27, 43, 0.22)); }
.ile .plaque { position: relative; display: grid; justify-items: center; margin-top: -10px; padding: 4px 10px 5px; border-radius: 6px; background: #FFFBF5; border: 2px solid var(--sapin); box-shadow: 0 4px 10px rgba(31, 27, 43, 0.15); }
.ile .nom { font-family: var(--titre); font-weight: 700; font-size: 1rem; line-height: 1.15; color: var(--encre-plaque); }
.ile .contenu { display: none; }
.etat-univers { display: inline-flex; align-items: center; gap: 4px; font-size: 0.86rem; font-weight: 700; color: var(--encre-douce); }
.ile.ouvert .etat-univers { color: #1D6B3E; }
.ile.compte .etat-univers { color: #1F5C8C; }
.ile.premium .etat-univers { color: #8A5A00; }
.ile.bientot .image img, .ile.bientot .image svg { filter: grayscale(0.85) opacity(0.55); }
.ile.bientot .plaque { border-style: dashed; border-color: #8C8496; }
.ile.bientot .nom { color: #4A4458; }
.ile:hover .plaque { border-color: var(--accent); }
.ile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.porte-univers { padding: 1rem 1.1rem; border-radius: 12px; background: #FFFBF5; border: 2px solid var(--sapin); box-shadow: var(--ombre); }
.porte-univers h2 { margin: 0 0 0.4rem; font-family: var(--titre); font-size: 1.2rem; display: grid; gap: 2px; }
.porte-univers h2:focus { outline: none; }
.porte-univers p { margin: 0 0 0.6rem; }
.porte-univers .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.porte-univers a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; background: var(--sapin); color: var(--creme); font-weight: 700; }

/* The site's menu at the top of the home page: the fascia of the site's pages, a green band with its links in cream
   and the scalloped awning under it. Adapted from site/styles/site.css (.fronton, .menu, .store), 28/11/2026. */
.accueil .evitement { position: absolute; left: 12px; top: -200px; z-index: 30; pointer-events: auto; padding: 12px 16px; border-radius: 6px; background: #FFFFFF; color: var(--sapin); font-weight: 700; }
.accueil .evitement:focus { top: 12px; }
.fronton-accueil { position: relative; z-index: 3; }
.menu-accueil { position: relative; pointer-events: auto; background: var(--sapin); border-bottom: 3px solid var(--or); }
.menu-accueil .icone { width: 1.2em; height: 1.2em; flex: none; }
.menu-accueil a:focus-visible, .menu-deroulant > summary:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
/* the tabs: each page on its own small plate (Loic, 28/11/2026: links that do not float, an icon before each word) */
.menu-accueil .onglets { list-style: none; margin: 0; padding: 7px 16px 7px 96px; display: flex; flex-wrap: wrap; gap: 6px; }
.onglets a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px 0 10px; border-radius: 10px; white-space: nowrap;
  background: rgba(255, 251, 245, 0.08); box-shadow: inset 0 0 0 1px rgba(226, 188, 98, 0.45), 0 2px 0 rgba(0, 0, 0, 0.25);
  color: var(--creme); font-weight: 700; text-decoration: none; }
.onglets a .icone { color: var(--or); }
.onglets a:hover { background: rgba(255, 251, 245, 0.18); }
/* the phone menu: a « Menu » button that opens the same list, over the village (site/client/menu.js) */
.menu-accueil .menu-deroulant { display: none; padding: 7px 12px; }
.menu-deroulant > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px 0 11px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 251, 245, 0.08); box-shadow: inset 0 0 0 2px rgba(226, 188, 98, 0.7); color: var(--creme); font-weight: 700; }
.menu-deroulant > summary::-webkit-details-marker { display: none; }
.menu-deroulant > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.menu-deroulant .menu-fermer, .menu-deroulant[open] .menu-ouvrir { display: none; }
.menu-deroulant[open] .menu-fermer { display: inline-flex; }
.menu-deroulant[open] > summary { background: var(--creme); color: var(--sapin); }
.menu-deroulant ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 0; padding: 4px 0; list-style: none; max-height: calc(100vh - 80px); overflow-y: auto;
  background: #FFFDF8; border-bottom: 3px solid var(--or); box-shadow: 0 16px 30px rgba(18, 48, 31, 0.35); }
.menu-deroulant li + li { border-top: 1px solid rgba(29, 74, 55, 0.14); }
.menu-deroulant ul a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px; color: var(--sapin); font-weight: 700; text-decoration: none; }
.menu-deroulant ul a .icone { color: var(--sapin-2); width: 1.35em; height: 1.35em; }
.menu-deroulant ul a:hover { background: #F2E9D8; }
@media (max-width: 1099.98px) {
  .menu-accueil .onglets { display: none; }
  .menu-accueil .menu-deroulant { display: block; }
}
.store-accueil { height: 16px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--creme) 0 28px, var(--sapin-2) 28px 56px);
  -webkit-mask: radial-gradient(14px at 14px 2px, #000 98%, transparent) 0 0 / 28px 16px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 2px no-repeat;
  mask: radial-gradient(14px at 14px 2px, #000 98%, transparent) 0 0 / 28px 16px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 2px no-repeat; }
body[data-style="neon"] .menu-accueil { background: #11132A; border-bottom-color: #4FD1FF; }
body[data-style="neon"] .onglets a, body[data-style="neon"] .menu-deroulant > summary { color: #DCE0FF; box-shadow: inset 0 0 0 1px rgba(79, 209, 255, 0.5); }
body[data-style="neon"] .onglets a .icone { color: #4FD1FF; }
body[data-style="neon"] .menu-deroulant[open] > summary { background: #DCE0FF; color: #11132A; }
body[data-style="neon"] .menu-deroulant ul { background: #11132A; border-bottom-color: #4FD1FF; }
body[data-style="neon"] .menu-deroulant ul a { color: #DCE0FF; }
body[data-style="neon"] .menu-deroulant ul a .icone { color: #4FD1FF; }
body[data-style="neon"] .menu-deroulant ul a:hover { background: #1C1F40; }
body[data-style="neon"] .store-accueil { display: none; }

/* the legal pages: discreet, under everything else */
.liens-site ul { list-style: none; margin: 0; padding: 2px 6px; display: flex; flex-wrap: wrap; gap: 0 2px; border-radius: 10px; background: var(--panneau-clair); font-size: 0.9rem; }
.liens-site a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--encre); text-decoration: underline; text-decoration-color: rgba(43, 36, 51, 0.4); text-underline-offset: 3px; }
.accueil .sans-webgl { padding: 1rem 1.1rem; border-radius: 12px; background: #FFFBF5; border: 2px solid var(--sapin); }
.accueil .sans-webgl h2 { margin: 0 0 0.4rem; font-family: var(--titre); font-size: 1.25rem; }

/* wide screens: the worlds float as islands in a column on the right, the porch panel beside them */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .fronton-accueil { position: sticky; top: 0; }
  .accueil .univers { position: fixed; right: 10px; top: max(88px, 3.6rem); bottom: 10px; width: 176px; overflow-y: auto; overflow-x: hidden; padding: 4px 4px 12px; scrollbar-width: thin; }
  .accueil .univers h2 { text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--panneau-clair); }
  .univers .ile .image { width: 128px; }
  .accueil .porte-univers { position: fixed; right: 200px; top: 50%; transform: translateY(-50%); width: min(22rem, calc(100vw - 720px)); min-width: 16rem; }
}
/* a wide screen with room: the worlds in two staggered files, an archipelago, so that eight and more stand in view
   without scrolling (the framing of the village reads the column's edge: accueil.js) */
@media (min-width: 1200px) and (min-aspect-ratio: 1/1) {
  .accueil .univers { width: 300px; }
  .accueil .univers .iles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; row-gap: 2px; padding-bottom: 60px; }
  .accueil .univers .iles li:nth-child(even) { position: relative; top: 60px; }
  .accueil .porte-univers { right: 324px; width: min(22rem, calc(100vw - 840px)); }
}
/* narrow screens: the post on the edge, the worlds as fingerpost arrows under the way in */
@media (max-width: 899.98px), (max-aspect-ratio: 1/1) {
  .accueil .poteau { left: 14px; width: 12px; }
  .accueil .poteau::before { left: -5px; width: 22px; }
  .accueil .colonne { margin-left: 34px; width: calc(100vw - 46px); max-width: 560px; padding-top: 74px; }
  .enseigne-bloc::before { left: -22px; }
  .enseigne-bloc .volute { left: -22px; width: 100px; height: 58px; top: -60px; }
  .enseigne { padding: 12px 12px 14px; }
  .enseigne-bloc { margin-bottom: min(30vh, 300px); }
  .accueil .univers { width: 100%; margin-top: 10px; }
  .accueil .univers h2 { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--panneau-clair); }
  .ile { grid-template-columns: 76px 1fr; align-items: center; justify-items: start; gap: 10px; padding: 4px 46px 4px 8px; min-height: 64px; text-align: left; border-radius: 0;
    background: #EBD9B6; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%); }
  .univers li:nth-child(even) .ile { margin-left: 10px; width: calc(100% - 10px); }
  .ile .image img, .ile .image svg { filter: none; }
  .ile .plaque { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; justify-items: start; }
  .ile .contenu { display: block; font-size: 0.82rem; color: #4A3F30; }
  .ile.bientot { background: #DDD7CF; }
  .ile.bientot .plaque { border: 0; }
  .ile:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
}

/* the night look: the same sign made of neon tubes, the panels in Kertredan's navy */
body[data-style="neon"] .accueil { --fer: #4FD1FF; --panneau-clair: rgba(17, 19, 42, 0.92); --encre-plaque: #F1F3FF; }
body[data-style="neon"] .accueil .poteau { background: linear-gradient(90deg, #0b0d22, #2a2f63 45%, #0b0d22); box-shadow: 0 0 10px rgba(79, 209, 255, 0.35); }
body[data-style="neon"] .accueil .poteau::before { background: #0b0d22; }
body[data-style="neon"] .enseigne-bloc { filter: drop-shadow(0 0 4px rgba(79, 209, 255, 0.8)); }
body[data-style="neon"] .enseigne-bloc::after { border-color: #4FD1FF; }
body[data-style="neon"] .enseigne {
  background: #0F1130; filter: none;
  box-shadow: inset 0 0 0 3px #11132A, inset 0 0 0 5px #4FD1FF, 0 0 18px rgba(79, 209, 255, 0.55), inset 0 0 22px rgba(79, 209, 255, 0.25), 0 18px 30px rgba(0, 0, 0, 0.5);
}
body[data-style="neon"] .enseigne .nom { color: #FFE9F4; text-shadow: 0 0 4px #FF4FB4, 0 0 12px #FF4FB4, 0 0 26px #FF2E9A; }
body[data-style="neon"] .enseigne .devise { color: #E8FBFF; text-shadow: 0 0 6px #4FD1FF; }
body[data-style="neon"] .maisons { filter: drop-shadow(0 0 4px #FFB347); }
body[data-style="neon"] .maisons .plein, body[data-style="neon"] .maisons .store, body[data-style="neon"] .maisons .rayures { fill: none; stroke: #FFC46B; stroke-width: 2.2; }
body[data-style="neon"] .maisons .creux { fill: #0F1130; stroke: #FFC46B; stroke-width: 1.6; }
body[data-style="neon"] .maisons .aiguilles { stroke: #FFC46B; }
body[data-style="neon"] .entrer .planche { background: #FF7634; color: #FFF4EA; }
body[data-style="neon"] .entrer .planche::before { background: #13163A; }
body[data-style="neon"] .entrer .clou { background: #FF7634; }
body[data-style="neon"] .accueil .entrer { filter: drop-shadow(0 0 10px rgba(255, 118, 52, 0.6)); }
body[data-style="neon"] .accueil .etat, body[data-style="neon"] .accueil .accroche, body[data-style="neon"] .son-accueil { color: #F1F3FF; box-shadow: 0 0 0 1px rgba(79, 209, 255, 0.4); }
body[data-style="neon"] .ile .plaque, body[data-style="neon"] .porte-univers, body[data-style="neon"] .accueil .sans-webgl { background: #11132A; border-color: #4FD1FF; color: #F1F3FF; box-shadow: 0 0 10px rgba(79, 209, 255, 0.35); }
body[data-style="neon"] .ile.ouvert .etat-univers { color: #7CFFB2; }
body[data-style="neon"] .ile.compte .etat-univers { color: #8FD8FF; }
body[data-style="neon"] .ile.premium .etat-univers { color: #FFD27A; }
body[data-style="neon"] .ile.bientot .nom, body[data-style="neon"] .etat-univers { color: #B9BEE6; }
body[data-style="neon"] .ile.bientot .plaque { border-color: #6E74A8; }
body[data-style="neon"] .liens-site a { color: #DCE0FF; text-decoration-color: rgba(220, 224, 255, 0.45); }
body[data-style="neon"] .porte-univers a { background: #FF7634; color: #11132A; }
@media (max-width: 899.98px), (max-aspect-ratio: 1/1) {
  body[data-style="neon"] .ile { background: #1A1D3D; }
  body[data-style="neon"] .ile .plaque { background: none; box-shadow: none; }
  body[data-style="neon"] .ile .contenu { color: #B9BEE6; }
  body[data-style="neon"] .ile.bientot { background: #23264A; }
}
/* the first guided minute (accueil/guide.js): a small plank hung under the bar, on the left (the card opens on the right) */
.guide {
  position: fixed; z-index: 3; left: 12px; top: calc(var(--bas-barre, 68px) + 70px); width: min(22rem, calc(100vw - 24px));
  padding: 0.6rem 0.9rem 0.7rem; border-radius: 10px; background: #FFFBF5; color: var(--encre);
  border: 2px solid #1D4A37; border-left-width: 8px; box-shadow: var(--ombre);
}
.guide[hidden] { display: none; }
/* A panel open (calendar, words, maps, settings): the plank steps aside until it closes, one instruction at a time (audit UX
   of 20/11: on a phone it covered the first doors of the Advent calendar and its introduction). */
.panneau:not([hidden]) ~ .guide { display: none; }
.guide p { margin: 0; }
.guide .guide-etape { font-family: var(--titre); font-weight: 700; color: #1D4A37; font-size: 0.95rem; }
.guide .guide-texte { margin: 0.25rem 0 0.5rem; }
.guide .guide-actions { display: flex; justify-content: flex-end; }
body[data-style="neon"] .guide { background: #11132A; color: #F1F3FF; border-color: #4FD1FF; box-shadow: 0 0 12px rgba(79, 209, 255, 0.35); }
body[data-style="neon"] .guide .guide-etape { color: #7CFFB2; }
/* A player who comes back (principal.js adds .revient): on a phone the village leaves room under the sign, so that
   « Bon retour à Komzig ! » and its « Réviser » button stand in the first screen (audit UX of 20/11, point 3). */
@media (max-width: 600px) { .accueil.revient .enseigne-bloc { margin-bottom: min(9vh, 80px); } }
@media (max-width: 600px) {
  .guide { left: 12px; right: 12px; width: auto; top: calc(var(--bas-barre, 68px) + 84px); }
  /* A card open at the bottom of a phone (audit UX of 19/11, point 1): the plank went over the card's top and hid its close
     button, the very one the step asks for. It climbs under the bar, sheds its button (closing the card moves the tour on)
     and stays below the card, whose top always remains in reach. */
  .fiche:not([hidden]) ~ .guide { top: calc(var(--bas-barre, 68px) + 6px); z-index: 1; padding: 0.4rem 0.7rem 0.45rem; }
  .fiche:not([hidden]) ~ .guide .guide-actions { display: none; }
  .fiche:not([hidden]) ~ .guide .guide-texte { margin-bottom: 0; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .enseigne { animation: none; }
  .entrer .planche, .accueil.sortie { transition: none; }
}
body.calme .enseigne { animation: none; }
body.calme .entrer .planche, body.calme .accueil.sortie { transition: none; }

.principal, .secondaire, .statut, .outil, .piece, .fermer-panneau, .choix-style, .mot-liste {
  min-height: 44px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem;
}
.principal { background: var(--accent); color: #fff; border: 0; padding: 0.6rem 1.1rem; font-weight: 700; }
body[data-style="neon"] .principal { color: #11132A; }
.principal[disabled] { opacity: 0.55; cursor: progress; }
.secondaire, .statut, .fermer-panneau { background: var(--papier-2); border: 1.5px solid var(--ligne); padding: 0.45rem 0.85rem; }


/* ---------------------------------------------------------------- bar */
.barre {
  position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px; pointer-events: none;
}
.barre[hidden], .pieces[hidden], .aide[hidden] { display: none; }
.marque { pointer-events: auto; background: var(--papier); border-radius: 14px; box-shadow: var(--ombre); padding: 0.35rem 0.8rem; min-width: 0; }
.titre { margin: 0; font-family: var(--titre); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.compteur { margin: 0; font-size: 0.85rem; color: var(--encre-douce); }
/* The words learnt first, then the next building and its gauge (audit UX of 19/11, point 5). */
.compteur .appris { display: block; color: var(--encre); font-weight: 700; }
.compteur .prochain { display: block; }
.jauge { display: block; width: 100%; min-width: 9rem; height: 6px; margin: 4px 0 2px; border: 0; border-radius: 3px; background: var(--ligne); appearance: none; }
.jauge::-webkit-progress-bar { background: var(--ligne); border-radius: 3px; }
.jauge::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.jauge::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.outils { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.outil { background: var(--papier); border: 0; box-shadow: var(--ombre); padding: 0 0.7rem; min-width: 44px; justify-content: center; }
.outil[aria-expanded="true"] { background: var(--accent-clair); outline: 2px solid var(--accent); }
.outil[disabled] { opacity: 0.45; cursor: default; }
.outil[hidden] { display: none; }
@media (max-width: 760px) { .outil .libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .outil { padding: 0; width: 44px; } }
/* « Réviser », the button that makes one learn, is the bar's call to action (audit UX of 19/11, point 3): filled, its number in a
   badge, its word kept on a phone; during the third step of the guided tour (accueil/guide.js) it is ringed and beats softly. */
.outil.a-reviser { background: var(--accent); color: #fff; font-weight: 700; gap: 0.4rem; }
body[data-style="neon"] .outil.a-reviser { color: #11132A; }
.outil.a-reviser .nombre { min-width: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: #fff; color: var(--accent); font-size: 0.85rem; line-height: 1.5rem; text-align: center; }
body[data-style="neon"] .outil.a-reviser .nombre { background: #11132A; color: var(--accent); }
@media (max-width: 760px) {
  .outil.a-reviser { width: auto; padding: 0 0.45rem; }
  .outil.a-reviser .libelle { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
.outil.designe { outline: 3px solid var(--encre); outline-offset: 3px; animation: designe 1.6s ease-in-out infinite; }
@keyframes designe { 50% { outline-offset: 7px; } }
body.calme .outil.designe { animation: none; }
/* the first step of the guided minute, on the map: the house's label ringed, « go in here » (accueil/guide.js) */
/* and the house's button in the places bar, the other way in */
body.guide-maison .etiquette[data-etiquette="maison"], body.guide-maison .piece[data-batiment="maison"] { outline: 3px solid var(--accent); outline-offset: 3px; animation: designe 1.6s ease-in-out infinite; }
body.calme.guide-maison .etiquette[data-etiquette="maison"], body.calme.guide-maison .piece[data-batiment="maison"] { animation: none; }
@media (prefers-reduced-motion: reduce) { body.guide-maison .etiquette[data-etiquette="maison"], body.guide-maison .piece[data-batiment="maison"] { animation: none; } }
/* on a phone the plank of this step goes down over the empty ground, leaving the map and its labels free */
@media (max-width: 600px) { body.guide-maison .guide { top: auto; bottom: calc(var(--hauteur-bas, 64px) + 24px); } }
@media (prefers-reduced-motion: reduce) { .outil.designe { animation: none; } }

.aide {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--bas-barre, 68px) + 8px); margin: 0; max-width: min(40rem, calc(100vw - 24px));
  width: max-content; background: var(--papier); box-shadow: var(--ombre); border-radius: 12px; padding: 0.45rem 0.8rem;
  font-size: 0.92rem; display: flex; align-items: center; gap: 0.5rem; pointer-events: auto;
}
.mini { background: transparent; border: 1.5px solid var(--ligne); border-radius: 10px; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; cursor: pointer; }

/* ---------------------------------------------------------------- rooms */
.bas {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); display: flex;
  flex-direction: column; align-items: center; gap: 8px; max-width: calc(100vw - 24px); width: max-content; pointer-events: none;
}
/* The places stand on one line at every width (19/11/2026: the village's fourteen buildings took two rows on a computer
   and hid the bottom of the map). The line scrolls sideways when it is too long: the first button (the maps, or the way
   back to the map) stays at the left, a fade at the right edge says there is more, the mouse wheel and two arrows scroll
   it, Tab brings each place into view. Under 600 px the same, with the swipe and without the arrows (below). */
.rangee-pieces { display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; pointer-events: none; }
.pieces {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; pointer-events: auto; min-width: 0; max-width: 100%;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scroll-padding-inline: var(--colle, 56px) 44px; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 0 10px; margin: -6px 0 -10px;
}
.pieces::-webkit-scrollbar { display: none; }
.pieces > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
.pieces > :first-child { position: sticky; left: 0; z-index: 1; margin-left: auto; }
.pieces > :last-child { margin-right: auto; }
.pieces[data-suite] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}
.pieces[hidden] { display: none; }
.defiler {
  pointer-events: auto; flex: 0 0 auto; min-width: 44px; min-height: 44px; border-radius: 999px; border: 0; padding: 0;
  background: var(--papier); color: var(--encre); box-shadow: var(--ombre); display: inline-grid; place-items: center; cursor: pointer;
}
.defiler[hidden] { display: none; }
.rangee-pieces:has(> .pieces[hidden]) .defiler { display: none; }
/* At the end it scrolls towards: kept in its place (the line does not jump), not shown. */
.defiler[data-bout] { visibility: hidden; }
.lieu-village .nom { display: inline-flex; align-items: center; gap: 0.3rem; }
.etiquettes { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
/* The labels follow the map: the bars, the help line, the cards and the panels stay above them. */
.etiquettes { z-index: 1; }
.barre, .aide, .bas, .fiche, .panneau, .infobulle { z-index: 2; }
.etiquettes[hidden], .etiquette[hidden] { display: none; }
.etiquette {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1.5px solid var(--ligne);
  background: var(--papier); color: var(--encre); box-shadow: var(--ombre); cursor: pointer; white-space: nowrap; font-size: 0.92rem;
}
.etiquette.bientot { color: var(--encre-douce); background: var(--papier-2); }
.piece { background: var(--papier); border: 0; box-shadow: var(--ombre); padding: 0.3rem 0.8rem; flex-direction: column; gap: 0; justify-content: center; line-height: 1.15; }
.piece .compte { font-size: 0.75rem; color: var(--encre-douce); }
.piece .court { display: none; }
.piece[aria-pressed="true"] { background: var(--accent); color: #fff; }
.piece[aria-pressed="true"] .compte { color: #fff; }
body[data-style="neon"] .piece[aria-pressed="true"], body[data-style="neon"] .piece[aria-pressed="true"] .compte { color: #11132A; }

/* ---------------------------------------------------------------- panels */
.panneau {
  position: fixed; top: max(76px, calc(var(--bas-barre, 64px) + 10px)); right: 12px; width: min(24rem, calc(100vw - 24px));
  max-height: calc(100dvh - max(76px, calc(var(--bas-barre, 64px) + 10px)) - 84px); overflow-y: auto;
  background: var(--papier); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.1rem; overscroll-behavior: contain;
}
.panneau[hidden] { display: none; }
/* A panel opened over a card, a review or a scene comes in front of it (audit UX of 20/11: « Réglages » opened behind the
   card, out of sight, with the focus in it); a card opened afterwards closes the panel (interface.js). The calendar
   stays beside the card of its door. */
.panneau:not([hidden]):not(.panneau-avent) { z-index: 3; }
.panneau h2 { font-family: var(--titre); margin: 0 0 0.4rem; font-size: 1.3rem; }
.panneau h2:focus { outline: none; }
.panneau h3 { margin: 0.9rem 0 0.4rem; font-size: 1rem; }
.liste-mots { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mot-liste { width: 100%; text-align: left; background: var(--papier-2); border: 1px solid var(--ligne); padding: 0.35rem 0.6rem; flex-wrap: wrap; }
.etat-mot { display: inline-grid; place-items: center; width: 26px; color: var(--accent); }
.point { font-weight: 700; color: var(--encre-douce); }
.mot-en { font-weight: 700; min-width: 4.5rem; }
.mot-fr { color: var(--encre-douce); flex: 1; }
.fermer-panneau { margin-top: 0.9rem; }
/* the site's pages, from the visit (« Menu », 28/11/2026): one page a line, its icon before its word */
.panneau-menu .liens-menu { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.panneau-menu .liens-menu li + li { border-top: 1px solid var(--ligne); }
.panneau-menu .liens-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border-radius: 8px; color: var(--encre); font-weight: 700; text-decoration: none; }
.panneau-menu .liens-menu a .icone { width: 1.3em; height: 1.3em; flex: none; color: var(--accent); }
.panneau-menu .liens-menu a:hover { background: var(--papier-2); }
.styles { display: grid; gap: 6px; }
.choix-style { width: 100%; background: var(--papier-2); border: 1.5px solid var(--ligne); padding: 0.35rem 0.6rem; }
.choix-style[aria-pressed="true"] { border-color: var(--accent); outline: 2px solid var(--accent); }
.apercu { display: inline-flex; gap: 3px; padding: 5px; border-radius: 8px; border: 1px solid var(--ligne); }
.apercu i { width: 14px; height: 22px; border-radius: 4px; display: block; }
.nom-style { flex: 1; text-align: left; font-weight: 700; }
.revision .ouverture { display: flex; gap: 0.5rem; align-items: center; }
.detail-style { display: block; font-weight: 400; font-size: 0.85rem; color: var(--encre-douce); }
.coche { color: var(--accent); display: inline-flex; }
.radios { display: grid; gap: 2px; }
.radios label, .case, .champ { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; flex-wrap: wrap; }
.radios input, .case input { width: 22px; height: 22px; accent-color: var(--accent); }
/* A select never wider than its panel (audit UX of 20/11: « 1 : débutant (A1) » ran out of the settings at 200 % on 360 px). */
.champ select { min-height: 44px; max-width: 100%; font: inherit; border-radius: 10px; padding: 0 0.5rem; background: var(--papier-2); color: var(--encre); border: 1px solid var(--ligne); }

/* ---------------------------------------------------------------- word card */
/* Under the top bar, which grows with the text size (200 % on a computer: the card and the panels covered the tools;
   audit UX of 20/11); 76 px as before while the bar is short. Phones put them at the bottom (media query below). */
.fiche {
  position: fixed; right: 12px; top: max(76px, calc(var(--bas-barre, 64px) + 10px)); bottom: 12px; width: min(25rem, 42vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--papier); border-radius: 20px; box-shadow: var(--ombre); padding: 0.8rem 1.1rem 1.1rem;
}
.fiche[hidden] { display: none; }
.fiche-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fiche-piece { margin: 0; font-size: 0.88rem; color: var(--encre-douce); }
/* « Je le connais » said on the next card (audit UX of 19/11, point 14). */
.accuse { display: flex; align-items: center; gap: 0.4rem; margin: 0.4rem 0; padding: 0.35rem 0.6rem; border-radius: 10px; background: var(--papier-2); color: var(--encre); font-size: 0.88rem; }
.accuse .icone { flex: none; }
/* The words due today, at the head of the words list (audit UX of 19/11, point 16). */
.dus-liste { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin: 0.5rem 0; padding: 0.5rem 0.7rem; border-radius: 12px; background: var(--accent-clair); font-weight: 700; }
.dus-liste > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fermer { background: var(--papier-2); border: 1px solid var(--ligne); border-radius: 12px; width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.vignette { position: relative; margin: 0.3rem 0 0.2rem; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--papier), var(--papier-2)); }
.vignette canvas { width: 100%; height: 190px; display: block; touch-action: none; cursor: grab; }
.consigne-vignette { text-align: center; margin: 0; padding: 0 0 0.3rem; font-size: 0.75rem; }
/* The word and its listen button. Text at 150 % or more (html[data-grand], principal.js): the button goes under a word
   too long for the line, and a word longer than the line breaks rather than pushing the button out of the card (audit UX
   of 20/11: at 200 % on 360 px, « an armchair » sent it off the review). Below 150 %, as before. */
.titre-mot { display: flex; align-items: center; gap: 0.5rem; border-radius: 12px; }
.titre-mot h2 { font-family: var(--titre); font-size: 2.1rem; margin: 0; line-height: 1.1; }
html[data-grand] .titre-mot { flex-wrap: wrap; }
html[data-grand] .titre-mot h2 { min-width: 0; overflow-wrap: break-word; }
.titre-mot h2:focus { outline: none; }
.article { font-weight: 600; font-size: 1.2rem; color: var(--encre-douce); }
.ecoute { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: inline-grid; place-items: center; cursor: pointer; }
body[data-style="neon"] .ecoute { color: #11132A; }
/* The small listen buttons of the sentences sit on the dark paper: their icon keeps the accent colour. */
body[data-style="neon"] .ligne .ecoute { color: var(--accent); }
.api { margin: 0.1rem 0 0; color: var(--encre-douce); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.etoiles { color: var(--accent); letter-spacing: 0.05em; white-space: nowrap; }
.traduction { margin: 0.2rem 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.variantes { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0 0 0.4rem; font-size: 0.92rem; }
.variantes abbr { text-decoration: none; font-weight: 700; background: var(--papier-2); border-radius: 6px; padding: 0 0.3rem; }
.bloc { background: var(--papier-2); border: 1px solid var(--ligne); border-radius: 14px; padding: 0.7rem 0.8rem; margin-top: 0.75rem; }
/* The English in brackets goes under the French title when the line is short (text enlarged: audit UX of 20/11, « (definition) »
   ran out of the card at 200 % on 360 px). */
.bloc h3 { margin: 0 0 0.45rem; font-size: 1rem; font-weight: 700; color: var(--encre); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4rem; }
.bloc h3 .petit { font-weight: 400; }
/* The word itself opens the card without a frame; the hint stands out in the accent's light tint. */
.bloc-mot { background: transparent; border: 0; padding: 0; margin-top: 0.4rem; }
.bloc-astuce { background: var(--accent-clair); border-color: transparent; }
.bloc-astuce p { margin: 0; }
.tout-ecouter { margin-top: 0.1rem; }
.ligne { display: flex; align-items: center; gap: 0.6rem; justify-content: space-between; }
.ligne p { margin: 0; }
.ligne .ecoute { width: 44px; height: 44px; background: var(--papier); color: var(--accent); border: 1.5px solid var(--ligne); }
.phrases { margin: 0 0 0.6rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.phrases li + li { border-top: 1px solid var(--ligne); padding-top: 0.45rem; }
/* A sentence, its stars and its listen button: with the text at 150 % or more (html[data-grand], principal.js), when the
   line is too short for the three, the sentence keeps the whole width and the stars and the button go under it (audit UX
   of 20/11: at 200 % on 360 px the sentence ran one word a line and the button left the card, which scrolled sideways).
   Below 150 %, as before. */
html[data-grand] .phrases .ligne { flex-wrap: wrap; }
html[data-grand] .phrases .ligne > p { flex: 1 1 9em; min-width: 0; overflow-wrap: break-word; }
.trad { margin: 0.1rem 0 0; color: var(--encre-douce); font-size: 0.92rem; }
.trad[hidden] { display: none; }
/* The line being read: a coloured band and a bold text (not the colour alone). */
.en-lecture { background: var(--accent-clair); border-radius: 10px; box-shadow: -6px 0 0 var(--accent-clair), 6px 0 0 var(--accent-clair); }
.en-lecture > .ligne > p, .en-lecture > p, .en-lecture h2 { font-weight: 700; }
.astuce { background: var(--papier-2); border-radius: 12px; padding: 0.55rem 0.7rem; margin: 0.6rem 0; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.6rem; }
.statut[aria-pressed="true"] { background: var(--accent-clair); border-color: var(--accent); font-weight: 700; }
/* The card's actions stay at the bottom of the card while it scrolls: known, to review, previous, next (Loïc,
   16/11/2026: no more going back to the top for "Suivant"). */
.fiche:has(> .actions-fiche) { padding-bottom: 0; }
.actions-fiche {
  position: sticky; bottom: 0; z-index: 1; margin: 0.9rem -1.1rem 0; padding: 0.6rem 1.1rem max(0.6rem, env(safe-area-inset-bottom));
  background: var(--papier); border-top: 1px solid var(--ligne); box-shadow: 0 -8px 16px rgba(43, 36, 51, 0.08);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px;
}
.actions-fiche .statuts { display: flex; flex-wrap: wrap; gap: 6px; }
.actions-fiche .raccourcis { width: 100%; margin: 0; }
/* A touch screen has no arrow keys nor space bar: the shortcuts line goes; on a phone the four buttons share one
   row (night of 16/11/2026: the bar took three rows of the screen). */
@media (pointer: coarse) { .actions-fiche .raccourcis { display: none; } }
@media (max-width: 480px) {
  .actions-fiche { gap: 6px; padding-inline: 0.8rem; }
  .actions-fiche .statut { padding-inline: 0.55rem; gap: 0.3rem; }
}
/* Text enlarged on a narrow card (the bar is under 20 em wide: from about 110 % on a 360 px phone): the four buttons
   keep one row, « Je le connais » and « À revoir » by their icon, their word kept for screen readers; the pressed one
   gets a thick ring, so its state is not said by colour alone (audit UX of 20/11/2026: at 200 % on 360 x 640 the bar
   took three rows, half of the card). */
.actions-fiche { container-type: inline-size; }
@container (max-width: 20em) {
  .actions-fiche .statuts { flex-wrap: nowrap; }
  .actions-fiche .statut { min-width: 44px; padding: 0 0.5rem; justify-content: center; }
  .actions-fiche .statut span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .actions-fiche .statut[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--accent); }
  .actions-fiche .fiche-nav .nav-mot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .actions-fiche .fiche-nav .nav-mot { min-width: 44px; padding: 0 0.5rem; justify-content: center; }
}
kbd { font: inherit; font-size: 0.85em; border: 1px solid var(--ligne); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.3em; background: var(--papier-2); }

.infobulle {
  position: fixed; left: 0; top: 0; pointer-events: none; background: var(--encre); color: var(--papier); border-radius: 8px;
  padding: 0.2rem 0.5rem; font-size: 0.9rem; font-weight: 700; white-space: nowrap;
}
.infobulle[hidden] { display: none; }

/* ---------------------------------------------------------------- phones: card and panels as bottom sheets */
.aide.efface { display: none; }
/* The guided tour speaks alone (accueil/guide.js puts the class on the body): the help line keeps only its messages. */
body.visite-guidee .aide:not(.signal) { display: none; }
/* The 3D display lost (a graphics reset, too many 3D views in the browser): said in words, with a reload. */
/* A map on its way (its chunk loading), or that could not load: the same card, with « Réessayer ». */
.perte-3d, .chargement-carte {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: min(26rem, calc(100vw - 32px));
  background: var(--papier); color: var(--encre); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.2rem;
  display: grid; gap: 0.8rem; justify-items: start;
}
.perte-3d[hidden], .chargement-carte[hidden], .chargement-carte button[hidden] { display: none; }
.perte-3d p, .chargement-carte p { margin: 0; }
.lancer-saynete { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lancer-saynete[hidden] { display: none; }

/* ---------------------------------------------------------------- word card: previous, next */
.fiche-nav { display: flex; align-items: center; gap: 6px; }
.fiche-nav .nav-mot { min-height: 44px; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0 0.6rem; }
.fiche-nav .nav-mot[disabled] { opacity: 0.45; cursor: default; }

/* ---------------------------------------------------------------- "Retrouvez l'objet" */
.revision .consigne { margin: 0.2rem 0 0.6rem; }
.revision .verdict { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.3rem 0; }
.revision .verdict .icone { flex: none; margin-top: 0.15rem; }
.revision .bloc-verdict:focus { outline: none; }
.revision .sans-souris summary { min-height: 44px; display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; list-style: none;
  background: var(--papier-2); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0.45rem 0.85rem; }
.revision .sans-souris summary::-webkit-details-marker { display: none; }
.revision .sans-souris[open] summary { background: var(--accent-clair); border-color: var(--accent); font-weight: 700; }
.revision .sans-souris ol { list-style: none; padding: 0; margin: 0.3rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.revision .sans-souris kbd { font: inherit; font-weight: 700; opacity: 0.7; }
@media (max-width: 760px) {
  .fiche-nav .nav-mot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fiche-nav .nav-mot { width: 44px; padding: 0; justify-content: center; }
}
.lancer-saynete button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; border-radius: 999px; padding: 0.45rem 1rem; box-shadow: var(--ombre); cursor: pointer; }
.lancer-saynete .verrou { background: var(--papier); color: var(--encre); border: 1.5px solid var(--ligne); font-weight: 400; }
h2[tabindex="-1"]:focus, [data-titre-bilan]:focus, [data-enonce]:focus, [data-verdict]:focus { outline: none; }
.saynete h2 { font-family: 'Fraunces', serif; font-size: 1.7rem; margin: 0.1rem 0 0.4rem; }
.commandes-saynete { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.5rem; }
.commandes-saynete [hidden] { display: none; }
.script { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.replique { padding: 0.25rem 0.4rem; border-radius: 10px; }
.replique .qui { font-weight: 700; color: var(--encre-douce); }
.replique.en-cours { background: var(--accent-clair); }
.replique.en-cours p { font-weight: 700; }
.replique.en-cours .qui { color: var(--encre); }
.bilan h3 { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--encre); }
.grammaire { margin: 0.2rem 0 0.6rem; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.question .enonce { font-weight: 700; margin: 0.4rem 0; }
.reponses { display: grid; gap: 6px; }
.reponse { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; text-align: left; background: var(--papier-2); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0.4rem 0.7rem; cursor: pointer; }
.reponse .lettre { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--papier); border: 1.5px solid var(--ligne); font-weight: 700; flex: none; }
.reponse[disabled] { cursor: default; opacity: 1; }
.reponse.choisie { border-color: var(--encre); border-width: 2.5px; }
.reponse.juste { background: var(--accent-clair); }
.verdict { margin-top: 0.5rem; }
.verdict[hidden] { display: none; }
.titre-verdict { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.2rem; }
/* The source of the question, quiet under the verdict; its link keeps a 44 px target. */
.source-question { font-size: 0.85rem; color: var(--encre-douce); margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.source-question a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 2px; }
@media (max-width: 899px) {
  .fiche.saynete { max-height: 46dvh; }
  .saynete h2 { font-size: 1.35rem; }
}
@media (max-width: 600px) {
  .commandes-saynete .secondaire { width: 48px; padding: 0; justify-content: center; }
  .commandes-saynete .secondaire span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 899px) {
  .fiche { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 64dvh; border-radius: 20px 20px 16px 16px; }
  .vignette canvas { height: 150px; }
  .titre-mot h2 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .barre { padding: 8px; }
  .titre { font-size: 1rem; }
  /* The place and the words learnt on two short lines, then the gauge (audit UX of 19/11, point 21: up to seven lines once
     the tools grew); the next building's name stays for screen readers, and is written on its label on the map. */
  .marque { flex: 0 0 auto; max-width: 50%; }
  /* A long place name at 200 % (« La boulangerie ») breaks inside the corner instead of running under the tools. */
  .marque .titre { overflow-wrap: anywhere; hyphens: auto; }
  .outils { flex: 1 1 0; min-width: 0; }
  .compteur .prochain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* « Réviser » keeps its colour, its icon and its number; its word (in its label for screen readers) made a third row of
     tools, and left the screen at 200 %. The guided tour rings it when it names it. */
  .outil.a-reviser .libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .jauge { min-width: 0; }
  .aide { top: auto; bottom: calc(var(--hauteur-bas, 60px) + max(12px, env(safe-area-inset-bottom)) + 10px); font-size: 0.85rem;
    /* Never over the tools: with large text on a small phone, the line scrolls instead. */
    max-height: calc(100dvh - var(--bas-barre, 68px) - var(--hauteur-bas, 60px) - max(12px, env(safe-area-inset-bottom)) - 18px); overflow-y: auto; }
  .panneau { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 70dvh; }
  .piece { padding: 0.2rem 0.36rem; font-size: 0.8rem; min-width: 44px; }
  .piece .long:has(+ .court) { display: none; }
  .piece .court { display: inline; }
  .pieces { gap: 4px; }
  .lieu-village .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .etiquette { font-size: 0.8rem; padding: 0.2rem 0.55rem; }
  .etiquette .en { display: none; }
  .etiquette.bientot { min-width: 44px; justify-content: center; padding: 0.2rem; }
  .etiquette.bientot .texte { display: none; }
  /* The next building keeps its name and its count: the one goal in reach (audit UX of 19/11, point 10). */
  .etiquette.bientot.prochain { padding: 0.2rem 0.55rem; }
  .etiquette.bientot.prochain .texte { display: inline; }
  /* The map labels give only the building's name: the count of words is in the button below, and comes back on the
     label while it is touched or focused (kept for screen readers, never display: none). */
  .etiquette .petit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .etiquette:is(:active, :focus-visible) .petit { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  /* The places stand on one line that scrolls sideways (18/11/2026: on a phone the village's thirteen buttons took
     three rows, about 150 px of 844). The first button (the maps, or the way back to the map) stays at the left; a
     fade at the right edge says there is more (data-suite, set by interface.js); the auto margins centre the line when
     it fits; the padding keeps the shadows from being cut (none at the sides: the first button stays flush with the
     edge, with nothing showing past it). */
  .bas { left: 8px; right: 8px; transform: none; width: auto; max-width: none; }
  .rangee-pieces { align-self: stretch; }
  .rangee-pieces .pieces { flex: 1 1 auto; }
  .pieces {
    position: relative; align-self: stretch; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--colle, 56px) 8px;
    scroll-behavior: smooth; scrollbar-width: none; padding: 6px 0 10px; margin: -6px 0 -10px;
  }
  .pieces::-webkit-scrollbar { display: none; }
  .pieces > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .pieces > :first-child { position: sticky; left: 0; z-index: 1; margin-left: auto; }
  .pieces > :last-child { margin-right: auto; }
  .pieces[data-suite] {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- accent switch (card and scene) */
.choix-accent { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.6rem; }
.choix-accent .accent { min-height: 44px; padding: 0 0.8rem; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--papier-2); color: var(--encre); font: inherit; cursor: pointer; }
.choix-accent .accent[aria-pressed="true"] { background: var(--accent-clair); border-color: var(--accent); font-weight: 700; }
.choix-accent .accent[aria-pressed="true"]::before { content: "✓ "; }

/* ---------------------------------------------------------------- home buttons and sound */
.boutons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.secondaire[aria-pressed="true"] { background: var(--accent-clair); border-color: var(--accent); }
.secondaire[disabled] { opacity: 0.55; cursor: progress; }
.champ input[type="range"] { flex: 1 1 8rem; min-height: 44px; accent-color: var(--accent); }

/* ---------------------------------------------------------------- maps panel (many maps) */
.liste-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.choix-carte { width: 100%; min-height: 44px; text-align: left; display: flex; align-items: center; gap: 0.6rem; background: var(--papier-2); border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0.4rem 0.7rem; cursor: pointer; color: var(--encre); font: inherit; }
.choix-carte[aria-current="true"] { border-color: var(--accent); background: var(--accent-clair); }
.nom-carte { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.ici { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 700; color: var(--accent); }
.panneau-cartes { top: auto; right: auto; left: 50%; transform: translateX(-50%); bottom: calc(var(--hauteur-bas, 60px) + 24px); width: min(24rem, calc(100vw - 24px)); }
.lieu-cartes .nom { flex-direction: row; }
.lieu-cartes .long::before { content: "("; } .lieu-cartes .long::after { content: ")"; }
@media (max-width: 600px) {
  .panneau-cartes { left: 8px; right: 8px; transform: none; bottom: 8px; width: auto; }
  .lieu-cartes .long { display: none; }
}

/* ---------------------------------------------------------------- Advent calendar (ui/calendrier.js)
   A painted calendar board of the village: a fir-green board in a gold frame under a snowy roof, 24 painted doors.
   Each state is said by an icon and a word (a star and « aujourd'hui », a present and « à ouvrir », a lock and
   « fermée », the picture and the word), never by the colour alone. Sizes in px so that 200 % text grows the words,
   not the grid. On the left, so that the card of a word opened from a door stands beside it. */
.panneau-avent { right: auto; left: 12px; width: min(31rem, calc(100vw - 24px)); top: max(76px, calc(var(--bas-barre, 64px) + 10px)); max-height: calc(100dvh - max(76px, calc(var(--bas-barre, 64px) + 10px)) - 84px); }
.calendrier { --or: #E2BC62; position: relative; margin-top: 0.5rem; padding: 0 10px 12px; border-radius: 6px 6px 14px 14px; background: linear-gradient(180deg, #235640, #1D4A37 55%, #19402F); box-shadow: inset 0 0 0 4px #1D4A37, inset 0 0 0 6px var(--or), inset 0 0 0 9px #1D4A37, 0 8px 18px rgba(31, 27, 43, 0.25); }
.fronton { display: block; width: calc(100% + 20px); height: 46px; margin: 0 -10px 4px; }
.fronton .toit { fill: #8E1F25; } .fronton .neige { fill: #FFFFFF; } .fronton .fil { fill: none; stroke: #12301F; stroke-width: 1.5; }
.fronton .ampoules circle:nth-child(3n+1) { fill: #E2BC62; } .fronton .ampoules circle:nth-child(3n+2) { fill: #D9483B; } .fronton .ampoules circle:nth-child(3n) { fill: #7FB2D9; }
.portes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(68px, 4.6rem), 1fr)); gap: 8px; }
.portes li { --peinture: #B3262E; --sur-peinture: #FBF0CF; --chiffre: #F2D27E; }
.portes .case-vert { --peinture: #2B6149; } .portes .case-bleu { --peinture: #24406B; }
.portes .case-creme { --peinture: #F3E2B8; --sur-peinture: #3A2A1E; --chiffre: #6B2A1A; }
.portes .case-double { grid-column: span 2; }
.porte { position: relative; width: 100%; min-height: 80px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border: 0; border-radius: 6px 6px 4px 4px; background: var(--peinture); color: var(--sur-peinture); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), inset 0 0 0 5px var(--peinture), inset 0 0 0 6px rgba(0, 0, 0, 0.25); font: inherit; line-height: 1.1; cursor: pointer; overflow-wrap: anywhere; perspective: 320px; }
.porte .num { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--chiffre); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.portes .case-creme .porte .num { text-shadow: none; }
.porte .icone { width: 18px; height: 18px; }
.porte .etat-porte { font-size: 0.74rem; font-weight: 700; overflow-wrap: normal; text-align: center; }
.porte .poignee { position: absolute; right: 7px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #E2BC62; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.porte:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 6px #12301F; }
.porte.fermee { cursor: default; }
.porte.ouvrable { outline: 2px dashed #F2D27E; outline-offset: -5px; }
.porte.du-jour { outline: 2px solid #FFF1C2; outline-offset: -5px; box-shadow: 0 0 0 3px #FFE9A8, 0 0 16px 5px rgba(255, 214, 102, 0.7); animation: lueur 3.2s ease-in-out infinite alternate; z-index: 1; }
@keyframes lueur { from { box-shadow: 0 0 0 3px #FFE9A8, 0 0 10px 2px rgba(255, 214, 102, 0.45); } to { box-shadow: 0 0 0 3px #FFE9A8, 0 0 20px 7px rgba(255, 214, 102, 0.85); } }
/* An open door: the picture inside on cream, the word under it, the door leaf swung open on its hinges. */
.porte.ouverte { background: #FBF0CF; color: #3A2A1E; box-shadow: inset 0 0 0 3px var(--peinture), inset 0 0 0 4px rgba(0, 0, 0, 0.25); padding-left: 14px; }
.porte.ouverte .interieur svg { display: block; width: 44px; height: 44px; }
.porte.ouverte .interieur .icone { width: 28px; height: 28px; }
.porte.ouverte .mot-porte { font-weight: 700; font-size: 0.78rem; text-align: center; hyphens: auto; }
.porte.ouverte .num { position: absolute; top: 3px; right: 5px; font-size: 0.8rem; color: #6B2A1A; text-shadow: none; }
.porte .battant { position: absolute; left: 0; top: 0; bottom: 0; width: min(100%, 72px); border-radius: 6px 0 0 4px; background: var(--peinture); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), inset 0 0 0 3px rgba(0, 0, 0, 0.22); transform-origin: left center; transform: rotateY(-80deg); pointer-events: none; }
.porte.vient .battant { animation: battant 0.9s ease-out; }
@keyframes battant { from { transform: rotateY(0deg); } to { transform: rotateY(-80deg); } }
@media (prefers-reduced-motion: reduce) { .porte.vient .battant, .porte.du-jour { animation: none; } }
body.calme .porte.vient .battant, body.calme .porte.du-jour { animation: none; }
@media (max-width: 600px) { .panneau-avent { left: 8px; right: 8px; width: auto; } }
/* On a wide screen the help line moves beside the open calendar instead of sliding under it. */
@media (min-width: 1000px) { body:has(.panneau-avent:not([hidden])) .aide { left: calc((min(31rem, 100vw - 24px) + 24px + 100vw) / 2); max-width: min(40rem, calc(100vw - min(31rem, 100vw - 24px) - 48px)); } }
body[data-style="neon"] .calendrier { background: #13163A; box-shadow: inset 0 0 0 2px #4FD1FF, 0 0 18px rgba(79, 209, 255, 0.3); }
body[data-style="neon"] .fronton .toit { fill: #2A2F63; }

/* The page of a door, in the word's card: a gift tag with its date, the tradition, the challenge, find and share. */
.bloc-avent { background: #FFF8EA; border: 2px solid #B3262E; color: #2B2433; }
/* The door's header above the word (calendrier.page): its date and a button down to its tradition and challenge. */
.entete-porte { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 0.5rem; }
.entete-porte .date-porte { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 2px 10px 2px 6px; border-radius: 6px; background: #1D4A37; color: #FBF0CF; font-weight: 700; font-size: 0.9rem; }
.entete-porte .date-porte .icone { width: 18px; height: 18px; }
.entete-porte .lien-porte { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 44px; padding: 4px 12px; border: 2px solid #B3262E; border-radius: 8px; background: #FFF8EA; color: #2B2433; font: inherit; font-family: var(--titre); font-weight: 700; text-align: left; cursor: pointer; }
.entete-porte .lien-porte .petit { font-family: var(--texte, inherit); font-weight: 400; color: #5A4E44; }
.bloc-avent .date-porte { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0.4rem; padding: 2px 10px 2px 6px; border-radius: 6px; background: #1D4A37; color: #FBF0CF; font-weight: 700; font-size: 0.9rem; }
.bloc-avent .date-porte .icone { width: 18px; height: 18px; }
.bloc-avent h3 { font-family: var(--titre); font-size: 1.15rem; margin: 0 0 0.35rem; color: #2B2433; display: block; }
.bloc-avent .tradition { margin: 0 0 0.5rem; }
.bloc-avent .dans-revisions { display: flex; align-items: center; gap: 6px; margin: 0 0 0.4rem; color: #5E5468; }
.bloc-avent .defi { margin-top: 0.6rem; padding-top: 0.5rem; border-top: 1px dashed rgba(43, 36, 51, 0.25); }
.bloc-avent .defi h4 { margin: 0; font-size: 1rem; }
.bloc-avent .reponse { background: #FFFFFF; color: #2B2433; }
.bloc-avent .reponse.juste { background: #FFE3D3; }
.bloc-avent .actions-porte { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.7rem; }
.bloc-avent .actions-porte button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.bloc-avent .statut-partage:empty { display: none; }
.bloc-avent .statut-partage { margin: 0.4rem 0 0; color: #5E5468; }
.bloc-avent .lien-porte { width: 100%; min-height: 44px; margin-top: 4px; font: inherit; padding: 0 8px; border: 1.5px solid rgba(43, 36, 51, 0.3); border-radius: 8px; }
.bloc-avent .source-question { color: #5E5468; }

/* The calendar on the home page (accueil/avent.js): a small painted door that calls, under « Entrer dans le village ». */
.accueil .avent-accueil { margin: 2px 0 0; }
.avent-porte { display: flex; align-items: center; gap: 12px; min-height: 56px; max-width: 26rem; padding: 6px 14px 6px 6px; border: 2px solid var(--sapin); border-radius: 10px; background: #FFFBF5; color: #2B2433; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 6px 14px rgba(31, 27, 43, 0.18); }
.avent-porte .petite-porte { flex: none; display: grid; place-items: center; width: 40px; height: 50px; border-radius: 5px 5px 3px 3px; background: #B3262E; box-shadow: inset 0 0 0 2px #E2BC62, inset 0 0 0 4px #B3262E, inset 0 0 0 5px rgba(0, 0, 0, 0.25); }
.avent-porte .petite-porte .num { font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: #F2D27E; }
.avent-porte .petite-porte .icone { color: #F2D27E; }
.avent-porte .texte { display: grid; gap: 1px; line-height: 1.3; }
.avent-porte .texte strong { font-family: var(--titre); }
.avent-porte.attend .petite-porte { animation: lueur-accueil 3.2s ease-in-out infinite alternate; }
@keyframes lueur-accueil { from { box-shadow: inset 0 0 0 2px #E2BC62, inset 0 0 0 4px #B3262E, 0 0 4px 1px rgba(255, 214, 102, 0.4); } to { box-shadow: inset 0 0 0 2px #E2BC62, inset 0 0 0 4px #B3262E, 0 0 14px 5px rgba(255, 214, 102, 0.9); } }
.avent-porte:hover { border-color: #B3262E; }
.avent-annonce { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0.35rem 0.8rem; border-radius: 14px; background: var(--panneau-clair); color: var(--encre-douce); font-size: 0.92rem; box-shadow: 0 4px 12px rgba(31, 27, 43, 0.1); }
@media (prefers-reduced-motion: reduce) { .avent-porte.attend .petite-porte { animation: none; } }
body.calme .avent-porte.attend .petite-porte { animation: none; }
body[data-style="neon"] .avent-porte { background: #11132A; color: #F1F3FF; border-color: #4FD1FF; box-shadow: 0 0 10px rgba(79, 209, 255, 0.35); }
body[data-style="neon"] .avent-annonce { color: #F1F3FF; }

/* ---------------------------------------------------------------- invitation to install (src/pwa/installation.js) */
.invitation {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 3; top: calc(var(--bas-barre, 68px) + 60px);
  width: min(30rem, calc(100vw - 24px)); background: var(--papier); color: var(--encre); border-radius: var(--rayon);
  box-shadow: var(--ombre); border: 2px solid var(--or); padding: 0.8rem 1rem; display: grid; gap: 0.5rem;
}
.invitation h2 { margin: 0; font-family: var(--titre); font-size: 1.05rem; line-height: 1.25; }
.invitation p { margin: 0; font-size: 0.92rem; }
.invitation .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invitation button { min-height: 44px; }

/* ---------------------------------------------------------------- underlined words of a card (src/ui/glossaire.js)
   A dotted underline (a shape, not a colour alone) on the words above the player's level; the bubble under the word
   gives the translation. The button keeps the text as it is: no padding, its touch area (44 px) is an invisible
   pseudo-element around it. */
.gl { position: relative; }
.gl-mot {
  position: relative; display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit;
  line-height: inherit; cursor: help; text-align: inherit;
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--accent);
}
.gl-mot::after { content: ''; position: absolute; left: -3px; right: -3px; top: 50%; height: 44px; min-height: 100%; transform: translateY(-50%); }
.gl-mot:hover, .gl.ouvert > .gl-mot { text-decoration-style: solid; }
.gl-bulle {
  display: none; position: absolute; z-index: 4; top: calc(100% + 6px); left: 0; width: max-content; max-width: 16rem;
  padding: 0.35rem 0.6rem; border-radius: 10px; background: var(--encre); color: var(--papier); box-shadow: var(--ombre);
  font-size: 0.92rem; font-weight: 400; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere;
}
.gl-bulle.dessus { top: auto; bottom: calc(100% + 6px); }
.gl.ouvert > .gl-bulle { display: block; }
.gl-lemme { font-weight: 700; }
.gl-fiche {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.3em; min-height: 44px; margin-top: 0.3rem; padding: 0 0.7rem; border-radius: 10px;
  border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
body[data-style="neon"] .gl-fiche { color: #11132A; }
.gl-fiche:focus-visible { outline: 3px solid var(--papier); outline-offset: 2px; }

/* ---------------------------------------------------------------- sentences by difficulty (src/ui/phrases.js) */
.etoiles-phrase { flex: none; font-size: 0.8rem; }
.encore-phrase { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 0.6rem; }
.phrases > li[hidden] { display: none; }
