/* --- Tailles adaptatives -------------------------------------------------
   La largeur d'une carte est calculée sur la largeur de l'écran pour que
   toute la main (8 cartes + la carte piochée = 9) tienne TOUJOURS sur une
   seule ligne, quelle que soit la résolution (téléphone, tablette, PC). */
:root {
  --app-pad: 16px;   /* marge intérieure de #app */
  --hand-gap: 8px;   /* espace entre deux cartes de la main */
  --card-w: min(68px, calc((100vw - 2 * var(--app-pad) - 8 * var(--hand-gap) - 4px) / 9));
  --card-h: calc(var(--card-w) * 1.44); /* ratio d'une carte à jouer */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at top, #2a1a10 0%, #140c07 75%);
  color: #f8fafc;
  height: 100dvh;      /* hauteur réelle de l'écran (barre d'URL mobile comprise) */
  overflow: hidden;    /* la page elle-même ne défile jamais : pas de barre de défilement */
}
/* #app occupe exactement l'écran et empile ses éléments en colonne :
   la main et les boutons restent toujours visibles en bas */
#app {
  height: 100dvh;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--app-pad);
  display: flex;
  flex-direction: column;
}
.hidden { display: none !important; }

/* Panneaux (accueil, salle, fiche de score) : centrés, et défilent en interne
   seulement si leur contenu dépasse l'écran */
