.room-app {
  max-width: 52rem;
  margin: auto;
  overflow-wrap: anywhere;
}
.room-app label {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
}
.room-app input,
.room-app select:where(:not(.mm-layout-choice select)),
.room-app button:where(:not(.mm-key, .salon-pyramido *)) {
  font: inherit;
  min-height: 44px;
  max-width: 100%;
  padding: 0.6rem;
}
.room-app button:where(:not(.mm-key, .salon-pyramido *)) {
  cursor: pointer;
  margin: 0.25rem;
}
.room-app select,
.room-app input {
  width: 100%;
  box-sizing: border-box;
}
.room-app li {
  margin: 0.7rem 0;
}
#room-play .board {
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-touch-callout: none;
}
#room-play .board .cell {
  border: 2px solid #215c44;
  background: #f8efdc;
  color: #073b2d;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(20, 32, 40, 0.05);
  touch-action: none;
  -webkit-touch-callout: none;
  transition: none;
}
/* Trouve-mots multiplayer (#room-board): grid payloads may use lowercase letters;
   uppercase is display-only — DOM textContent and SSR HTML stay canonical for logic. */
#room-play #room-board.board .cell {
  text-transform: uppercase;
}
#room-play .board .cell.is-on {
  background: #215c44;
  color: #f8efdc;
  border-color: #073b2d;
}
#room-play .board .cell.is-last {
  background: linear-gradient(180deg, #f07248, #c44a28);
  border-color: #c44a28;
  color: white;
}
#room-play .board .trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#room-play .board .trace polyline {
  fill: none;
  stroke: rgba(244, 230, 196, 0.95);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#room-play .board.is-bad .cell.is-on,
