/* The evening chat of My matches [V] DESIGN.md « The evening chat » · DECISIONS C66 — decided pieces only, consolidated from the round mocks
   (_mc1.css + _mc2.css + _mc3.css): « Le volet » (MC-8 2: a live dock, a side sheet / bottom sheet), look B « Le direct » (MC-9, dark, dense, one line
   a message, crests, names in colour, the pot as bars), a goal as « Le tableau » (MC-10 1b), a line that stands out on « Le fond » (MC-11 2a, never a
   left stripe), replies (MC-Q9). Round 4's states (MC-12…MC-26) are PROVISIONAL: .mc-muted, .mc-conn, .mc-end variants, the owner's reports.
   Page-local classes `mc-` (promote to ds.css when a second page needs them). */
.mc{--mc-fg:var(--on-dark);--mc-fg2:var(--on-dark-2);--mc-fg3:var(--on-dark-3);--mc-tile:rgba(255,255,255,.05);--mc-tile2:rgba(255,255,255,.09);
  --mc-field:rgba(255,255,255,.07);--mc-panel:#1b1c1d;display:flex;flex-direction:column;flex:1;min-height:0;height:100%;color:var(--mc-fg);font-family:var(--font);
  position:relative;container-type:inline-size}
.mc *{box-sizing:border-box}
.mc .i{width:20px;height:20px}
.mc-short{display:none}
@container (max-width:419.98px){.mc-title .mc-long{display:none}.mc-title .mc-short{display:inline}}
@container (max-width:379.98px){.mc-long{display:none}.mc-short{display:inline}.mc-title{font-size:18px}.mc-pred__q{font-size:15px}.mc-quick .mc-shop span{display:none}.mc-quick button{min-width:40px}}
/* head */
.mc-head{display:grid;gap:10px;padding:0 0 12px;flex:none}
.mc-head__row{display:flex;align-items:center;gap:10px;min-width:0}
.mc-title{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;font-size:22px;line-height:1.2;font-weight:500;letter-spacing:-.025em}
.mc-title .live-dot{flex:none}
.mc-here{font-size:14px;font-weight:450;color:var(--mc-fg2);white-space:nowrap}
.mc-pts{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:36px;min-width:44px;padding:0 12px;border:0;border-radius:18px;background:var(--mc-tile2);
  color:var(--mc-fg);font:500 15px/1 var(--font);letter-spacing:.015em;cursor:pointer;white-space:nowrap}
