/* Le Berger & le Mouton Noir — thème « pré » */
:root {
  --ink: #2b2730;          /* le mouton noir */
  --ink-soft: #4a4452;
  --wool: #fffaf0;         /* la laine */
  --wool-edge: #e2d4bb;
  --muted: #7d7568;
  --grass: #5f9440;
  --grass-dark: #44702c;
  --grass-light: #e4f0d6;
  --wood: #a8703f;
  --wood-dark: #7a4b2a;
  --straw: #eec66f;
  --tag: #f4c430;          /* boucle d'oreille jaune */
  --red: #c0392b;
  --radius: 22px;
  --font: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font);
  background: linear-gradient(180deg, #bfe1f2 0%, #e3f2f0 45%, #eef5df 75%, #d5e8b8 100%) fixed;
}
/* Collines du pré */
body::before {
  content: ''; position: fixed; inset: auto 0 0 0; height: 170px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 170' preserveAspectRatio='none'%3E%3Cpath d='M0 90 Q200 20 420 80 T860 70 T1200 60 V170 H0Z' fill='%23b5d78f'/%3E%3Cpath d='M0 120 Q260 60 540 115 T1200 100 V170 H0Z' fill='%2396c46b'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
/* Nuages */
body::after {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 160px; z-index: -1; pointer-events: none; opacity: .9;
  background:
    radial-gradient(ellipse 70px 26px at 12% 40px, #fff 98%, transparent),
    radial-gradient(ellipse 46px 22px at 16% 26px, #fff 98%, transparent),
    radial-gradient(ellipse 90px 30px at 82% 70px, #fff 98%, transparent),
    radial-gradient(ellipse 54px 26px at 78% 52px, #fff 98%, transparent);
}
.container { max-width: 580px; margin: 0 auto; padding: 14px 16px 110px; }
.container.wide { max-width: 1100px; }
h1, h2, h3 { margin: .4em 0; font-weight: 600; line-height: 1.2; }
.center { text-align: center; }
.muted { color: var(--muted); }
.error { color: var(--red); text-align: center; font-weight: 600; }
a { color: var(--grass-dark); }
.card { background: var(--wool); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; box-shadow: 0 4px 14px rgba(60, 50, 30, .08); }
.page-title { font-size: 1.8em; }

/* ---------- Boutons ---------- */
button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: 10px 18px; transition: transform .1s, box-shadow .1s; }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .4; cursor: default; }
.primary { background: var(--ink); color: var(--wool); font-weight: 600; box-shadow: 0 4px 0 #000; }
.secondary { background: var(--wool); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px var(--ink); }
.danger { background: #fbe3e0; color: var(--red); font-weight: 600; }
.link { background: none; color: var(--muted); text-decoration: underline; padding: 4px; border-radius: 6px; }
.icon { background: #efe8da; padding: 6px 11px; border-radius: 10px; }
.sticky { position: fixed; left: 16px; right: 16px; bottom: 18px; max-width: 548px; margin: 0 auto; padding: 16px; font-size: 1.2em; z-index: 5; box-shadow: 0 5px 0 #000, 0 10px 24px rgba(0,0,0,.25); }

/* ---------- Avatars ronds ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; vertical-align: middle; box-shadow: 0 0 0 2px var(--wool), 0 0 0 3px var(--wool-edge); }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.md { width: 48px; height: 48px; font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips.left { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--wool); border-radius: 999px; padding: 3px 12px 3px 4px; font-size: .92em; box-shadow: 0 1px 4px rgba(60, 50, 30, .12); }

/* ---------- Têtes de mouton ---------- */
.sheep { display: inline-block; flex-shrink: 0; line-height: 0; vertical-align: middle; }
.sheep svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgba(60, 50, 30, .18)); }
.sheep.logo { width: 36px; height: 31px; }
.sheep.sm { width: 48px; height: 42px; }
.sheep.md { width: 70px; height: 61px; }
.sheep.lg { width: 110px; height: 95px; }
.sheep.pick { width: 158px; height: 137px; }
.sheep.xl { width: 220px; height: 190px; }

.brand { display: flex; align-items: center; gap: 8px; font-size: 1.1em; font-weight: 500; }
.brand b { font-weight: 700; }

/* Mouton de profil + « compter les moutons » */
.side-sheep { width: 70px; height: 49px; overflow: visible; }
.counting { position: relative; height: 120px; max-width: 320px; margin: 10px auto; overflow: hidden; }
.counting::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 4px; background: var(--grass); border-radius: 4px; }
.fence-post { position: absolute; left: 50%; bottom: 10px; width: 46px; height: 42px; transform: translateX(-50%);
  background: linear-gradient(var(--wood) 0 0) 6px 0 / 7px 100% no-repeat, linear-gradient(var(--wood) 0 0) 33px 0 / 7px 100% no-repeat,
              linear-gradient(var(--wood-dark) 0 0) 0 9px / 100% 6px no-repeat, linear-gradient(var(--wood-dark) 0 0) 0 25px / 100% 6px no-repeat; }
.jumper { position: absolute; bottom: 10px; left: -80px; animation: walk 3.2s linear infinite; }
.jumper .side-sheep { animation: hop 3.2s ease-in-out infinite; }
.jumper.late, .jumper.late .side-sheep { animation-delay: 1.6s; }
@keyframes walk { to { left: 110%; } }
@keyframes hop { 0%, 38% { transform: translateY(0); } 50% { transform: translateY(-46px) rotate(-8deg); } 62%, 100% { transform: translateY(0); } }

/* Progression : un mouton le long d'une clôture */
.fence-progress { position: relative; height: 56px; margin: 4px 30px 10px; }
.fence-track { position: absolute; left: -20px; right: -20px; bottom: 6px; height: 18px;
  background: linear-gradient(var(--wood) 0 0) 0 3px / 100% 4px repeat-x, linear-gradient(var(--wood) 0 0) 0 11px / 100% 4px repeat-x,
              repeating-linear-gradient(90deg, var(--wood-dark) 0 5px, transparent 5px 34px); opacity: .75; }
.fence-runner { position: absolute; bottom: 10px; transform: translateX(-50%); transition: left .6s ease; }
.fence-runner .side-sheep { width: 50px; height: 35px; }
.fence-label { position: absolute; top: 0; right: -20px; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Barre du joueur ---------- */
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.me { display: flex; align-items: center; gap: 6px; background: var(--wool); border-radius: 999px; padding: 2px 12px 2px 2px; font-size: .9em; box-shadow: 0 1px 4px rgba(60, 50, 30, .12); }
.me .sheep.sm { width: 38px; height: 33px; }

/* ---------- Choix de moutons ---------- */
.hero { text-align: center; margin: 12px 0 4px; }
.hero h1 { font-size: 2em; }
.hero p { margin: 0; color: var(--ink-soft); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 8px; margin: 18px 0; }
.pick-grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 8px; }
.person { background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: var(--radius); position: relative; }
.person .sheep { transition: transform .2s; }
.person:hover:not(:disabled) .sheep { transform: translateY(-4px) rotate(-3deg); }
.person .name-tag { background: var(--wool); border-radius: 999px; padding: 3px 12px; font-weight: 500; box-shadow: 0 2px 6px rgba(60, 50, 30, .12); }
.person small { color: var(--muted); }
.person.taken { filter: grayscale(1); opacity: .55; }
.person.selected .sheep { transform: translateY(-8px) scale(1.06); animation: wiggle .5s; }
.person.selected .name-tag { background: var(--ink); color: var(--wool); }
.person.selected::after { content: '✓'; position: absolute; top: 2px; right: 18%; width: 28px; height: 28px; border-radius: 50%; background: var(--grass); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.person.selected.gold .sheep svg { filter: drop-shadow(0 0 10px #f6c945) drop-shadow(0 3px 3px rgba(60,50,30,.2)); }
.person.small { flex-direction: row; padding: 4px 14px 4px 4px; background: var(--wool); border-radius: 999px; box-shadow: 0 2px 6px rgba(60, 50, 30, .12); }
.person.small .sheep.sm { width: 42px; height: 36px; }
@keyframes wiggle { 25% { transform: translateY(-8px) scale(1.06) rotate(-6deg); } 75% { transform: translateY(-8px) scale(1.06) rotate(6deg); } }

/* ---------- Salle d'attente ---------- */
.lobby { text-align: center; }
.lobby h1 { font-size: 1.9em; }
.bounce { animation: bounce 1.4s infinite ease-in-out; display: inline-block; }
@keyframes bounce { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- Question : panneau en bois ---------- */
.sign { position: relative; margin: 6px 6px 34px; padding: 22px 20px; border-radius: 14px; text-align: center; color: #fff8e8;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 9px), linear-gradient(180deg, #b77c47, #9a6436);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), 0 6px 0 var(--wood-dark), 0 12px 20px rgba(60, 40, 20, .25); }
.sign::before, .sign::after { content: ''; position: absolute; bottom: -34px; width: 12px; height: 34px; background: var(--wood-dark); border-radius: 0 0 3px 3px; z-index: -1; }
.sign::before { left: 22%; } .sign::after { right: 22%; }
.q-text { font-size: 1.45em; margin: 0; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.q-kind { display: table; margin: 0 auto 14px; background: var(--grass); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .9em; font-weight: 500; }
.hint { color: var(--ink-soft); font-size: .92em; }

/* Classement : l'enclos et le pré */
.enclos { background: var(--wool); border-radius: var(--radius); padding: 10px; border: 3px dashed var(--wood); min-height: 70px; }
.enclos-label, .pre-label { font-size: .85em; font-weight: 600; color: var(--wood-dark); margin: 12px 4px 6px; text-transform: uppercase; letter-spacing: .06em; }
.pre-label { color: var(--grass-dark); }
.ranking { list-style: none; padding: 0; margin: 0; }
.ranking li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 4px 8px; margin-bottom: 6px; box-shadow: 0 1px 4px rgba(60, 50, 30, .1); }
.ranking .name { flex: 1; font-weight: 500; }
.ranking .empty-enclos { color: var(--muted); text-align: center; padding: 14px; }
.pool { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: rgba(150, 196, 107, .35); border-radius: var(--radius); }

/* Boucle d'oreille numérotée */
.ear-tag { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; background: var(--tag); color: var(--ink); font-weight: 700; font-size: .9em;
  border-radius: 10px 10px 14px 14px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); position: relative; flex-shrink: 0; }
.ear-tag::before { content: ''; position: absolute; top: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(0,0,0,.25); }

/* Réponse envoyée */
.done { text-align: center; margin-top: 24px; }
.done h2 { font-size: 1.6em; margin-top: 8px; }
.wait { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wait .side-sheep { width: 46px; height: 32px; animation: bounce 1.2s infinite ease-in-out; }

/* ---------- Révélations ---------- */
.reveal-pick .pick-row { background: var(--wool); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; box-shadow: 0 2px 8px rgba(60, 50, 30, .08); }
.pick-row.empty { opacity: .55; }
.pick-row.star-black { background: var(--ink); color: var(--wool); }
.pick-row.star-black .muted { color: #bbb; }
.pick-row.star-gold { box-shadow: 0 0 0 3px #f6c945, 0 2px 8px rgba(60, 50, 30, .12); }
.pick-target { display: flex; align-items: center; gap: 8px; min-width: 210px; font-size: 1.05em; }
.badge { background: var(--grass); color: #fff; border-radius: 999px; padding: 2px 11px; font-weight: 700; }
.pick-voters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.pick-row.star-black .chip { color: var(--ink); }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rank-card { background: var(--wool); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 2px 8px rgba(60, 50, 30, .08); }
.rank-card ol { list-style: none; padding: 0; margin: 8px 0 0; }
.rank-card li { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: .95em; }
.rank-voter { display: flex; align-items: center; gap: 8px; border-bottom: 2px dotted var(--wool-edge); padding-bottom: 6px; }

/* ---------- Anecdotes : bulle de parole ---------- */
.bubble-wrap { position: relative; margin: 6px 0 16px; padding-bottom: 56px; }
.anecdote-text { position: relative; margin: 0; font-size: 1.3em; font-style: italic; background: var(--wool); border-radius: 26px; padding: 20px 22px; text-align: center; white-space: pre-line; box-shadow: 0 6px 18px rgba(60, 50, 30, .12); }
.anecdote-text::after { content: ''; position: absolute; left: 50px; bottom: -18px; border: 12px solid transparent; border-top: 20px solid var(--wool); border-bottom: 0; }
.bubble-sheep { position: absolute; left: 18px; bottom: 0; }
.bubble-sheep .sheep svg { filter: drop-shadow(0 3px 3px rgba(60,50,30,.18)) brightness(.98); }
.anecdote-form h1 { font-size: 1.8em; text-align: center; }
.anecdote-form textarea { width: 100%; font: inherit; font-size: 1.05em; padding: 14px; border: 3px solid var(--wool-edge); border-radius: var(--radius); resize: vertical; background: var(--wool); }
.anecdote-form textarea:focus { outline: none; border-color: var(--ink); }
.pre { white-space: pre-line; }
.anecdote-reveal { text-align: center; margin: 10px 0 20px; }
.anecdote-reveal .title-intro { animation-delay: .3s; }
.anecdote-reveal .winner { animation-delay: 1.2s; }
.guess-list > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Titres finaux ---------- */
.title-screen { position: relative; overflow: hidden; text-align: center; padding: 34px 12px 24px; border-radius: 30px; margin-top: 10px; }
.title-screen.berger { background: linear-gradient(180deg, #ffe7a8 0%, #fff4d6 45%, #cfe6a8 100%); }
.title-screen.mouton { background: radial-gradient(ellipse at 50% 120%, #3c3547 0%, #1b1822 55%, #0f0d14 100%); color: var(--wool); }
.title-screen > * { position: relative; }
.sun { position: absolute !important; top: -60px; left: 50%; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: radial-gradient(circle, #fff3b0 0%, #ffd54f 45%, transparent 70%); animation: glow 3s ease-in-out infinite; }
.stars { position: absolute !important; inset: 0; opacity: .8;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff 50%, transparent),
    radial-gradient(2px 2px at 70% 15%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 85% 45%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, #fff 50%, transparent), radial-gradient(2px 2px at 20% 80%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, #fff 50%, transparent); animation: twinkle 4s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); } }
@keyframes twinkle { 50% { opacity: .4; } }
.title-intro { font-size: 1.25em; opacity: 0; animation: fadeIn .8s forwards; }
.title-intro.delay { animation-delay: 2s; }
.title-name { font-size: 2.6em; font-weight: 700; opacity: 0; animation: pop .8s 1s forwards; }
.title-screen.mouton .title-name { text-shadow: 0 0 24px rgba(255,255,255,.25); }
.winners { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 24px 0 8px; }
.winner { opacity: 0; animation: reveal 1.2s 3.5s forwards; }
.winner-name { font-size: 1.9em; font-weight: 700; margin-top: 10px; }
.winner-score { opacity: 0; animation: fadeIn .8s 4.5s forwards; font-size: 1.1em; }
.flock { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 20px; opacity: 0; animation: fadeIn 1s 5s forwards; }
.title-screen.mouton .flock { filter: brightness(.75); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes reveal { 0% { opacity: 0; transform: scale(.2) rotate(-20deg); } 60% { transform: scale(1.15) rotate(5deg); } 100% { opacity: 1; transform: scale(1); } }

.final-scores { list-style: none; padding: 0; }
.final-scores li { display: flex; align-items: center; gap: 12px; background: var(--wool); border-radius: var(--radius); padding: 6px 14px 6px 10px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(60, 50, 30, .08); }
.final-scores li.berger { background: linear-gradient(90deg, #fff1c4, var(--wool)); box-shadow: 0 0 0 3px #f6c945; }
.final-scores li.black { background: var(--ink); color: var(--wool); }
.final-scores .name { flex: 1; font-weight: 600; font-size: 1.1em; }
.final-scores .role { display: block; font-size: .72em; font-weight: 500; color: #b5832c; }
.final-scores .role.black { color: #cfc6d8; }
.final-scores .pts { font-weight: 700; font-size: 1.1em; }

/* ---------- Maître du jeu ---------- */
.master .controls { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--ink); color: var(--wool); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.master .controls .brand { margin-right: 6px; }
.master .controls .secondary { background: transparent; color: var(--wool); box-shadow: inset 0 0 0 2px var(--wool); }
.master .controls .primary { background: var(--grass); box-shadow: 0 4px 0 var(--grass-dark); }
.master .screen-info { flex: 1; text-align: center; }
.master .screen-info small { color: #b9b0c2; }
.master .q-text { font-size: 2.2em; }
.master .anecdote-text { font-size: 1.9em; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 1.4em; padding: 4px 8px; }
.menu-body { position: absolute; right: 0; top: 44px; background: var(--wool); color: var(--ink); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; width: 310px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; margin-top: 16px; }
.status { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.status .name-tag { background: var(--wool); border-radius: 999px; padding: 3px 12px; font-weight: 500; box-shadow: 0 2px 6px rgba(60, 50, 30, .12); }
.status small { color: var(--muted); }
.status.ok .name-tag { background: var(--grass); color: #fff; }
.status.ok::after { content: '✓'; position: absolute; top: 0; right: 22%; width: 28px; height: 28px; border-radius: 50%; background: var(--grass); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.status.wait .sheep { animation: bounce 1.4s infinite ease-in-out; }
.status.off { filter: grayscale(1); opacity: .45; }
.all-done { color: var(--grass-dark); font-weight: 700; font-size: 1.3em; }
.running { margin-top: 30px; background: var(--wool); border-radius: var(--radius); padding: 10px 14px; }
.running summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.running ol { margin: 10px 0 0; padding-left: 26px; }
.running li { padding: 3px 0; }

/* ---------- Admin ---------- */
.admin section { background: var(--wool); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; box-shadow: 0 4px 14px rgba(60, 50, 30, .08); }
.admin button { border-radius: 10px; }
.admin .primary { box-shadow: none; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eee3cf; }
.admin-row input, .admin-row select, .admin-row textarea { font: inherit; padding: 8px; border: 1px solid #ddd2bd; border-radius: 8px; background: #fff; }
.admin-row input[data-field="name"] { flex: 1; min-width: 140px; }
.admin-row textarea { flex: 1; min-width: 240px; resize: vertical; }
.admin-row .num { font-weight: 700; color: var(--muted); width: 26px; }
.admin-row .sense.positive { background: #e3eedd; }
.admin-row .sense.negative { background: #fbe3e0; }
.admin-row.question { align-items: flex-start; padding: 14px 0; }
.admin-row.question .num { padding-top: 9px; }
.q-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.q-body textarea { flex: none; width: 100%; min-width: 0; font-size: 1.05em; }
.q-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-actions { margin-left: auto; display: flex; gap: 6px; }
.upload { padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.row-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.admin .field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.admin .field input, .admin .field textarea { font: inherit; padding: 8px; border: 1px solid #ddd2bd; border-radius: 8px; }
.admin .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; transition: transform .3s; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* ---------- Trophées ---------- */
.title-screen.trophy.couple { background: linear-gradient(180deg, #ffd6e2 0%, #fff0f4 55%, #f6e1ff 100%); }
.title-screen.trophy.ennemis { background: radial-gradient(ellipse at 50% 0%, #7a1f1f 0%, #3a1212 60%, #1e0b0b 100%); color: var(--wool); }
.title-screen.trophy.detective { background: linear-gradient(180deg, #d9e4ec 0%, #eef3f6 55%, #d8e2c6 100%); }
.title-screen.trophy.doublevie { background: radial-gradient(ellipse at 50% 120%, #5b3a7a 0%, #2e1d40 60%, #170e21 100%); color: var(--wool); }
.trophy .duo { align-items: center; gap: 10px; }
.duo-icon { font-size: 3em; opacity: 0; animation: pop .8s 3.2s forwards; }
.trophy.couple .duo-icon { animation: pop .8s 3.2s forwards, heartbeat 1.2s 4s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.trophy .winner-score { margin: 6px auto 18px; max-width: 520px; line-height: 1.5; }
.trophy.doublevie .anecdote-text { color: var(--ink); font-size: 1.15em; }
.trophy.doublevie .anecdote-text::after { display: none; }