#room-play .board.is-bad .cell.is-last {
  animation: room-board-shake 220ms ease;
}
@keyframes room-board-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
#room-play .hint {
  color: #4a5c52;
  margin: 0.25rem 0 0.5rem;
  min-height: 1.25rem;
}
#room-play .room-submit-feedback {
  height: 2.8rem;
  margin: 0;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.4rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: right;
}
#room-play .room-feedback-word,
#room-play .room-feedback-status {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#room-play .room-submit-feedback.is-ok {
  color: #1d7a4d;
}
#room-play .room-submit-feedback.is-bad {
  color: #c44a28;
}
#room-play .room-submit-feedback.is-dup {
  color: #6b5a2a;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#room-clock {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.room-app [hidden] {
  display: none !important;
}
.room-app button:where(:not(.mm-key, .salon-pyramido *)) {border:1px solid #215c44;border-radius:.5rem;background:#215c44;color:#fff}
.room-app button:where(:not(.mm-key)):disabled {opacity:.55;cursor:default}
.room-app button:where(:not(.mm-key)):focus-visible,.room-app summary:focus-visible {outline:3px solid #a66a00;outline-offset:3px}
.room-app h1 {font-size:clamp(1.8rem,5vw,2.5rem)}
.duel-cta-inline {display:inline-block;margin:0.5rem 0 1rem}
.duel-create {max-width:28rem}
.duel-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .duel-panels { grid-template-columns: 1fr; }
}
.room-invitations h2[data-count]::after {
  content: " (" attr(data-count) ")";
  font-size: 0.9em;
  font-weight: normal;
}
.room-invitation-card {
  border: 2px solid #215c44;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin: 0.75rem 0;
  list-style: none;
}
.room-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.room-app button.btn-muted {
  background: #f8efdc;
  color: #073b2d;
}
.contact-invite-panel {
  border: 2px dashed #215c44;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin: 1rem 0;
  max-width: 100%;
}
.contact-invite-empty,
.contact-invite-hint,
.contact-invite-note {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}
.contact-invite-pending {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}
.duel-panel {
  border: 2px solid #215c44;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #f8efdc;
}
.duel-panel[data-self="1"] { outline: 3px solid #dcae32; }
.duel-score { font-size: 1.15rem; font-weight: bold; margin: 0.35rem 0; }
.duel-total { margin: 0; opacity: 0.85; }
.room-recap {
  border: 1px solid #215c44;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--card);
}
.recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (max-width: 480px) {
  .recap-grid { grid-template-columns: 1fr; }
}
.recap-card { padding: 0.55rem; border: 1px solid #ccc; border-radius: 0.35rem; min-width: 0; }
.recap-card[data-round-winner="1"] { border-color: #215c44; background: #eef7f0; }
.recap-card-header { display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.recap-card-header h4 { margin: 0; flex: 1 1 7rem; }
.recap-card-total { color: #4a5c52; font-size: 0.9rem; }
.recap-card-secondary { margin: 0.2rem 0 0; color: #4a5c52; font-size: 0.9rem; }
.recap-words-details { margin-top: 0.3rem; }
.recap-words-details summary { cursor: pointer; min-height: 2.25rem; padding: 0.35rem 0; color: #073b2d; font-weight: 700; }
.winner-hero {
  position: relative;
  overflow: hidden;
  margin: 0.75rem 0;
  padding: 1rem;
  text-align: center;
  border: 2px solid #dcae32;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #fff8d8, #f8efdc);
}
.winner-hero::after {
  content: "✦  ·  ✧  ·  ✦";
  position: absolute;
  inset: 0.25rem 0 auto;
  color: #dcae32;
  font-size: 1.2rem;
  animation: room-confetti 2.8s ease-in-out 3 forwards;
  pointer-events: none;
}
.winner-crown { display: block; font-size: clamp(3.4rem, 10vw, 5.4rem); line-height: 1; margin-bottom: 0.35rem; }
.winner-hero h3 { margin: 0; font-size: clamp(1.35rem, 5vw, 2rem); }
.winner-hero p { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 800; }
.final-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; list-style: none; margin: 0.75rem 0 0; padding: 0; }
.final-podium li { display: grid; gap: 0.15rem; min-width: 0; padding: 0.55rem 0.35rem; text-align: center; border: 1px solid #dcae32; border-radius: 0.4rem; background: #fffdf4; }
.final-podium li:nth-child(n+4) { grid-column: 1 / -1; display: flex; justify-content: space-between; text-align: left; border-color: #ccc; background: #fff; }
.podium-place { font-size: 1.5rem; }
@keyframes room-confetti { 0%, 100% { transform: translateY(-0.1rem); opacity: .55; } 50% { transform: translateY(.35rem); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .winner-hero::after { animation: none; } }
.recap-words { font-size: 0.92rem; word-break: break-word; }
.recap-meta, .recap-interesting, .recap-finals { margin-top: 0.75rem; }
.recap-board-words {
  margin-top: 0.85rem;
  padding: 0.65rem 0.7rem;
  border: 1px dashed #b8cfc4;
  border-radius: 0.4rem;
  background: #f6fbf8;
}
.recap-board-total { margin: 0; font-size: 0.92rem; font-weight: 700; color: #073b2d; }
.recap-board-notable-label { margin: 0.45rem 0 0.2rem; font-size: 0.85rem; color: #4a5c52; }
.recap-board-chips { margin-top: 0.15rem; }

.room-found-list,
.recap-words-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: center;
  margin: 0.5rem 0 0;
}
.room-found-empty,
.recap-words-empty {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}
.room-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px 0 8px;
  min-height: 32px;
  /* Reserve space between rows for the 44px definition target. */
  margin-block: 2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  border-radius: 999px;
  border: 1px solid #215c44;
  background: #f8efdc;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
}
.room-app .room-word-chip .def-btn {
  position: relative;
  /* Keep the real hit box; only the capsule and painted circle shrink. */
  margin: -2px 0;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  flex: none;
  touch-action: manipulation;
}
.room-app .room-word-chip .def-btn::before {
  content: "?";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #073b2d;
  background: #fff;
  color: #073b2d;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.salon-hero.site-block.panel { margin-top: 0; margin-bottom: 1rem; }
#room-create-panel { scroll-margin-top: 12px; }
#room-create-panel-title:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.salon-lede { margin: 0.35rem 0 0; opacity: 0.9; }
.salon-lobby-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.salon-lobby-hint { margin: 0; font-size: 0.92rem; opacity: 0.85; }
.salon-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.salon-list li { border: 1px solid #215c44; border-radius: 0.5rem; padding: 0.65rem 0.75rem; background: var(--card); }
.salon-list > .home-salon-row { border: 0 solid var(--line); border-top-width: 1px; border-radius: 0; background: transparent; }
.room-app .home-salon-row { margin: 0; }
/* Distinguish individual salons without depending on creation order. */
.room-app .salon-list .home-salon-code { display: inline-flex; }

.room-app .salon-list {
  display: grid;
  gap: 12px;
}
.room-app .salon-list > .home-salon-row,
.room-app .salon-list > .home-salon-row:first-child {
  padding: 13px 14px;
}
/* Game-specific pastel border comes from the shared app.css variables. */
/* The salon creation CTA is centered in the block footer on all devices. */
.room-app .salon-lobby .site-block-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.room-app .salon-create-launch {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}
.room-app .salon-create-launch .btn {
  justify-content: center;
  min-height: 44px;
}
@media (max-width: 420px) {
  .room-app .salon-list > .home-salon-row {
    padding: 11px;
  }
}

.room-app .home-salon-join.btn-secondary,
.room-app .home-salon-join:disabled {
  background: #f8efdc;
  color: #073b2d;
  border-color: #215c44;
}
.salon-empty { text-align: center; padding: 1.25rem 0.5rem; }
.salon-create-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.salon-create-note, .salon-premium-note, .salon-create-noscript { font-size: 0.95rem; opacity: 0.9; }
.salon-create-noscript { color: #7a2e12; margin: 0 0 0.5rem; }
.salon-create-feedback {
  margin: 0.35rem 0 0.15rem;
  min-height: 1.6rem;
  color: #7a2e12;
  font-size: 0.95rem;
  scroll-margin-bottom: 4.5rem;
}
/* Keep one line reserved for progress and error messages so the create
   button does not jump vertically while the server is preparing the room. */
.salon-create-feedback:empty {
  visibility: hidden;
}
.salon-create-feedback.is-processing {
  color: #39556d;
}
#room-create-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.salon-back { display: inline-block; margin: 0.5rem 0.25rem; }
.salon-room-stack {
  display: grid;
  gap: 12px;
  max-width: 42rem;
  margin: 0 auto;
}
.salon-room-stack > .site-block.panel { margin-top: 0; }
.room-app.is-room [data-salon-create],
.room-app.is-room #room-create-panel,
.room-app.is-room #room-create,
.room-app.is-room #room-lobby { display: none !important; }
.salon-room-meta { margin: 0.15rem 0 0.35rem; color: #4a5c52; }
.salon-players,
.salon-scores,
.round-standings { margin: 0.25rem 0 0; padding-left: 1.15rem; }
.salon-players li,
.salon-scores li,
.round-standings li { margin: 0.2rem 0; }
.salon-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.salon-actions button,
.salon-actions .salon-back { margin: 0; }
.room-app .home-salon-join.btn-primary { background: var(--cta-2); border-color: var(--cta-border); }
.room-countdown {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin: 0.4rem 0;
  padding: 0.7rem;
  border: 2px solid #c44a28;
  border-radius: 0.6rem;
  background: #fff7ed;
  color: #7c2d12;
}
.room-countdown-label { font-size: 0.9rem; }
.room-countdown strong { font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.final-winner-hero { display: grid; justify-items: center; gap: 0.15rem; margin: 0.25rem 0 0.8rem; color: #a83b20; }
.final-winner-hero span { font-size: 2.2rem; line-height: 1; }
.final-winner-hero strong { font-size: 1.5rem; }
.final-leaderboard { width: 100%; border-collapse: separate; border-spacing: 0 3px; table-layout: fixed; }
.final-leaderboard th, .final-leaderboard td { padding: 0.55rem 0.65rem; text-align: left; }
.final-leaderboard thead th { color: #4a5c52; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.final-leaderboard tbody tr:nth-child(odd) { background: #f8efdc; }
.final-leaderboard tbody tr:nth-child(even) { background: #fffaf2; }
.final-leaderboard tbody th { width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.final-leaderboard td:last-child, .final-leaderboard thead th:last-child { width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
.final-leaderboard td:nth-child(2) { overflow-wrap: anywhere; }
.round-announce { margin: 0.35rem 0 0.5rem; font-weight: 700; }
.room-app .salon-report {
  margin: 0.35rem 0 0;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border-color: transparent;
  background: transparent;
  color: #4a5c52;
  text-decoration: underline;
  font-size: 0.88rem;
}
#room-clock { font-size: 1.35rem; }
.site-block.room-recap { margin: 0; }

@media (max-width: 420px) {
  .salon-room-stack { gap: 8px; }
  .room-recap { padding: 0.7rem; }
  .recap-grid { gap: 0.5rem; }
}

/* Homepage salon rows are intentionally compact and keep phase as a label. */
.home-salon-filter-popover[hidden] { display: none !important; }
.home-salon-meta { display: inline-flex; gap: 0.65rem; align-items: center; min-width: 0; }
.home-salon-lang { display: inline-flex; align-items: center; margin-inline-end: 0.25rem; flex-shrink: 0; }
.home-salon-lang-flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.room-app .home-salon-open { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.salon-room-language { margin: 0 0 0.35rem; }
.home-salon-phase { justify-self: end; padding: 0.25rem 0.55rem; border-radius: 999px; background: #eee8dd; color: #4a5c52; font-size: 0.82rem; }
/* #153: no explicit grid-column here. Placement is owned by the grid areas in app.css
   (open / stats / action) so non-joinable rows (full, live) keep their title and creator
   at every width instead of collapsing the identity column. */
@media (max-width: 360px) {
  .room-recap { padding: 0.65rem; }
  .recap-grid { gap: 0.35rem; }
  .final-podium { gap: 0.25rem; }
  .final-podium li { padding-inline: 0.2rem; font-size: 0.9rem; }
}

/* Room UX: compact accessible word chips and consistently aligned final table. */
/* Generic chip uses the existing room template. The more compact
   solo-parity geometry below is scoped specifically to LIVE room recap +
   currently-found chips, so ordinary shared chip instances stay unchanged. */
.room-app .room-word-chip {
  padding: 0 1px 0 7px;
  margin-block: 3px;
  gap: 1px;
  min-height: 30px;
}
.room-app .room-word-chip .def-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: -3px 0;
}
.room-app .room-word-chip .def-btn::before {
  width: 20px;
  height: 20px;
  left: calc(50% - 7px);
}
.room-app .final-leaderboard { margin: 10px 0; border-spacing: 0 3px; width: 100%; }
.room-app .final-leaderboard thead th:first-child,
.room-app .final-leaderboard tbody th { width: 3.25rem; text-align: center; }
.room-app .final-leaderboard td,
.room-app .final-leaderboard th {
  box-sizing: border-box;
  font-family: inherit;
  font-size: clamp(.84rem, 2.6vw, 1rem);
  line-height: 1.25;
}
.room-app .final-leaderboard td:nth-child(2) { font-weight: 700; }
.room-app .final-leaderboard td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* One geometry for every salon action, anchor and button. .room-app button
   otherwise forces an 8px radius and a green fill that the pill .btn misses.
   Basis stays auto: a fixed 11.5rem basis wraps before the item can shrink,
   so revealing Join next to Back at 320px grew the card by a full row. */
.room-app .salon-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border-style: solid;
  border-width: 1px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
.room-app .salon-actions .btn.btn-primary {
  background: var(--cta-2);
  border-color: var(--cta-border);
  color: var(--cta-ink);
}
.room-app .salon-actions .btn.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-border);
  color: var(--cta-ink);
}
.room-app .salon-actions .btn.btn-secondary {
  background: #e5f3e8;
  border-color: #7d9f8c;
  color: #0f3d30;
}
.room-app .salon-actions .btn.btn-secondary:hover {
  background: #d5eadc;
  border-color: #5f8a72;
  color: #0f3d30;
}
.room-app .salon-actions .btn:focus-visible {
  outline: 3px solid #a66a00;
  outline-offset: 3px;
}
.room-app .salon-actions .btn:disabled,
.room-app .salon-actions .btn.btn-primary:disabled,
.room-app .salon-actions .btn.btn-secondary:disabled {
  opacity: 1;
  background: #e7e1d6;
  border-color: #d3c8b6;
  color: #5c5348;
  cursor: not-allowed;
}
.room-app #room-clock { margin: 6px 0 0; font-size: clamp(1.1rem, 4.7vw, 1.4rem); }
.room-app #room-phase { margin: 7px 0; }
.room-app .salon-room-stack { gap: 9px; }

/* EPOSIGMA-MULTIPLAYER-FIRST-ROUND-AVATARS-20261026 */
.room-app .final-leaderboard {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
}
.room-app .final-leaderboard thead th:first-child,
.room-app .final-leaderboard tbody th {
  width: 74px;
  min-width: 74px;
  white-space: nowrap;
  text-align: center;
  padding-inline: 5px;
}
.room-app .final-leaderboard thead th:first-child {
  letter-spacing: 0;
  font-size: clamp(.72rem, 2.9vw, .84rem);
}
.room-app .final-leaderboard td:nth-child(2) {
  min-width: 0;
  padding-inline: 4px;
}
.room-app .final-leaderboard td:last-child,
.room-app .final-leaderboard thead th:last-child {
  width: clamp(70px, 22vw, 90px);
  min-width: 0;
  padding-inline: 4px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.room-app .room-final-player {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.room-app .room-final-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #d7e8dd;
  color: #15553e;
  display: inline-grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
}
.room-app .room-final-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-app .room-final-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-app .room-final-premium {
  color: #b17a00;
  flex: none;
  font-size: .82rem;
}
.room-app .final-winner-hero h3 {
  max-width: 100%;
  font-size: clamp(1.25rem, 4.8vw, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.room-app .room-countdown-label {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 750;
}
@media (max-width: 360px) {
  .room-app .final-leaderboard thead th:first-child,
  .room-app .final-leaderboard tbody th { width: 67px; min-width: 67px; }
  .room-app .final-leaderboard td:last-child,
  .room-app .final-leaderboard thead th:last-child { width: 68px; }
  .room-app .room-final-avatar { width: 26px; height: 26px; min-width: 26px; }
  .room-app .room-final-player { gap: 4px; }
}


/* Kept in the card header corner, outside every selection hit target. */
#room-play > .site-block-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  min-height: 3rem;
}
#room-play .site-block-actions { min-width: 0; width: 100%; }
.room-header-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: .35rem;
  width: 100%;
  pointer-events: none;
}
.room-countdown-slot { width: 3.5rem; height: 2.8rem; }
@media (prefers-reduced-motion: reduce) {
  #room-play .board .cell { animation: none !important; }
}
.room-end-countdown {
  width: 3.5rem;
  height: 2.8rem;
  line-height: 2.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  padding: .15rem .25rem;
  border-radius: .5rem;
  background: #8b1e18;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.room-validating {
  padding: 1.5rem;
  border: 2px solid currentColor;
  border-radius: .75rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}


/* 2026-11-09 · A distinct salon area and a separated, centered create action. */
.room-app .salon-lobby .site-block-footer {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #ddd3c2;
}
.room-app .salon-lobby .site-block-body {
  padding-bottom: 3px;
}
/* Players and per-round scores stay above the board, even with 16 participants. */
.room-app #room-roster > .salon-players {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.room-app .room-rank-heading {
  margin: 0 0 10px;
  font-weight: 750;
  color: #214e3e;
  font-size: .92rem;
}
.room-app .room-live-score-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.room-app .room-rank-row {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e7de;
  border-radius: 9px;
  background: #f8faf6;
  font-size: .92rem;
}
.room-app .room-rank-row.is-you {
  border-color: #a6cbb1;
  background: #e7f3e9;
}
.room-app .room-rank-place {
  color: #4d675b;
  font-variant-numeric: tabular-nums;
}
.room-app .room-rank-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.room-app .room-rank-points {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #164b39;
}
.room-app #room-ranking-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ddd7c8;
}
.room-app #room-ranking-more summary {
  display: list-item;
  width: fit-content;
  min-height: 38px;
  padding: 6px 8px;
  font-weight: 650;
  color: #166547;
  cursor: pointer;
}
.room-app #room-ranking-all {
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 8px;
}
/* The full countdown lives next to "Grille", not in a remote block. */
#room-play .room-header-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#room-play .room-board-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 38px;
  min-width: 3.5rem;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #aecbb5;
  background: #e9f4e9;
  font-size: clamp(.96rem, 3.5vw, 1.22rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0c4d39;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#room-play .room-submit-feedback {
  min-width: 0;
  flex: 1 1 auto;
}
@media (max-width: 400px) {
  #room-play .room-header-feedback { gap: 4px; }
  #room-play .room-board-clock { padding: 4px 6px; min-width: 3rem; }
  .room-app .room-rank-row { padding: 7px 8px; gap: 6px; }
}

/* Owner: one compact scoreboard, no default 0.7rem LI margin between ranks. */
.room-app .room-live-score-list { gap: 4px; }
.room-app .room-live-score-list > .room-rank-row {
  margin: 0;
  min-height: 39px;
  padding-block: 7px;
  line-height: 1.22;
}
/* Feedback word and earned points sit side by side within the grid header. */
#room-play .room-submit-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 2.15rem;
  min-height: 2.15rem;
  line-height: 1.15;
  white-space: nowrap;
}
#room-play .room-feedback-word,
#room-play .room-feedback-status {
  display: inline-block;
  line-height: 1.2;
  margin: 0;
}
#room-play .room-feedback-word {
  font-size: 1.02rem;
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 800;
}
#room-play .room-feedback-status {
  font-size: .82rem;
  font-weight: 750;
  flex: 0 0 auto;
}
/* The timer pill is a status indicator, not a button: no oversized touch hit area. */
#room-play .room-board-clock {
  min-height: 31px;
  padding: 3px 7px;
  line-height: 1.15;
  border-radius: 9px;
}
/* EPOSIGMA-MP-WORD-CHIP-PARITY-20261111 — solo Trouve result geometry in play, recap and board notable lists.
   44px definition targets sit out of flex flow so pill height tracks the word, not the hit box. */
.room-app :is(#room-found, #room-recap .recap-words-chips, #room-recap .recap-board-chips) .room-word-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: var(--eposigma-word-chip-pad-block, 1px) var(--eposigma-word-chip-pad-end, 30px)
    var(--eposigma-word-chip-pad-block, 1px) var(--eposigma-word-chip-pad-start, 7px);
  min-height: 0;
  margin-block: var(--eposigma-word-chip-margin-block, 3px);
  line-height: var(--eposigma-word-chip-line-height, 1.25);
  font-size: var(--eposigma-word-chip-font-size, 0.88rem);
  letter-spacing: 0.005em;
  overflow: visible;
  overflow-wrap: anywhere;
  max-width: 100%;
  width: max-content;
  box-sizing: border-box;
}
.room-app :is(#room-found, #room-recap .recap-words-chips, #room-recap .recap-board-chips) .room-word-chip .def-btn {
  position: absolute;
  right: var(--eposigma-word-chip-def-right, -8px);
  top: 50%;
  transform: translateY(-50%);
  flex: none;
  width: var(--eposigma-word-chip-def-hit, 44px);
  height: var(--eposigma-word-chip-def-hit, 44px);
  min-width: var(--eposigma-word-chip-def-hit, 44px);
  min-height: var(--eposigma-word-chip-def-hit, 44px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
  isolation: isolate;
}
.room-app :is(#room-found, #room-recap .recap-words-chips, #room-recap .recap-board-chips) .room-word-chip .def-btn:focus-visible {
  outline: 3px solid #308067;
  outline-offset: 3px;
}
.room-app :is(#room-found, #room-recap .recap-words-chips, #room-recap .recap-board-chips) .room-word-chip .def-btn::before {
  content: none;
  display: none;
}
.room-app :is(#room-found, #room-recap .recap-words-chips, #room-recap .recap-board-chips) .room-word-chip .def-btn::after {
  content: "?";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--eposigma-word-chip-def-circle, 20px);
  height: var(--eposigma-word-chip-def-circle, 20px);
  box-sizing: border-box;
  border: 1px solid #073b2d;
  border-radius: 50%;
  background: #fff;
  color: #073b2d;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
/* Explicit owner-only action in the recap, directly under the winner. */
.room-app .room-next-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 10px;
  margin: 8px 0 12px;
  border: 1px solid #b5d1bc;
  border-radius: 13px;
  background: #edf6ee;
  text-align: center;
}
.room-app .room-next-action[hidden] { display: none; }
.room-app .room-next-action .btn {
  min-height: 44px;
  max-width: 100%;
  padding: 9px 18px;
  border: 1px solid #b56b20;
  border-radius: 13px;
  background: #efa047;
  color: #3f270f;
  font-weight: 780;
}
.room-app .room-next-action p {
  margin: 0;
  font-size: .79rem;
  color: #536d5d;
  line-height: 1.3;
}

/* Room creation: compact accessible label/control rows at phone widths.
   Keep the label as the native wrapping <label> so tapping it focuses its field. */
.room-app #room-create .salon-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.room-app #room-create .salon-create-grid > label {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(6px, 1.6vw, 12px);
  margin: 0;
  min-width: 0;
  font-size: clamp(.85rem, 3.5vw, 1rem);
  line-height: 1.22;
}
.room-app #room-create .salon-create-label-text { min-width: 0; }
.room-app #room-create .salon-create-label-text small {
  display: block;
  margin-top: 3px;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1.25;
  color: #536052;
  overflow-wrap: anywhere;
}
.room-app #room-create .salon-create-grid > label > select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 5px 10px;
  font-size: clamp(.86rem, 3.5vw, 1rem);
}
.room-app #room-create .salon-create-note {
  margin-block: .6rem .4rem;
  line-height: 1.4;
}
@media (min-width: 720px) {
  .room-app #room-create .salon-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }
  .room-app #room-create .salon-create-grid > label {
    grid-template-columns: minmax(0, 41%) minmax(0, 1fr);
  }
}

/* Navigation lives once in the Actions card, in SSR and after phase changes. */
.room-app .room-return-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.room-app .room-return-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid #9bbbd7;
  border-radius: 22px;
  background: #e7f1fb;
  color: #193e64;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}
.room-app .room-return-actions .room-return-salons,
.room-app .room-return-actions #room-leave {
  background: #fff0df;
  color: #653508;
  border-color: #c9a47e;
}
.room-app .room-return-actions #room-leave { grid-column: 1; grid-row: 2; border-color: #b48665; }
.room-app .room-return-actions [hidden] { display: none !important; }
.room-app .room-return-actions .room-safe-return {
  grid-column: 1 / -1;
  grid-row: 1;
  background: #fff0df;
  color: #653508;
  border-color: #c9a47e;
}
.room-app .room-return-actions .room-safe-return:hover { background: #f8e5cf; }

.room-app .room-return-actions[data-leave-only] #room-leave { grid-column: 1 / -1; grid-row: 1; }
.room-app .room-return-actions .room-create-link { grid-column: 2; grid-row: 2; }
.room-app .room-return-actions .btn:hover { background: #dcecfb; }
.room-app .room-return-actions .room-return-salons:hover,
.room-app .room-return-actions #room-leave:hover { background: #f8e5cf; }
.room-app .room-return-actions .btn:focus-visible { outline: 3px solid #193e64; outline-offset: 3px; }

/* Fragment invitations reveal Join after SSR; reserve its space without exposing a control. */
.salon-actions[data-preview] #room-join[hidden] { display: inline-flex !important; visibility: hidden; }

/* Salon visitors choose an account path instead of seeing an HTTP error. */
.room-app .room-guest-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin: 12px 0 16px;
}
.room-app .room-guest-auth-actions > .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  text-align: center;
  white-space: normal;
  border-radius: 20px;
}
.room-app .salon-signin .room-guest-auth-actions { margin-bottom: 0; }
@media (max-width: 340px) {
  .room-app .room-guest-auth-actions { gap: 8px; }
  .room-app .room-guest-auth-actions > .btn { padding: 10px 7px; font-size: .88rem; }
}

/* Eposigma 2026-11-16 — Anagrammes salon uses the SOLO play composition.
   The former #room-board .board was an unrelated 4-column Trouve-mots grid:
   it restricted this entire game to a single column and left a giant blank
   square. These selectors are scoped to the mounted Anagrammes salon only. */
#room-play:has(.salon-ana) {
  --game-surface: #fff;
  background: #fff;
}
#room-play:has(.salon-ana) > .site-block-head {
  background: var(--game-anagrammes-surface, #eee7f3);
  border-color: var(--game-anagrammes-border, #d9cbe2);
  border-radius: 14px;
}
#room-play:has(.salon-ana) > .site-block-head .room-header-feedback {
  display: none;
}
#room-play:has(.salon-ana) #room-board.board {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  touch-action: manipulation;
  overflow: visible;
}
#room-play .salon-ana.ana {
  display: grid;
  width: min(100%, 620px);
  max-width: 100%;
  min-width: 0;
  gap: 16px;
  margin: 0 auto;
  color: var(--ink);
}
#room-play .salon-ana .ana-hud.is-words-only.has-clock {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr) 7rem;
  gap: 8px;
  align-items: stretch;
}
#room-play .salon-ana .ana-hud > p {
  margin: 0;
  min-width: 0;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 10px 12px;
  text-align: center;
}
#room-play .salon-ana .ana-hud > p span:first-child {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}
#room-play .salon-ana .ana-hud > p strong,
#room-play .salon-ana .ana-hud > p #room-board-clock {
  display: block;
  margin: 4px auto 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--navy);
}
#room-play .salon-ana .ana-hud > .ana-clock {
  position: relative;
  width: 7rem;
  min-width: 7rem;
}
#room-play .salon-ana #room-board-clock.room-board-clock {
  display: block;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  margin: 4px auto 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  font-feature-settings: "tnum" 1;
}
#room-play .salon-ana .room-countdown-slot {
  position: absolute;
  right: -6px;
  top: calc(100% - 8px);
  width: auto;
  height: auto;
  pointer-events: none;
}
#room-play .salon-ana .ana-pips {
  height: 8px;
  gap: 6px;
}
#room-play .salon-ana .ana-feedback.room-submit-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 11px;
  background: var(--paper);
  font-size: .9rem;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  pointer-events: none;
}
#room-play .salon-ana .ana-feedback.room-submit-feedback:empty {
  visibility: hidden; /* reserve the height, no jumping */
}
#room-play .salon-ana .ana-feedback.room-submit-feedback.is-ok {
  visibility: visible;
  background: #e5f4ec;
  border-color: #b7dcc6;
  border-left-color: var(--success);
  color: #17623e;
}
#room-play .salon-ana .ana-feedback.room-submit-feedback.is-bad {
  visibility: visible;
  background: #f8e8e4;
  border-color: #efcfc6;
  border-left-color: var(--error);
  color: var(--error);
}
#room-play .salon-ana :is(.ana-slots, .ana-rack) {
  display: grid;
  grid-template-columns: repeat(var(--salon-ana-letters), minmax(0, 1fr));
  box-sizing: border-box;
  width: min(100%, calc(var(--salon-ana-letters) * 68px + (var(--salon-ana-letters) - 1) * 7px));
  max-width: 100%;
  min-width: 0;
  gap: 7px;
  margin: 0 auto;
  container-type: normal;
  justify-content: center;
  align-items: center;
  padding: 0;
}
#room-play .salon-ana .ana-slots {
  background: transparent;
  border: 0;
}
#room-play .salon-ana .ana-rack {
  padding: 10px;
  width: min(100%, calc(var(--salon-ana-letters) * 68px + (var(--salon-ana-letters) - 1) * 7px + 20px));
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #f0eae0);
  box-shadow: inset 0 1px 0 #fff;
}
#room-play .salon-ana :is(.ana-tile, .ana-slot, .ana-rack-space) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  margin: 0;
  border-radius: clamp(7px, 1.5vw, 13px);
  font-size: clamp(1.2rem, 3.6vw, 1.85rem);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}
