  @keyframes tp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes tp-mascotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes tp-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
  @keyframes tp-chiffre { 0% { opacity: 0; transform: translateY(.55em) rotate(-8deg) scale(.7); } 60% { opacity: 1; transform: translateY(-.06em) rotate(2deg) scale(1.08); } 100% { opacity: 1; transform: none; } }
  @keyframes tp-compteur { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
  @keyframes tp-brille { 0% { transform: translateX(-130%) skewX(-18deg); } 60%, 100% { transform: translateX(240%) skewX(-18deg); } }
  @keyframes tp-tick { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  @keyframes tp-gelee { 0%, 100% { transform: scale(1, 1); } 28% { transform: scale(1.07, .93); } 56% { transform: scale(.95, 1.05); } 80% { transform: scale(1.03, .97); } }
  @keyframes tp-hop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
  @keyframes tp-flip { from { opacity: 0; transform: rotateX(-80deg) scale(.85); } to { opacity: 1; transform: none; } }
  @keyframes tp-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
  @keyframes tp-secoue { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-7px); } 38% { transform: translateX(6px); } 58% { transform: translateX(-4px); } 78% { transform: translateX(3px); } }
  @keyframes tp-refus { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes tp-flash { 0% { opacity: 0; } 34% { opacity: .82; } 100% { opacity: 0; } }
  @keyframes tp-rayons { to { transform: rotate(360deg); } }
  @keyframes tp-onde { 0% { opacity: .5; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.6); } }
  @keyframes tp-atterrit { 0% { opacity: 0; transform: translateY(-54px) scale(.6) rotate(-9deg); } 62% { opacity: 1; transform: translateY(9px) scale(1.06) rotate(3deg); } 100% { opacity: 1; transform: none; } }
  @keyframes tp-tampon { 0% { opacity: 0; transform: scale(1.5) rotate(-4deg); } 60% { opacity: 1; transform: scale(.95) rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
  @keyframes tp-confetti { 0% { opacity: 0; transform: translateY(-26px) rotate(0deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(430px) rotate(540deg); } }
  @keyframes tp-lettre { 0% { opacity: 0; transform: translateY(24px) scale(.5) rotate(-11deg); } 65% { opacity: 1; transform: translateY(-5px) scale(1.12) rotate(3deg); } 100% { opacity: 1; transform: none; } }
  @keyframes tp-etoile { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.15); } }
/* September source animations, connected to real game events. */
:root { --courbe: cubic-bezier(.22,1,.36,1); --ressort: cubic-bezier(.34,1.6,.5,1); }
main { min-width: 0; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
html.native-app body { padding-bottom: 0; }
@media (min-width: 768px) { body { padding-bottom: 0; } }
.answer-row { transition: background-color 300ms ease; }
.answer-letters { min-width: 0; }
.answer-actions { display: grid; justify-items: end; gap: 3px; }
.answer-actions [data-game-target="state"] { white-space: normal; text-align: right; max-width: 105px; }
@media (max-width: 480px) {
  .answer-row { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; padding: 6px 10px; min-height: 56px; }
    .answer-actions [data-game-target="state"] { font-size: 10px; overflow-wrap: anywhere; }
}
.guess-composer[data-rejected="true"] { animation: tp-secoue .42s ease both; }
.victory-panel { margin: auto; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; overflow-y: auto; color: var(--color-encre); background: var(--color-papier); position: fixed; inset: 0; height: fit-content; isolation: isolate; overflow: hidden; text-align: center; justify-items: center; padding: 28px 20px; }
.victory-panel:not([open]) { display: none !important; }
.victory-panel::backdrop { background: rgb(51 32 15 / 72%); backdrop-filter: blur(8px); }
.victory-panel[data-celebrate="true"] { animation: tp-atterrit .65s var(--courbe) both; }
.victory-panel[data-celebrate="true"] .victory-title { animation: tp-tampon .6s var(--ressort) .2s both; }
.victory-title { color: #8a3d12; font-size: clamp(38px,9vw,58px); letter-spacing: -.04em; }
.victory-confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.victory-confetti i { position: absolute; top: -16px; width: 9px; height: 16px; border-radius: 3px; animation: tp-confetti 2.6s ease-in both; }
.level-tile { transition: transform 200ms var(--ressort), box-shadow 200ms ease; animation: topingo-tuile 260ms var(--ease-monde) both; }
.level-grid > :nth-child(2) { animation-delay: 40ms; } .level-grid > :nth-child(3) { animation-delay: 80ms; } .level-grid > :nth-child(4) { animation-delay: 120ms; } .level-grid > :nth-child(5) { animation-delay: 160ms; } .level-grid > :nth-child(6) { animation-delay: 200ms; } .level-grid > :nth-child(7) { animation-delay: 240ms; } .level-grid > :nth-child(8) { animation-delay: 280ms; } .level-grid > :nth-child(9) { animation-delay: 320ms; } .level-grid > :nth-child(10) { animation-delay: 360ms; }
@media (hover: hover) { .level-tile:hover { transform: translateY(-2px); } }
.level-tile:active { transform: translateY(3px); box-shadow: var(--shadow-touche-appui); }
.mode-number { display: inline-grid; place-items: center; min-width: 1.12em; padding: 0 .1em; background: #e0a23c; color: #3a2410; border-radius: .26em; }
.mode-number[data-flip="true"] { animation: tp-chiffre .55s var(--ressort) both; }
.mode-option { display: grid; grid-template-columns: 48px minmax(0,1fr) 24px; align-items: center; gap: 14px; min-height: 72px; padding: 10px 14px; cursor: pointer; transition: box-shadow .2s, background .2s; }
.mode-option strong { display: grid; place-items: center; color: #8a3d12; background: #f8ebd6; }
.mode-dialog { border: 0; border-radius: 24px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; color: #33200f; background: #fffbf3; }
.mode-dialog[open] { animation: tp-pop .35s var(--ressort) both; }
.mode-dialog::backdrop { background: rgb(51 32 15 / 55%); backdrop-filter: blur(6px); }
.onboarding-step { animation: tp-in .4s var(--courbe) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .victory-confetti { display: none; }
}
@media (forced-colors: active) {
  .mode-option { border-color: ButtonText; }
  .mode-option:has(input:checked) { outline: 2px solid Highlight; }
  .level-tile { border: 1px solid ButtonText; }
}
/* Fidelity to the 16:18 reference export. The round Tingo is the source SVG. */
.tingo { display: inline-flex; line-height: 0; }
.tingo--sm { width: 5rem; }.tingo--md { width: 9rem; }.tingo--lg { width: min(18rem,72vw); }
.tingo__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tingo__body { transform-origin: 105px 150px; animation: tp-gelee 2.7s ease-in-out infinite; }
.tingo__pupil { transform-box: fill-box; transform-origin: center; animation: tingo-clin 4.6s ease-in-out infinite; }
.tingo--success { animation: tp-hop 2.7s ease-in-out infinite; }
.tingo--error .tingo__body { animation: tp-secoue .45s ease both; }
@keyframes tingo-clin { 0%,43%,47%,100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
.mode-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; box-sizing: border-box; overflow-y: auto; background: #fff; }
.mode-dialog:not([open]) { display: none; }
html:has(dialog[open]) { overflow: hidden; }
.mode-dialog h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
/* Catalogue — le format en trois touches, le chiffre actif en tampon doré. */
.format-tabs { display: flex; gap: 8px; }
.format-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 9px; border-radius: 14px; color: var(--color-sur-monde); text-decoration: none; box-shadow: var(--shadow-contour-clair); transition: background-color .2s, box-shadow .2s; }
.format-tabs a b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: 22px; font-weight: 800; line-height: 1; background: rgb(51 32 15 / 25%); color: var(--color-sur-monde); box-shadow: 0 0 0 2px rgb(255 243 224 / 45%); transition: transform .2s var(--ressort); }
.format-tabs a span { font-size: 13px; font-weight: 800; line-height: 1.2; }
.format-tabs a[aria-current] { background: var(--color-papier); color: var(--color-encre); box-shadow: var(--shadow-touche-basse); }
.format-tabs a[aria-current] b { background: var(--color-dore); color: var(--color-sur-dore); box-shadow: 0 0 0 2.5px var(--color-encre), 0 3px 0 2.5px var(--color-encre); transform: rotate(-5deg); }
.level-difficulty-filter summary:focus-visible { box-shadow: none; outline: 3px solid var(--color-dore); outline-offset: 3px; border-radius: 6px; }
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 14px; padding: 0 2.5px 6px; }
.level-tile { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; min-height: 156px; padding: 14px 13px 13px; border-radius: 18px; background: var(--color-panneau); color: var(--color-encre); text-decoration: none; box-shadow: var(--shadow-touche); }
.level-tile[data-state="completed"] { background: var(--color-mousse-doux); }
.level-tile-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.level-difficulty { display: grid; justify-items: end; gap: 3px; }
.level-dots { display: inline-flex; gap: 3px; }
.level-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(51 32 15 / 18%); }
.level-dots i.is-on { background: var(--color-encre); }
.level-difficulty small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--color-attenue); }
.level-theme { font-size: 14.5px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.level-bars { display: flex; gap: 3px; margin-top: auto; }
.level-bars i { flex: 1; height: 6px; border-radius: 3px; background: var(--color-filet); }
.level-bars .is-found { background: var(--color-primaire); }
.level-tile[data-state="completed"] .is-found { background: var(--color-mousse); }
.level-tile-bottom { display: flex; align-items: center; min-height: 26px; }
.level-status { display: inline-flex; font-size: 12px; font-weight: 800; color: var(--color-sur-secondaire); }
.level-status.is-playing { border-radius: 9px; padding: 4px 10px; font-size: 11.5px; background: var(--color-primaire); color: var(--color-sur-primaire); box-shadow: 0 0 0 2px var(--color-encre), 0 2px 0 2px var(--color-encre); }
.level-status.is-completed { gap: 1px; border-radius: 8px; padding: 3px 8px; border: 2px dashed var(--color-sur-mousse); transform: rotate(-4deg); }
.level-status.is-completed svg { width: 15px; height: 15px; }
.home-overview { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #fff3e038; padding-top: 14px; margin: 6px 0 0; }
.home-overview dt { color: #fff3e0cf; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.home-overview dd { margin: 0; font-size: 22px; font-weight: 800; }.home-overview dd small { font-size: 12px; font-weight: 600; }
.home-preview { position: relative; width: min(100% - 10px, 400px); margin-top: 56px; justify-self: center; }
.home-mascot { position: absolute; left: -14px; top: -66px; width: 92px; pointer-events: none; animation: tp-hop 3s ease-in-out infinite; }
.tingo--hop { animation: tp-hop 3s ease-in-out infinite; }
.home-preview .demo-tile-found { background: linear-gradient(180deg,#be4a1d,#a83a15 62%); box-shadow: inset 0 1px 0 #ffebd266,inset 0 -1px 0 #3c120647; animation: tp-flip .45s var(--ressort) both; }
.home-preview .demo-tile-empty { box-shadow: inset 0 1.5px 2px #33200f1a; }
.game-format-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.game-format-switch a { min-height: 36px; display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid #fff3e059; border-radius: 999px; font-size: 12px; text-decoration: none; }
.game-format-switch a[aria-current] { background: #fffbf3; color: #8a3d12; }
@media (min-width: 1000px) { .format-tabs { max-width: 520px; } }
@media (max-width: 999px) { .level-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 599px) { .level-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .mode-dialog { padding: 22px 18px; } }
.home-demo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.demo-game { padding: 22px; border-radius: 18px; background: #f8ebd6; color: #33200f; display: grid; gap: 14px; }
.demo-label { background: #fff; margin: 0; padding: 7px 12px; border-radius: 12px; color: #8a3d12; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-game h3 { margin: 0; font-size: 19px; font-weight: 800; }.demo-answers { display: grid; list-style: none; gap: 7px; padding: 0; margin: 0; }
.demo-answers li { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border-radius: 14px; }
.demo-answers li[data-found="true"] { background: #e8eeda; }.demo-answers li > b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f8ebd6; font-size: 11px; }
.demo-answers li[data-found="true"] > b { background: #33482a; color: #fff; }
.demo-letters { display: flex; gap: 3px; }.demo-letters i { width: 25px; height: 30px; display: grid; place-items: center; font-size: 13px; font-style: normal; font-weight: 800; border-radius: 7px; background: #33200f12; border: 1px solid #33200f1f; }.demo-answers li[data-found="true"] i { background: #a83a15; border-color: transparent; color: #fff6ea; }
.demo-answers small { margin-left: auto; font-size: 10px; font-weight: 800; white-space: nowrap; }
.demo-composer { display: flex; padding: 4px 4px 4px 16px; background: #fff; border-radius: 12px; gap: 6px; }.demo-composer input { width: 100%; min-width: 0; border: 0; outline: 0; font-size: 14px; }.demo-composer:focus-within { outline: 2px solid #a83a15; outline-offset: 2px; }.demo-composer button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 12px; background: #a83a15; color: #fff6ea; font-size: 13px; font-weight: 800; cursor: pointer; }
.demo-feedback { margin: 0; color: #8a3d12; font-size: 12px; font-weight: 700; min-height: 2.8em; }
.home-demo-notes { display: grid; gap: 12px; }.home-demo-notes section { padding: 20px; border: 1px solid #33200f1f; border-radius: 18px; background: #fffbf3; }.home-demo-notes .is-moss { background: #e8eeda; color: #33482a; border: 0; }.home-demo-notes .is-sand { background: #f8ebd6; color: #8a3d12; border: 0; }.home-demo-notes h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }.home-demo-notes p { margin: 0; font-size: 14px; line-height: 1.5; }
/* The source victory is a whole copper scene, not a white notification card. */
.victory-panel { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 36px 24px; overflow-y: auto; background: radial-gradient(120% 90% at 78% -6%,#ffc4786b 0%,transparent 52%),linear-gradient(166deg,#b4551f 0%,#8e3714 40%,#5a1e0c 76%,#3e1408 100%); color: #fff3e0; border-radius: 0; text-align: left; }
.victory-panel[data-celebrate="true"] { animation: none; }.victory-scene { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; max-width: 1080px; min-height: 100%; margin: auto; }
.victory-title { margin: 0 0 18px; font-size: clamp(48px,6vw,72px); font-weight: 800; line-height: 1.1; color: #fff3e0; letter-spacing: -.03em; }.victory-title span { display: inline-block; }.victory-title span:last-child { color: #e0a23c; }
.victory-panel[data-celebrate="true"] .victory-title { animation: none; }.victory-panel[data-celebrate="true"] .victory-title span { animation: tp-lettre .6s var(--ressort) var(--delay) both; }
.victory-copy > p { font-size: 18px; line-height: 1.6; max-width: 38ch; }.victory-score { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid #fff3e04d; background: #fff3e012; border-radius: 999px; font-weight: 800; }.victory-score > [data-game-target="resultStars"] { background: transparent; padding: 0; }.victory-stats { display: flex; gap: 26px; padding-top: 14px; margin: 22px 0; border-top: 1px solid #fff3e038; }.victory-stats dt { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff3e0d9; }.victory-stats dd { margin: 0; font-size: 25px; font-weight: 800; color: #e0a23c; }.victory-stats small { font-size: 12px; color: #fff3e0; }.victory-stats .victory-format { font-size: 22px; }

.victory-recap { display: grid; justify-items: center; gap: 26px; }.victory-mascot { position: relative; isolation: isolate; }.victory-mascot .tingo { width: 210px; }.victory-rays { position: absolute; width: 260px; height: 260px; left: 50%; top: 50%; translate: -50% -50%; background: repeating-conic-gradient(#e0a23c33 0deg 10deg,transparent 10deg 45deg); mask-image: radial-gradient(#000,transparent 70%); z-index: -1; animation: tp-rayons 30s linear infinite; }
.victory-answers { width: min(100%,340px); background: #fff; color: #33200f; border-radius: 18px; overflow: hidden; }.victory-answers header { display: flex; justify-content: space-between; gap: 10px; padding: 18px; font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }.victory-answers header b { color: #33482a; }.victory-answers ol { list-style: none; margin: 0; padding: 0; }.victory-answers li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; padding: 13px 18px; align-items: center; border-top: 1px solid #33200f1f; }.victory-answers li:nth-child(odd) { background: #e8eeda66; }.victory-answers li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e8eeda; color: #33482a; font-size: 11px; }.victory-answers li span { text-transform: uppercase; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }.victory-answers li small { font-size: 10px; font-weight: 700; }
.victory-close { position: fixed; z-index: 2; right: 16px; top: max(12px,env(safe-area-inset-top)); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #33200f80; color: #fff3e0; font-size: 28px; cursor: pointer; }
.victory-confetti { position: fixed; z-index: 0; }.victory-scene { position: relative; z-index: 1; }.victory-panel[data-celebrate="true"] .victory-mascot { animation: tp-atterrit .7s var(--ressort) both; }
@media (max-width: 767px) { .home-demo-layout { grid-template-columns: 1fr; }.victory-panel { padding: 40px 22px max(24px,env(safe-area-inset-bottom)); text-align: center; }.victory-scene { display: flex; flex-direction: column; gap: 20px; padding-top: 110px; }.victory-copy { width: 100%; }.victory-mascot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }.victory-mascot .tingo { width: 120px; }.victory-title { font-size: 48px; margin-bottom: 10px; }.victory-copy > p { font-size: 16px; margin: 0 auto 14px; }.victory-stats { justify-content: center; }.victory-actions { margin: 0 auto; }.victory-recap { width: 100%; }.victory-rays { width: 170px; height: 170px; }.victory-panel[data-celebrate="true"] .victory-mascot { animation: none; } }
@media (max-width: 380px) { .demo-game { padding: 14px; }.demo-letters i { width: 21px; height: 27px; }.demo-answers li { gap: 7px; padding: 10px 7px; }.demo-answers small { font-size: 9px; } }

/* Tingo annonce le refus dans une bulle. Vide, rien ne s'affiche. */
.game-bubble { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.game-bubble:has(.game-bubble__text:empty) { display: none; }
.game-bubble__tingo { width: 46px; }
.game-bubble__text { flex: 1; border: 1px solid rgb(255 243 224 / 30%); border-radius: 18px 18px 18px 4px; background: rgb(51 32 15 / 25%); padding: 9px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--color-sur-monde); animation: tp-refus .25s ease both; }
.game-bubble:has([data-tone="incorrect"]) .game-bubble__tingo .tingo__body { animation: tp-secoue .45s ease both; }
@media (min-width: 1140px) {
  .game-bubble { position: absolute; left: -250px; top: 150px; width: 220px; flex-direction: column-reverse; align-items: flex-end; margin: 0; }
  .game-bubble__text { flex: none; border-radius: 18px 18px 4px 18px; font-size: 14px; padding: 10px 14px; }
  .game-bubble__tingo { width: 118px; animation: tp-hop 3s ease-in-out infinite; }
}
/* Segments de progression dans l'en-tête du plateau. */
.game-segments { display: inline-flex; gap: 3px; }
.game-segments i { width: 18px; height: 5px; border-radius: 10px; background: var(--color-secondaire); transition: background-color .3s ease; }
.game-segments i.is-found { background: var(--color-mousse); }
@media (max-width: 380px) { .game-segments i { width: 12px; } }
/* Essais et lettres : une ligne discrète ; le signalement est un lien. */
.game-meta { text-align: right; }
.game-report { justify-self: center; text-align: center; }
.game-report__link { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: rgb(255 243 224 / 78%); text-decoration: underline; text-underline-offset: 4px; }
.game-report__link::-webkit-details-marker { display: none; }
.game-report__link:focus-visible { box-shadow: none; outline: 3px solid var(--color-dore); outline-offset: 3px; border-radius: 6px; }
.game-report form { text-align: left; }
.game-format-switch a { min-height: 44px; border-radius: 11px; border: 0; box-shadow: var(--shadow-contour-leger); font-size: 13px; font-weight: 800; }
.game-format-switch a[aria-current] { background: var(--color-papier); color: var(--color-encre); box-shadow: var(--shadow-touche-petite); }
@media (min-width: 768px) {
  .game-report { justify-self: start; text-align: left; margin-top: -8px; }
}
/* Sur téléphone, l'indice est une touche carrée : le libellé s'efface. */
@media (max-width: 480px) {
  .answer-actions [data-game-target="hint"] { width: 44px; padding: 0; gap: 0; }
  .answer-hint-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* Victoire : la suite en touches. */
.victory-actions { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.victory-actions__row { display: flex; gap: 10px; }
.victory-actions__row .touche { flex: 1; padding-inline: 12px; }
.victory-keep { display: flex; align-items: center; gap: 12px; width: min(100%, 340px); min-height: 60px; padding: 10px 14px 10px 18px; border: 1px solid rgb(255 243 224 / 30%); border-radius: 18px; background: rgb(255 243 224 / 5%); color: var(--color-sur-monde); font-size: 13.5px; line-height: 1.4; text-align: left; text-decoration: none; }
.victory-keep span { flex: 1; }
.victory-keep b { font-weight: 800; }
.victory-score { border-radius: 12px; }
.victory-score > [data-game-target="resultStars"] { border: 0; color: #fff3e0; margin: 0; }
.victory-score > [data-game-target="resultStars"] small { display: none; }

/* ═══ Refonte automne — les touches ═══════════════════════════════════════
   Plus de pilules : boutons, filtres, onglets, indices et interrupteurs sont des
   touches à coins de 12-14 px, cernées d'encre, posées sur une tranche dure.
   Une seule grammaire d'état : la tranche s'écrase à l'appui. */
.touche { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius-touche); font: inherit; font-size: 16px; font-weight: 800; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; transition: transform 140ms var(--ease-monde), box-shadow 140ms var(--ease-monde), background-color 140ms ease; }
.touche svg { flex: 0 0 auto; }
.touche:disabled, .touche[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.touche--or { background: var(--color-dore); color: var(--color-sur-dore); box-shadow: var(--shadow-touche); }
.touche--primaire { background: var(--color-primaire); color: var(--color-sur-primaire); box-shadow: var(--shadow-touche-basse); }
.touche--papier { background: var(--color-papier); color: var(--color-encre); box-shadow: var(--shadow-touche-basse); }
.touche--sable { background: var(--color-secondaire); color: var(--color-sur-secondaire); box-shadow: var(--shadow-touche-petite); }
.touche--destructif { background: var(--color-destructif); color: #fff; box-shadow: var(--shadow-touche-basse); }
.touche--secondaire { height: 48px; background: var(--color-touche-sombre); color: var(--color-sur-monde); font-size: 15px; box-shadow: var(--shadow-contour-clair); }
.touche--secondaire:hover { background: rgb(51 32 15 / 34%); }
.touche--panneau { background: var(--color-panneau); color: var(--color-encre); box-shadow: var(--shadow-contour-filet); }
.touche--panneau:hover { background: var(--color-creme); }
.touche--sm { height: 44px; padding: 0 14px; border-radius: var(--radius-touche-petite); font-size: 13px; }
.touche--sm.touche--secondaire { height: 44px; }
.touche--carree { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 13px; }
.touche--carree.touche--sm { width: 44px; height: 44px; border-radius: 12px; }
.touche--large { width: 100%; }
@media (hover: hover) { .touche:not(.touche--secondaire, .touche--panneau):hover { transform: translateY(-1px); } }
.touche:is(.touche--or, .touche--primaire, .touche--papier, .touche--destructif):active { transform: translateY(4px); box-shadow: var(--shadow-touche-appui); }
.touche:is(.touche--sable):active, .touche--carree:active { transform: translateY(2px); box-shadow: var(--shadow-touche-petite-appui); }
.touche:is(.touche--secondaire, .touche--panneau):active { transform: scale(.97); }
.touche:focus-visible { box-shadow: var(--shadow-touche), var(--shadow-halo); }
.touche--secondaire:focus-visible, .touche--panneau:focus-visible { box-shadow: var(--shadow-contour-clair), 0 0 0 5px var(--color-halo); }

/* Un panneau qui se pose : contour d'encre et tranche de 6 px, plus d'ombre floue. */
.panneau-touche { border-radius: var(--radius-panneau); background: var(--color-panneau); color: var(--color-encre); box-shadow: var(--shadow-touche-haute); }

/* Le chiffre doré incliné : compteur, numéro de niveau, format actif. */
.tampon { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: var(--color-dore); color: var(--color-sur-dore); font-size: 17px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px var(--color-encre), 0 2px 0 2px var(--color-encre); transform: rotate(-5deg); }
.tampon--titre { display: inline-block; min-width: 0; height: auto; padding: 0 .16em; border-radius: .26em; font-size: inherit; box-shadow: none; transform: rotate(-2deg); }

/* Interrupteur carré : contour d'encre, curseur doré quand c'est actif. Le
   <input> garde son rôle ; le dessin vit dans ::before (rail) et ::after (curseur). */
.interrupteur { appearance: none; position: relative; flex: 0 0 auto; width: 56px; height: 44px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.interrupteur::before { content: ''; position: absolute; inset: 6px 0; border-radius: 11px; border: 2.5px solid var(--color-encre); background: rgb(51 32 15 / 14%); transition: background-color .2s ease; }
.interrupteur::after { content: ''; position: absolute; top: 10.5px; left: 4.5px; width: 23px; height: 23px; border-radius: 7px; border: 2px solid var(--color-encre); background: #fff; transition: transform .2s var(--ease-monde), background-color .2s ease; }
.interrupteur:checked::before { background: var(--color-mousse); }
.interrupteur:checked::after { background: var(--color-dore); transform: translateX(24px); }
.interrupteur:focus-visible { box-shadow: none; }
.interrupteur:focus-visible::before { box-shadow: var(--shadow-halo); }

/* Choix de format en touches : le chiffre actif est un tampon doré. */
.mode-option { border: 0; box-shadow: var(--shadow-contour-filet); border-radius: 16px; }
.mode-option:has(input:checked) { background: var(--color-secondaire); box-shadow: var(--shadow-touche-basse); }
.mode-option strong { width: 46px; height: 46px; border-radius: 12px; font-size: 26px; transition: transform .2s var(--ease-ressort); }
.mode-option:has(input:checked) strong { background: var(--color-dore); color: var(--color-sur-dore); box-shadow: 0 0 0 2px var(--color-encre), 0 3px 0 2px var(--color-encre); transform: rotate(-5deg); }
.mode-option b { font-size: 17px; }
.mode-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mode-option { position: relative; }
.mode-option .mode-coche { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgb(51 32 15 / 25%); font-size: 14px; font-weight: 800; color: transparent; }
.mode-option:has(input:checked) .mode-coche { border-color: var(--color-mousse); background: var(--color-mousse); color: #fff; }
.mode-option:has(input:focus-visible) { outline: 3px solid var(--color-dore); outline-offset: 3px; }

/* Ce qui disparaît avec les pilules : les anciens interrupteurs et l'ombre floue
   du composer. Les règles qui restent plus haut ne sont plus référencées. */
.guess-composer { box-shadow: var(--shadow-touche-haute); border-radius: var(--radius-panneau); }
.guess-composer:has(input:focus-visible) { box-shadow: var(--shadow-touche-haute), 0 0 0 5px var(--color-halo); }
@media (forced-colors: active) {
  .touche, .panneau-touche, .tampon { border: 2px solid ButtonText; box-shadow: none; }
  .interrupteur { appearance: auto; }
  .interrupteur::before, .interrupteur::after { display: none; }
}
