:root {
  --sand: #e2a53a;
  --sand-soft: #f0d7a2;
  --ink: #f3e6d0;
  --panel-deep: #1a140f;
  --metal-edge: #5c4528;
  color: var(--ink);
  background: #120e0b;
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
}

* { box-sizing: border-box; }

/* Match game HUD: thin dark-brown track + bronze/gold thumb. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--metal-edge) var(--panel-deep);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--panel-deep);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6e5433 0%, var(--metal-edge) 100%);
  border: 1px solid rgba(226, 165, 58, 0.45);
  border-radius: 0;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--sand) 0%, #c4892a 100%);
  border-color: var(--sand-soft);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--sand);
}

*::-webkit-scrollbar-corner {
  background: var(--panel-deep);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #090705 url("/compte/desert.svg") center / cover no-repeat fixed;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 42px 16px 0;
  background: transparent;
}

.mark {
  color: #f3e6d0;
  text-decoration: none;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 72px);
  line-height: 0.9;
}

.mark::after {
  content: "";
  display: block;
  width: min(180px, 46vw);
  height: 1px;
  margin: 16px auto 0;
  background: #e2a53a;
  box-shadow: 0 1px 0 #5c4528;
}

.top nav.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

/* Largeur unique pages compte (forum index/board/sujet/profil). */
:root {
  --compte-wide: min(1180px, calc(100vw - 24px));
}

.card-wide,
.card-forum,
.card-forum-thread,
.card-profile {
  width: var(--compte-wide);
  text-align: left;
}

.profile-hero,
.profile-edit-preview {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px;
  text-align: left;
}

.profile-hero .forum-avatar,
.profile-edit-preview .forum-avatar {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.profile-hero .forum-avatar img,
.profile-edit-preview .forum-avatar img {
  width: 88px;
  height: 88px;
}

.profile-edit-login {
  margin: 0 0 4px;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.profile-avatar-hint {
  margin: -4px 0 0;
  color: #b8a090;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.profile-edit-remove {
  margin-top: 12px;
}

.profile-h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e8d4b0;
}

.profile-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.profile-check input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.forum-col-num {
  text-align: center;
  width: 5.5em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Topic / board lists: Thread flexes; Author & Replies pinned; Last hugs the right edge */
.forum-topic-table,
.forum-board-table {
  table-layout: fixed;
  width: 100%;
}

.forum-col-thread {
  width: auto;
}

.forum-col-author {
  width: 11em;
  white-space: nowrap;
}

.forum-post-author + .online-pill,
.profile-hero h1 .online-pill {
  margin-left: 6px;
}

.forum-topic-table .forum-col-num,
.forum-board-table .forum-col-num {
  width: 5.5em;
}

/* Date complète ("26th of October, 2026 at 21:39") : la colonne doit la contenir
   entièrement ; sur écran étroit la date passe sur deux lignes au lieu d’être tronquée. */
.forum-col-last,
.forum-last-cell {
  width: 17em;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

/* Écran étroit : la date passe sur deux lignes plutôt que d’élargir le tableau. */
@media (max-width: 760px) {
  .forum-col-last,
  .forum-last-cell {
    width: 12em;
  }
}

/* Beat .battle-table td { text-align: left } and .card-forum table !important */
.forum-topic-table th.forum-col-last,
.forum-topic-table td.forum-col-last,
.forum-topic-table td.forum-last-cell,
.forum-board-table th.forum-col-last,
.forum-board-table td.forum-col-last,
.forum-board-table td.forum-last-cell,
.card.card-forum .battle-table th.forum-col-last,
.card.card-forum .battle-table td.forum-col-last,
.card.card-forum .battle-table td.forum-last-cell {
  text-align: right !important;
}

.forum-last-by {
  display: block;
  margin-top: 2px;
  color: #b8a090;
  font-size: 0.9rem;
}

.forum-post-delete-form {
  display: inline;
  margin: 0;
}

/* Info sous le pseudo (âge / ville / pays / ancienneté) : lignes serrées mais lisibles. */
.profile-hero > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-hero > div > h1 {
  margin-bottom: 6px;
}

.profile-meta {
  margin: 0;
  color: #d9c4a2;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-size: 0.95rem;
}

.profile-views,
.forum-views,
.views-count {
  color: #c9a66b;
}

.profile-views .views-count {
  color: #e2a53a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.directory-views {
  display: inline-block;
  margin-left: 8px;
  color: #b7a48a;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.directory-table td.directory-views-num {
  text-align: right;
  color: #c9a66b;
  font-variant-numeric: tabular-nums;
}

.directory-table td.directory-last-seen {
  white-space: nowrap;
  color: #d9c4a2;
  font-variant-numeric: tabular-nums;
}

.directory-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.directory-stat {
  flex: 1 1 7.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e2a53a;
  background: rgba(36, 28, 21, 0.94);
  box-shadow: inset 0 0 0 1px #5c4528;
  text-align: center;
}

/*
 * Pastille cliquable : filtre l'annuaire (en ligne, en partie, inscrits du jour, parties).
 * Explicit :link/:visited — `color: inherit` laisse le navigateur peindre ses liens
 * en bleu/violet dès que la pastille a déjà été visitée.
 */
.directory-stat-link,
.directory-stat-link:link,
.directory-stat-link:visited {
  display: block;
  padding: 8px 10px 9px;
  color: #f0d7a2;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.directory-stat-link .directory-stat-value,
.directory-stat-link:link .directory-stat-value,
.directory-stat-link:visited .directory-stat-value {
  color: #f0d7a2;
}

.directory-stat.is-online .directory-stat-link .directory-stat-value,
.directory-stat.is-online .directory-stat-link:link .directory-stat-value,
.directory-stat.is-online .directory-stat-link:visited .directory-stat-value {
  color: #c8e6b0;
}

.directory-stat.is-playing .directory-stat-link .directory-stat-value,
.directory-stat.is-playing .directory-stat-link:link .directory-stat-value,
.directory-stat.is-playing .directory-stat-link:visited .directory-stat-value {
  color: #f0b8a8;
}

.directory-stat-link .directory-stat-label,
.directory-stat-link:link .directory-stat-label,
.directory-stat-link:visited .directory-stat-label {
  color: #d9c4a2;
}

.directory-stat-link:hover,
.directory-stat-link:focus-visible {
  background: rgba(226, 165, 58, 0.16);
  color: #f7e6c4;
  outline: none;
}

.directory-stat-link:hover .directory-stat-label,
.directory-stat-link:focus-visible .directory-stat-label {
  color: #f0d7a2;
}

.directory-stat-link:focus-visible {
  box-shadow: inset 0 0 0 1px #f0d7a2;
}

.directory-stat.is-active {
  border-color: #f0d7a2;
  background: rgba(74, 54, 30, 0.95);
  box-shadow: inset 0 0 0 1px #e2a53a, 0 0 10px rgba(226, 165, 58, 0.22);
}

.directory-empty {
  padding: 18px 12px;
  color: #d9c4a2;
  text-align: center;
}

.directory-battles-table td,
.directory-battles-table th {
  white-space: nowrap;
}

.directory-stat-value {
  display: block;
  color: #f0d7a2;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.directory-stat.is-online .directory-stat-value {
  color: #c8e6b0;
}

.directory-stat.is-playing .directory-stat-value {
  color: #f0b8a8;
}

.directory-stat-label {
  display: block;
  margin-top: 3px;
  color: #d9c4a2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-legend {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid #5a4a38;
  background: rgba(36, 28, 21, 0.72);
}

.directory-legend h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #f0d7a2;
  letter-spacing: 0.06em;
  font-weight: normal;
}

.directory-legend dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.directory-legend dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11.5rem) 1fr;
  gap: 6px 14px;
  align-items: baseline;
}

.directory-legend dt {
  margin: 0;
  color: #e2a53a;
  letter-spacing: 0.04em;
}

.directory-legend dd {
  margin: 0;
  color: #d9c4a2;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .directory-legend dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.directory-table td.directory-last-seen {
  color: #d9c4a2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.directory-table td.directory-last-seen time {
  color: inherit;
}

.battle-table td.views-count,
.battle-table th.forum-col-num {
  text-align: right;
  color: #c9a66b;
  font-variant-numeric: tabular-nums;
}

.profile-h2 {
  margin: 24px 0 10px;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 16px;
  color: #f0d7a2;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  background: rgba(36, 28, 21, 0.94);
  border: 1px solid #e2a53a;
}

.stat-cell dt {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #d9c4a2;
}

.stat-cell dd {
  margin: 4px 0 0;
  font-size: 22px;
  color: #f3e6d0;
}

.stat-cell--detail {
  cursor: pointer;
}

.stat-cell--detail:hover dt,
.stat-cell--detail:focus-visible dt {
  color: #f0d7a2;
}

.stat-cell--detail:hover dd,
.stat-cell--detail:focus-visible dd {
  color: #fff6e4;
  text-decoration: underline;
  text-decoration-color: #e2a53a;
  text-underline-offset: 3px;
}

.stat-cell--detail:focus-visible {
  outline: 1px solid #e2a53a;
  outline-offset: 3px;
}

body.stat-detail-open,
body.fiche-modal-open {
  overflow: hidden;
}

/* Fiche maison / unité / bâtiment en overlay (iframe ?embed=1).
   Compte public (bataille / profil / forum) — pas réservé au HUD in-game. */
.fiche-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.fiche-modal[hidden] {
  display: none !important;
}

.fiche-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 60, 28, 0.45), transparent 55%),
    rgba(9, 7, 5, 0.82);
  cursor: pointer;
}

.fiche-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  height: min(86vh, 780px);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 28% 18%, rgba(240, 215, 162, 0.14), transparent 50%),
    linear-gradient(165deg, #2a2118 0%, #1a1410 55%, #120e0b 100%);
  border: 1px solid #e2a53a;
  box-shadow:
    inset 0 0 0 1px #5c4528,
    0 18px 48px rgba(0, 0, 0, 0.55);
}

.fiche-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid #8a6a3b;
  background: #1a140f;
  color: #f0d7a2;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.fiche-modal-close:hover,
.fiche-modal-close:focus-visible {
  border-color: #e2a53a;
  color: #e2a53a;
  outline: none;
}

.fiche-modal-status {
  margin: 0;
  padding: 48px 20px 12px;
  text-align: center;
  color: #b7a48a;
  font-style: italic;
}

.fiche-modal-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #120e0b;
}

/* Page fiche chargée dans l’iframe modal — remplit le panneau. */
html:has(body.fiche-embed) {
  height: 100%;
}

body.fiche-embed {
  margin: 0;
  background: #120e0b;
  min-height: 100%;
  height: 100%;
}

body.fiche-embed main {
  padding: 12px 14px 20px;
  max-width: none;
  min-height: 100%;
  box-sizing: border-box;
}

body.fiche-embed .card.card-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
}