#room-play .salon-ana .ana-tile,
#room-play .salon-ana .ana-slot.is-on {
  background: linear-gradient(180deg, #fffdf9, #f1ebe1);
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 -3px 0 rgba(20, 32, 40, .1), 0 2px 2px rgba(20, 32, 40, .1);
  touch-action: manipulation;
  cursor: pointer;
}
#room-play .salon-ana .ana-slot.is-on {
  border-color: var(--petrol);
  box-shadow: inset 0 -3px 0 var(--brass);
}
#room-play .salon-ana .ana-slot:not(.is-on) {
  border: 1.5px dashed var(--line-strong);
  background: rgba(255, 253, 248, .6);
}
#room-play .salon-ana .ana-rack-space {
  border: 1px dashed rgba(158, 140, 113, .35);
  background: rgba(218, 209, 194, .32);
}
#room-play .salon-ana .salon-ana-instructions {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.5;
}
#room-play .salon-ana .ana-actions,
#room-play .salon-ana .ana-actions .ana-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  gap: 0;
}
#room-play .salon-ana #room-ana-clear.btn {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: 52px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #b76e17;
  border-radius: 99px;
  background: linear-gradient(180deg, #f5a347, #e58b22);
  color: #291c0c;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgb(180 113 27 / 13%);
  white-space: nowrap;
  opacity: 1;
}
#room-play .salon-ana #room-ana-clear.btn:disabled {
  opacity: 1; /* retain the orange CTA silhouette; do not show a grey pill */
  color: #5f3b14;
  cursor: default;
}
#room-play .salon-ana #room-ana-clear.btn:not(:disabled):hover {
  background: linear-gradient(180deg, #ffb058, #e99026);
}
#room-play:has(.salon-ana) > .site-block-body > #room-selection {
  display: none;
}
#room-play:has(.salon-ana) .room-found-list {
  margin-top: 12px;
}
/* The live ranking sits BELOW the grid, as in SOLO. Changes to player
   standings can therefore never push the interactive letter board down. */