.panel {
  background: #2a1a10;
  border: 1px solid #8a6d3b;
  border-radius: 12px;
  padding: 24px;
  margin: auto;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
}
.panel h1 { font-size: 1.6rem; margin-bottom: 6px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.panel p.sub { color: #e8c476; margin-bottom: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type="text"] {
  background: #241209;
  border: 1px solid #8a6d3b;
  color: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
}
button {
  background: #b8860b;
  border: none;
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
}
button:hover { background: #d4af37; }
button:disabled { background: #374151; cursor: not-allowed; }
button.secondary { background: #8a6d3b; }
button.secondary:hover { background: #b08d4a; }
button.danger { background: #b91c1c; }

.code {
  font-size: 2rem;
  letter-spacing: 6px;
  font-weight: 700;
  background: #241209;
  padding: 8px 18px;
  border-radius: 8px;
  display: inline-block;
}

.players-list { list-style: none; margin: 16px 0; }
.players-list li {
  padding: 8px 12px;
  background: #241209;
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: #d4af37; }
.dot.off { background: #6b7280; }

/* Choix public/privé à la création d'une partie (accueil) */
.vis-choice { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 2px; }
.vis-choice label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #241209;
  border: 1px solid #8a6d3b;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}
.vis-choice input { accent-color: #b8860b; }

/* Liste des parties en ligne sur l'accueil */
.games-section { margin-top: 18px; }
.games-section h2 { font-size: 1.05rem; margin-bottom: 10px; }
.games-list { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #241209;
  border: 1px solid #8a6d3b;
  border-radius: 10px;
  padding: 10px 12px;
}
.g-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill.vis-public { background: #14532d; color: #bbf7d0; }
.pill.vis-private { background: #7c2d12; color: #ffedd5; }
.pill.st-open { background: #166534; color: #dcfce7; }
.pill.st-inProgress { background: #1e3a8a; color: #bfdbfe; }
.pill.st-finished { background: #374151; color: #d1d5db; }
.game-item .g-main { flex: 1 1 160px; min-width: 0; }
.game-item .g-title { font-weight: 700; }
.game-item .g-sub { color: #e8c476; font-size: 0.8rem; }
.game-item button { flex: none; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  flex: none;
}
.topbar .info { color: #f3dfae; font-size: 0.95rem; }

/* Le plateau prend tout l'espace vertical restant entre la barre du haut
   et la zone des combinaisons : plus de hauteur fixe, donc plus de débordement */
.board { position: relative; flex: 1 1 auto; min-height: 200px; margin-bottom: 8px; }
.felt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 80%);
  height: min(240px, 68%); /* ne dépasse jamais du plateau, quelle que soit la hauteur d'écran */
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 5px, rgba(0, 0, 0, 0) 5px 10px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 5px, rgba(0, 0, 0, 0) 5px 10px),
    radial-gradient(ellipse at center, #8f1d1d 0%, #641414 75%);
  border: 12px solid #6b4423;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(212, 175, 55, 0.45), inset 0 0 40px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px;
}
.opponent {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(36, 22, 13, 0.94);
  border: 1px solid #8a6d3b;
  border-radius: 10px;
  padding: 5px 8px;
  min-width: 92px;
  max-width: 150px;
  text-align: center;
  z-index: 2;
  font-size: 0.9rem;
}
.opponent .nm { font-size: 0.9rem; }
.opponent .meta { font-size: 0.72rem; }
.opponent.current { outline: 2px solid #facc15; }
.badge.off { background: #6b7280; }
.opponent .nm { font-weight: 600; }
.opponent .meta { font-size: 0.8rem; color: #e8c476; }
.opponent .badge {
  display: inline-block;
  background: #facc15;
  color: #111;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  margin-top: 4px;
}
.opponent.out { opacity: 0.45; text-decoration: line-through; }
.opponent.me { border-color: #d4af37; background: rgba(58, 32, 18, 0.95); }

.pile {
  background: rgba(36, 22, 13, 0.92);
  border: 2px dashed #8a6d3b;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  z-index: 3;
  position: relative;
}
.pile.clickable { border-style: solid; border-color: #facc15; cursor: pointer; }
.pile .count { font-size: 1.2rem; font-weight: 700; }
.deck-stack { position: relative; width: var(--card-w); height: var(--card-h); flex: none; margin: 6px 4px; }
.pile .count { margin-top: 4px; }
.deck-stack .card { position: absolute; inset: 0; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); }
.deck-stack .card:nth-child(2) { transform: translate(4px, -4px); }
.deck-stack .card:nth-child(3) { transform: translate(8px, -8px); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }

/* Zone des combinaisons posées : elle rétrécit quand il y en a beaucoup
   (les cartes passent en mode compact) et ne pousse jamais la main hors écran */
.table-zone {
  width: min(1100px, 96%);
  margin: 6px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 38dvh;
  overflow-y: auto;
  scrollbar-width: none; /* pas de barre de défilement visible */
}
.table-zone::-webkit-scrollbar { display: none; }
.table-player { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; max-width: 100%; }
.table-player-name { width: 100%; text-align: center; color: #e8c476; font-weight: 700; font-size: 0.8rem; }
.table-zone.compact .meld .card { width: calc(var(--card-w) * 0.56); height: calc(var(--card-h) * 0.56); }
.table-zone.compact .meld .card .pip { font-size: calc(var(--card-w) * 0.27); }
.table-zone.compact .meld .card .corner { font-size: calc(var(--card-w) * 0.13); }
.meld {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: none;
  background: rgba(36, 22, 13, 0.88);
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 6px 8px;
}
.meld-cards { display: flex; flex-wrap: nowrap; gap: 4px; }
/* Les cartes des combinaisons suivent la même échelle que la main */
.meld .card { width: calc(var(--card-w) * 0.68); height: calc(var(--card-h) * 0.68); }
.meld .card .pip { font-size: calc(var(--card-w) * 0.33); }
.meld .card .corner { font-size: calc(var(--card-w) * 0.15); }
.meld.leftover { border: 2px dashed #f87171; }
.meld.meld-in { animation: meld-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes meld-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.round-points {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #facc15;
  color: #111;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 1.1rem;
  white-space: nowrap;
  z-index: 5;
}

.me-bar { text-align: center; color: #f3dfae; margin-bottom: 6px; font-weight: 600; }
.turn-timer { font-weight: 700; color: #f3dfae; }
.turn-timer.mini { font-size: 0.85rem; margin-left: 6px; }
.turn-timer.big { display: block; text-align: center; font-size: clamp(1.2rem, 4.5vh, 2.2rem); font-weight: 800; margin: 4px 0 2px; flex: none; }
.turn-timer.low { color: #f87171; animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* Carte à jouer : sa taille dépend de la largeur de l'écran (voir :root) */
.card {
  width: var(--card-w);
  height: var(--card-h);
  background: #fff;
  color: #111827;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  outline: 1px solid rgba(0, 0, 0, 0.18);
  outline-offset: -4px;
  position: relative;
  user-select: none;
  flex: none;
}
.card.red { color: #dc2626; }
.card .corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: calc(var(--card-w) * 0.2);
  font-weight: 700;
  line-height: 1.05;
}
.card .corner.tl { top: 4px; left: 5px; }
.card .corner.br { bottom: 4px; right: 5px; transform: rotate(180deg); }
.card .pip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--card-w) * 0.56);
}
.card.back { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.28) 0 3px, rgba(0, 0, 0, 0) 3px 9px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 0 3px, rgba(0, 0, 0, 0) 3px 9px), #8f1d1d; border: 3px solid #f5efe0; }
.card.selectable { cursor: pointer; }
.card.selected { border: 2px solid #facc15; transform: translateY(calc(var(--card-h) * -0.1)); }
.card.picked { border: 2px solid #d4af37; transform: translateY(calc(var(--card-h) * -0.1)); }
.hand .card.selectable { cursor: grab; }
.card { transition: transform 0.15s ease; }
.fly-card { position: fixed; z-index: 40; pointer-events: none; transform: scale(1.25); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.fly-deal { position: fixed; z-index: 35; pointer-events: none; opacity: 0.95; }
.card.dragging { transition: none; z-index: 30; cursor: grabbing; opacity: 0.95; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55); }
.card.wild { outline: 2px dashed #7c3aed; outline-offset: -3px; }

/* La main ne passe JAMAIS à la ligne (flex-wrap: nowrap) : les cartes
   rétrécissent avec l'écran grâce à --card-w, les 8 cartes restent alignées */
.hand {
  position: relative;
  display: flex;
  flex: none;
  gap: var(--hand-gap);
  flex-wrap: nowrap;
  justify-content: center;
  margin: 8px 0;
}
.hand .card { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hand-points { text-align: center; color: #f3dfae; font-weight: 600; margin-bottom: 4px; flex: none; }

.actionbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; flex: none; }
.stop-hint { color: #f87171; font-size: 0.85rem; align-self: center; }
.status {
  text-align: center;
  color: #f3dfae;
  min-height: 1.4em;
  margin-top: 6px;
  font-weight: 600;
  flex: none;
}

.preview {
  background: #241209;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}
.preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.preview h2, .preview p { width: 100%; margin: 0; }
.preview .meld { margin-bottom: 0; }

/* --- fiche de score : feuille blanche écrite à la main (stylo bleu) --- */
.scores-wrap { overflow-x: auto; padding: 16px 6px; text-align: center; }
.paper {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  background: #fffdf6;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, 0.02) 3px 4px);
  color: #1e40af;
  font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  font-size: clamp(0.85rem, 2.4vw, 1.2rem); /* s'adapte au nombre de joueurs et à l'écran */
  text-align: left;
  padding: 18px 24px;
  border-radius: 3px;
  transform: rotate(-0.6deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.paper table.scores { border-collapse: collapse; margin: 0; }
.paper table.scores th, .paper table.scores td {
  border: none;
  border-bottom: 1.5px solid rgba(30, 64, 175, 0.45);
  padding: 6px 16px;
  text-align: left;
  white-space: nowrap;
}
.paper table.scores th { border-bottom: 2.5px solid rgba(30, 64, 175, 0.8); font-size: 1.05em; }
.paper table.scores th + th, .paper table.scores td + td { border-left: 1.5px solid rgba(30, 64, 175, 0.25); }
.paper table.scores tr:last-child td { border-bottom: 2.5px solid rgba(30, 64, 175, 0.8); }
.paper .ink { display: inline-block; }
/* rachat : points de la manche barrés + croix au stylo rouge, total annoté */
.paper s { text-decoration-thickness: 2.5px; }
.paper .rachat-note { color: #dc2626; font-size: 0.78em; margin-left: 6px; }

/* --- animations des événements (rachat / élimination), jouées une à une --- */
.paper .croix-svg { width: 1em; height: 1em; margin-left: 6px; vertical-align: -0.12em; overflow: visible; }
.paper .croix-svg path {
  stroke: #dc2626;
  stroke-width: 3.2;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
  animation: croix-draw 0.28s ease-out both;
  animation-delay: var(--d, 0ms);
}
.paper .croix-svg path + path { animation-delay: calc(var(--d, 0ms) + 0.2s); }
@keyframes croix-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.paper .rachat-note { animation: pop-in 0.4s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.5) rotate(-6deg); } to { opacity: 1; transform: none; } }
.paper .stamp {
  display: inline-block;
  color: #dc2626;
  border: 2.5px solid #dc2626;
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(-8deg);
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-8deg) scale(2.4); } to { opacity: 0.9; transform: rotate(-8deg) scale(1); } }
.panel p.ev-line { animation: ev-in 0.5s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes ev-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ré-affichage de l'écran sans rejouer les animations */
.no-anim .croix-svg path, .no-anim .rachat-note, .no-anim .stamp, .no-anim p.ev-line { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .paper .croix-svg path, .paper .rachat-note, .paper .stamp, .panel p.ev-line { animation: none !important; }
}

/* Petits écrans (téléphones) : marges et écarts réduits, la taille des cartes
   est recalculée automatiquement via --card-w dans :root */
@media (max-width: 760px) {
  :root { --app-pad: 8px; --hand-gap: 6px; }
  .board { min-height: 150px; }
  .felt { width: 78%; height: min(200px, 68%); border-width: 8px; padding: 8px; gap: 10px; }
  .pile { padding: 8px 10px; min-width: 0; }
  .opponent { min-width: 70px; max-width: 112px; font-size: 0.72rem; padding: 3px 5px; }
  .opponent .nm { font-size: 0.72rem; }
  .opponent .meta { font-size: 0.6rem; }
  .table-zone { gap: 8px; width: 100%; margin: 4px auto; }
  .paper { font-size: clamp(0.7rem, 3.2vw, 1rem); padding: 10px 12px; }
  .paper table.scores th, .paper table.scores td { padding: 4px 8px; }
  .turn-timer.big { font-size: 1.3rem; }
  .chat-panel { right: 8px; bottom: 8px; }
}

/* Écrans très bas (téléphone en paysage) : on compresse encore pour éviter tout débordement */
@media (max-height: 560px) {
  .board { min-height: 110px; }
  .felt { height: min(140px, 62%); width: min(620px, 64%); }
  .table-zone { max-height: 28dvh; }
  .hand { margin: 4px 0; }
  .status { margin-top: 2px; }
}

/* Panneau de chat : FERMÉ, il se réduit au bouton 💬 et laisse passer les clics
   (pointer-events: none) pour ne jamais bloquer les boutons du jeu en dessous,
   notamment « Défausser et arrêter ». OUVERT, tout le panneau capte les clics. */
.chat-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  width: auto;
  max-width: calc(100vw - 24px);
  background: #241209;
  border: 1px solid #8a6d3b;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: none;
}
.chat-panel.open { width: 300px; pointer-events: auto; }
.chat-panel .chat-toggle { pointer-events: auto; }
.chat-toggle { width: 100%; text-align: left; padding: 9px 12px; background: none; border: none; color: #f3dfae; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.chat-toggle:hover { background: rgba(212, 175, 55, 0.18); }
.chat-msgs { max-height: 220px; overflow-y: auto; padding: 6px 12px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #8a6d3b; }
.chat-msg { font-size: 0.85rem; color: #e5e7eb; overflow-wrap: break-word; }
.chat-from { color: #e8c476; font-weight: 600; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #8a6d3b; }
.chat-input { flex: 1; min-width: 0; background: #2a1a10; color: #fff; border: 1px solid #8a6d3b; border-radius: 6px; padding: 6px 8px; }

#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #991b1b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 10;
  pointer-events: none; /* le toast ne bloque jamais les clics */
}

/* Écran modal (ex. « passe le téléphone » en partie locale) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}
.modal-overlay .panel { margin: 0; max-height: 90dvh; }

/* --- thème façon tarot classique --- */
.avatar { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; font-weight: 800; border: 1px solid rgba(255, 255, 255, 0.4); flex: none; }
.opponent .nm { display: flex; align-items: center; justify-content: center; gap: 6px; }
.felt-suits { position: absolute; inset: 0; pointer-events: none; }
.felt-suits span { position: absolute; font-size: 26px; color: rgba(232, 196, 118, 0.4); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.felt-suits span:nth-child(1) { top: 7%; left: 9%; }
.felt-suits span:nth-child(2) { top: 7%; right: 9%; color: rgba(248, 113, 113, 0.5); }
.felt-suits span:nth-child(3) { bottom: 7%; left: 9%; color: rgba(248, 113, 113, 0.5); }
.felt-suits span:nth-child(4) { bottom: 7%; right: 9%; }
.hand .card:hover { transform: translateY(calc(var(--card-h) * -0.08)); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); }
.chat-time { color: #9c8a6a; font-size: 0.7rem; margin-right: 5px; }
.chat-msg .chat-from { font-weight: 700; }

/* barre d'emoji rapides du chat */
.chat-quick { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-top: 1px solid #8a6d3b; }
.chat-quick button { background: none; border: none; font-size: 1.25rem; padding: 3px 5px; cursor: pointer; border-radius: 6px; line-height: 1; }
.chat-quick button:hover { background: rgba(212, 175, 55, 0.18); }
.chat-msg.big { font-size: 1.8rem; }
.chat-msg.big .chat-from, .chat-msg.big .chat-time { font-size: 0.7rem; vertical-align: middle; }
