/* ===========================================================================
   Spyfall « Hexa » — direction artistique premium « laque & or »
   Palette : noir laqué, or champagne, sang-de-bœuf. Sans police externe (CSP).
   =========================================================================== */

:root {
  --noir: #070605;
  --laque: #0e0c08;
  --laque-2: #13100a;
  --panneau: #1a160f;
  --panneau-2: #221d14;
  --bord: #342b1c;
  --or: #e6c87a;
  --or-clair: #f1d99a;
  --bronze: #9a7a2e;
  --creme: #f3ead6;
  --texte: #e9e2d2;
  --doux: #9b9078;
  --sang: #6e1414;
  --sang-clair: #c4796a;
  --vert: #5fcf80;
  --ombre: 0 18px 40px rgba(0, 0, 0, 0.55);
  --liseret: inset 0 1px 0 rgba(241, 217, 154, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--texte);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a140c 0%, var(--laque) 42%, var(--noir) 100%) fixed;
}
/* Grain de laque subtil. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}

.screen { display: flex; flex-direction: column; gap: 14px; }
.hidden { display: none !important; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--or);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 18px rgba(230, 200, 122, 0.18);
}
h1:focus { outline: none; }
.subtitle { text-align: center; color: var(--doux); font-size: 0.98rem; }
label { font-size: 0.82rem; color: var(--doux); letter-spacing: 0.02em; text-transform: uppercase; }

input, select, button {
  font-size: 1.05rem;
  font-family: var(--sans);
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--bord);
}
input, select {
  background: linear-gradient(180deg, var(--laque-2), var(--laque));
  color: var(--texte);
  width: 100%;
  box-shadow: var(--liseret);
}
input::placeholder { color: #6d6552; }
input:focus, select:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 2px rgba(230, 200, 122, 0.25), var(--liseret); }

button {
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  color: var(--texte);
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--ombre), var(--liseret);
  transition: transform 0.08s ease, filter 0.15s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px) scale(0.99); filter: brightness(0.96); }
button:disabled { opacity: 0.45; filter: grayscale(0.4); cursor: not-allowed; box-shadow: none; }

button.primary {
  background: linear-gradient(180deg, var(--or-clair), var(--or) 55%, var(--bronze));
  color: #2a1d07;
  border-color: #b69440;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
button.danger {
  background: linear-gradient(180deg, #8a2020, var(--sang));
  color: #ffe9e4;
  border-color: #4d1010;
}
button.ghost { background: transparent; border: 1px solid var(--bord); color: var(--creme); box-shadow: none; }
button.danger-ghost { background: transparent; border: 1px solid #4d2020; color: var(--sang-clair); box-shadow: none; }

.join-row { display: flex; gap: 8px; }
.join-row input { width: 42%; text-transform: uppercase; text-align: center; letter-spacing: 0.35em; font-weight: 700; color: var(--or); }
.join-row button { flex: 1; }

.error { color: var(--sang-clair); text-align: center; min-height: 1.2em; font-size: 0.92rem; }
.hint { color: var(--doux); text-align: center; font-size: 0.9rem; }

/* --- Salon ------------------------------------------------------------- */

.code-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.room-code {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--or);
  text-shadow: 0 0 22px rgba(230, 200, 122, 0.35);
  background: linear-gradient(180deg, var(--or-clair), var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
}
.icon-btn { padding: 11px 13px; font-size: 1.2rem; min-width: 48px; }

.qr-box { display: flex; justify-content: center; }
.qr-box svg {
  border-radius: 12px;
  padding: 8px;
  background: var(--creme);
  border: 1px solid var(--bronze);
  box-shadow: var(--ombre);
  max-width: 184px;
  height: auto;
}

.players { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.players li {
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--bord);
  box-shadow: var(--liseret);
  display: flex;
  align-items: center;
}
.you-tag { color: var(--or); font-size: 0.85rem; margin-left: 6px; }

.pdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; flex: 0 0 auto; background: var(--doux); }
.pdot-actif { background: var(--vert); box-shadow: 0 0 8px rgba(95, 207, 128, 0.6); }
.pdot-inactif { background: var(--or); box-shadow: 0 0 6px rgba(230, 200, 122, 0.4); }
.pdot-parti { background: #5b5347; }

.duration-presets { display: flex; gap: 8px; align-items: center; }
.duration-presets button { flex: 0 0 auto; padding: 11px 15px; }
.duration-presets input { flex: 1; min-width: 64px; text-align: center; }

/* --- Classement -------------------------------------------------------- */

.scoreboard { margin-top: 4px; }
.sb-title { font-family: var(--serif); font-size: 1.15rem; text-align: center; margin-bottom: 8px; color: var(--or); }
.sb-list { list-style: none; counter-reset: rank; display: flex; flex-direction: column; gap: 5px; }
.sb-list li {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bord);
  padding: 9px 13px; border-radius: 10px; box-shadow: var(--liseret);
}
.sb-list li::before { counter-increment: rank; content: counter(rank); color: var(--doux); margin-right: 10px; font-variant-numeric: tabular-nums; min-width: 1em; }
.sb-list li span { flex: 1; display: flex; align-items: center; }
.sb-list li strong { color: var(--or); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.sb-list li:first-child { border-color: var(--bronze); box-shadow: 0 0 18px rgba(230, 200, 122, 0.15), var(--liseret); }
.sb-list li:first-child strong { color: var(--or-clair); }

/* --- Manche ------------------------------------------------------------ */

.timer {
  font-family: var(--serif);
  font-size: 2.8rem; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--or);
  text-shadow: 0 0 20px rgba(230, 200, 122, 0.25);
}
.timer.urgent { color: var(--sang-clair); text-shadow: 0 0 22px rgba(196, 60, 60, 0.5); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.first-player { text-align: center; color: var(--doux); font-size: 0.95rem; min-height: 1.2em; }

/* Barre de temps : se vide au fil de la manche, rougit sur la dernière minute. */
.time-bar { height: 4px; margin: 2px 22px 8px; border-radius: 999px; background: rgba(230, 200, 122, 0.12); overflow: hidden; }
#time-bar-inner { height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bronze), var(--or)); transition: width 0.5s linear; }
#time-bar-inner.urgent { background: linear-gradient(90deg, #7a2020, var(--sang-clair)); }

/* Badge « N restants » du panneau d'élimination + indice pour re-cacher la carte. */
.loc-counter { color: var(--or); font-weight: 600; font-size: 0.85rem; }
.card-hide-hint { margin-top: 10px; color: var(--doux); font-size: 0.8rem; opacity: 0.8; }
#card-content { cursor: pointer; }

.card {
  background: radial-gradient(120% 100% at 50% 0%, var(--panneau-2), var(--laque-2));
  border: 1px solid var(--bord);
  border-radius: 16px;
  min-height: 230px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px; text-align: center;
  box-shadow: var(--ombre), var(--liseret);
}
.card-cover {
  width: 100%; min-height: 190px;
  background: linear-gradient(150deg, var(--or-clair), var(--or) 45%, var(--bronze));
  color: #2a1d07; border: none; border-radius: 12px;
  font-size: 1.1rem; line-height: 1.6; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -16px 30px rgba(120, 90, 20, 0.35);
}
.card-cover small { font-weight: 500; opacity: 0.75; }
#card-content { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--doux); }
.card-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--creme); }
.card-title.spy { color: var(--sang-clair); text-shadow: 0 0 20px rgba(196, 60, 60, 0.35); }
.card-role { font-size: 1.3rem; font-weight: 600; color: var(--or); }
.role-help summary { cursor: pointer; color: var(--doux); font-size: 0.85rem; margin-top: 6px; }
.role-help ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.role-help li { background: var(--panneau-2); border: 1px solid var(--bord); border-radius: 999px; padding: 4px 11px; font-size: 0.85rem; }

/* --- Actions / vote ---------------------------------------------------- */