#room-current:has(.salon-ana) #room-play { order: 1; }
#room-current:has(.salon-ana) #room-people { order: 2; }
#room-current:has(.salon-ana) #room-actions { order: 6; }
#room-current:has(.salon-ana) #room-scorecard { order: 4; }
#room-current:has(.salon-ana) #room-recap { order: 5; }

@media (max-width: 480px) {
  #room-play .salon-ana.ana { gap: 12px; }
  #room-play .salon-ana .ana-hud.is-words-only.has-clock {
    grid-template-columns: minmax(0, 1fr) minmax(0, .76fr) 6rem;
    gap: 4px;
  }
  #room-play .salon-ana .ana-hud > p {
    min-height: 62px;
    padding: 8px 5px;
    border-radius: 12px;
  }
  #room-play .salon-ana .ana-hud > .ana-clock { width: 6rem; min-width: 6rem; }
  #room-play .salon-ana :is(.ana-slots, .ana-rack) { gap: 4px; }
  #room-play .salon-ana .ana-rack { padding: 6px; }
  #room-play .salon-ana :is(.ana-tile, .ana-slot, .ana-rack-space) {
    font-size: clamp(1rem, 5vw, 1.65rem);
  }
}


/* Anagrammes already displays an authoritative timer in its solo-style HUD.
   Do not duplicate the heading bar above the multiplayer game. */
