/* v48 — nouveau mode de stratégie sociale, isolé des styles des sept jeux historiques. */
#identities48-screen {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--ink, #173d31);
}
#identities48-screen * { box-sizing: border-box; }
.identities48-shell { display: grid; gap: 16px; }
.identities48-panel {
  padding: clamp(19px, 5vw, 30px);
  border: 2px solid rgba(23, 61, 49, .14);
  border-radius: 18px;
  background: var(--paper, #fff8dc);
  box-shadow: 0 8px 26px rgba(23, 61, 49, .06);
}
.identities48-eyebrow {
  margin: 0 0 8px;
  color: #28664b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.identities48-panel h1, .identities48-panel h2, .identities48-panel h3 {
  margin: 0 0 12px;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.identities48-panel h1 { font-size: clamp(27px, 7vw, 40px); }
.identities48-panel h2 { font-size: clamp(21px, 5.5vw, 29px); }
.identities48-panel h3 { font-size: 18px; }
.identities48-lead, .identities48-help, .identities48-note {
  margin: 0;
  line-height: 1.55;
}
.identities48-lead { max-width: 60ch; font-size: 15px; }
.identities48-help, .identities48-note { font-size: 13px; opacity: .82; }
.identities48-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.identities48-actions > button, .identities48-button {
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid #183d31;
  border-radius: 12px;
  color: #183d31;
  background: #f3d86d;
  box-shadow: 3px 3px 0 #183d31;
  font: 800 14px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}
.identities48-actions > button.secondary, .identities48-button.secondary {
  background: var(--paper, #fff8dc);
  box-shadow: none;
}
.identities48-actions > button:disabled, .identities48-button:disabled { opacity: .56; cursor: not-allowed; }
.identities48-actions > button:focus-visible, .identities48-button:focus-visible,
.identities48-panel input:focus-visible, .identities48-panel select:focus-visible,
.identities48-panel textarea:focus-visible {
  outline: 3px solid #28664b;
  outline-offset: 3px;
}
.identities48-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 9px; margin-top: 12px; }
.identities48-choice-grid button {
  min-height: 56px;
  padding: 9px;
  border: 1px solid rgba(23, 61, 49, .2);
  border-radius: 12px;
  color: inherit;
  background: var(--paper, #fff8dc);
  font: 750 15px/1.25 system-ui, sans-serif;
  cursor: pointer;
}
.identities48-choice-grid button[aria-pressed="true"] { border: 2px solid #28664b; background: rgba(40, 102, 75, .10); }
.identities48-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.identities48-field { display: grid; gap: 6px; min-width: 0; }
.identities48-field label, .identities48-field legend { font-size: 12px; font-weight: 800; }
.identities48-field input, .identities48-field select, .identities48-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid rgba(23, 61, 49, .25); border-radius: 10px;
  color: inherit; background: var(--paper, #fff8dc); font: 600 15px/1.35 system-ui, sans-serif;
}
.identities48-field textarea { min-height: 110px; resize: vertical; }
.identities48-rule-list { display: grid; gap: 9px; margin: 14px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.identities48-divider { height: 1px; margin: 16px 0; border: 0; background: rgba(23, 61, 49, .13); }
.identities48-status {
  display: inline-flex; align-items: center; min-height: 27px; padding: 5px 10px;
  border: 1px solid rgba(40, 102, 75, .2); border-radius: 999px;
  color: #28664b; background: rgba(40, 102, 75, .08);
  font-size: 11px; font-weight: 850; letter-spacing: .04em;
}
.identities48-status.warn { color: #854929; border-color: rgba(169, 78, 57, .25); background: rgba(169, 78, 57, .08); }
.identities48-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; }
.identities48-progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(23, 61, 49, .12); }
.identities48-progress-track span { display: block; height: 100%; border-radius: inherit; background: #28664b; transition: width 180ms ease; }
.identities48-private-card {
  display: grid; gap: 12px; padding: 20px;
  border: 2px solid #183d31; border-radius: 16px;
  color: #173d31; background: linear-gradient(145deg, #fff9e3, #e7efdb);
  box-shadow: 5px 5px 0 #183d31;
}
.identities48-private-card .identity48-name { margin: 0; font-size: clamp(22px, 6vw, 32px); font-weight: 900; line-height: 1.15; }
.identities48-private-card .identity48-group { margin: 0; font-size: 18px; font-weight: 800; }
.identities48-private-card .identity48-objective { margin: 0; font-size: 15px; line-height: 1.5; }
.identities48-known { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.identities48-known li { padding: 6px 9px; border-radius: 99px; color: #173d31; background: rgba(40, 102, 75, .12); font-size: 12px; font-weight: 700; }
.identities48-player-list { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.identities48-player-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(23, 61, 49, .12); border-radius: 10px; background: rgba(255, 255, 255, .38); }
.identities48-player-row strong { overflow-wrap: anywhere; }
.identities48-team-select, .identities48-vote-list { display: grid; gap: 8px; margin-top: 12px; }
.identities48-team-select label, .identities48-vote-list label {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px;
  border: 1px solid rgba(23, 61, 49, .18); border-radius: 11px; background: rgba(255, 255, 255, .38);
  font-size: 14px; font-weight: 700;
}
.identities48-team-select input, .identities48-vote-list input { width: 20px; height: 20px; accent-color: #28664b; }
.identities48-clock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgba(40, 102, 75, .1); font-size: 13px; font-weight: 850; }
.identities48-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; margin-top: 14px; }
.identities48-group-score { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid rgba(23, 61, 49, .16); border-radius: 12px; background: rgba(255, 255, 255, .4); }
.identities48-group-score strong { font-size: 13px; line-height: 1.25; }
.identities48-group-score b { font-size: 24px; }
.identities48-inbox { display: grid; gap: 8px; margin-top: 12px; }
.identities48-message { padding: 12px; border-left: 4px solid #28664b; border-radius: 8px; background: rgba(40, 102, 75, .08); overflow-wrap: anywhere; }
.identities48-safe-cover { text-align: center; padding: clamp(26px, 8vw, 50px) 18px; }
.identities48-safe-cover .safe-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border: 2px solid rgba(40, 102, 75, .25); border-radius: 20px; color: #28664b; background: rgba(40, 102, 75, .08); font-size: 28px; }
.identities48-safe-cover h1 { font-size: clamp(25px, 6vw, 34px); }
.identities48-no-motion, .identities48-mask-transition { transition: none !important; }
@media (max-width: 520px) {
  #identities48-screen { padding-inline: 0; }
  .identities48-shell { gap: 12px; }
  .identities48-panel { padding: 18px 15px; border-radius: 14px; }
  .identities48-fields { grid-template-columns: 1fr; }
  .identities48-actions { display: grid; grid-template-columns: 1fr; }
  .identities48-actions > button { width: 100%; }
  .identities48-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .identities48-choice-grid button { padding: 8px 4px; font-size: 13px; }
}
@media (max-width: 350px) {
  .identities48-private-card { padding: 15px; }
  .identities48-groups { grid-template-columns: 1fr; }
  .identities48-player-row { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .identities48-progress-track span { transition: none; }
}
html[data-appearance="dark"] #identities48-screen { color: rgba(255, 255, 255, .9); }
html[data-appearance="dark"] .identities48-panel { border-color: rgba(255, 255, 255, .14); }
html[data-appearance="dark"] .identities48-eyebrow { color: #b6d69d; }
html[data-appearance="dark"] .identities48-status { color: #b6d69d; border-color: rgba(182, 214, 157, .25); background: rgba(182, 214, 157, .08); }
html[data-appearance="dark"] .identities48-actions > button, html[data-appearance="dark"] .identities48-button { border-color: #d7ddd9; color: #17211d; background: #f3d86d; box-shadow: 3px 3px 0 #d7ddd9; }
html[data-appearance="dark"] .identities48-actions > button.secondary { color: rgba(255, 255, 255, .9); background: #151918; }
html[data-appearance="dark"] .identities48-choice-grid button,
html[data-appearance="dark"] .identities48-field input,
html[data-appearance="dark"] .identities48-field select,
html[data-appearance="dark"] .identities48-field textarea { color: rgba(255, 255, 255, .9); background: #151918; }
html[data-appearance="dark"] .identities48-private-card { border-color: #d7ddd9; color: #173d31; background: linear-gradient(145deg, #f7f0d4, #cfddbd); box-shadow: 4px 4px 0 #d7ddd9; }
html[data-appearance="glass"] .identities48-panel { border-color: rgba(255, 255, 255, .24); background: rgba(15, 37, 52, .72); backdrop-filter: blur(16px); }