body.fiche-embed .forum-crumb,
body.fiche-embed .links,
body.fiche-embed .house-sheet-section[aria-labelledby="house-battles"] {
  display: none;
}

.stat-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.stat-detail-modal[hidden] {
  display: none !important;
}

.stat-detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 60, 28, 0.45), transparent 55%),
    rgba(9, 7, 5, 0.82);
  cursor: pointer;
}

.stat-detail-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(80vh, 620px);
  overflow: auto;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(240, 215, 162, 0.14), transparent 50%),
    linear-gradient(165deg, #2a2118 0%, #1a1410 55%, #120e0b 100%);
  border: 1px solid #e2a53a;
  box-shadow:
    inset 0 0 0 1px #5c4528,
    0 18px 48px rgba(0, 0, 0, 0.55);
  color: #f3e6d0;
}

.stat-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid #8a6a3b;
  background: rgba(18, 14, 11, 0.88);
  color: #f0d7a2;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.stat-detail-close:hover,
.stat-detail-close:focus-visible {
  border-color: #e2a53a;
  color: #f3e6d0;
  background: rgba(36, 28, 21, 0.95);
}

.stat-detail-title {
  margin: 0 36px 14px 0;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0d7a2;
}

.stat-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #5c4528;
}

.stat-detail-item {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #3a2c1e;
}
.stat-detail-item:last-child {
  border-bottom: 0;
}

.stat-detail-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #3a2c1e;
  color: inherit;
  text-decoration: none;
}
.stat-detail-item > .stat-detail-row {
  border-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}
a.stat-detail-row--link {
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
a.stat-detail-row--link:hover,
a.stat-detail-row--link:focus-visible {
  background: rgba(226, 165, 58, 0.08);
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.28);
  outline: none;
}

.stat-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  flex: 0 0 48px;
  background:
    linear-gradient(160deg, rgba(90, 68, 40, 0.55), rgba(28, 22, 16, 0.9));
  border: 1px solid #5c4528;
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.18);
  overflow: hidden;
}