.mc-pts .i{width:18px;height:18px}
.mc-pts small{font-size:12px;font-weight:400;color:var(--mc-fg2);letter-spacing:0}
.mc .seg{width:100%;--seg-track:rgba(255,255,255,.08)}
.mc .seg__opt{flex:1;min-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-dark-2)}
.mc .seg__opt.is-active{background:rgba(255,255,255,.16);color:#fff}
.mc-close{flex:none}
.mc .btn-circle--glass{background:rgba(255,255,255,.12);color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.mc .btn-circle--glass .i{color:#fff}
/* bonus + prediction, pinned above the feed */
.mc-pin{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;flex:none;padding-bottom:10px}
.mc-pin > *,.mc-comp > *{min-width:0}
.mc-pin:empty{display:none}
.mc-bonus{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:var(--mc-tile)}
.mc-bonus b{font-weight:500}
.mc-bonus span{flex:1;min-width:0;font-size:15px;line-height:1.25;color:var(--mc-fg2)}
.mc-bonus.is-ready{background:rgba(87,196,120,.18);color:#fff}
.mc-bonus.is-ready span{color:inherit}
.mc.is-short .mc-bonus:not(.is-ready){display:none}
.mc-predbar{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:6px 8px 6px 12px;border:0;border-radius:16px;background:var(--mc-tile);color:var(--mc-fg);
  font:450 15px/1.25 var(--font);text-align:left;cursor:pointer}
.mc-predbar > span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-predbar b{font-weight:500}
.mc-predbar small{flex:none;font-size:12px;color:var(--mc-fg2)}
.mc-predbar .btn{flex:none;pointer-events:none}
.mc-pred{padding:12px;border-radius:16px;background:var(--mc-tile)}
.mc-pred__top{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--mc-fg2)}
.mc-pred__top .mc-tag{margin-right:auto}
.mc-pred__fold{border:0;background:none;color:var(--mc-fg2);font:inherit;padding:4px;cursor:pointer;text-decoration:underline}
.mc-pred__q{margin:6px 0 10px;font-size:16px;line-height:1.25;font-weight:500;letter-spacing:-.015em}
.mc-pred__opts{display:grid;grid-template-columns:1fr;gap:4px}
.mc-pred__opt{position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto auto;justify-items:start;align-items:center;gap:10px;
  min-height:40px;padding:0 12px;border:0;border-radius:12px;color:var(--mc-fg);font:500 14px/1.15 var(--font);cursor:pointer;text-align:left;
  background:linear-gradient(90deg,rgba(255,255,255,.14) var(--share),rgba(255,255,255,.05) var(--share))}
.mc-pred__opt small{font-size:12px;font-weight:400;color:var(--mc-fg2)}
.mc-pred__pc{font-size:13px;color:var(--on-dark-2)}
.mc-pred__opt.is-mine{box-shadow:inset 0 0 0 1.5px #fff}
.mc-pred__opt:disabled{cursor:default}
.mc-pred__stakes{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;color:var(--mc-fg2)}
.mc-pred__stakes button{min-width:52px;height:36px;border:0;border-radius:18px;background:var(--mc-tile2);color:var(--mc-fg);font:500 14px/1 var(--font);cursor:pointer}
.mc-pred__stakes button.is-on{background:var(--mc-fg);color:var(--ink)}
.mc-pred__foot{margin-top:8px;font-size:13px;color:var(--mc-fg2)}
/* feed: one line a message */
.mc-feed{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:0 6px;list-style:none;display:flex;flex-direction:column;gap:0;scrollbar-width:thin}
.mc-feed::before{content:'';flex:1}
/* MC-27 1b: messages 16 px, line 1.45 — the same on PC and iPhone; MC-28 2b: the time each was sent in a column of its own, before « ⋯ » */
.mc-msg{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 28px;gap:0 6px;align-items:baseline;padding:3px 0 3px 4px;border-radius:8px}
.mc-msg.is-new,.mc-sys.is-new{animation:mc-in .35s var(--ease) both}
@keyframes mc-in{from{opacity:0;transform:translateY(8px)}}
.mc-msg__b{min-width:0;font-size:16px;line-height:1.45;letter-spacing:-.005em;overflow-wrap:anywhere}
.mc-msg__who{font-size:16px;font-weight:500;color:var(--name,#fff);margin:0 0 0 2px}
.mc-msg__sep{color:var(--on-dark-3)}
.mc-msg__txt{font-size:16px;color:var(--on-dark)}
.mc-msg__you{margin-left:4px;font-size:13px;color:var(--on-dark-3)}
.mc-msg__badge{display:inline-block;vertical-align:1px;padding:1px 6px;border-radius:6px;background:var(--mc-tile2);font-size:12px;font-weight:500;letter-spacing:.02em;color:var(--mc-fg2)}
.mc-msg__more{align-self:start;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:16px;background:transparent;color:var(--mc-fg3);cursor:pointer;padding:0;opacity:.55}
.mc-msg__more .i{width:18px;height:18px}
.mc-msg__more:hover,.mc-msg__more:focus-visible{background:var(--mc-tile2);color:var(--mc-fg);opacity:1}
/* the time a message was sent — 24 h « 21:14 », grey, tabular figures (DESIGN.md §7 Time) */
.mc-at{font-size:13px;font-weight:400;line-height:1.45;color:var(--on-dark-3);font-variant-numeric:tabular-nums;letter-spacing:.01em;white-space:nowrap}
.mc-msg.is-hidden .mc-msg__txt{color:var(--mc-fg3);font-style:italic}
.mc-tag{display:inline-flex;align-items:center;gap:1px;vertical-align:-3px;margin-right:4px;padding:1px 3px;white-space:nowrap;font-size:11px;font-weight:500;color:var(--mc-fg2)}
.mc-tag img{width:18px;height:18px;object-fit:contain}
/* a reply: the line it answers, one short grey line above */
.mc-re{display:block;margin:0 0 1px;font-size:13px;line-height:1.35;color:var(--on-dark-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-re b{font-weight:500;color:var(--on-dark-2)}
/* a line that stands out — « Le fond »: the whole line on a lighter ground, its word in a soft pill (never a left stripe) */
.mc-msg.is-hi,.mc-msg.is-tome{margin:3px 0;padding:7px 4px 7px 10px;border-radius:12px;background:rgba(255,255,255,.1)}
.mc-flag{display:inline-flex;align-items:center;gap:4px;vertical-align:1px;margin-right:6px;height:22px;padding:0 7px;border-radius:6px;font-size:12px;font-weight:500;
  letter-spacing:.02em;white-space:nowrap;background:rgba(255,255,255,.14);color:#fff}
.mc-flag .i{width:12px;height:12px}
.mc-msg.is-hi-set .mc-flag .i{color:var(--set-tone)}   /* the Set Pass's highlight [V] C75: the star in the Set's tone */
/* a moment — « Le tableau »: crests and the new score large, the minute and the player under it, the reactions */
.mc-sys{display:block;margin:8px 0;padding:12px 10px 10px;border-radius:16px;background:rgba(255,255,255,.07);text-align:center}
.mc-sys__row{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:6px}
.mc-sys__ico{flex:none;width:24px;height:24px;display:grid;place-items:center}
.mc-sys__ico .i{width:16px;height:16px}
.mc-sys__t{min-width:0;font-size:15px;line-height:1.3;color:var(--on-dark-2)}
.mc-sys__t b{font-weight:500;color:#fff}
.mc-sys__sc{grid-column:1 / -1;grid-row:1;justify-self:center;display:inline-flex;align-items:center;gap:10px;font-size:28px;font-weight:450;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.mc-sys__sc img{width:28px;height:28px;object-fit:contain}
.mc-sys__sc.is-pair{font-size:15px}
/* MC-29 3a: the assist inside its goal's scoreboard, under the scorer; brought later by an edit, it slides in */
.mc-sys__ast{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:2px;font-size:15px;line-height:1.3;color:var(--on-dark-2)}
.mc-sys__ast b{font-weight:500;color:#fff}
.mc-sys__ast.is-new{animation:mc-in .35s var(--ease) both}
.mc-sys__sc.is-pair .mc-tag{margin:0}
.mc-sys__rx{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin-top:6px}
.mc-rx{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 7px;border:0;border-radius:15px;background:var(--mc-tile2);color:var(--mc-fg);font:500 12px/1 var(--font);cursor:pointer}
.mc-rx.is-mine{box-shadow:inset 0 0 0 1.5px var(--mc-fg)}
.mc-end{margin:8px 0 2px;text-align:center;font-size:12px;line-height:1.3;color:var(--mc-fg3);list-style:none}
.mc-end.is-first{margin:0 0 8px}
.mc-feed:has(.is-closed)::before{display:none}
.mc .seg[hidden],.mc-here[hidden]{display:none}
.mc-panel .seg__opt{padding-inline:8px}
.mc-end.is-closed{margin:auto 0;padding:24px 8px;font-size:15px;line-height:1.4;color:var(--mc-fg2)}
.mc-end.is-closed b{display:block;margin-bottom:4px;font-size:18px;font-weight:500;color:#fff}
/* composer */
.mc-comp{flex:none;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-top:10px}
.mc-comp[hidden],.mc-quick[hidden],.mc-about[hidden],.mc-field[hidden],.mc-muted[hidden]{display:none}
.mc-quick{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.mc-quick button{flex:none;min-width:44px;height:32px;border:0;border-radius:8px;background:var(--mc-tile2);color:var(--mc-fg);font:16px/1 var(--font);cursor:pointer}
.mc-quick .mc-shop{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:0 12px;font:500 14px/1 var(--font)}
.mc-quick .mc-shop .i{width:18px;height:18px}
/* with the Set Pass's own reactions after the four (C75) the row can be longer than the sheet: the reactions slide under « Points », which stays in reach */
.mc-quick .mc-shop{position:sticky;right:0;background:#292a2b;box-shadow:-10px 0 8px -2px #141516}
.mc-field{display:flex;align-items:center;gap:6px;min-height:48px;padding:4px 4px 4px 14px;border-radius:12px;background:var(--mc-field)}
.mc-field input{flex:1;min-width:0;height:40px;border:0;background:transparent;color:var(--mc-fg);font:450 16px/1.25 var(--font);letter-spacing:-.015em;outline:none}
.mc-field input::placeholder{color:var(--mc-fg3)}
.mc-count{font-size:12px;color:var(--mc-fg3)}
.mc-count.is-near{color:var(--state-risk)}
.mc-send{flex:none;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:20px;background:#fff;color:var(--ink);cursor:pointer;font:500 14px/1 var(--font)}
.mc-send:disabled{opacity:.45;cursor:default}
.mc-muted{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:12px;background:var(--mc-field);font-size:14px;line-height:1.3;color:var(--mc-fg2)}
.mc-about{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mc-fg2);min-height:20px}
.mc-about button{border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;padding:4px}
.mc-about.is-hint{color:var(--mc-fg)}
/* menus + panels inside the chat */
.mc-menu{position:absolute;z-index:5;right:8px;min-width:220px;padding:6px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:var(--shadow-menu)}
.mc-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;color:inherit;font:450 15px/1.2 var(--font);text-align:left;cursor:pointer}
.mc-menu button:hover,.mc-menu button:focus-visible{background:var(--muted)}
.mc-menu button.is-danger{color:var(--red-text)}
.mc-menu small{display:block;padding:6px 12px 4px;font-size:12px;color:var(--ink-muted)}
.mc-panel{position:absolute;z-index:4;inset:0;display:flex;flex-direction:column;background:var(--mc-panel);border-radius:inherit;padding:inherit;animation:mc-up .3s var(--ease) both}
@keyframes mc-up{from{opacity:0;transform:translateY(12px)}}
.mc-panel__head{display:flex;align-items:center;gap:10px;padding-bottom:12px}
.mc-panel__head .mc-title{flex:1}
.mc-panel__body{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding-bottom:6px}
.mc-bal{display:flex;align-items:baseline;gap:8px;padding:14px 16px;border-radius:16px;background:var(--mc-tile)}
.mc-bal b{font-size:42px;line-height:1.1;font-weight:400;letter-spacing:.015em}
.mc-bal span{font-size:14px;color:var(--mc-fg2)}
.mc-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:12px 14px;border-radius:16px;background:var(--mc-tile)}
.mc-item b{font-weight:500;font-size:16px}
.mc-item p{margin:0;grid-column:1;font-size:13px;line-height:1.3;color:var(--mc-fg2)}
.mc-item > .btn{grid-column:2;grid-row:1 / span 2}
.mc-swatches{display:flex;gap:6px;grid-column:1}
.mc-swatches button{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none;display:grid;place-items:center;cursor:pointer}
.mc-swatches button i{width:18px;height:18px;border-radius:50%;display:block}
.mc-swatches button[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px #fff}
.mc-rank{display:grid;grid-template-columns:28px 28px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:48px;padding:6px 12px;border-radius:14px;background:var(--mc-tile)}
.mc-rank.is-me{background:var(--mc-tile2);box-shadow:inset 0 0 0 1.5px var(--mc-fg)}
.mc-rank > span:first-child{font-size:15px;font-weight:500;text-align:center}
.mc-rank img,.mc-rank .mc-av{width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--mc-tile2)}
.mc-rank b{font-weight:500;font-size:15px;letter-spacing:.015em}
.mc-earn{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 14px;border-radius:14px;background:var(--mc-tile);font-size:14px;line-height:1.3}
.mc-earn b{font-weight:500;white-space:nowrap}
/* the way into the Set Pass [V] C75 SP-Q6: the same row, as a button, a chevron at its end */
.mc-earn--go{grid-template-columns:28px minmax(0,1fr) auto 18px;width:100%;min-height:44px;border:0;color:var(--mc-fg);font-family:var(--font);text-align:left;cursor:pointer}
.mc-earn--go .i:last-child{width:18px;height:18px;color:var(--mc-fg2)}
.mc-earn--go:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mc-note{margin:0;font-size:12px;line-height:1.35;color:var(--mc-fg3)}
.mc-report{display:grid;gap:8px;padding:12px 14px;border-radius:16px;background:var(--mc-tile)}
.mc-report p{margin:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.mc-report small{font-size:12px;color:var(--mc-fg2)}
.mc-report div{display:flex;flex-wrap:wrap;gap:6px}
/* a celebration sent to the room */
.mc-celeb{position:fixed;z-index:90;left:50%;top:38%;transform:translate(-50%,-50%);pointer-events:none;display:grid;justify-items:center;gap:6px;
  padding:18px 28px;border-radius:24px;background:rgba(18,19,20,.82);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:#fff;text-align:center;
  animation:mc-celeb 2.6s var(--ease) both}
.mc-celeb b{font-size:44px;line-height:1;font-weight:500;letter-spacing:-.02em}
.mc-celeb span{font-size:14px;color:var(--on-dark-2)}
@keyframes mc-celeb{0%{opacity:0;transform:translate(-50%,-40%) scale(.9)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-58%)}}
@media (prefers-reduced-motion:reduce){.mc-msg.is-new,.mc-sys.is-new,.mc-sys__ast.is-new,.mc-panel,.mc-celeb{animation:none}.mc-sheet{transition:none}}

/* touch: every control of the chat reaches 44 px without changing its look (ds.css's rule for .btn / .btn-circle / .seg__opt, applied to the chat's own) */
@media (pointer:coarse){
  :is(.mc-msg__more,.mc-rx,.mc-send,.mc-swatches button,.mc-pred__fold,.mc-quick button,.mc-pred__stakes button,.mc-about button,.mc-pts){position:relative}
  :is(.mc-msg__more,.mc-rx,.mc-send,.mc-swatches button,.mc-pred__fold,.mc-quick button,.mc-pred__stakes button,.mc-about button,.mc-pts)::before{content:"";position:absolute;
    left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
}

/* « Le volet »: a live dock at the window's corner (PC) / above the tab bar (iPhone), opening a side sheet (PC) / a bottom sheet (iPhone) */
.mc-dock{position:fixed;z-index:70;right:24px;bottom:24px;width:380px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;
  padding:12px 12px 12px 16px;border:0;border-radius:20px;background:rgba(24,25,26,.92);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:#fff;
  box-shadow:0 12px 40px rgba(0,0,0,.28);cursor:pointer;text-align:left;font-family:var(--font)}
.mc-dock[hidden]{display:none}
.mc-dock__t{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500;min-width:0}
.mc-dock__t small{font-size:13px;font-weight:400;color:var(--on-dark-2);white-space:nowrap}
.mc-dock__last{grid-column:1;display:flex;align-items:center;gap:6px;min-width:0;font-size:15px;color:var(--on-dark-2)}
.mc-dock__last img{width:20px;height:20px;border-radius:50%;flex:none;object-fit:cover}
.mc-dock__last span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-dock__last b{color:#fff;font-weight:500}
.mc-dock__side{grid-column:2;grid-row:1 / span 2;display:grid;justify-items:end;gap:6px}
.mc-dock__pill{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:13px;background:rgba(255,255,255,.12);font-size:12px;font-weight:500;white-space:nowrap}
.mc-dock__pill.is-ready{background:var(--state-claim);color:#fff}
.mc-dock__pill .i{width:14px;height:14px}
.mc-sheet{position:fixed;z-index:80;top:10px;right:10px;bottom:10px;width:360px;padding:24px 24px 20px;border-radius:32px;background:#141516;box-shadow:0 20px 60px rgba(0,0,0,.45);
  display:flex;flex-direction:column;transform:translateX(calc(100% + 20px));transition:transform .38s var(--ease);visibility:hidden}
.mc-sheet.is-open{transform:none;visibility:visible}
.mc-sheet.is-dragging{transition:none}
.mc-sheet__grab{display:none}
@media (min-width:1800px){.mc-sheet{width:440px}html.mc-open .main{padding-right:452px}.main{transition:padding-right .38s var(--ease)}}
@media (max-width:599.98px){
  .mc-title{font-size:20px}
  .mc-dock{left:12px;right:12px;width:auto;bottom:calc(var(--sab,0px) + 80px);padding:10px 12px 10px 14px;border-radius:18px}
  .mc-sheet{top:auto;left:0;right:0;bottom:0;width:auto;height:92dvh;padding:10px 16px calc(var(--sab,0px) + 12px);border-radius:28px 28px 0 0;transform:translateY(100%)}
  .mc-sheet.is-open{transform:none}
  .mc-sheet__grab{display:block;width:40px;height:5px;margin:0 auto 10px;border-radius:3px;background:rgba(255,255,255,.25);flex:none}
  html.mc-on .p-body{padding-bottom:96px}
  .mc-panel{padding:10px 0 0}
}