#room-play:has(.salon-ana) > .site-block-head { display: none; }
/* All games: never re-order Actions above between-round results. */
#room-current:has(#room-recap:not([hidden])) #room-actions { order: 10; }

/* 16/11/2026 — Mots cachés multiplayer: same restrained square-tile board
   and target-list vocabulary as SOLO, without changing shared Trouve-mots. */
#room-play[data-hunt="1"] {
  --game-surface: #fff;
  background: #fff;
}
#room-play[data-hunt="1"] > .site-block-head {
  background: var(--game-mots-caches-surface, #f3ead8);
  border-color: var(--game-mots-caches-border, #e0d0af);
  border-radius: 14px;
}
#room-play[data-hunt="1"] #room-board.board-search-hunt {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(var(--board-cols, 12), minmax(0, 1fr));
  align-content: start;
  /* Fill the card on desktop, like on mobile. No 34rem maximum. */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: auto;
  gap: 3px;
  margin: 8px auto 10px;
  padding: 6px;
  border: 1px solid #cbb892;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,253,248,.72), transparent 32%), #f4ead8;
  box-shadow: inset 0 1px 0 rgba(255,252,247,.95), 0 10px 22px rgba(16,28,40,.05);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#room-play[data-hunt="1"] #room-board.board-search-hunt .cell {
  display: grid;
  position: relative;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #d4c4ab;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), transparent 48%), #fbf7f0;
  box-shadow: inset 0 -1px 0 rgba(20,32,40,.08), inset 0 1px 0 #fff;
  color: var(--petrol-deep);
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(.64rem, 2.55vw, 1.32rem);
  line-height: 1;
  letter-spacing: 0;
  transition: none;
  touch-action: none;
}
#room-play[data-hunt="1"] #room-board.board-search-hunt .cell.is-found {
  background: linear-gradient(180deg, #d8eee2, #b6d9c6);
  color: #164d39;
  border-color: #6aab8a;
  box-shadow: inset 0 0 0 1px #75b18f, inset 0 -2px 0 #8cbea4;
  font-weight: 800;
}
#room-play[data-hunt="1"] #room-board.board-search-hunt .cell.is-on {
  background: var(--petrol);
  color: #fffdf8;
  border-color: var(--brass);
  box-shadow: inset 0 0 0 2px var(--brass);
}
#room-play[data-hunt="1"] #room-board.board-search-hunt .cell.is-last {
  background: var(--coral);
  color: #fff;
  border-color: #fff8f4;
  box-shadow: 0 0 0 2px var(--coral-deep);
}
#room-play[data-hunt="1"] .room-hunt-words {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 14px;
}
#room-play[data-hunt="1"] .room-hunt-words .search-list-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}
#room-play[data-hunt="1"] .room-hunt-words .search-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#room-play[data-hunt="1"] #room-hunt-list .search-word {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .025em;
}
#room-play[data-hunt="1"] #room-hunt-list .search-word.is-found {
  background: #e7f1ea;
  border-color: #a7ccb8;
}
#room-play[data-hunt="1"] #room-hunt-list .search-word .search-tick {
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--petrol);
  border-radius: 4px;
  font-size: .85rem;
  line-height: 1;
}
#room-play[data-hunt="1"] #room-hunt-list .search-word.is-found .search-tick {
  background: var(--petrol);
  color: var(--ivory);
}
#room-play[data-hunt="1"] #room-hunt-list .search-word.is-found .search-spell {
  color: var(--petrol-deep);
  text-decoration: line-through;
}
#room-play[data-hunt="1"] #room-hunt-list .search-len {
  color: var(--muted);
  font-weight: 650;
  font-size: .8rem;
}
@media (max-width: 480px) {
  #room-play[data-hunt="1"] #room-board.board-search-hunt {
    margin-inline: auto;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
  }
  #room-play[data-hunt="1"] #room-hunt-list .search-word {
    min-height: 33px;
    gap: 4px;
    padding-inline: 6px;
    font-size: .85rem;
  }
}

.room-app .salon-actions > form { display: flex; flex: 1 1 auto; margin: 0; min-width: 0; }

/* Pyramido duel salon: the shared #room-board is a Trouve-mots grid by default; give the pyramid the full block (incident LIVE 21/11). */
#room-play:has(.salon-pyramido) #room-board.board {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: auto;
  touch-action: manipulation;
  overflow: visible;
}