.stat-detail-icon img {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.stat-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stat-detail-name {
  color: #f0d7a2;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.stat-detail-blurb {
  color: #b9a588;
  font-size: 0.82em;
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.stat-detail-count {
  flex: 0 0 auto;
  align-self: center;
  color: #f3e6d0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.stat-detail-empty {
  margin: 0;
  color: #d9c4a2;
  letter-spacing: 0.04em;
}

.battle-scroll {
  overflow-x: auto;
  border: 1px solid #8a6a3b;
  background: rgba(26, 20, 16, 0.92);
}

.battle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.battle-table th,
.battle-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #3a2c1e;
  text-align: left;
}

.battle-table th {
  letter-spacing: 0.08em;
  color: #f0d7a2;
  font-weight: normal;
}

.directory-table th.sortable {
  white-space: nowrap;
}

/* Explicit :link/:visited — inherit leaves UA blue/purple on sort headers. */
.directory-table th.sortable a,
.directory-table th.sortable a:link,
.directory-table th.sortable a:visited {
  color: var(--sand-soft);
  text-decoration: none;
}

.directory-table th.sortable a:hover,
.directory-table th.sortable a:focus-visible {
  color: var(--sand);
}

.directory-table th.is-sorted a,
.directory-table th.is-sorted a:link,
.directory-table th.is-sorted a:visited {
  color: var(--sand);
}

.directory-table th.sortable .sort-ind {
  font-size: 0.85em;
  letter-spacing: 0;
  color: inherit;
}

.battle-table .result-victoire { color: #c8e6b0; }
.battle-table .result-defaite { color: #e7b2a0; }
.battle-table .result-nul { color: #d9c4a2; }
.battle-table .result-abandon { color: #b8a090; }

.battle-table--clickable tbody tr.battle-row-link {
  cursor: pointer;
}

.battle-table--clickable tbody tr.battle-row-link:hover td,
.battle-table--clickable tbody tr.battle-row-link:focus-within td {
  background: rgba(226, 165, 58, 0.08);
}

.battle-row-anchor {
  color: inherit;
  text-decoration: none;
}

.battle-row-anchor:hover,
.battle-row-anchor:focus-visible {
  color: #f0d7a2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.battle-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid #8a6a3b;
  background: rgba(26, 20, 16, 0.75);
}

.battle-matchup-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.battle-matchup-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #b8a090;
  text-transform: uppercase;
}

.battle-matchup-side strong {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #f0d7a2;
}

.battle-matchup-vs {
  font-size: 1.4rem;
  color: #8a6a3b;
}

.battle-matchup-side.house-atreides strong { color: #8ab4e8; }
.battle-matchup-side.house-harkonnen strong { color: #e08070; }
.battle-matchup-side.house-ordos strong { color: #8bc878; }
.battle-matchup-side.house-sardaukar strong { color: #d0c090; }

/* Liens fiches maisons / unités / bâtiments : sable / or (pas le bleu navigateur). */
.house-link,
.kind-link {
  color: var(--sand-soft, #f0d7a2);
  text-decoration: underline;
  text-decoration-color: rgba(226, 165, 58, 0.55);
  text-underline-offset: 0.18em;
}
.house-link:hover,
.house-link:focus-visible,
.kind-link:hover,
.kind-link:focus-visible {
  color: var(--sand, #e2a53a);
  text-decoration-color: var(--sand, #e2a53a);
}
.battle-matchup-side .house-link,
.battle-seats-table .house-link {
  color: var(--sand-soft, #f0d7a2);
}

.house-sheet-thing-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border-radius: 2px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.house-sheet-thing-link:hover,
.house-sheet-thing-link:focus-visible {
  background: rgba(226, 165, 58, 0.08);
  outline: none;
}
.house-sheet-thing > .house-sheet-need {
  margin-left: calc(48px + 0.75rem);
}

/* Fiches unités / bâtiments — bannière nuit / épice, même langue que desert.svg */
.kind-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 228px;
  margin: 0 0 1.35rem;
  padding: 1.6rem 1.3rem 1.2rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 7, 5, 0.84) 0%, rgba(9, 7, 5, 0.5) 48%, rgba(9, 7, 5, 0.28) 100%),
    url("/compte/wiki-banner.svg?v=2") center 70% / cover no-repeat;
  border: 1px solid rgba(226, 165, 58, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(92, 69, 40, 0.9),
    inset 0 -36px 48px rgba(9, 7, 5, 0.28);
}
.kind-banner--index {
  min-height: 132px;
  justify-content: flex-end;
}
.kind-banner--index h1 {
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.kind-banner--atreides { box-shadow: inset 4px 0 0 #8ab4e8, inset 0 0 0 1px rgba(92, 69, 40, 0.9); }
.kind-banner--harkonnen { box-shadow: inset 4px 0 0 #e08070, inset 0 0 0 1px rgba(92, 69, 40, 0.9); }
.kind-banner--ordos { box-shadow: inset 4px 0 0 #8bc878, inset 0 0 0 1px rgba(92, 69, 40, 0.9); }
.kind-banner--sardaukar { box-shadow: inset 4px 0 0 #d0c090, inset 0 0 0 1px rgba(92, 69, 40, 0.9); }
.kind-sheet-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.kind-sheet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background:
    linear-gradient(160deg, rgba(90, 68, 40, 0.55), rgba(28, 22, 16, 0.9));
  border: 1px solid #5c4528;
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.18);
  overflow: hidden;
}
.kind-sheet-icon img {
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.kind-sheet-hero-text h1 {
  margin: 0 0 0.35rem;
  color: #f0d7a2;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.kind-sheet-tagline {
  margin: 0;
  max-width: 42rem;
  color: #e7d7bf;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.kind-sheet-prose {
  margin: 0 0 0.75rem;
  max-width: 48rem;
  color: #e8dcc8;
  line-height: 1.55;
}
.kind-sheet-prose--note {
  color: #d9c4a2;
}
.kind-banner .forum-crumb {
  margin: 0 0 auto;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}
.kind-sheet-section { margin: 0 0 1.4rem; }
.kind-sheet-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.kind-sheet-row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 0.65rem 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #3a2c1e;
}
.kind-sheet-row:last-child { border-bottom: 0; }
.kind-sheet-row dt {
  margin: 0;
  color: #d4b98a;
  letter-spacing: 0.04em;
}
.kind-sheet-row dd {
  margin: 0;
  color: #f3e6d0;
  line-height: 1.45;
}
.kind-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #5c4528;
}
.kind-index li {
  border-bottom: 1px solid #3a2c1e;
}
.kind-index-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: inherit;
  text-decoration: none;
}
.kind-index-link:hover,
.kind-index-link:focus-visible {
  background: rgba(226, 165, 58, 0.08);
  outline: none;
}
.kind-index-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.kind-index-copy strong {
  color: #f0d7a2;
  letter-spacing: 0.04em;
}
.kind-index-blurb {
  color: #b9a588;
  font-size: 0.88em;
  line-height: 1.35;
}
.kind-index-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}
/* Autre nom de la même unité : le Raider des Ordos et de la Guilde. */
.kind-index-alias {
  padding: 0 0.4rem;
  border: 1px solid #8a6a3b;
  background: rgba(226, 165, 58, 0.1);
  color: #dcc59b;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kind-variant-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.kind-variant {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #3a2c1e;
  background: rgba(226, 165, 58, 0.05);
}
.kind-variant-house {
  color: #d4b98a;
  letter-spacing: 0.04em;
}
.kind-variant-name {
  color: #f0d7a2;
  letter-spacing: 0.04em;
}
.kind-variant-stats {
  color: #e8dcc8;
  font-size: 0.95em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .kind-sheet-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .kind-sheet-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .kind-banner {
    min-height: 240px;
    padding: 1.1rem 0.95rem 1rem;
  }
  .kind-banner--index { min-height: 148px; }
}

.battle-seats-table {
  margin: 0 0 22px;
}
.battle-seats-table tr.house-atreides td:first-child { color: #8ab4e8; }
.battle-seats-table tr.house-harkonnen td:first-child { color: #e08070; }
.battle-seats-table tr.house-ordos td:first-child { color: #8bc878; }
.battle-seats-table tr.house-sardaukar td:first-child { color: #d0c090; }

/* Fiche maison publique */
.house-sheet-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #8a6a3b;
  background:
    linear-gradient(135deg, rgba(226, 165, 58, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #2a2118 0%, #1a140f 100%);
}
.house-sheet-logo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(226, 165, 58, 0.55);
  background: #120e0b;
}
.house-sheet-hero-text h1 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  letter-spacing: 0.06em;
  color: #f0d7a2;
}
.house-sheet-tagline {
  margin: 0;
  color: #d9c4a2;
  font-style: italic;
}
.house-sheet--atreides .house-sheet-hero { box-shadow: inset 0 0 0 1px rgba(138, 180, 232, 0.25); }
.house-sheet--harkonnen .house-sheet-hero { box-shadow: inset 0 0 0 1px rgba(224, 128, 112, 0.25); }
.house-sheet--ordos .house-sheet-hero { box-shadow: inset 0 0 0 1px rgba(139, 200, 120, 0.25); }
.house-sheet--sardaukar .house-sheet-hero { box-shadow: inset 0 0 0 1px rgba(208, 192, 144, 0.25); }
.house-sheet-section { margin: 0 0 1.4rem; }
.house-sheet-prose {
  margin: 0 0 0.65rem;
  color: #e8dcc8;
  line-height: 1.45;
}
.house-sheet-prose--dim { color: #b7a48a; }
.house-sheet-list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  border: 1px solid #5c4528;
  background: #1a140f;
}
.house-sheet-list li {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #3a2a1c;
}
.house-sheet-list li:last-child { border-bottom: 0; }
.house-sheet-thing {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.house-sheet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 40px;
  flex: 0 0 48px;
  background:
    linear-gradient(160deg, rgba(90, 68, 40, 0.55), rgba(28, 22, 16, 0.9));
  border: 1px solid #5c4528;
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.18);
  overflow: hidden;
}
.house-sheet-icon img {
  display: block;
  width: 48px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.house-sheet-thing-copy {
  min-width: 0;
}
.house-sheet-list strong {
  color: #f0d7a2;
  letter-spacing: 0.04em;
}
.house-sheet-need {
  display: block;
  margin-top: 0.2rem;
  color: #c9a86a;
  font-size: 0.92em;
}
.house-sheet-role {
  margin: 0.35rem 0 0;
  color: #d9c4a2;
  font-size: 0.95em;
}
/* Stats de la variante maison (le Raider) : montrer qu'elle existe avec ses chiffres. */
.house-sheet-stats {
  margin: 0.3rem 0 0;
  color: #e8dcc8;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}
.house-index {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.house-index-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #8a6a3b;
  background: linear-gradient(180deg, #241c15 0%, #1a140f 100%);
  color: inherit;
  text-decoration: none;
}
.house-index-link:hover,
.house-index-link:focus-visible {
  border-color: #e2a53a;
  background: linear-gradient(180deg, #2e2418 0%, #1f1710 100%);
}
.house-index-logo {
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(226, 165, 58, 0.4);
  background: #120e0b;
}
.house-index-name {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  letter-spacing: 0.05em;
  color: #f0d7a2;
  font-size: 1.15rem;
}
.house-index.house-atreides .house-index-name,
.house-index-item.house-atreides .house-index-name { color: #8ab4e8; }
.house-index-item.house-harkonnen .house-index-name { color: #e08070; }
.house-index-item.house-ordos .house-index-name { color: #8bc878; }
.house-index-item.house-sardaukar .house-index-name { color: #d0c090; }
.house-index-blurb {
  color: #b7a48a;
  font-size: 0.95em;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .house-sheet-hero { flex-direction: column; align-items: flex-start; }
  .house-index-link {
    grid-template-columns: 56px 1fr;
  }
  .house-index-logo { width: 56px; height: 56px; }
}

.battle-moments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.battle-moment {
  margin: 0;
  border: 1px solid #8a6a3b;
  background: #1a1410;
}

.battle-moment-shot {
  display: block;
  cursor: zoom-in;
}

.battle-moment-shot:focus-visible {
  outline: 2px solid #e2a53a;
  outline-offset: 2px;
}

.battle-moment img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.battle-moment figcaption {
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #d9c4a2;
  letter-spacing: 0.04em;
}

.battle-moments-empty {
  color: #b8a090;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

@media (max-width: 640px) {
  .battle-matchup {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .battle-matchup-vs {
    display: none;
  }
}

.player-link {
  color: #f3e6d0;
  text-decoration: none;
}

.player-link:hover,
.player-link:focus-visible {
  color: #f0d7a2;
}

/* Pastille présence — vert désert / or subtil */
.online-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px 2px;
  border: 1px solid #6a8a4a;
  border-radius: 999px;
  background: rgba(72, 96, 48, 0.35);
  color: #c8e6b0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* En cours de partie — rouge sable / sang Arrakis */
.online-pill.playing-pill {
  border-color: #a05040;
  background: rgba(120, 40, 28, 0.4);
  color: #f0b8a8;
}

/* Crédits : pastille « Creator » / « Contributor » (fiche joueur, auteur forum). */
.credit-badge {
  display: inline-block;
  padding: 1px 7px 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.credit-badge--creator {
  background: rgba(226, 165, 58, 0.14);
  color: #e8b45c;
}

.credit-badge--contributor {
  background: rgba(177, 92, 200, 0.16);
  color: #c98fdd;
}

.credit-badge--post {
  margin: 2px 0 3px;
  font-size: 0.62rem;
}

/* Fiche joueur : pastille + rôle précis (« Voices of the Sardaukar »). */
/* L'espace avant le deux-points vient du séparateur traduit (credit.note_sep). */
.credit-mention {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 4px 0 8px;
}

.credit-mention .credit-note {
  color: #d9c4a2;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Carte « partie en cours » sur le profil */
.live-match-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid #a05040;
  background: rgba(120, 40, 28, 0.18);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.live-match-card:hover,
.live-match-card:focus-visible {
  background: rgba(120, 40, 28, 0.32);
  border-color: #c86858;
  outline: none;
}

.live-match-thumb {
  display: block;
  margin: 0;
  border: 1px solid #8a6a3b;
  background: #1a1410;
  overflow: hidden;
  min-height: 78px;
}

.live-match-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.live-match-thumb--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: rgba(26, 20, 16, 0.55);
  border-style: dashed;
}

.live-match-thumb-pending {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
  color: #c9b896;
}

.live-match-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-width: 0;
}

.live-match-title {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f0d7a2;
}

.live-match-meta,
.live-match-started {
  font-size: 0.9rem;
  color: #d9c4a2;
  letter-spacing: 0.03em;
}

.live-shot {
  margin: 0 0 22px;
  border: 1px solid #a05040;
  background: #1a1410;
}

.live-shot-trigger {
  display: block;
  cursor: zoom-in;
}

.live-shot-trigger:focus-visible {
  outline: 2px solid #e2a53a;
  outline-offset: 2px;
}

.live-shot img,
.live-shot-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.live-shot-poster--empty {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(160, 80, 64, 0.35), transparent 55%),
    #1a1410;
}

.live-shot figcaption,
.live-shot-caption {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #d9c4a2;
  letter-spacing: 0.04em;
}

.live-shot-caption[hidden],
.live-shot--embed.is-live .live-shot-caption {
  display: none;
}

.live-shot-caption-title {
  display: block;
  font-weight: 600;
  color: #e8d4b0;
  margin: 0;
  letter-spacing: 0.03em;
}

.live-shot-caption.is-error .live-shot-caption-title {
  color: #c4b08a;
  font-weight: 500;
}

.live-shot-caption-help {
  display: block;
  font-size: 0.92em;
  line-height: 1.4;
  color: #c4b08a;
  letter-spacing: 0.02em;
}

.live-shot-caption-help:empty,
.live-shot-caption-help[hidden] {
  display: none;
}

/* Grande zone live in-page (pas une vignette). */
.live-shot--embed.live-shot--stage {
  margin-left: -4px;
  margin-right: -4px;
}

.live-shot--embed .live-shot-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: min(52vh, 560px);
  background: #0c0907;
  overflow: hidden;
}

.live-shot--embed .live-shot-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.live-shot--embed .live-shot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  background: #0c0907;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.live-shot--embed.is-live .live-shot-poster {
  opacity: 0;
  pointer-events: none;
}

.live-shot--embed.is-live .live-shot-frame {
  opacity: 1;
  pointer-events: auto;
}

.live-shot--embed.is-fallback .live-shot-frame {
  /* Garde l’iframe active (BroadcastChannel) mais hors vue. */
  opacity: 0;
  pointer-events: none;
}

.live-shot--embed.is-fallback .live-shot-poster {
  opacity: 1;
  position: relative;
}

/* Fin de partie : plus d’iframe / poster 404 — caption « Match terminé ». */
.live-shot--embed.is-ended .live-shot-stage {
  display: none;
}

.live-shot--embed.is-ended .live-shot-caption {
  display: block;
  margin: 12px 0 4px;
  padding: 18px 14px;
  border: 1px solid #8a6a3b;
  background: rgba(26, 20, 16, 0.55);
  text-align: center;
}

.live-shot--embed.is-ended .live-shot-caption-title {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8d4b0;
}

@media (max-width: 640px) {
  .live-match-card {
    grid-template-columns: 1fr;
  }
}

.pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  letter-spacing: 0.08em;
}

.pager a {
  color: #f3e6d0;
  text-decoration: none;
}

.compte-chrome-corner {
  --coin-control: 2.6em;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

button.langue {
  position: static;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--coin-control);
  height: var(--coin-control);
  min-width: var(--coin-control);
  min-height: var(--coin-control);
  padding: 0;
  border: 1px solid #e2a53a;
  border-radius: 0;
  background: rgba(18, 14, 11, 0.78);
  color: #f3e6d0;
  font: inherit;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
}

button.langue:hover,
button.langue:focus-visible,
button.langue[aria-expanded="true"] {
  background: #3a2c1e;
  outline: 1px solid #f0d7a2;
  outline-offset: 1px;
}

.langue-menu {
  position: fixed;
  z-index: 40;
  min-width: 11.5rem;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 1px solid #e2a53a;
  border-radius: 0;
  background: rgba(36, 28, 21, 0.97);
  box-shadow: inset 0 0 0 1px #5c4528, 0 12px 28px rgba(0, 0, 0, 0.45);
  color: #f3e6d0;
}

.langue-menu[hidden] {
  display: none;
}

.langue-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #5c4528;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
}

.langue-menu-item:last-child {
  border-bottom: 0;
}

.langue-menu-item:hover,
.langue-menu-item:focus-visible {
  background: #3a2c1e;
  color: #f0d7a2;
  outline: none;
}

.langue-menu-item.is-current {
  color: #f0d7a2;
  background: rgba(226, 165, 58, 0.14);
}

.langue-menu-mark {
  flex: none;
  width: 1em;
  color: #e2a53a;
  font-weight: 700;
  text-align: center;
}

/* Cloche d’alertes — même métal / sable que la langue. */
.notif-bell {
  position: relative;
}

.notif-bell-btn {
  appearance: none;
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--coin-control, 2.6em);
  height: var(--coin-control, 2.6em);
  min-width: var(--coin-control, 2.6em);
  min-height: var(--coin-control, 2.6em);
  padding: 0;
  border: 1px solid #e2a53a;
  border-radius: 0;
  background: rgba(18, 14, 11, 0.78);
  color: #f3e6d0;
  cursor: pointer;
}

.notif-bell-btn:hover,
.notif-bell-btn:focus-visible,
.notif-bell.is-open .notif-bell-btn {
  background: #3a2c1e;
  outline: 1px solid #f0d7a2;
  outline-offset: 1px;
}

.notif-bell-icon {
  display: block;
}

.notif-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 4px;
  border: 1px solid #5c4528;
  border-radius: 0;
  background: #c48a3a;
  color: #120e0b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35em;
  letter-spacing: 0;
  text-align: center;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  border: 1px solid #e2a53a;
  box-shadow: inset 0 0 0 1px #5c4528, 0 12px 28px rgba(0, 0, 0, 0.45);
  background: rgba(36, 28, 21, 0.97);
  color: #f3e6d0;
  text-align: left;
  overflow: hidden;
}

.notif-panel[hidden] {
  display: none;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #5c4528;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #f0d7a2;
}

.notif-mark-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2a53a;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  padding: 0;
}

.notif-mark-all:hover,
.notif-mark-all:focus-visible {
  color: #f0d7a2;
  text-decoration: underline;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  border-bottom: 1px solid rgba(92, 69, 40, 0.55);
}

.notif-item--unread {
  background: rgba(226, 165, 58, 0.08);
}

.notif-item-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  color: #f3e6d0;
  text-decoration: none;
}

.notif-item-link:hover,
.notif-item-link:focus-visible {
  background: rgba(58, 44, 30, 0.65);
  color: #f0d7a2;
}

.notif-item-title {
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.notif-item-meta {
  color: #b8a090;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.notif-empty {
  margin: 0;
  padding: 18px 12px;
  color: #b8a090;
  font-size: 0.9rem;
  text-align: center;
}

.notif-empty[hidden] {
  display: none;
}

main {
  flex: 1;
  display: grid;
  place-items: start center;
  padding: 22px 16px 64px;
}

.card {
  width: min(440px, calc(100vw - 32px));
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  text-align: center;
}

/* Après .card : les pages larges doivent gagner (spécificité 0,2,0). */
.card.card-wide,
.card.card-forum,
.card.card-forum-thread,
.card.card-profile {
  width: var(--compte-wide);
  max-width: var(--compte-wide);
  text-align: left;
}

.card h1 {
  margin: 0 0 10px;
  font-weight: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 22px;
}

/* Pseudo : conserver la casse saisie (pas de UPPER forcé). */
.card.card-profile .profile-hero h1 {
  text-transform: none;
  letter-spacing: 0.06em;
}

.card > p {
  margin: 0 auto 16px;
  max-width: 38em;
  line-height: 1.45;
  color: #e7d7bf;
}

.card.card-wide > p,
.card.card-forum > p,
.card.card-forum-thread > p,
.card.card-profile > p {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  padding: 16px;
  background: rgba(36, 28, 21, 0.94);
  border: 1px solid #e2a53a;
  box-shadow: inset 0 0 0 1px #5c4528;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d9c4a2;
  letter-spacing: 0.06em;
  font-size: 15px;
}

input,
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #8a6a3b;
  background: #1a1410;
  color: #f3e6d0;
  font: inherit;
  letter-spacing: 0.02em;
}

select {
  appearance: none;
  border-radius: 0;
  cursor: pointer;
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 1px solid #f0d7a2;
  outline-offset: 1px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f3e6d0;
  padding: 9px 12px;
  text-align: center;
  letter-spacing: 0.12em;
  cursor: pointer;
  font: inherit;
}

button:hover:not(:disabled),
button:focus-visible {
  color: #f0d7a2;
  background: linear-gradient(90deg, transparent, rgba(226, 165, 58, 0.18), transparent);
}

button:disabled { opacity: 0.45; cursor: default; }

.note {
  min-height: 1.4em;
  margin: 0;
  line-height: 1.45;
  text-align: center;
}

.note:empty { display: none; }
.note.ok { color: #f0d7a2; }
.note.bad { color: #e7b2a0; }

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 8px 0 0;
}

.links a,
.top nav a {
  color: #f3e6d0;
  text-decoration: none;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.links a:hover,
.links a:focus-visible {
  color: #f0d7a2;
  background: linear-gradient(90deg, transparent, rgba(226, 165, 58, 0.18), transparent);
  outline: none;
}

#session:empty { display: none; }
#session { color: #f0b429; letter-spacing: 0.04em; }

.forum-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.forum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  color: #f3e6d0;
  text-decoration: none;
  letter-spacing: 0.1em;
  line-height: 1.2;
  padding: 7px 14px;
  border: 1px solid #8a6a3b;
  background: rgba(26, 20, 16, 0.92);
  font: inherit;
  cursor: pointer;
  appearance: none;
  border-radius: 0;
}

.forum-btn:hover,
.forum-btn:focus-visible {
  color: #f0d7a2;
  border-color: #e2a53a;
  background: linear-gradient(90deg, transparent, rgba(226, 165, 58, 0.18), transparent);
}

button.forum-btn {
  /* Annule le bouton global transparent : même boîte que les <a class="forum-btn">. */
  background: rgba(26, 20, 16, 0.92);
  border: 1px solid #8a6a3b;
  padding: 7px 14px;
}

.forum-posts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.forum-anchor {
  display: block;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.forum-post {
  padding: 14px 16px;
  background: rgba(36, 28, 21, 0.94);
  border: 1px solid #8a6a3b;
  box-shadow: inset 0 0 0 1px #5c4528;
  scroll-margin-top: 20px;
}

.forum-post--row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.forum-post--nested {
  margin-left: calc(var(--forum-depth, 1) * 18px);
  border-left: 2px solid rgba(226, 165, 58, 0.45);
}

.forum-post-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(26, 20, 16, 0.72);
  border-right: 1px solid #5c4528;
  text-align: center;
}

.forum-post-avatar-link {
  text-decoration: none;
  line-height: 0;
}

.forum-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #8a6a3b;
  box-shadow: inset 0 0 0 1px #5c4528;
  background:
    radial-gradient(circle at 30% 25%, rgba(240, 215, 162, 0.22), transparent 55%),
    linear-gradient(160deg, #3a2c1c 0%, #1a1410 100%);
  color: #f0d7a2;
}

.forum-avatar--photo {
  padding: 0;
  background: #1a1410;
}

.forum-avatar--photo img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Photo uploadée : zoom lightbox sur fiche publique seulement (pas le forum). */
.forum-avatar--lightbox {
  cursor: zoom-in;
}

.forum-avatar--lightbox:focus-visible {
  outline: 2px solid #e2a53a;
  outline-offset: 2px;
}

body.avatar-lightbox-open {
  overflow: hidden;
}

.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.avatar-lightbox[hidden] {
  display: none !important;
}

.avatar-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 60, 28, 0.45), transparent 55%),
    rgba(9, 7, 5, 0.82);
  cursor: zoom-out;
}

.avatar-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(90vh, 640px);
  padding: 18px 18px 14px;
  background:
    radial-gradient(circle at 28% 18%, rgba(240, 215, 162, 0.14), transparent 50%),
    linear-gradient(165deg, #2a2118 0%, #1a1410 55%, #120e0b 100%);
  border: 1px solid #e2a53a;
  box-shadow:
    inset 0 0 0 1px #5c4528,
    0 18px 48px rgba(0, 0, 0, 0.55);
  color: #f3e6d0;
}

/* Captures de bataille / live / images du forum : tout l’écran moins une petite marge.
   L’image garde ses proportions et ne dépasse jamais sa taille réelle (pas d’agrandissement flou). */
.avatar-lightbox--wide {
  padding: 8px;
}

.avatar-lightbox--wide .avatar-lightbox-panel {
  width: auto;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  padding: 10px;
}

.avatar-lightbox--wide .avatar-lightbox-img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 76px);
}

/* Plein écran : la croix se pose sur le fond, pas sur l’image. */
.avatar-lightbox--wide .avatar-lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
}

.avatar-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 1px solid #8a6a3b;
  background: rgba(18, 14, 11, 0.88);
  color: #f0d7a2;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.avatar-lightbox-close:hover,
.avatar-lightbox-close:focus-visible {
  border-color: #e2a53a;
  color: #f3e6d0;
  background: rgba(36, 28, 21, 0.95);
}

.avatar-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-lightbox-img {
  display: block;
  width: min(420px, calc(100vw - 72px));
  height: auto;
  max-height: min(70vh, 480px);
  object-fit: contain;
  border: 1px solid #8a6a3b;
  box-shadow: inset 0 0 0 1px #5c4528;
  background: #120e0b;
}

.avatar-lightbox-caption {
  margin: 0;
  max-width: 100%;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #f0d7a2;
  text-align: center;
  word-break: break-word;
}

.avatar-lightbox-caption[hidden] {
  display: none !important;
}

.forum-avatar-initials {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forum-avatar--atreides {
  background:
    radial-gradient(circle at 30% 25%, rgba(120, 170, 210, 0.28), transparent 55%),
    linear-gradient(160deg, #1e3348 0%, #121820 100%);
  border-color: #6a8eaa;
  color: #c7d9ea;
}

.forum-avatar--harkonnen {
  background:
    radial-gradient(circle at 30% 25%, rgba(180, 60, 50, 0.28), transparent 55%),
    linear-gradient(160deg, #3a1814 0%, #160e0c 100%);
  border-color: #a45a4a;
  color: #e7b2a0;
}

.forum-avatar--ordos {
  background:
    radial-gradient(circle at 30% 25%, rgba(90, 160, 90, 0.25), transparent 55%),
    linear-gradient(160deg, #1e3320 0%, #101610 100%);
  border-color: #6a9a5a;
  color: #c5e0b0;
}

.forum-avatar--sardaukar {
  background:
    radial-gradient(circle at 30% 25%, rgba(180, 160, 90, 0.25), transparent 55%),
    linear-gradient(160deg, #3a3420 0%, #18140e 100%);
  border-color: #a8945a;
  color: #e6d6a0;
}

.forum-post-author {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  word-break: break-word;
  max-width: 100%;
}

.forum-post-house {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8a090;
}

.forum-post-stats {
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #b8a090;
}

.forum-post-stats div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 1px 2px;
}

.forum-post-stats dt {
  margin: 0;
}

.forum-post-stats dd {
  margin: 0;
  color: #f0d7a2;
  font-variant-numeric: tabular-nums;
}

.forum-post-main {
  min-width: 0;
  width: 100%;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
}

.forum-post-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  letter-spacing: 0.06em;
  color: #d9c4a2;
  font-size: 14px;
}

.forum-post-head time {
  color: #b8a090;
  margin-right: auto;
}

.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  justify-content: flex-end;
  margin: 0;
}

.forum-post-action {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #f0d7a2;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.forum-post-action,
button.forum-post-action {
  color: #f0d7a2;
  background: none;
  border: 0;
  padding: 0;
}

.forum-post-action:hover,
.forum-post-action:focus-visible,
a.forum-post-action:hover,
a.forum-post-action:focus-visible,
button.forum-post-action:hover,
button.forum-post-action:focus-visible {
  color: #f3e6d0;
  background: none;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forum-post-action--danger,
button.forum-post-action--danger {
  color: #e7b2a0;
}

.forum-post-action--danger:hover,
.forum-post-action--danger:focus-visible,
button.forum-post-action--danger:hover,
button.forum-post-action--danger:focus-visible {
  color: #f0c4b4;
  background: none;
}

.forum-post-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 2px solid #e2a53a;
  background: rgba(26, 20, 16, 0.55);
  color: #d9c4a2;
  text-align: left;
}

.forum-post-quote-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #f0d7a2;
  text-align: left;
}

.forum-post-quote-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
  text-align: left;
}

.forum-posts,
.forum-post-main,
.forum-post-body,
.forum-post-quote,
.forum-post-quote-label,
.forum-post-quote-body {
  text-align: left;
}

.forum-post-body {
  margin: 0;
  width: 100%;
  line-height: 1.55;
  color: #f3e6d0;
  white-space: normal;
  word-break: break-word;
  flex: 1 1 auto;
  align-self: stretch;
  text-align: left;
}

/* Force LTR body/quote left vs .card { text-align: center } inheritance */
.card.card-forum-thread .forum-post-main,
.card.card-forum-thread .forum-post-body,
.card.card-forum-thread .forum-post-quote,
.card.card-forum-thread .forum-post-quote p,
.card.card-forum .forum-tree,
.card.card-forum .forum-section,
.card.card-forum .battle-scroll,
.card.card-forum .battle-table {
  text-align: left !important;
}

.card.card-forum .battle-scroll,
.card.card-forum-thread .forum-posts {
  width: 100%;
}

/* Compat: anciens liens réponse en bas de message */
.forum-post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(92, 69, 40, 0.55);
}

.forum-post-reply-link {
  color: #f0d7a2;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.forum-post-reply-link:hover,
.forum-post-reply-link:focus-visible {
  color: #f3e6d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forum-reply-target {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #5c4528;
  background: rgba(26, 20, 16, 0.55);
  color: #d9c4a2;
}

.forum-reply-target blockquote {
  margin: 6px 0 8px;
  padding-left: 10px;
  border-left: 2px solid #e2a53a;
  color: #b8a090;
}

.forum-reply-target a {
  color: #f0d7a2;
}

@media (max-width: 640px) {
  .forum-post--row {
    grid-template-columns: 1fr;
  }

  .forum-post-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px 12px;
    border-right: none;
    border-bottom: 1px solid #5c4528;
    text-align: left;
    padding: 12px 14px;
  }

  .forum-post-stats {
    width: auto;
    flex: 1 1 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .forum-post-stats div {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-post--nested {
    margin-left: calc(var(--forum-depth, 1) * 10px);
  }
}

.forum-form {
  max-width: 100%;
}

.forum-form textarea {
  width: 100%;
  min-height: 8em;
  padding: 8px 10px;
  border: 1px solid #8a6a3b;
  background: #1a1410;
  color: #f3e6d0;
  font: inherit;
  letter-spacing: 0.02em;
  resize: vertical;
}

.forum-form textarea:focus-visible {
  outline: 1px solid #f0d7a2;
  outline-offset: 1px;
}

.forum-editor-hint {
  margin: 0 0 10px;
  color: #b8a090;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-align: left;
}

/* Quill — thème désert */
.forum-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  text-align: left;
}

.forum-editor-field > span {
  color: #d9c4a2;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.forum-quill {
  margin-top: 0;
  min-height: 12em;
}

.forum-quill[data-quill-ready='1'] {
  min-height: 0;
}

.forum-form .ql-toolbar.ql-snow {
  display: block !important;
  visibility: visible !important;
  min-height: 42px;
  border: 1px solid #8a6a3b;
  border-bottom: none;
  background: linear-gradient(180deg, #2a2118 0%, #1f1812 100%);
  box-shadow: inset 0 0 0 1px #5c4528;
  padding: 6px 8px;
}

.forum-form .ql-container.ql-snow {
  border: 1px solid #8a6a3b;
  background: #1a1410;
  color: #f3e6d0;
  font: inherit;
  min-height: 10em;
  box-shadow: inset 0 0 0 1px #5c4528;
}

.forum-form .ql-editor {
  min-height: 10em;
  color: #f3e6d0;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.forum-form .ql-editor.ql-blank::before {
  color: #8a7460;
  font-style: normal;
}

.forum-form .ql-snow .ql-stroke {
  stroke: #d9c4a2;
}

.forum-form .ql-snow .ql-fill {
  fill: #d9c4a2;
}

.forum-form .ql-snow .ql-picker {
  color: #d9c4a2;
}

.forum-form .ql-snow .ql-picker-options {
  background: #241c15;
  border-color: #8a6a3b;
}

.forum-form .ql-snow.ql-toolbar button:hover .ql-stroke,
.forum-form .ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: #e2a53a;
}

.forum-form .ql-snow.ql-toolbar button:hover .ql-fill,
.forum-form .ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: #e2a53a;
}

/* Bouton + panneau émoticônes (Unicode, thème désert) */
.forum-form .ql-snow.ql-toolbar .forum-emoji-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.forum-form .ql-snow.ql-toolbar button.ql-emoji {
  width: 28px;
  height: 24px;
  padding: 0;
}

.forum-form .ql-snow.ql-toolbar button.ql-emoji::before {
  content: '😊';
  font-size: 15px;
  line-height: 1;
  display: block;
  filter: grayscale(0.15) sepia(0.35) saturate(1.1);
}

.forum-form .ql-snow.ql-toolbar button.ql-emoji:hover::before,
.forum-form .ql-snow.ql-toolbar button.ql-emoji.ql-active::before {
  filter: none;
}

.forum-emoji-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: min(292px, calc(100vw - 32px));
  padding: 10px 10px 12px;
  border: 1px solid #8a6a3b;
  background:
    linear-gradient(165deg, rgba(226, 165, 58, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #2a2118 0%, #1a1410 100%);
  box-shadow:
    inset 0 0 0 1px #5c4528,
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.forum-emoji-panel[hidden] {
  display: none !important;
}

.forum-emoji-panel__title {
  margin: 0 0 8px;
  padding: 0 2px;
  color: #e2a53a;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-emoji-panel__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
}

.forum-emoji-panel__btn {
  appearance: none;
  margin: 0;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1.2;
  cursor: pointer;
}

.forum-emoji-panel__btn:hover,
.forum-emoji-panel__btn:focus-visible {
  border-color: #8a6a3b;
  background: rgba(226, 165, 58, 0.14);
  outline: none;
}

@media (max-width: 480px) {
  .forum-emoji-panel__grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.forum-form .ql-editor a {
  color: #f0d7a2;
}

.forum-form .ql-editor img,
.forum-post-body img,
.dm-bubble-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.6em 0;
  border: 1px solid #5c4528;
}

/* Images postées (forum / chat) : même zoom lightbox que les avatars. */
.forum-post-body img.compte-lightbox,
.dm-bubble-body img.compte-lightbox {
  cursor: zoom-in;
}

.forum-post-body img.compte-lightbox:focus-visible,
.dm-bubble-body img.compte-lightbox:focus-visible {
  outline: 2px solid #e2a53a;
  outline-offset: 2px;
}

.forum-post-body blockquote,
.dm-bubble-body blockquote {
  margin: 0.6em 0;
  padding: 0.35em 0.75em;
  border-left: 3px solid rgba(226, 165, 58, 0.55);
  color: #d9c4a2;
}

/* Match Quill .ql-editor: p/ol/ul have margin:0 — spacing comes from line-height.
   Quill 2 often emits one <ol>/<ul> per <li>; non-zero ol/ul margins looked double-spaced.
   Empty Enter lines are <p><br></p> (one line via <br>, not extra margin). */
.forum-post-body p,
.dm-bubble-body p {
  margin: 0;
  padding: 0;
}

.forum-post-body ul,
.forum-post-body ol,
.dm-bubble-body ul,
.dm-bubble-body ol {
  margin: 0;
  padding: 0 0 0 1.5em;
}

.forum-post-body li,
.dm-bubble-body li {
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

/* Subtle breath between items in a single list (not Quill’s split ol+ol case). */
.forum-post-body li + li,
.dm-bubble-body li + li {
  margin-top: 0.2em;
}

/* Same slight gap when Quill stores each item as its own sibling list. */
.forum-post-body ol + ol,
.forum-post-body ul + ul,
.forum-post-body ol + ul,
.forum-post-body ul + ol,
.dm-bubble-body ol + ol,
.dm-bubble-body ul + ul,
.dm-bubble-body ol + ul,
.dm-bubble-body ul + ol {
  margin-top: 0.2em;
}

.forum-post-edited {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #b8a090;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.forum-post-history-link {
  color: #f0d7a2;
}

.forum-post-history {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #5c4528;
  background: rgba(26, 20, 16, 0.55);
  text-align: left;
}

.forum-post-history-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #d9c4a2;
}

.forum-revision {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #5c4528;
}

.forum-revision:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.forum-revision-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #b8a090;
}

.forum-btn--ghost {
  margin-left: 10px;
  background: transparent;
  color: #d9c4a2;
}

.card-wide .note.bad,
.card-wide .note.ok {
  text-align: left;
  margin-bottom: 12px;
}

.forum-tree {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 18px 0;
}

.forum-section {
  scroll-margin-top: 24px;
}

.forum-section-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #f0d7a2;
  text-align: left;
}

.forum-section-desc,
.forum-board-desc,
.forum-empty-boards,
.forum-muted {
  margin: 0 0 10px;
  color: #b8a090;
  font-size: 0.95rem;
}

.forum-board-desc {
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

.forum-crumb {
  margin: 0 0 10px;
  color: #d9c4a2;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.forum-crumb a {
  color: #f3e6d0;
}

.forum-crumb-sep {
  color: #b8a090;
}

.forum-crumb [aria-current="page"] {
  color: #d9c4a2;
}

.forum-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #8a6a3b;
  color: #e7b2a0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.forum-badge--pinned {
  border-color: #a88b4a;
  color: #f0d9a0;
}

.forum-pin-icon {
  margin-right: 4px;
  font-size: 0.85rem;
  vertical-align: middle;
}

.forum-topic-table tr:has(.forum-badge--pinned) td {
  background: rgba(168, 139, 74, 0.08);
}

.forum-admin-section {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #5c4528;
  background: rgba(26, 20, 16, 0.55);
}

.forum-admin-row,
.forum-admin-boards li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  justify-content: space-between;
}

.forum-admin-boards {
  list-style: none;
  margin: 10px 0 14px;
  padding: 0;
}

.forum-admin-boards li {
  padding: 8px 0;
  border-top: 1px solid #5c4528;
}

.forum-admin-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.9rem;
}

.forum-admin-tools a {
  color: #f0d7a2;
}

/* Formulaires d’action (Pin, etc.) : pas le cadre « formulaire de login ». */
.forum-inline-form {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: inherit;
}

.forum-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #f0d7a2;
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forum-link-btn.forum-danger,
.forum-danger {
  color: #e7b2a0;
}

.forum-danger-btn {
  border-color: #e7b2a0;
  color: #e7b2a0;
}

.forum-admin-form {
  margin: 14px 0 22px;
  padding-top: 8px;
}

.forum-admin-nested {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #5c4528;
}

.forum-admin-label {
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  color: #d9c4a2;
}

.forum-admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.forum-admin-thread-view {
  margin-bottom: 22px;
}

/* Pastille rouge : non-lus sur le lien Messages (nav compte). */
.top-nav .nav-messages-badge {
  display: inline-block;
  margin-left: 0.35em;
  min-width: 1.25em;
  padding: 0.08em 0.4em;
  border: 1px solid #6a1c14;
  border-radius: 999px;
  background: #c62828;
  color: #fff8f0;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  vertical-align: 0.12em;
}

.top-nav .nav-messages-badge[hidden] {
  display: none;
}

/* —— Messages privés (DM) —— */
.card-messages {
  width: var(--compte-wide);
  text-align: left;
}

.dm-inbox {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-inbox-item {
  background: rgba(36, 28, 21, 0.94);
  border: 1px solid #8a6a3b;
  box-shadow: inset 0 0 0 1px #5c4528;
}

.dm-inbox-item--unread {
  border-color: #e2a53a;
}

.dm-inbox-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.dm-inbox-link:hover,
.dm-inbox-link:focus-visible {
  background: linear-gradient(90deg, transparent, rgba(226, 165, 58, 0.14), transparent);
  outline: none;
}

.dm-inbox-link .forum-avatar {
  width: 44px;
  height: 44px;
}

.dm-inbox-link .forum-avatar img {
  width: 44px;
  height: 44px;
}

.dm-inbox-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dm-inbox-name {
  letter-spacing: 0.08em;
  color: #f0d7a2;
}

.dm-inbox-item--unread .dm-inbox-name {
  color: #f3e6d0;
  font-weight: 600;
}

.dm-inbox-preview {
  color: #b8a090;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.dm-inbox-time {
  color: #9a8570;
  font-size: 0.85rem;
  white-space: nowrap;
}

.dm-status {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9a8570;
  font-style: italic;
}

.dm-status--sent {
  color: #9a8570;
}

.dm-status--delivered {
  color: #c4a574;
}

.dm-status--read {
  color: #e2a53a;
}

.dm-status--unread {
  color: #f0d7a2;
  font-style: normal;
  font-weight: 600;
}

.dm-bubble-meta .dm-status {
  margin-left: auto;
}

.dm-thread-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 16px;
}

.dm-thread-head .forum-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.dm-thread-head .forum-avatar img {
  width: 64px;
  height: 64px;
}

.dm-thread-head h1 {
  margin: 0 0 6px;
}

.dm-compose-hint {
  color: #b8a090;
  margin: 0 0 14px;
}

.dm-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  margin: 0 0 18px;
  padding: 8px 4px 8px 0;
}

.dm-thread-empty {
  color: #b8a090;
  margin: 8px 0;
}

.dm-bubble {
  max-width: min(92%, 640px);
  padding: 10px 14px;
  background: rgba(36, 28, 21, 0.94);
  border: 1px solid #8a6a3b;
  box-shadow: inset 0 0 0 1px #5c4528;
}

.dm-bubble--mine {
  align-self: flex-end;
  border-color: #e2a53a;
  background: rgba(52, 40, 24, 0.96);
}

.dm-bubble--theirs {
  align-self: flex-start;
}

.dm-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0 0 6px;
  color: #9a8570;
  font-size: 0.85rem;
}

.dm-bubble-author {
  color: #f0d7a2;
  letter-spacing: 0.06em;
}

.dm-bubble-body {
  color: #f3e6d0;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.dm-bubble-body a {
  color: #f0d7a2;
}

.dm-compose {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #5c4528;
}

.dm-compose.forum-form {
  display: block;
}

.dm-compose-label {
  display: block;
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  color: #d9c4a2;
}

.dm-compose .forum-editor-field {
  margin-bottom: 12px;
}

.dm-compose textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #f3e6d0;
  background: rgba(18, 14, 11, 0.92);
  border: 1px solid #8a6a3b;
  font: inherit;
  line-height: 1.4;
}

.dm-compose textarea:focus {
  outline: none;
  border-color: #e2a53a;
}

/* ---------- Commentaires des fiches unité / bâtiment ---------- */
.kind-comments {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #3a2c1e;
}
.kind-comments-meta {
  margin: 0 0 0.9rem;
  color: #a89272;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.kind-comments-error {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #7a3a2a;
  background: rgba(122, 58, 42, 0.16);
  color: #f0c9b8;
}
.kind-comments-guest {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #5c4528;
  background: linear-gradient(160deg, rgba(90, 68, 40, 0.22), rgba(26, 20, 15, 0.75));
}
.kind-comments-guest-title {
  margin: 0 0 0.35rem;
  color: #f0d7a2;
  letter-spacing: 0.04em;
}
.kind-comments-guest-body {
  margin: 0 0 0.85rem;
  color: #d9c4a2;
  line-height: 1.5;
}
.kind-comments-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
}
.kind-comments-cta {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid #e2a53a;
  background: linear-gradient(180deg, #e2a53a, #c4892a);
  color: #1a120c;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.kind-comments-cta:hover,
.kind-comments-cta:focus-visible {
  background: linear-gradient(180deg, #f0d7a2, #e2a53a);
}
.kind-comments-cta--ghost {
  background: transparent;
  border-color: #5c4528;
  color: #f0d7a2;
}
.kind-comments-cta--ghost:hover,
.kind-comments-cta--ghost:focus-visible {
  background: rgba(226, 165, 58, 0.12);
  border-color: #e2a53a;
}
.kind-comment-form {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}
.kind-comment-label {
  color: #d4b98a;
  letter-spacing: 0.04em;
}
.kind-comment-form textarea {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #5c4528;
  background: #14100c;
  color: #f3e6d0;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.kind-comment-form textarea:focus-visible {
  outline: none;
  border-color: #e2a53a;
  box-shadow: 0 0 0 1px rgba(226, 165, 58, 0.35);
}
.kind-comment-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.kind-comment-hint {
  margin: 0;
  color: #9c8a70;
  font-size: 0.85rem;
}
.kind-comment-form button {
  padding: 0.5rem 1rem;
  border: 1px solid #e2a53a;
  background: linear-gradient(180deg, #e2a53a, #c4892a);
  color: #1a120c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.kind-comment-form button:hover,
.kind-comment-form button:focus-visible {
  background: linear-gradient(180deg, #f0d7a2, #e2a53a);
}
.kind-comments-empty {
  margin: 0.2rem 0 0;
  color: #9c8a70;
  font-style: italic;
}
.kind-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.kind-comment {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #3a2c1e;
  background: rgba(26, 20, 15, 0.55);
}
.kind-comment:target {
  border-color: #e2a53a;
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.25);
}
.kind-comment-avatar {
  flex: 0 0 auto;
  text-decoration: none;
}
.kind-comment-main {
  flex: 1 1 auto;
  min-width: 0;
}
.kind-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0 0 0.35rem;
}
.kind-comment-author {
  color: #f0d7a2;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.kind-comment-author:hover {
  color: #fff3da;
  text-decoration: underline;
}
.kind-comment-when {
  color: #9c8a70;
  font-size: 0.85rem;
}
.kind-comment-delete {
  margin: 0 0 0 auto;
}
.kind-comment-delete-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #b98878;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.kind-comment-delete-btn:hover,
.kind-comment-delete-btn:focus-visible {
  color: #e0a290;
}
.kind-comment-body {
  color: #e8dcc8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ---------- Réponses à un commentaire (un seul niveau, accrochées à la racine) ---------- */
.kind-comment-replies {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1rem;
  display: grid;
  gap: 0.6rem;
  border-left: 2px solid #3a2c1e;
}
.kind-comment--reply {
  padding: 0.6rem 0.7rem;
  border-color: #33261a;
  background: rgba(20, 15, 11, 0.5);
}
.kind-comment--reply .kind-comment-avatar .forum-avatar {
  width: 34px;
  height: 34px;
}
.kind-comment-reply {
  margin: 0.55rem 0 0;
}
.kind-comment-reply > summary {
  display: inline-block;
  color: #c9a978;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}
.kind-comment-reply > summary::-webkit-details-marker {
  display: none;
}
.kind-comment-reply > summary::before {
  content: '↳ ';
  color: #8a6f4a;
}
.kind-comment-reply > summary:hover,
.kind-comment-reply > summary:focus-visible {
  color: #f0d7a2;
}
.kind-comment-form--reply {
  margin: 0.45rem 0 0;
  padding: 0.6rem 0.65rem;
  border: 1px solid #3a2c1e;
  background: rgba(14, 11, 8, 0.55);
}
.kind-comment-form--reply textarea {
  min-height: 4.5rem;
  font-size: 0.95rem;
}
.kind-comment-form--reply button {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .kind-comment-replies {
    padding-left: 0.55rem;
  }
}

.kind-comments-pager {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}
.kind-comments-pager a { color: #f0d7a2; }
.kind-comments-page { color: #9c8a70; }

@media (max-width: 560px) {
  .kind-comment { flex-direction: column; gap: 0.5rem; }
  .kind-comment-delete { margin-left: auto; }
}

/* ---------- Annuaire : avatar en première colonne ---------- */
.directory-table th.directory-avatar-col {
  width: 46px;
}
.directory-table td.directory-avatar {
  width: 46px;
  padding-right: 0;
  vertical-align: middle;
}
.directory-avatar a {
  display: inline-block;
  line-height: 0;
}
.directory-avatar .forum-avatar {
  width: 32px;
  height: 32px;
}
.directory-avatar .forum-avatar--photo img {
  width: 32px;
  height: 32px;
}
.directory-avatar .forum-avatar-initials {
  font-size: 0.7rem;
}
/* En-tête invisible à l'œil, lisible par les lecteurs d'écran. */
.directory-avatar-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Avatar des commentaires : 44 px, assez grand pour reconnaître la photo. */
.kind-comment-avatar .forum-avatar {
  width: 44px;
  height: 44px;
}
.kind-comment-avatar .forum-avatar--photo img {
  width: 44px;
  height: 44px;
}
.kind-comment-avatar .forum-avatar-initials {
  font-size: 0.9rem;
}

/* ---------- Profil : messages de forum + commentaires de fiches ---------- */
.profile-h2-count {
  margin-left: 0.35em;
  color: #a89272;
  font-size: 0.78em;
  letter-spacing: 0.04em;
}
.profile-activity {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.profile-activity li {
  padding: 0.7rem 0.85rem;
  border: 1px solid #3a2c1e;
  background: rgba(26, 20, 15, 0.5);
}
.profile-activity-title {
  font-weight: 600;
  color: #f0d7a2;
}
.profile-activity-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-activity-kind img {
  width: 28px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.profile-activity-excerpt {
  margin: 0.35rem 0 0.4rem;
  color: #d9c4a2;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.profile-activity-meta {
  margin: 0;
  color: #9c8a70;
  font-size: 0.85rem;
}
.profile-activity-meta a { color: #c9a66b; }

/* ---------- Listes d'unités / bâtiments : colonnes vues + commentaires ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.kind-index-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 56px 112px;
  gap: 12px;
  padding: 8px 4px 6px;
  color: #a89272;
  font-size: 0.74em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kind-index-head .kind-index-th--num {
  text-align: right;
}
.kind-index-link {
  grid-template-columns: 48px minmax(0, 1fr) 56px 112px;
}
.kind-index-stat {
  color: #c9a66b;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .kind-index-head {
    grid-template-columns: 36px minmax(0, 1fr) 34px 84px;
    gap: 6px;
    font-size: 0.66em;
  }
  .kind-index-link {
    grid-template-columns: 36px minmax(0, 1fr) 34px 84px;
    gap: 6px;
    padding: 10px 2px;
  }
}

/* En-tête court sur mobile : « Commentaires » ne tient pas dans la colonne. */
.kind-index-th-short { display: none; }
@media (max-width: 560px) {
  .kind-index-th-long { display: none; }
  .kind-index-th-short { display: inline; }
}

/* —— Page Contribuer : travail, dons Interac, mention de contributeur —— */
.card.card-wide.contribute-page {
  width: min(880px, calc(100vw - 24px));
  max-width: min(880px, calc(100vw - 24px));
}

.contribute-lead {
  margin: 0 0 26px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #f0d7a2;
}

.contribute-section {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: rgba(26, 20, 15, 0.72);
  border: 1px solid #5c4528;
  box-shadow: inset 0 0 0 1px rgba(226, 165, 58, 0.12);
}

.contribute-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e2a53a;
}

.contribute-section p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #e7d7bf;
}

.contribute-section p:last-child { margin-bottom: 0; }

.contribute-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  line-height: 1.55;
  color: #e7d7bf;
}

.contribute-list li { margin-bottom: 6px; }
.contribute-list li::marker { color: #e2a53a; }

.contribute-donate {
  border-color: #e2a53a;
  box-shadow: inset 0 0 0 1px #5c4528, 0 0 24px rgba(226, 165, 58, 0.08);
}

.contribute-mail {
  margin: 14px 0;
  text-align: center;
}

.contribute-mail-address {
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #e2a53a;
  background: rgba(18, 14, 11, 0.9);
  color: #f0d7a2;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  user-select: all;
  word-break: break-all;
}

.contribute-note {
  color: #b8a090;
  font-size: 0.95rem;
}

.contribute-sign {
  margin: 0 0 6px;
  text-align: right;
  color: #b8a090;
  font-style: italic;
}

@media (max-width: 560px) {
  .contribute-section { padding: 14px 14px; }
  .contribute-lead { font-size: 1.04rem; }
}

/* —— Page 404 : page introuvable (compte/404.php) —— */
.not-found-page {
  text-align: center;
}

.not-found-code {
  margin: 0;
  font-family: var(--font-display, Cinzel, Palatino, serif);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.12em;
  color: rgba(226, 165, 58, 0.28);
  text-shadow: 0 1px 0 rgba(92, 69, 40, 0.6);
}

.not-found-page h1 {
  margin: 6px 0 10px;
}

.not-found-lead {
  max-width: 46rem;
  margin: 0 auto 12px;
  color: #d9c4a2;
}

.not-found-asked {
  margin: 0 0 18px;
}

.not-found-asked code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #5c4528;
  background: rgba(18, 14, 11, 0.8);
  color: #b8a090;
  font-size: 0.9rem;
  word-break: break-all;
}

.not-found-sub {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #e2a53a;
}

.not-found-list {
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.not-found-list a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #5c4528;
  background: rgba(44, 34, 25, 0.9);
  color: #f0d7a2;
  text-decoration: none;
}

.not-found-list a:hover,
.not-found-list a:focus-visible {
  border-color: #e2a53a;
  color: #fff;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid #3d2f22;
}

.not-found-links a {
  color: #b8a090;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
  color: #f0d7a2;
}

.not-found-cta {
  padding: 8px 16px;
  border: 1px solid #e2a53a;
  background: linear-gradient(180deg, #463625, #342618);
  color: #f3e6d0 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— Fiches unité / bâtiment : voisins de catalogue, cartes liées, exemples —— */
.kind-sheet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(92, 69, 40, 0.7);
}
.kind-sheet-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 46%;
  color: var(--sand-soft, #f0d7a2);
  font-size: 0.92em;
  text-decoration: none;
}
.kind-sheet-nav-link--next { margin-left: auto; text-align: right; }
.kind-sheet-nav-link:hover,
.kind-sheet-nav-link:focus-visible {
  color: var(--sand, #e2a53a);
  text-decoration: underline;
}
.kind-sheet-nav-arrow { color: var(--sand, #e2a53a); }
.kind-sheet-examples { color: #b9a588; font-size: 0.94em; }
.kind-card-heading {
  margin: 0.9rem 0 0.45rem;
  color: #a89272;
  font-size: 0.78em;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kind-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kind-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(92, 69, 40, 0.75);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.kind-card:hover,
.kind-card:focus-visible {
  background: rgba(226, 165, 58, 0.08);
  border-color: var(--metal-edge, #5c4528);
  outline: none;
}
.kind-card-icon img { display: block; width: 48px; height: 40px; object-fit: contain; }
.kind-card-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kind-card-copy strong { color: var(--sand-soft, #f0d7a2); letter-spacing: 0.04em; }
.kind-card-role { color: #b9a588; font-size: 0.86em; line-height: 1.3; }
.kind-related-more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0.9rem 0 0;
}
.kind-related-more-label {
  color: #a89272;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kind-related-more a {
  color: var(--sand, #e2a53a);
  text-decoration: none;
}
.kind-related-more a:hover,
.kind-related-more a:focus-visible { text-decoration: underline; }
@media (max-width: 560px) {
  .kind-sheet-nav-link { max-width: 100%; }
  .kind-card-list { grid-template-columns: 1fr; }
}

/* —— Fiche : thème musical (piste du jeu, fondu d'entrée/sortie) —— */
.kind-music {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}
.kind-music-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 0.3rem;
}
.kind-music-note { color: var(--sand, #e2a53a); font-size: 1.15em; line-height: 1; }
.kind-music-section {
  color: #a89272;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kind-music-title { color: var(--sand-soft, #f0d7a2); font-size: 0.95em; letter-spacing: 0.03em; }
.kind-music-status { flex-basis: 100%; margin: 0; color: #b9a588; font-size: 0.86em; }
.kind-music-toggle {
  padding: 4px 12px;
  border: 1px solid var(--metal-edge, #5c4528);
  border-radius: 4px;
  background: rgba(226, 165, 58, 0.08);
  color: var(--sand-soft, #f0d7a2);
  font: inherit;
  font-size: 0.86em;
  cursor: pointer;
}
.kind-music-toggle:hover,
.kind-music-toggle:focus-visible {
  border-color: var(--sand, #e2a53a);
  color: var(--sand, #e2a53a);
  outline: none;
}
.kind-music-toggle[aria-pressed='true'] {
  background: rgba(226, 165, 58, 0.16);
  color: var(--sand, #e2a53a);
}
/* ---------- Messages privés : réactions emoji + suppression ---------- */
.dm-bubble-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dm-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dm-reactions[data-dm-error]::after {
  content: "⚠";
  color: #e07b5c;
  font-size: 0.9rem;
}

.dm-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  color: #f0d7a2;
  background: rgba(24, 18, 13, 0.9);
  border: 1px solid #8a6a3b;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.dm-reaction:hover,
.dm-reaction:focus-visible {
  border-color: #e2a53a;
  background: rgba(52, 40, 24, 0.96);
  outline: none;
}

.dm-reaction--mine {
  border-color: #e2a53a;
  background: rgba(78, 56, 24, 0.95);
  box-shadow: inset 0 0 0 1px #e2a53a;
}

.dm-reaction-count {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #d9c4a2;
}

.dm-bubble-act {
  padding: 2px 8px;
  color: #b8a090;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  cursor: pointer;
}

.dm-bubble-act:hover,
.dm-bubble-act:focus-visible {
  color: #f0d7a2;
  background: rgba(24, 18, 13, 0.9);
  border-color: #8a6a3b;
  outline: none;
}

.dm-bubble-act--danger:hover,
.dm-bubble-act--danger:focus-visible {
  color: #f0a58c;
  border-color: #b4553a;
}

.dm-bubble-tombstone {
  margin: 0;
  color: #9a8570;
  font-size: 0.92rem;
  font-style: italic;
}

.dm-bubble--deleted {
  background: rgba(28, 22, 17, 0.86);
  border-style: dashed;
  border-color: #6b5330;
}

.dm-bubble--busy {
  opacity: 0.72;
}

.dm-react-picker {
  position: fixed;
  z-index: 1400;
  display: flex;
  gap: 2px;
  padding: 6px;
  background: rgba(24, 18, 13, 0.98);
  border: 1px solid #e2a53a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.dm-react-picker[hidden] {
  display: none;
}

.dm-react-picker-btn {
  padding: 4px 6px;
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.dm-react-picker-btn:hover,
.dm-react-picker-btn:focus-visible {
  background: rgba(226, 165, 58, 0.22);
  outline: none;
}

@media (max-width: 720px) {
  .dm-bubble-foot {
    gap: 4px;
  }

  .dm-bubble-act {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .dm-reaction {
    padding: 3px 9px;
  }

  .dm-react-picker-btn {
    padding: 6px 8px;
    font-size: 1.5rem;
  }
}
/* ---------- Messages privés : « en train d’écrire » ---------- */
.dm-typing {
  margin: -8px 0 12px;
  color: #e2a53a;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.03em;
  animation: dm-typing-pulse 1.8s ease-in-out infinite;
}

.dm-typing[hidden] {
  display: none;
}

.dm-inbox-typing {
  color: #e2a53a;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.dm-inbox-typing[hidden] {
  display: none;
}

.dm-inbox-item--typing .dm-inbox-preview {
  opacity: 0.55;
}

@keyframes dm-typing-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-typing {
    animation: none;
  }
}

/* ---------- Section Admin : courrier de masse ---------- */

.top-nav-admin {
  color: var(--sand, #e2a53a) !important;
}

/* Sceau de version dans le menu : court, doré, sans élargir la barre sur téléphone. */
.top-nav-changelog {
  color: var(--sand, #e2a53a) !important;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.top-nav-changelog:hover,
.top-nav-changelog:focus-visible {
  color: var(--sand-soft, #f0d7a2) !important;
}

.card.adminmail-page {
  max-width: 1080px;
}

.adminmail-lead {
  margin: 0 0 12px;
  color: #d9c4a2;
  line-height: 1.55;
}

.adminmail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 18px;
  font-size: 0.9em;
}

.adminmail-nav a,
.adminmail-preview-link {
  color: var(--sand, #e2a53a);
  text-decoration: none;
}

.adminmail-nav a:hover,
.adminmail-preview-link:hover {
  color: var(--sand-soft, #f0d7a2);
  text-decoration: underline;
}

.adminmail-sep {
  color: #6b5738;
}

.adminmail-flash {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #5c4528;
  border-left: 3px solid var(--sand, #e2a53a);
  background: rgba(226, 165, 58, 0.08);
  color: var(--sand-soft, #f0d7a2);
  font-size: 0.92em;
}

.adminmail-flash--bad {
  border-left-color: #b8442f;
  background: rgba(184, 68, 47, 0.12);
  color: #f2c9bd;
}

.adminmail-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #5c4528;
  background: rgba(26, 20, 16, 0.55);
}

.adminmail-audience strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6em;
  color: var(--sand-soft, #f0d7a2);
}

.adminmail-audience p {
  margin: 0;
  color: #a89272;
  font-size: 0.86em;
  line-height: 1.5;
}

.adminmail-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.adminmail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}

.adminmail-table th {
  padding: 8px 10px;
  border-bottom: 1px solid #5c4528;
  color: #a89272;
  font-size: 0.8em;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.adminmail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(92, 69, 40, 0.5);
  color: #d9c4a2;
  vertical-align: top;
}

.adminmail-table tr.is-current td {
  background: rgba(226, 165, 58, 0.08);
}

.adminmail-form,
.adminmail-test {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 8px;
}

.adminmail-test {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.adminmail-test .adminmail-field {
  flex: 1 1 260px;
}

.adminmail-test .adminmail-field--short {
  flex: 0 0 150px;
}

.adminmail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92em;
}

.adminmail-field > span {
  color: #a89272;
  letter-spacing: 0.05em;
}

.adminmail-field small {
  color: #8a7350;
  font-size: 0.82em;
  line-height: 1.45;
}

.adminmail-form input[type='text'],
.adminmail-form textarea,
.adminmail-test input,
.adminmail-test select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #5c4528;
  border-radius: 3px;
  background: rgba(10, 8, 6, 0.6);
  color: var(--sand-soft, #f0d7a2);
  font: inherit;
  font-size: 15px;
}

.adminmail-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.adminmail-form input[type='text']:focus,
.adminmail-form textarea:focus,
.adminmail-test input:focus,
.adminmail-test select:focus {
  border-color: var(--sand, #e2a53a);
  outline: none;
}

.adminmail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adminmail-tab,
.adminmail-preview-link {
  padding: 6px 12px;
  border: 1px solid #43331a;
  border-radius: 3px;
  background: rgba(226, 165, 58, 0.05);
  color: var(--sand-soft, #f0d7a2);
  font: inherit;
  font-size: 0.86em;
  cursor: pointer;
}

.adminmail-tab:hover,
.adminmail-tab:focus-visible {
  border-color: var(--sand, #e2a53a);
  color: var(--sand, #e2a53a);
  outline: none;
}

.adminmail-tab.is-active,
.adminmail-preview-link.is-active {
  border-color: var(--sand, #e2a53a);
  background: rgba(226, 165, 58, 0.16);
  color: var(--sand, #e2a53a);
}

.adminmail-lang {
  margin: 0;
  padding: 14px 16px 6px;
  border: 1px solid #43331a;
  background: rgba(26, 20, 16, 0.4);
}

.adminmail-lang > legend {
  padding: 0 6px;
  color: var(--sand, #e2a53a);
  letter-spacing: 0.08em;
}

.adminmail-lang > .adminmail-field + .adminmail-field {
  margin-top: 12px;
}

.adminmail-hint {
  margin: 0;
  color: #8a7350;
  font-size: 0.85em;
  line-height: 1.5;
}

.adminmail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adminmail-actions button,
.adminmail-test button,
.adminmail-inline button,
.unsub-form button {
  padding: 10px 20px;
  border: 1px solid var(--sand, #e2a53a);
  border-radius: 3px;
  background: rgba(226, 165, 58, 0.16);
  color: var(--sand-soft, #f0d7a2);
  font: inherit;
  font-size: 0.95em;
  cursor: pointer;
}

.adminmail-actions button:hover,
.adminmail-test button:hover,
.adminmail-inline button:hover,
.unsub-form button:hover {
  background: rgba(226, 165, 58, 0.3);
  color: #fff3d4;
}

.adminmail-actions button.adminmail-danger {
  border-color: #b8442f;
  background: rgba(184, 68, 47, 0.18);
  color: #f2c9bd;
}

.adminmail-actions button.adminmail-danger:hover {
  background: rgba(184, 68, 47, 0.34);
}

.adminmail-sending,
.adminmail-sent {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #5c4528;
  background: rgba(26, 20, 16, 0.55);
}

.adminmail-label {
  margin: 0 0 10px;
  color: var(--sand, #e2a53a);
  font-size: 0.86em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adminmail-bar {
  height: 9px;
  margin: 0 0 10px;
  border: 1px solid #5c4528;
  background: #241a10;
}

.adminmail-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8a6a28, var(--sand, #e2a53a));
  transition: width 0.3s ease;
}

.adminmail-progress {
  margin: 0 0 6px;
  color: #d9c4a2;
  font-size: 0.92em;
}

.adminmail-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}

.adminmail-preview {
  display: block;
  width: 100%;
  height: 760px;
  border: 1px solid #5c4528;
  background: #100b06;
}

.adminmail-inline {
  margin: 10px 0 0;
}

.adminmail-denied {
  margin: 0 0 16px;
  color: #f2c9bd;
}

/* ---------- Désabonnement aux annonces ---------- */

.card.unsub-page {
  max-width: 620px;
}

.unsub-lede {
  margin: 0 0 14px;
  color: #d9c4a2;
  line-height: 1.55;
}

.unsub-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #43331a;
  background: rgba(26, 20, 16, 0.45);
}

.unsub-who strong {
  color: var(--sand-soft, #f0d7a2);
}

.unsub-mail {
  color: #8a7350;
  font-size: 0.88em;
}

.unsub-state {
  margin: 0 0 12px;
  color: #d9c4a2;
  font-size: 0.92em;
}

.unsub-flash {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--sand, #e2a53a);
  background: rgba(226, 165, 58, 0.08);
  color: var(--sand-soft, #f0d7a2);
  font-size: 0.92em;
}

.unsub-flash--bad {
  border-left-color: #b8442f;
  background: rgba(184, 68, 47, 0.12);
  color: #f2c9bd;
}

.unsub-form {
  margin: 0 0 16px;
}

.unsub-note {
  margin: 0 0 18px;
  color: #8a7350;
  font-size: 0.86em;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .adminmail-preview {
    height: 520px;
  }

  .adminmail-test {
    flex-direction: column;
    align-items: stretch;
  }

  .adminmail-test .adminmail-field--short {
    flex: 1 1 auto;
  }
}

/* ---------- Journal des versions ---------- */

.card.changelog-page {
  max-width: 880px;
}

.changelog-lead {
  margin: 0 0 16px;
  color: #d9c4a2;
  line-height: 1.6;
}

.changelog-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #5c4528;
  border-left: 3px solid var(--sand, #e2a53a);
  background: rgba(226, 165, 58, 0.07);
}

.changelog-current strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3em;
  font-weight: normal;
  color: var(--sand-soft, #f0d7a2);
}

.changelog-current-label {
  color: #a89272;
  font-size: 0.78em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-current-date {
  color: #8a7350;
  font-size: 0.88em;
}

.changelog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 26px;
}

.changelog-jump a {
  padding: 4px 10px;
  border: 1px solid #43331a;
  border-radius: 3px;
  color: var(--sand, #e2a53a);
  font-size: 0.84em;
  text-decoration: none;
}

.changelog-jump a:hover,
.changelog-jump a:focus-visible {
  border-color: var(--sand, #e2a53a);
  background: rgba(226, 165, 58, 0.12);
  outline: none;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.changelog-release {
  padding-left: 16px;
  border-left: 2px solid #5c4528;
  scroll-margin-top: 24px;
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 10px;
}

.changelog-version {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5em;
  font-weight: normal;
  color: var(--sand-soft, #f0d7a2);
}

.changelog-date {
  color: #8a7350;
  font-size: 0.86em;
}

.changelog-pill {
  padding: 2px 9px;
  border: 1px solid var(--sand, #e2a53a);
  border-radius: 999px;
  color: var(--sand, #e2a53a);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.changelog-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.changelog-tag {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 2px 8px;
  border: 1px solid #5c4528;
  border-radius: 3px;
  font-size: 0.7em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-tag--game {
  border-color: #7a5a22;
  background: rgba(226, 165, 58, 0.1);
  color: #e2a53a;
}

.changelog-tag--site {
  border-color: #5c4528;
  background: rgba(201, 180, 138, 0.08);
  color: #c9b48a;
}

.changelog-tag--wiki {
  border-color: #6d4626;
  background: rgba(192, 138, 90, 0.1);
  color: #d3a06c;
}

.changelog-tag--audio {
  border-color: #4c3a63;
  background: rgba(168, 140, 210, 0.1);
  color: #bfa8e0;
}

.changelog-tag--perf {
  border-color: #33514c;
  background: rgba(140, 190, 180, 0.1);
  color: #9fc9c0;
}

.changelog-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.changelog-body strong {
  color: #e8d5a3;
  font-size: 0.98em;
  font-weight: 600;
}

.changelog-body span {
  color: #b9a588;
  font-size: 0.92em;
  line-height: 1.55;
}

.changelog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid #43331a;
}

.changelog-cta a {
  color: var(--sand, #e2a53a);
  text-decoration: none;
}

.changelog-cta a:hover {
  color: var(--sand-soft, #f0d7a2);
  text-decoration: underline;
}

.changelog-play {
  padding: 10px 20px;
  border: 1px solid var(--sand, #e2a53a);
  border-radius: 3px;
  background: rgba(226, 165, 58, 0.16);
  color: var(--sand-soft, #f0d7a2) !important;
}

.changelog-play:hover {
  background: rgba(226, 165, 58, 0.3);
  color: #fff3d4 !important;
  text-decoration: none;
}

@media (max-width: 640px) {
  .changelog-item {
    flex-direction: column;
    gap: 4px;
  }

  .changelog-release {
    padding-left: 12px;
  }
}