.actions { background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--bord); border-radius: 13px; padding: 4px 14px; box-shadow: var(--liseret); }
.actions summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--creme); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.pick-btn { flex: 1 1 calc(50% - 8px); min-height: 46px; }
.spy-hint { flex: 1 1 100%; margin: 0 0 2px; font-size: 0.85rem; color: var(--doux); }
/* Lieux rayés dans le panneau espion : barrés et atténués, mais assez visibles
   pour rester cliquables si l'espion se ravise (l'opacité 0.32 globale serait trop faible). */
.pick-btn.eliminated { opacity: 0.5; }

.vote-panel {
  background: radial-gradient(120% 120% at 50% 0%, #2c2415, var(--laque-2));
  border: 1px solid var(--bronze);
  border-radius: 14px; padding: 16px; text-align: center;
  box-shadow: 0 0 26px rgba(230, 200, 122, 0.12), var(--ombre);
}
.vote-q { font-size: 1.05rem; margin-bottom: 12px; color: var(--creme); }
.vote-btns { display: flex; gap: 10px; }
.vote-btns button { flex: 1; min-height: 50px; }

/* --- Élimination des lieux -------------------------------------------- */

.locations summary { cursor: pointer; padding: 10px; color: var(--doux); }
.loc-group { margin-bottom: 10px; }
.loc-theme {
  width: 100%; text-align: left;
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  font-size: 0.95rem; padding: 11px 13px; margin-bottom: 6px;
  border: 1px solid var(--bord);
}
.loc-theme span { color: var(--doux); font-weight: 400; }
.loc-group ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.loc-item {
  background: var(--laque-2); border: 1px solid var(--bord);
  padding: 9px 10px; border-radius: 9px; font-size: 0.9rem; cursor: pointer; user-select: none;
}
.eliminated { opacity: 0.32; text-decoration: line-through; }

/* --- Révélation théâtrale --------------------------------------------- */

.reveal-line { text-align: center; font-size: 1.2rem; color: var(--doux); }
.reveal-line strong { color: var(--or); }
.reveal-verdict { text-align: center; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; padding: 18px; border-radius: 14px; box-shadow: var(--ombre); }
.reveal-verdict.win-innocents { background: radial-gradient(120% 120% at 50% 0%, #1c3a26, #122318); color: #b9f3cf; border: 1px solid #2e7a4a; text-shadow: 0 0 18px rgba(95, 207, 128, 0.3); }
.reveal-verdict.win-spy { background: radial-gradient(120% 120% at 50% 0%, #3a1414, #1f0d0d); color: #f3b8b0; border: 1px solid var(--sang); text-shadow: 0 0 18px rgba(196, 60, 60, 0.35); }

.reveal-anim .reveal-verdict { animation: verdictDrop 0.65s cubic-bezier(0.2, 0.85, 0.25, 1) both; }
.reveal-anim #reveal-spy { display: inline-block; animation: unmask 0.95s ease both 0.25s; }
.reveal-anim .reveal-line, .reveal-anim .scoreboard { animation: rise 0.55s ease both 0.35s; }
.reveal-anim .sb-list li { animation: rise 0.5s ease both; }
.reveal-anim .sb-list li:nth-child(1) { animation-delay: 0.45s; }
.reveal-anim .sb-list li:nth-child(2) { animation-delay: 0.55s; }
.reveal-anim .sb-list li:nth-child(3) { animation-delay: 0.65s; }
.reveal-anim .sb-list li:nth-child(4) { animation-delay: 0.75s; }
.reveal-anim .sb-list li:nth-child(n + 5) { animation-delay: 0.85s; }
@keyframes verdictDrop { from { opacity: 0; transform: translateY(-26px) scale(0.9); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes unmask { from { filter: blur(9px); opacity: 0.25; letter-spacing: 0.3em; } to { filter: none; opacity: 1; letter-spacing: normal; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --- Éditeur ----------------------------------------------------------- */

.editor-top { display: flex; align-items: center; gap: 10px; }
.editor-top h1 { font-size: 1.6rem; text-align: left; flex: 1; }
#btn-editor-back { flex: 0 0 auto; padding: 10px 12px; }

.pack-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.pack-tab { flex: 0 0 auto; background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); font-size: 0.9rem; padding: 11px 13px; white-space: nowrap; border: 1px solid var(--bord); }
.pack-tab.active { background: linear-gradient(180deg, var(--or-clair), var(--or) 55%, var(--bronze)); color: #2a1d07; border-color: #b69440; }
.pack-tab span { opacity: 0.7; font-weight: 400; }

.ed-loc { background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--bord); border-radius: 13px; padding: 13px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--liseret); }
.ed-loc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ed-loc-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-loc-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--creme); word-break: break-word; }
.ed-loc-theme { font-size: 0.8rem; color: var(--doux); }
.ed-del-loc { flex: 0 0 auto; background: linear-gradient(180deg, #2c1719, #1d1011); border: 1px solid #4d2020; font-size: 1.1rem; padding: 8px 11px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.ed-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-role { display: inline-flex; align-items: center; gap: 6px; background: var(--laque-2); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 0.9rem; }
.ed-del-role { position: relative; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: none; background: #3a3322; color: var(--creme); font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: none; }
/* Zone tactile ≥44px (recommandation accessibilité) sans agrandir le rond visuel de 26px */
.ed-del-role::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; }
.ed-del-role:active { background: var(--sang); }
.ed-addrole { display: flex; gap: 8px; }
.ed-role-input { flex: 1; font-size: 0.95rem; padding: 11px 12px; }
.ed-add-role { flex: 0 0 auto; padding: 11px 15px; }
.add-loc { margin-top: 18px; padding: 15px; background: var(--laque); border: 1px dashed var(--bord); border-radius: 13px; display: flex; flex-direction: column; gap: 10px; }
.add-title { font-family: var(--serif); font-size: 1.15rem; color: var(--or); }

/* --- Superpositions ---------------------------------------------------- */

.net-banner { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(180deg, #5a3a12, #3a2509); color: var(--or-clair); text-align: center; padding: 9px; font-size: 0.9rem; z-index: 70; }

/* Drapeau de langue (par téléphone) : français par défaut, bascule en anglais au clic. */
.lang-flag { position: fixed; top: 8px; right: 10px; z-index: 75; width: 42px; height: 42px; min-height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1; background: var(--laque-2); border: 1px solid var(--bord); border-radius: 50%; box-shadow: var(--ombre); cursor: pointer; }
.lang-flag:active { transform: scale(0.94); }
.lang-flag:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; opacity: 0; transition: opacity 0.4s ease; }

body.defeat-flash::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: radial-gradient(circle at 50% 45%, rgba(110, 20, 20, 0) 35%, rgba(110, 20, 20, 0.55) 100%);
  animation: defeatPulse 1.1s ease-out forwards;
}
@keyframes defeatPulse { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

/* --- Socle viral : toast, invitation, lobby vivant, casier, tutoriel ----- */

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bronze); color: var(--creme);
  padding: 10px 16px; border-radius: 999px; font-size: 0.92rem; z-index: 80;
  box-shadow: var(--ombre); max-width: 90vw; text-align: center;
  animation: toastIn 0.25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }

.home-links { display: flex; gap: 8px; }
.home-links button { flex: 1; }

.dictate-hint { text-align: center; color: var(--or); font-size: 0.92rem; }

.invite-wall {
  background: radial-gradient(120% 120% at 50% 0%, #2c2415, var(--laque-2));
  border: 1px solid var(--bronze); border-radius: 14px; padding: 14px; text-align: center;
  box-shadow: 0 0 22px rgba(230, 200, 122, 0.12); display: flex; flex-direction: column; gap: 10px;
}
#invite-count { color: var(--creme); font-size: 1rem; }
#btn-invite { min-height: 52px; }

.fill-bar { height: 9px; background: var(--laque-2); border: 1px solid var(--bord); border-radius: 999px; overflow: hidden; }
#fill-bar-inner { height: 100%; width: 0; background: linear-gradient(90deg, var(--bronze), var(--or)); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
#fill-bar-inner.ready { background: linear-gradient(90deg, #2e7a4a, var(--vert)); }

.active-games { text-align: center; color: var(--doux); font-size: 0.88rem; }

.players li.just-joined { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { 0% { transform: scale(0.85); opacity: 0; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }

.reveal-series { text-align: center; color: var(--or); font-size: 1rem; }

.casier-wrap { display: flex; justify-content: center; }
.casier-img { max-width: 100%; border-radius: 14px; box-shadow: var(--ombre); border: 1px solid var(--bronze); }

.tuto-card { background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--bord); border-radius: 16px; padding: 22px; min-height: 290px; box-shadow: var(--ombre), var(--liseret); }
.tuto-card h2 { font-family: var(--serif); color: var(--or); font-size: 1.5rem; margin-bottom: 12px; text-align: center; }
.tuto-card p { color: var(--texte); line-height: 1.5; margin-bottom: 10px; }
.tuto-card b { color: var(--or-clair); }
.tuto-demo { display: flex; flex-direction: column; gap: 4px; align-items: center; background: var(--laque-2); border: 1px solid var(--bord); border-radius: 12px; padding: 16px; margin-top: 12px; }
.tuto-chat { background: var(--laque-2); border: 1px solid var(--bord); border-radius: 12px; padding: 14px; margin-top: 10px; }
.tuto-chat p { margin-bottom: 6px; }
.tuto-tip { color: var(--or) !important; font-style: italic; }
.tuto-verdict { margin: 12px 0; }
.tuto-dots { display: flex; gap: 8px; justify-content: center; }
.tuto-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bord); }
.tuto-dot.on { background: var(--or); box-shadow: 0 0 8px rgba(230, 200, 122, 0.5); }
.tuto-nav { display: flex; gap: 10px; }
.tuto-nav .ghost { flex: 0 0 auto; }
.tuto-nav .primary { flex: 1; }

/* Suggestions de rôles des agents (rouge = retirer / vert = ajouter). */
.ed-sugg { margin-top: 10px; border-top: 1px dashed var(--bord); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ed-sugg-title { font-size: 0.82rem; color: var(--doux); }
.sugg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; font-size: 0.9rem; }
.sugg-row span { flex: 1; min-width: 0; word-break: break-word; }
.sugg-remove { background: rgba(110, 20, 20, 0.18); border: 1px solid #5a2e2e; color: #f0b8b0; }
.sugg-add { background: rgba(46, 122, 74, 0.16); border: 1px solid #2e6e44; color: #aef0c4; }
.sugg-del { flex: 0 0 auto; min-height: 44px; background: linear-gradient(180deg, #8a2020, var(--sang)); color: #ffe9e4; border: 1px solid #4d1010; padding: 7px 14px; font-size: 0.85rem; box-shadow: none; }
.sugg-add-btn { flex: 0 0 auto; min-height: 44px; background: linear-gradient(180deg, #2e7a4a, #1c5030); color: #eafff0; border: 1px solid #1c5030; padding: 7px 14px; font-size: 0.85rem; box-shadow: none; }

/* --- Personnages proposés (écran de validation) ---------------------------- */
.pending-cta { border-color: var(--or); color: var(--or-clair); }
.pending-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.pending-actions button { flex: 1; }
.pend-group { margin-bottom: 16px; }
.pend-pack { font-family: var(--serif); font-size: 1.1rem; color: var(--or); margin: 4px 0 8px; }
.pend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(180deg, var(--panneau-2), var(--panneau)); border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--liseret); }
.pend-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pend-loc { font-size: 0.8rem; color: var(--doux); }
.pend-char { font-family: var(--serif); font-weight: 700; color: var(--creme); word-break: break-word; }
.pend-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.pend-yes { min-height: 44px; background: linear-gradient(180deg, #2e7a4a, #1c5030); color: #eafff0; border: 1px solid #1c5030; padding: 8px 12px; font-size: 0.85rem; box-shadow: none; }
.pend-no { min-height: 44px; background: linear-gradient(180deg, #8a2020, var(--sang)); color: #ffe9e4; border: 1px solid #4d1010; padding: 8px 12px; font-size: 0.85rem; box-shadow: none; }

/* Focus clavier visible (accessibilité). */
.loc-item:focus-visible, .pack-tab:focus-visible, .pick-btn:focus-visible, .loc-theme:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

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