/* Top of the World en ligne : police servie par le site, présentation sous l'écran d'accueil, pages légales,
   pied de page et bandeau de consentement. Mêmes couleurs que le jeu (style.css). */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/jeu/polices/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/jeu/polices/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.presentation, .page-texte { max-width: 640px; margin: 0 auto; padding: 8px 16px 24px; font-size: 16.5px; line-height: 1.55; }
.presentation h2, .page-texte h2 { margin: 28px 0 8px; font-size: 22px; line-height: 1.2; font-weight: 900; }
.presentation h3 { margin: 18px 0 4px; font-size: 17px; font-weight: 800; }
.presentation p, .page-texte p { margin: 0 0 10px; }
.presentation ol, .presentation ul, .page-texte ul { margin: 0 0 12px; padding-left: 22px; }
.presentation li, .page-texte li { margin: 0 0 8px; }
.presentation figure { margin: 16px 0 6px; }
.presentation figure img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--filet); }
.presentation figcaption { margin-top: 6px; font-size: 14px; color: var(--gris); font-weight: 600; }
.presentation .genres { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.presentation .genres li { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--blanc); font-size: 14.5px; line-height: 1.3; }
.presentation .btn { margin: 22px 0 6px; background: var(--corail); }
.presentation-tete { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; color: var(--gris); font-size: 13px; font-weight: 800; }

.pied { max-width: 640px; margin: 0 auto; padding: 18px 16px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--filet);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 14px; font-weight: 700; }
.pied a, .pied button { color: var(--gris); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pied a:hover, .pied button:hover { color: var(--encre); text-decoration: underline; }

.page-texte { padding-top: 20px; }
.page-texte h1 { margin: 16px 0 6px; font-size: 30px; line-height: 1.1; font-weight: 900; }
.page-texte a { color: var(--corail); font-weight: 700; }
.retour-jeu { display: inline-block; margin-top: 4px; padding: 10px 14px; border-radius: 10px; background: var(--encre); color: var(--blanc) !important; text-decoration: none; font-weight: 800; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 900; font-size: 18px; }
.marque img { width: 36px; height: 36px; border-radius: 9px; }

.partage-ok { margin: 4px 0 0; text-align: center; font-weight: 700; color: var(--gris); font-size: 14px; word-break: break-all; }

.consent-banner { position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); padding: 14px; border-radius: 16px; background: var(--blanc); color: var(--encre);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
.consent-banner p { margin: 4px 0; }
.consent-banner a { color: var(--corail); font-weight: 700; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { flex: 1; padding: 11px 10px; border-radius: 10px; border: 2px solid var(--encre); background: var(--blanc); font-weight: 800; }
.consent-actions button[data-choice="yes"] { background: var(--encre); color: var(--blanc); }

/* Langues (04/11) : le menu des langues du pied de page (chaque langue écrite dans sa langue) et la notification
   « Jouer en … » proposée sur l'écran verrouillé quand le téléphone parle une autre langue du jeu (public.js). */
.pied .langues { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding-top: 10px;
  border-top: 1px solid var(--filet); font-weight: 600; font-size: 13.5px; }
.pied .langues a[aria-current] { color: var(--encre); }
.notif-langue { text-decoration: none; color: var(--encre); grid-template-columns: 36px 1fr 28px; }
.notif-langue i { background: var(--corail); font-size: 18px; }
.notif-langue strong { font-size: 15px; font-weight: 800; }
.notif-langue button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--fond); color: var(--gris);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
/* Vietnamien : Figtree n'a pas les lettres accentuées du vietnamien, toute la page prend la police du système. */
html:lang(vi) { --police: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
/* Coréen : on ne coupe jamais un mot en fin de ligne (usage coréen), sauf mot trop long pour l'écran. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }

/* Badge officiel Google Play (07/11/2026, appli acceptée) : image de Google sans retouche, phrase en gris comme les
   légendes ; pied de page, question « Y a-t-il une appli ? », fin de saison, et bandeau Android (notification). */
.play { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.play-lien { display: inline-block; line-height: 0; border-radius: 8px; }
.play-lien img { display: block; height: auto; }
.play-phrase { margin: 0; max-width: 420px; color: var(--gris); font-size: 14px; line-height: 1.4; font-weight: 600; }
.presentation .play { margin: 10px 0 4px; align-items: flex-start; text-align: left; }
.pied .play-pied-de-page { flex-basis: 100%; flex-direction: row; justify-content: center; gap: 10px; padding-bottom: 8px; }
.pied .play-pied-de-page .play-phrase { font-size: 13.5px; }
#fin-maquette .play-fin-de-partie { margin: 18px auto 6px; }
#defaite .play-revenir, #bilan .play-milieu-de-partie { margin: 4px auto 12px; }
#defaite .play-revenir .play-phrase, #bilan .play-milieu-de-partie .play-phrase { font-size: 13.5px; }

/* Le badge du bureau quand l'argent manque (18/11/2026) : au-dessus de la liste, aligné comme le reste du
   panneau, jamais par-dessus un bouton du jeu. */
.bu-cachet { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 2px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 61, 87, 0.08); }
.bu-cachet .play-phrase { font-size: 13.5px; font-weight: 800; color: var(--encre); }
.bu-cachet .play { margin: 0; }
.notif-play { grid-template-columns: 36px 1fr auto 28px; color: var(--encre); }
.notif-play img { width: 36px; height: 36px; border-radius: 9px; }
.notif-play strong { font-size: 14.5px; font-weight: 800; }
.notif-play .play-voir { padding: 7px 11px; border-radius: 9px; background: var(--encre); color: var(--blanc); text-decoration: none; font-size: 13.5px; font-weight: 800; }
.notif-play button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--fond); color: var(--gris);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.notif-play-page { margin: 14px 0 0; box-shadow: 0 0 0 1px var(--filet); }

/* Fin de la démo (11/11/2026) : même look que la fin de saison du jeu. */
#fin-demo { justify-content: flex-start; gap: 14px; max-width: 520px; margin: 0 auto; }
.fin-demo-scene { position: relative; flex: none; margin: calc(-1 * max(16px, env(safe-area-inset-top))) -16px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0 0 22px 22px; background: var(--encre); }
.fin-demo-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fin-demo-scene .etiquette { position: absolute; left: 16px; bottom: 14px; background: var(--corail); }
@media (min-width: 560px) { #fin-demo { padding-top: 32px; } .fin-demo-scene { margin: 0; border-radius: 22px; } }
.fin-demo-titre { margin: 0; font-size: 26px; line-height: 1.12; font-weight: 900; }
.fin-demo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fin-demo-points li { position: relative; padding: 9px 12px 9px 34px; border-radius: 12px; background: var(--blanc); font-weight: 700; font-size: 15px; line-height: 1.3; }
.fin-demo-points li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--corail); }
.fin-demo-android .play { margin: 4px auto 0; }
.fin-demo-android .play-phrase { font-weight: 800; color: var(--encre); }
.fin-demo-iphone { margin: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--filet); font-weight: 700; font-size: 16px; line-height: 1.4; }
#fin-demo .feuille-route li { padding: 5px 9px; font-size: 12px; }
