/* Yalla Yalla ! : peinture d'enseigne. Aplats d'émail, filet intérieur, ombre portée dure, jamais de dégradé.
   Polices : Shrikhand (les titres, comme une enseigne), Baloo 2 (le texte). Téléphone d'abord : 740 × 360 en paysage. */
@font-face { font-family: 'Shrikhand'; src: url(polices/shrikhand-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url(polices/baloo-2-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url(polices/baloo-2-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --brique: #c8402b; --ocre: #e8a12d; --turquoise: #1e9c9a; --indigo: #25305e; --creme: #f6e7c8; --encre: #2b1a12; --kraft: #d9b98a; --ardoise: #27302f;
  --marge: 12px; --ombre: 4px 4px 0 var(--encre);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--encre); color: var(--creme);
  font: 500 16px/1.25 'Baloo 2', system-ui, sans-serif; font-synthesis: none; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: none; }
img { pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; padding: 0; border: 0; background: none; }
[hidden] { display: none !important; }
#jeu { position: fixed; inset: 0; touch-action: none; }
#jeu canvas { display: block; touch-action: none; }
body:not(.en-partie) #jeu { visibility: hidden; }
#fond-menus { position: fixed; inset: 0; background: url(img/illustration.webp) center / cover no-repeat; }
body.en-partie #fond-menus { display: none; }

/* ── Boutons : une enseigne, un filet, une ombre dure qui s'écrase à l'appui ── */
.bouton-vif, .bouton-filet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 22px; border-radius: 6px; transition: transform .06s; }
.bouton-vif { background: var(--brique); color: #fff6e0; font: 400 21px/1 'Shrikhand', serif; border: 3px solid var(--encre); outline: 2px solid var(--creme); outline-offset: -6px; box-shadow: var(--ombre); }
.bouton-filet { background: var(--creme); color: var(--encre); font-weight: 700; border: 3px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); }
.bouton-vif.vif, .bouton-filet.vif { background: var(--brique); color: #fff6e0; }
.appuye.bouton-vif, .appuye.bouton-filet { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.grand { font-size: 32px; min-height: 64px; padding: 6px 54px; }
.rond { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--encre); border: 2px solid var(--creme); display: flex; align-items: center; justify-content: center; transition: transform .06s; }
.rond img { width: 26px; height: 26px; }
.rond.appuye { transform: scale(.93); }
.haut-g { top: var(--marge); left: var(--marge); }
.haut-c { position: absolute; top: var(--marge); left: 50%; transform: translateX(-50%); }
.haut-d { position: absolute; top: var(--marge); right: var(--marge); }
.pastille { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px; background: var(--encre); color: var(--creme); border: 2px solid var(--creme); border-radius: 6px; font: 400 20px/1 'Shrikhand', serif; }
.pastille img { width: 20px; height: 20px; }

/* ── Premier écran ── */
#titre { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6vmin; transition: opacity .35s; }
#titre .illustration { position: absolute; inset: 0; background: url(img/illustration.webp) center / cover no-repeat; }
#titre.sortie { opacity: 0; pointer-events: none; }
.titre-jeu { position: relative; width: min(66vw, 58vh * 1.9, 640px); max-height: 62vh; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(43, 26, 18, .55)); transform: translateY(-16px) scale(.92); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; }
#titre.ouvert .titre-jeu { transform: none; opacity: 1; }
#titre .bas { position: relative; }

/* ── Écrans ── */
.ecran { position: fixed; inset: 0; z-index: 20; }
.voile { background: rgba(43, 26, 18, .72); display: flex; align-items: center; justify-content: center; }
#reglages.voile { z-index: 25; }
.panneau-peint { background: var(--indigo); border: 3px solid var(--encre); outline: 2px solid var(--ocre); outline-offset: -8px; box-shadow: 6px 6px 0 var(--encre); border-radius: 8px; padding: 18px 26px; max-height: calc(94vh / var(--k, 1)); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(calc(92vw / var(--k, 1)), 640px); }
.panneau-peint.petit { width: min(calc(92vw / var(--k, 1)), 400px); }
.panneau-peint h2 { margin: 0; font: 400 27px/1.1 'Shrikhand', serif; color: var(--ocre); text-shadow: 2px 2px 0 var(--encre); }
.panneau-peint p { margin: 0; text-align: center; color: var(--creme); }
.panneau-peint .bouton-filet, .panneau-peint .bouton-vif { width: 100%; }

/* ── L'ardoise ── */
#menu { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 46px); padding: 8px 84px 8px 30px; }
.titre-menu { width: min(calc(36vw / var(--k, 1)), 340px); max-height: calc(74vh / var(--k, 1)); object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(43, 26, 18, .6)); }
.ardoise { width: min(calc(47vw / var(--k, 1)), 440px); background: var(--ardoise); border: 7px solid #8a5a2c; outline: 3px solid var(--encre); box-shadow: 6px 6px 0 var(--encre); border-radius: 6px; padding: 6px 12px; display: flex; flex-direction: column; }
.plat-menu { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 54px; color: #fbf5e4; border-bottom: 2px dashed rgba(251, 245, 228, .2); transition: transform .08s; }
.plat-menu:last-child { border-bottom: 0; }
.plat-menu .ic { width: 26px; height: 26px; opacity: .92; }
.plat-menu b { font: 400 clamp(17px, 2.9vw, 24px)/1 'Shrikhand', serif; white-space: nowrap; }
.plat-menu i { flex: 1; min-width: 8px; border-bottom: 3px dotted rgba(251, 245, 228, .4); transform: translateY(5px); }
.plat-menu span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 17px; white-space: nowrap; color: var(--ocre); }
.plat-menu span img { width: 17px; height: 17px; }
.plat-menu.appuye { transform: translateX(4px); }
.reglages { top: var(--marge); right: var(--marge); }
#liens-plateforme { position: absolute; left: var(--marge); bottom: var(--marge); display: flex; align-items: center; gap: 8px; }
.lien { min-height: 32px; padding: 2px 10px; font-size: 13px; font-weight: 700; color: var(--creme); background: var(--encre); border-radius: 4px; }

/* ── La route ── */
#carte-vue { position: absolute; inset: 0; overflow: hidden; background: var(--kraft); touch-action: none; }
#carte-fond { position: relative; background: url(img/carte.webp) 0 0 / 100% 100% no-repeat; }
.noeud { zoom: var(--k, 1); position: absolute; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--creme); border: 3px solid var(--encre); outline: 3px solid var(--turquoise); outline-offset: -7px; box-shadow: 2px 3px 0 var(--encre); color: var(--encre); display: flex; align-items: center; justify-content: center; transition: transform .08s; }
.noeud b { font: 400 17px/1 'Shrikhand', serif; }
.noeud.appuye { transform: scale(.9); }
.noeud.verrou { background: #8f7a5c; outline-color: transparent; }
.noeud.verrou > img { width: 18px; height: 18px; }
.noeud.actuel { background: var(--ocre); outline-color: var(--brique); animation: actuel 1.3s ease-in-out infinite alternate; }
@keyframes actuel { to { transform: scale(1.14); } }
.noeud .etoiles { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); display: flex; gap: 0; padding: 0 2px; background: var(--encre); border-radius: 4px; }
.noeud .etoiles img { width: 11px; height: 11px; opacity: .4; }
.noeud .etoiles img.oui { opacity: 1; filter: sepia(1) saturate(9) hue-rotate(-10deg); }
.noeud.ville { z-index: 2; }
.noeud em { position: absolute; top: -27px; left: 50%; transform: translateX(-50%); padding: 0 7px; background: var(--brique); color: #fff6e0; border: 2px solid var(--encre); border-radius: 4px; font: 400 13px/1.45 'Shrikhand', serif; white-space: nowrap; }
#choix-commis { gap: 4px; font: 700 14px/1 'Baloo 2', sans-serif; padding: 2px 6px 2px 10px; }
#choix-commis button { width: 34px; height: 34px; border-radius: 5px; font: 400 17px/1 'Shrikhand', serif; color: var(--creme); }
#choix-commis button.actif { background: var(--ocre); color: var(--encre); }

/* ── Service sans fin ── */
#villes { display: flex; align-items: center; justify-content: center; background: rgba(43, 26, 18, .55); }
#liste-villes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.enseigne-ville { min-height: 58px; background: var(--c); border: 3px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); border-radius: 6px; color: #fff6e0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .06s; }
.enseigne-ville b { font: 400 18px/1.1 'Shrikhand', serif; text-shadow: 1px 1px 0 var(--encre); }
.enseigne-ville small { display: flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; min-height: 18px; }
.enseigne-ville small img { width: 15px; height: 15px; }
.enseigne-ville.verrou { filter: grayscale(.75) brightness(.72); }
.enseigne-ville.appuye { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }

/* ── Mes ustensiles ── */
#ustensiles { display: flex; align-items: center; justify-content: center; background: rgba(43, 26, 18, .55); padding: 62px 12px 10px; }
#liste-ustensiles { display: grid; grid-template-columns: repeat(6, minmax(0, 104px)); gap: 8px; }
.ustensile { aspect-ratio: 1 / 1.08; background: var(--creme); border: 3px solid var(--encre); box-shadow: 3px 3px 0 var(--encre); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--encre); padding: 3px; transition: transform .06s; }
.ustensile > img { width: 74%; flex: 1; min-height: 0; object-fit: contain; }
.ustensile small { font-weight: 700; font-size: 13px; line-height: 1.2; min-height: 16px; display: flex; align-items: center; gap: 2px; }
.ustensile .mini { width: 13px; height: 13px; filter: invert(1) brightness(.2); }
.ustensile.verrou { background: #8f7a5c; }
.ustensile.verrou > img { filter: brightness(0) opacity(.55); }
.ustensile.choisi { background: var(--ocre); }
.ustensile.appuye { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }

/* ── Réglages ── */
.reglage { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; font-weight: 700; color: var(--creme); }
.interrupteur { width: 58px; height: 30px; border-radius: 15px; background: var(--encre); border: 2px solid var(--creme); position: relative; flex: none; }
.interrupteur i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--creme); transition: left .12s; }
.interrupteur[aria-checked="true"] { background: var(--turquoise); }
.interrupteur[aria-checked="true"] i { left: 31px; }
.choix-langue { display: flex; gap: 6px; }
.choix-langue button { min-height: 36px; padding: 0 10px; border-radius: 5px; border: 2px solid var(--creme); font-weight: 700; }
.choix-langue button.actif { background: var(--creme); color: var(--encre); }
.version-jeu { display: flex; justify-content: space-between; width: 100%; font-size: 13px; opacity: .85; }
.lien-texte { text-decoration: underline; font-size: 13px; font-weight: 700; }
.aide-reparer { font-size: 12px; opacity: .75; line-height: 1.3; }

/* ── En partie ── */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud > button, #joystick { pointer-events: auto; }
#b-pause { position: absolute; top: 6px; left: 6px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; opacity: .95; filter: drop-shadow(1px 1px 0 var(--encre)) drop-shadow(-1px -1px 0 var(--encre)); }
#b-pause img { width: 22px; height: 22px; }
#tickets { position: absolute; top: 3px; left: 46px; right: 134px; display: flex; gap: 4px; height: 48px; overflow: hidden; }
.ticket { flex: 0 0 auto; height: 47px; min-width: 58px; background: var(--kraft); border: 2px solid var(--encre); border-radius: 3px; display: flex; flex-direction: column; padding: 1px 2px 0; transform: translateY(-60px); transition: transform .22s cubic-bezier(.2, 1.3, .4, 1), opacity .25s; color: var(--encre); }
.ticket.entre { transform: none; }
.ticket.dore { background: var(--ocre); }
.ticket.urgent { animation: urgent .3s ease-in-out infinite alternate; }
@keyframes urgent { to { transform: rotate(1.5deg); } }
.ticket.sert { transform: translateY(-60px); opacity: 0; }
.ticket.rate { transform: translateY(40px) rotate(12deg); opacity: 0; }
.ticket .dessus { display: flex; align-items: center; gap: 2px; flex: 1; min-height: 0; }
.ticket .chaine { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; max-width: 66px; }
.ticket .jauge { height: 5px; background: var(--encre); margin: 0 -1px 1px; border-radius: 2px; overflow: hidden; }
.ticket .jauge i { display: block; height: 100%; transform-origin: 0 50%; background: #6fbf3a; }
.aliment { display: inline-block; flex: none; background-image: url(img/items.webp); background-repeat: no-repeat; }
.comp { position: relative; display: inline-flex; }
.comp .marque { position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
.dans-marmite { position: relative; display: inline-flex; align-items: center; background: #33241c; border-radius: 4px; padding: 1px; }
.marque-pot { width: 18px; height: 18px; margin: 0 2px; }

#bloc-droite { position: absolute; top: 3px; right: 4px; width: 126px; padding: 1px 5px 3px; background: var(--encre); border: 2px solid var(--creme); border-radius: 4px; color: var(--creme); display: flex; flex-direction: column; gap: 1px; }
#temps-bloc { position: absolute; right: 4px; top: 0; display: flex; align-items: center; gap: 2px; font: 700 15px/1.5 'Baloo 2', sans-serif; font-variant-numeric: tabular-nums; }
#temps-bloc img { width: 13px; height: 13px; }
#temps-bloc.bientot { color: #ff8a6a; }
#score-ligne { display: flex; align-items: baseline; gap: 4px; min-height: 22px; }
#score { font: 400 19px/1.2 'Shrikhand', serif; font-variant-numeric: tabular-nums; }
#combo { font: 400 14px/1 'Shrikhand', serif; color: var(--ocre); font-style: normal; }
#combo.saute { animation: saute .25s; }
#score-autre { position: absolute; right: 5px; top: 19px; font-weight: 700; font-size: 12px; color: #9fd8d6; letter-spacing: 1px; }
#bloc-etoiles { position: relative; height: 12px; margin-right: 8px; }
.barre { height: 6px; background: #5b4638; border-radius: 3px; overflow: hidden; }
#bloc-etoiles .barre { position: absolute; top: 3px; left: 0; right: 0; }
.barre i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ocre); }
.repere { position: absolute; top: -1px; width: 14px; height: 14px; margin-left: -7px; opacity: .5; filter: drop-shadow(0 0 1px #000); }
.repere.oui { opacity: 1; filter: sepia(1) saturate(9) hue-rotate(-10deg) drop-shadow(0 0 1px #000); }
#bloc-yalla { display: flex; align-items: center; gap: 2px; height: 11px; }
#bloc-yalla img { width: 11px; height: 11px; }
#bloc-yalla .barre { flex: 1; }
#bloc-yalla .barre i { background: var(--turquoise); }
#bloc-yalla.actif .barre i { background: #ffe066; }

/* Les commandes : blanches, monochromes, discrètes. Joystick fixe en bas à gauche. */
#joystick { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: 12px; width: 108px; height: 108px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); background: rgba(43, 26, 18, .16); touch-action: none; display: flex; align-items: center; justify-content: center; }
#pouce { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .62); pointer-events: none; }
#joystick.tenu { border-color: rgba(255, 255, 255, .85); }
.touche { position: absolute; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .78); background: rgba(43, 26, 18, .34); display: flex; align-items: center; justify-content: center; touch-action: none; transition: transform .05s, opacity .12s; }
.touche img { width: 62%; height: 62%; filter: drop-shadow(1px 1px 0 rgba(43, 26, 18, .7)); }
#b-a { right: max(12px, env(safe-area-inset-right)); bottom: 12px; width: 80px; height: 80px; }
#b-b { right: calc(max(12px, env(safe-area-inset-right)) + 86px); bottom: 8px; width: 64px; height: 64px; }
.touche.eteint { opacity: .4; }
.touche.appuye { transform: scale(.9); background: rgba(255, 255, 255, .28); }
/* PC : le clavier ou la souris. Les commandes restent discrètes tant qu'on ne les touche pas. */
body.souris #joystick, body.souris .touche { opacity: .35; }
body.clavier #joystick, body.clavier .touche { display: none; }

/* Ce qu'il faut toucher s'éclaire. */
.eclaire { animation: eclaire .7s ease-in-out infinite alternate; opacity: 1 !important; display: flex !important; }
@keyframes eclaire { from { box-shadow: 0 0 0 0 rgba(255, 201, 60, .95); border-color: #ffc93c; } to { box-shadow: 0 0 0 14px rgba(255, 201, 60, 0); border-color: #fff; } }

#compte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 92px/1 'Shrikhand', serif; color: #fff6e0; text-shadow: 4px 4px 0 var(--brique), 8px 8px 0 var(--encre); }
#compte.saute { animation: saute .3s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes saute { from { transform: scale(.55); } }
#banniere { position: absolute; top: 28%; left: 0; right: 0; text-align: center; font: 400 54px/1.1 'Shrikhand', serif; color: #ffe066; text-shadow: 3px 3px 0 var(--brique), 6px 6px 0 var(--encre); transform: scale(.4); opacity: 0; }
#banniere.vu { transform: none; opacity: 1; transition: transform .22s cubic-bezier(.2, 1.6, .4, 1), opacity .12s; }
#banniere.perdue { color: var(--creme); font-size: 38px; }
#banniere.tablee { color: var(--ocre); font-size: 44px; }
#consigne { position: absolute; top: 9px; left: 130px; right: 136px; width: fit-content; max-width: calc(100vw / var(--k, 1) - 266px); margin: 0 auto; padding: 3px 14px; background: rgba(43, 26, 18, .88); border-radius: 5px; color: #fff6e0; font-weight: 700; font-size: 18px; text-align: center; }
#consigne.bien { color: #ffe066; font: 400 22px/1.3 'Shrikhand', serif; }
#consigne.saute { animation: saute .22s; }

/* ── La fiche ── */
.panneau-peint.fiche { width: min(calc(96vw / var(--k, 1)), 720px); padding: 12px 22px; gap: 6px; }
#fiche-plats { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; }
#fiche-plats.deux-col { display: grid; grid-template-columns: 1fr 1fr; }
.ligne-recette { display: flex; align-items: center; gap: 8px; background: var(--kraft); color: var(--encre); border: 2px solid var(--encre); border-radius: 4px; padding: 1px 8px 1px 2px; min-width: 300px; }
.nom-recette b { font: 400 15px/1.15 'Shrikhand', serif; display: block; }
.chaine { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#fiche-meca p { font-weight: 700; color: #ffe9a8; font-size: 15px; line-height: 1.25; }
.panneau-peint.fiche .bouton-vif { width: auto; min-width: 180px; }

/* ── L'addition ── */
#fin { gap: clamp(14px, calc(5vw / var(--k, 1)), 56px); }
#addition { width: min(calc(42vw / var(--k, 1)), 320px); background: #fbf5e4; color: var(--encre); padding: 10px 14px 12px; box-shadow: 5px 5px 0 var(--encre); clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 97%, 90% 100%, 85% 97%, 80% 100%, 75% 97%, 70% 100%, 65% 97%, 60% 100%, 55% 97%, 50% 100%, 45% 97%, 40% 100%, 35% 97%, 30% 100%, 25% 97%, 20% 100%, 15% 97%, 10% 100%, 5% 97%, 0 100%); transform-origin: 50% 0; }
#addition.deroule { animation: deroule .5s cubic-bezier(.2, 1, .4, 1); }
@keyframes deroule { from { transform: scaleY(.04); } }
#addition h2 { margin: 0 0 3px; font: 400 23px/1.1 'Shrikhand', serif; text-align: center; color: var(--brique); }
.ligne-add { display: flex; align-items: baseline; gap: 4px; font-weight: 500; font-size: 15px; line-height: 1.4; }
.ligne-add i { flex: 1; border-bottom: 2px dotted rgba(43, 26, 18, .35); transform: translateY(-3px); }
.ligne-add b { font-weight: 700; font-variant-numeric: tabular-nums; }
#addition-total { border-top: 2px dashed var(--encre); margin-top: 5px; padding-top: 3px; }
#addition-total .ligne-add { font-size: 17px; font-weight: 700; }
#addition-total b { font: 400 22px/1.1 'Shrikhand', serif; color: var(--brique); }
#fin-droite { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(calc(46vw / var(--k, 1)), 340px); }
#fin-etoiles { display: flex; justify-content: center; gap: 6px; min-height: 4px; }
#fin-etoiles img { width: 62px; height: 62px; opacity: .3; }
#fin-etoiles img.oui { opacity: 1; filter: sepia(1) saturate(9) hue-rotate(-10deg) drop-shadow(2px 3px 0 var(--encre)); animation: etoile .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(.45s + var(--r) * .26s); }
@keyframes etoile { from { transform: scale(0) rotate(-40deg); } }
.gros-chiffre { display: flex; align-items: center; gap: 8px; font: 400 56px/1 'Shrikhand', serif; color: #ffe066; text-shadow: 3px 3px 0 var(--encre); }
.gros-chiffre img { width: 44px !important; height: 44px !important; opacity: 1 !important; animation: none !important; }
#fin-phrase { margin: 0; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.25; color: #fff6e0; }
.boutons-fin { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.boutons-fin button { width: 100%; }

/* ── Salon commun ── */
#salon { background: rgba(43, 26, 18, .82); }
#salon-commun { position: absolute; inset: 0; }
.cuisine-salon { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cuisine-salon > small { font-weight: 700; color: var(--creme); opacity: .85; }
.cuisine-salon .rangee { display: flex; align-items: center; gap: 6px; }
.cuisine-salon .fl { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--encre); border: 2px solid var(--creme); border-radius: 50%; }
.cuisine-salon .fl img { width: 20px; height: 20px; }
.cuisine-salon .fl.d img { transform: scaleX(-1); }
.choix-cuisine { min-width: 240px; min-height: 50px; padding: 2px 10px; background-size: cover; background-position: center; border: 3px solid var(--encre); border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.choix-cuisine b { font: 400 15px/1.1 'Shrikhand', serif; color: #fff6e0; text-shadow: 1px 1px 0 var(--encre), -1px -1px 0 var(--encre), 1px -1px 0 var(--encre), -1px 1px 0 var(--encre); }
.menu-mini { display: flex; }

/* ── Mauvais sens, toasts ── */
#tourner { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: var(--encre); text-align: center; color: var(--creme); }
#tourner.on, #tourner.visible { display: flex; }
#tourner .centre { display: flex; flex-direction: column; align-items: center; }
#tourner img { width: min(60vw, 260px); }
#tourner p { font-size: 19px; font-weight: 700; margin: 10px 0; }
#tourner .aide { font-size: 14px; font-weight: 500; opacity: .8; }
#toasts { position: fixed; z-index: 60; top: 58px; left: 0; right: 0; margin: auto; width: fit-content; max-width: 92vw; display: flex; flex-direction: column; gap: 5px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 4px 14px; background: var(--encre); color: var(--creme); border: 2px solid var(--creme); border-radius: 4px; font-weight: 700; font-size: 15px; }
.toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--turquoise); }
.toast.erreur i { background: var(--brique); }
.toast.reussite i { background: #8ad04a; }

/* Grand écran : tout grandit ensemble (--k : jeu.js). La carte et le salon gardent leur taille. */
#hud, #menu, #villes, #ustensiles, #reglages, #fiche, #pause, #fin { zoom: var(--k, 1); }
#carte .rond, #carte .pastille { zoom: var(--k, 1); }

/* Petits écrans en hauteur */
@media (max-height: 340px) {
  .plat-menu { min-height: 46px; }
  #fiche-meca p { font-size: 13px; }
}
