/* =====================================================================
   Meeting Escape: CARD DUEL, restyled as a corporate chat thread.
   Its own identity (an "after-hours office chat" dark theme), distinct
   from the wedding palette. The meeting is a scrollable message history;
   you reply with excuse cards. Mobile-first. Menus/leaderboard still use
   the shared arcade panel chrome (game.css / c64.css).
   ===================================================================== */
:root{
  --ap-bg:#161b23;         /* thread background            */
  --ap-panel:#1e2530;      /* header / tray                */
  --ap-panel2:#232c39;
  --ap-line:#2c3644;       /* dividers / borders           */
  --ap-ink:#e7edf5;        /* primary text                 */
  --ap-mut:#8a97a8;        /* muted text                   */
  --ap-boss:#2a3543;       /* boss bubble                  */
  --ap-you:#4f7cff;        /* your bubble / brand accent   */
  --ap-you-2:#3b62d6;
  --ap-escape:#38d39a;     /* goal                         */
  --ap-patience:#f5b13f;   /* his patience                 */
  --ap-suspicion:#ef5b6b;  /* suspicion                    */
  /* excuse-type colours (also used for the "parries left" chips) */
  --t-health:#ef5b6b; --t-logistics:#4f7cff; --t-sensory:#a578e6;
  --t-social:#f5b13f; --t-exit:#38d39a;
  --cx-font:'Space Grotesk',system-ui,-apple-system,sans-serif;
}

.cx-scene{ position:absolute; inset:0; display:none; flex-direction:column;
  background:var(--ap-bg); color:var(--ap-ink); font-family:var(--cx-font); overflow:hidden; }
.cx-scene.show{ display:flex; }

/* ---------------- header : channel + ESCAPE goal ---------------- */
.cx-head{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:9px clamp(12px,3.5vw,22px); background:var(--ap-panel);
  border-bottom:1px solid var(--ap-line); }
.cx-head-l{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.cx-channel{ font-weight:700; font-size:clamp(13px,3.6vw,16px); color:var(--ap-ink); letter-spacing:.01em; }
.cx-head-sub{ font-size:11px; color:var(--ap-mut); }
.cx-goal{ flex:0 0 auto; width:min(44%,220px); }
.cx-goal-row{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:3px; }
.cx-goal-lbl{ font-size:9px; letter-spacing:.14em; color:var(--ap-escape); font-weight:700; }
.cx-goal-num{ font-size:13px; font-weight:700; color:var(--ap-ink); }
.cx-goal-bar{ height:8px; border-radius:5px; background:rgba(0,0,0,.35); overflow:hidden; transition:box-shadow .2s; }
.cx-goal-bar > i{ display:block; height:100%; width:0; border-radius:5px;
  background:linear-gradient(90deg,#2aa77a,var(--ap-escape)); transition:width .5s cubic-bezier(.3,1.1,.5,1); }
.cx-goal-bar.bump{ box-shadow:0 0 0 2px rgba(56,211,154,.6),0 0 12px rgba(56,211,154,.5); animation:cxbump .5s; }
@keyframes cxbump{ 30%{ transform:scale(1.04); } }

/* ---------------- status pills + parries ---------------- */
.cx-status{ flex:0 0 auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:7px clamp(12px,3.5vw,22px); background:var(--ap-panel);
  border-bottom:1px solid var(--ap-line); }
.cx-pill{ display:flex; align-items:center; gap:7px; }
.cx-pill-lbl{ font-size:10px; letter-spacing:.04em; color:var(--ap-mut); white-space:nowrap; }
.cx-pbar{ width:74px; height:7px; border-radius:5px; background:rgba(0,0,0,.35); overflow:hidden; transition:box-shadow .15s; }
.cx-pbar > i{ display:block; height:100%; width:100%; border-radius:5px; transition:width .35s ease; }
.cx-patience .cx-pbar > i{ background:var(--ap-patience); }
.cx-patience.low .cx-pbar{ box-shadow:0 0 0 2px rgba(239,91,107,.5); animation:cxlow .5s infinite alternate; }
.cx-patience.low .cx-pbar > i{ background:var(--ap-suspicion); }
.cx-suspicion .cx-pbar > i{ background:var(--ap-suspicion); width:0; }
.cx-suspicion.hit .cx-pbar{ box-shadow:0 0 0 2px rgba(239,91,107,.7); }
@keyframes cxlow{ to{ box-shadow:0 0 8px 1px rgba(239,91,107,.7); } }
.cx-parries{ margin-left:auto; font-size:10px; color:var(--ap-mut); display:flex; align-items:center;
  gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.cx-parries .plabel{ color:var(--ap-mut); }
.cx-parry-chip{ font-size:9px; font-weight:700; letter-spacing:.03em; padding:2px 7px; border-radius:20px;
  color:#0e141c; text-transform:uppercase; }
.cx-parries .none{ color:var(--ap-escape); font-weight:700; }

/* ---------------- the chat thread ---------------- */
.cx-thread{ flex:1 1 auto; overflow-y:auto; overflow-x:hidden; min-height:0;
  padding:14px clamp(10px,3.5vw,22px) 8px; display:flex; flex-direction:column; gap:12px;
  scroll-behavior:smooth; }
.cx-thread::-webkit-scrollbar{ width:6px; }
.cx-thread::-webkit-scrollbar-thumb{ background:var(--ap-line); border-radius:3px; }
.cx-sys{ align-self:center; font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ap-mut); background:var(--ap-panel2); padding:4px 12px; border-radius:20px; margin:2px 0; }

.cx-msg{ display:flex; gap:9px; max-width:88%; align-items:flex-end;
  animation:cxpop .22s ease-out; }
@keyframes cxpop{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.cx-msg--boss{ align-self:flex-start; }
.cx-msg--you{ align-self:flex-end; flex-direction:row-reverse; }
.cx-ava{ flex:0 0 auto; width:30px; height:30px; border-radius:50%; background:linear-gradient(150deg,#5a6b7f,#3a4655);
  color:#fff; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 4px rgba(0,0,0,.35); }
.cx-msg-col{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.cx-msg--you .cx-msg-col{ align-items:flex-end; }
.cx-name{ font-size:10px; color:var(--ap-mut); padding:0 4px; }
.cx-bubble{ padding:10px 14px; border-radius:16px; line-height:1.5; font-size:clamp(14px,3.5vw,16px);
  word-break:break-word; }
.cx-msg--boss .cx-bubble{ background:var(--ap-boss); color:var(--ap-ink); border-bottom-left-radius:5px; }
.cx-msg--boss.alarm .cx-bubble{ background:#5a2b30; color:#ffdfe2; }
.cx-msg--you .cx-bubble{ background:var(--ap-you); color:#fff; border-bottom-right-radius:5px; }
.cx-msg--you.combo .cx-bubble{ background:linear-gradient(140deg,#6a5bd6,var(--ap-you)); }
/* effect tags under a sent excuse */
.cx-tags{ display:flex; gap:6px; padding:0 4px; }
.cx-tag{ font-size:10px; font-weight:700; padding:1px 7px; border-radius:20px; }
.cx-tag--esc{ background:rgba(56,211,154,.18); color:var(--ap-escape); }
.cx-tag--sus{ background:rgba(239,91,107,.18); color:var(--ap-suspicion); }
/* boss parry chip */
.cx-chip{ align-self:flex-start; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:2px 9px; border-radius:20px; margin:0 4px; }
.cx-chip--parry{ background:rgba(239,91,107,.2); color:var(--ap-suspicion); }
.cx-chip--action{ background:rgba(245,177,63,.2); color:var(--ap-patience); }
.cx-chip--bought{ background:rgba(56,211,154,.18); color:var(--ap-escape); }
.cx-chip--streak{ background:rgba(79,124,255,.22); color:#9db4ff; }

/* bullshit streak badge */
.cx-streak{ display:none; font-size:10px; font-weight:800; letter-spacing:.1em;
  padding:3px 9px; border-radius:8px; background:linear-gradient(135deg,#4f7cff,#7a5cff);
  color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.25); }
.cx-streak.show{ display:inline-flex; align-items:center; }
.cx-streak.pop{ animation:cxstreak .45s ease-out; }
@keyframes cxstreak{ 0%{ transform:scale(.85); } 40%{ transform:scale(1.12); } 100%{ transform:scale(1); } }

/* meeting mood (escalating atmosphere) */
.cx-scene.mood-sus{ --ap-bg:#1a1518; --ap-boss:#3a2428; }
.cx-scene.mood-low .cx-channel{ color:var(--ap-suspicion); }
.cx-scene.mood-hot .cx-goal-bar{ box-shadow:0 0 10px rgba(79,124,255,.35); }

/* Greg's notes dossier */
.cx-notes{ position:absolute; top:92px; right:10px; width:min(280px,78vw); max-height:48%;
  display:none; flex-direction:column; z-index:5; background:rgba(20,26,34,.96);
  border:1px solid var(--ap-line); border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.45);
  overflow:hidden; }
.cx-notes.show{ display:flex; }
.cx-notes-h{ flex:0 0 auto; padding:9px 12px; font-size:10px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ap-patience); border-bottom:1px solid var(--ap-line);
  background:var(--ap-panel); }
.cx-notes-body{ flex:1 1 auto; overflow-y:auto; padding:10px 12px; font-size:12px; line-height:1.45; }
.cx-notes-empty{ color:var(--ap-mut); font-size:11px; font-style:italic; }
.cx-notes-block{ margin-bottom:12px; }
.cx-notes-block.dead .cx-notes-subj{ color:var(--ap-suspicion); }
.cx-notes-subj{ font-weight:700; font-size:12px; margin-bottom:4px; color:var(--ap-ink); }
.cx-notes-block ul{ margin:0; padding-left:16px; color:var(--ap-mut); }
.cx-notes-block li{ margin:2px 0; }
.cx-notes-m{ font-size:9px; letter-spacing:.04em; text-transform:uppercase; opacity:.7; }
.cx-mini.on{ color:var(--ap-ink); border-color:var(--ap-you); background:rgba(79,124,255,.15); }

/* Greg's follow-up ask (the sequel prompt, not a multiple-choice menu) */
.cx-follow{ display:none; flex:0 0 auto; flex-direction:column; gap:4px;
  padding:7px clamp(10px,3.5vw,22px); background:#2a2418;
  border-top:1px solid #3d3424; position:relative; z-index:4; pointer-events:none; }
.cx-follow.show{ display:flex; }
.cx-follow-q{ font-size:12px; font-weight:700; letter-spacing:.02em;
  color:var(--ap-patience); font-style:italic; }
.cx-follow-replies{ display:flex; flex-wrap:wrap; gap:7px; }
.cx-reply{ font-family:inherit; font-size:12px; font-weight:600; color:var(--ap-ink);
  background:var(--ap-panel); border:1px solid var(--ap-line); border-radius:10px;
  padding:9px 12px; cursor:pointer; touch-action:manipulation; pointer-events:auto;
  transition:border-color .1s, transform .08s, background .1s; }
.cx-reply:hover{ border-color:var(--ap-you); background:#2a3548; }
.cx-reply:active{ transform:translateY(1px); }
.cx-hand--locked{ opacity:.45; pointer-events:none; filter:grayscale(.25); }
.cx-prev-streak{ font-size:10px; font-weight:800; letter-spacing:.06em; color:#9db4ff;
  margin-right:8px; text-transform:uppercase; }
/* typing indicator */
.cx-typing .cx-bubble{ display:flex; gap:4px; padding:12px 14px; }
.cx-typing .dot{ width:6px; height:6px; border-radius:50%; background:var(--ap-mut); animation:cxdot 1s infinite; }
.cx-typing .dot:nth-child(2){ animation-delay:.15s; } .cx-typing .dot:nth-child(3){ animation-delay:.3s; }
@keyframes cxdot{ 0%,60%,100%{ opacity:.3; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }

/* fx overlay + stamp */
.cx-fx{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.cx-fx .conf{ position:absolute; font-size:14px; animation:cxconf 1.3s ease-out forwards; }
@keyframes cxconf{ from{ opacity:1; transform:translateY(0) rotate(0); } to{ opacity:0; transform:translateY(120px) rotate(240deg); } }
.cx-stamp{ position:absolute; top:42%; left:50%; transform:translate(-50%,-50%) scale(1.4);
  font-family:var(--cx-font); font-weight:800; font-size:clamp(30px,9vw,60px); color:var(--ap-escape);
  text-shadow:0 3px 0 rgba(0,0,0,.4); pointer-events:none; opacity:0; z-index:6; text-align:center; }
.cx-stamp.show{ animation:cxstamp 1.2s ease-out forwards; }
@keyframes cxstamp{ 0%{opacity:0;transform:translate(-50%,-50%) scale(1.5);}
  15%{opacity:1;transform:translate(-50%,-50%) scale(1);} 75%{opacity:1;} 100%{opacity:0;} }
@media (prefers-reduced-motion:reduce){ .cx-stamp.show,.cx-msg,.cx-patience.low .cx-pbar,.cx-streak.pop{ animation:none; }
  .cx-stamp.show{ opacity:1; transform:translate(-50%,-50%); } }

/* ---------------- the card tray ---------------- */
.cx-tray{ flex:0 0 auto; background:var(--ap-panel); border-top:1px solid var(--ap-line);
  padding:8px clamp(10px,3.5vw,22px) max(12px,env(safe-area-inset-bottom)); }
.cx-tray-top{ display:flex; align-items:center; gap:12px; padding:0 2px 8px; }
.cx-combo-line{ flex:1 1 auto; font-size:12px; color:var(--ap-mut); min-height:16px; }
.cx-combo-line .coh{ font-weight:700; font-size:10px; letter-spacing:.05em; padding:2px 8px; border-radius:20px;
  margin-right:8px; text-transform:uppercase; }
.coh--warn{ background:rgba(245,177,63,.2); color:var(--ap-patience); }

/* meeting gimmick (each meeting plays different) */
.cx-gimmick{ font-size:10px; color:var(--ap-patience); letter-spacing:.02em;
  max-width:42%; line-height:1.3; }

/* story board: always-visible memory */
.cx-saga{ flex:0 0 auto; display:flex; align-items:center; gap:8px;
  padding:8px clamp(10px,3.5vw,22px); background:#1a222d;
  border-top:1px solid var(--ap-line); min-height:42px; }
.cx-saga-label{ flex:0 0 auto; font-size:9px; font-weight:800; letter-spacing:.14em;
  color:var(--ap-patience); }
.cx-saga-chips{ display:flex; gap:6px; overflow-x:auto; flex:1 1 auto; padding:2px 0;
  -webkit-overflow-scrolling:touch; }
.cx-saga-chips::-webkit-scrollbar{ height:4px; }
.cx-saga-chips::-webkit-scrollbar-thumb{ background:var(--ap-line); border-radius:3px; }
.cx-saga-empty{ font-size:11px; color:var(--ap-mut); font-style:italic; white-space:nowrap; }
.cx-saga-chip{ flex:0 0 auto; display:inline-flex; align-items:baseline; gap:6px;
  font-family:inherit; font-size:11px; font-weight:700; color:var(--ap-ink);
  background:var(--ap-panel); border:1px solid var(--ap-line); border-radius:999px;
  padding:5px 10px; cursor:pointer; white-space:nowrap; }
.cx-saga-chip em{ font-style:normal; font-weight:500; color:var(--ap-mut); }
.cx-saga-chip.active{ border-color:var(--ap-you); box-shadow:0 0 0 1px var(--ap-you); }
.cx-saga-chip.dead{ color:var(--ap-suspicion); border-color:#5a2b30; }
.cx-saga-chip:disabled{ opacity:.55; cursor:default; }
.cx-saga-chip.in-hand:hover{ border-color:var(--ap-you); }

/* WHO/WHAT state marks on slot cards */
.cx-card--slot.saga{ box-shadow:0 0 0 2px var(--ap-you); }
.cx-card--slot.dead{ background:#f3dfe1; }
.cx-card--slot.filed{ outline:1px dashed #7a8390; }
.cx-card--slot.plot{ /* sequel beat: flag only, do not look selected */ }
.cx-card--slot.rewind{ background:#f3e6d2; }
.cx-slot-flag{ font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ap-you-2); background:rgba(79,124,255,.12); padding:2px 5px; border-radius:6px; }
.cx-card--slot.dead .cx-slot-flag{ color:var(--ap-suspicion); background:rgba(239,91,107,.15); }
.cx-card--slot.plot .cx-slot-flag{ color:#1f9e73; background:rgba(56,211,154,.18); }
.cx-mini{ flex:0 0 auto; font-family:inherit; font-weight:600; font-size:11px; letter-spacing:.02em;
  color:var(--ap-mut); background:var(--ap-panel2); border:1px solid var(--ap-line); border-radius:9px;
  padding:8px 11px; cursor:pointer; transition:color .1s,border-color .1s; white-space:nowrap; }
.cx-mini:hover{ color:var(--ap-ink); border-color:#3a4655; }
.cx-mini:disabled{ opacity:.4; cursor:default; }
.cx-play{ flex:0 0 auto; font-family:inherit; font-weight:700; font-size:14px; letter-spacing:.05em;
  color:#0e141c; background:var(--ap-escape); border:0; border-radius:10px; padding:11px 20px; cursor:pointer;
  box-shadow:0 3px 0 #26936b; transition:transform .05s,filter .1s,opacity .1s; }
.cx-play:disabled{ background:#3a4451; color:#7c8797; box-shadow:0 3px 0 #2a323d; cursor:default; }
.cx-play:not(:disabled):active{ transform:translateY(3px); box-shadow:0 0 0 #26936b; }

.cx-hand{ display:flex; gap:10px; overflow-x:auto; overflow-y:visible; padding:16px 2px 8px;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; }
.cx-hand::-webkit-scrollbar{ height:6px; }
.cx-hand::-webkit-scrollbar-thumb{ background:var(--ap-line); border-radius:3px; }
.cx-card{ flex:0 0 auto; width:clamp(158px,46vw,182px); scroll-snap-align:center;
  background:#f5f2ea; color:#1b2028; border-radius:14px; padding:0 0 10px; cursor:pointer;
  position:relative; text-align:left; overflow:hidden;
  box-shadow:0 4px 10px rgba(0,0,0,.35); transition:transform .13s,box-shadow .13s; }
.cx-card:hover{ transform:translateY(-4px); }
.cx-card.sel{ transform:translateY(-14px); box-shadow:0 0 0 3px var(--ap-you),0 12px 20px rgba(0,0,0,.4); }
.cx-card.disabled{ opacity:.4; pointer-events:none; filter:grayscale(.4); }
.cx-card-strip{ height:26px; display:flex; align-items:center; justify-content:space-between; padding:0 11px;
  color:#0e141c; font-weight:700; }
.cx-card-type{ font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; }
.cx-card-tier{ font-size:9px; letter-spacing:.04em; opacity:.8; }
.cx-card-art{ font-size:30px; line-height:1; text-align:center; padding:9px 0 3px;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.cx-card-body{ padding:5px 12px 0; }
.cx-card-name{ font-weight:700; font-size:15px; line-height:1.2; margin:0 0 6px; color:#171c24; }
.cx-card-line{ font-size:12px; line-height:1.4; color:#4a5462; min-height:50px; }
.cx-card-set{ font-size:9px; letter-spacing:.05em; text-transform:uppercase; font-weight:700; margin-top:6px;
  min-height:11px; }
.cx-card-foot{ display:flex; justify-content:space-between; align-items:center; margin:8px 12px 0; padding-top:7px;
  border-top:1px solid #e2ddd0; font-size:11px; }
.cx-card-foot .esc{ color:#1f9e73; font-weight:700; }
.cx-card-foot .sus{ color:#cf4a58; font-weight:700; }
.cx-card-order{ position:absolute; top:6px; right:6px; width:24px; height:24px; border-radius:50%;
  background:var(--ap-you); color:#fff; font-weight:800; font-size:13px; display:none;
  align-items:center; justify-content:center; box-shadow:0 2px 5px rgba(0,0,0,.4); z-index:2; }
.cx-card.sel .cx-card-order{ display:flex; }
.cx-card.once .cx-card-name::after{ content:' ★'; color:#d99a2a; }

/* type colours on the card strip */
.cx-card[data-t="Health"]    .cx-card-strip{ background:var(--t-health); }
.cx-card[data-t="Logistics"] .cx-card-strip{ background:var(--t-logistics); color:#fff; }
.cx-card[data-t="Sensory"]   .cx-card-strip{ background:var(--t-sensory); color:#fff; }
.cx-card[data-t="Social"]    .cx-card-strip{ background:var(--t-social); }
.cx-card[data-t="Exit"]      .cx-card-strip{ background:var(--t-exit); }

.cx-party-emoji{ font-size:30px; line-height:1; margin-bottom:6px; display:block; }

/* ---- WHO / WHAT / WHERE slot rows (reuse the card face + tokens) ---- */
.cx-hand.cx-hand--slots{ flex-direction:column; align-items:stretch; overflow-x:hidden;
  gap:7px; padding:8px 2px 4px; }
.cx-slotrow{ display:flex; align-items:center; gap:9px; }
.cx-slotlbl{ flex:0 0 52px; font-size:10px; font-weight:700; letter-spacing:.06em; color:var(--ap-mut);
  text-transform:uppercase; text-align:right; }
.cx-slot-opt{ display:block; font-size:8px; font-weight:400; letter-spacing:0; opacity:.7; }
.cx-slotcards{ display:flex; gap:7px; overflow-x:auto; padding:5px 2px; flex:1 1 auto; }
.cx-slotcards::-webkit-scrollbar{ height:5px; }
.cx-slotcards::-webkit-scrollbar-thumb{ background:var(--ap-line); border-radius:3px; }
/* compact card built on the existing .cx-card face */
.cx-card--slot{ width:auto; flex:0 0 auto; display:flex; align-items:center; gap:6px;
  padding:8px 11px; border-radius:11px; box-shadow:0 2px 5px rgba(0,0,0,.3); }
.cx-card--slot:hover{ transform:translateY(-2px); }
.cx-card--slot.sel{ transform:translateY(-3px); box-shadow:0 0 0 2.5px var(--ap-you),0 6px 12px rgba(0,0,0,.35); }
.cx-slot-txt{ font-size:13px; font-weight:600; color:#1b2028; white-space:nowrap; }
.cx-slot-type{ font-size:8px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:#0e141c; padding:2px 6px; border-radius:7px; }
.cx-slot-num{ font-size:11px; font-weight:700; color:#1f9e73; }
.cx-slot-num i{ color:#cf4a58; font-style:normal; }

/* preview line (reuses the old combo-line slot) */
.cx-prev-s{ font-style:italic; color:var(--ap-ink); margin:0 8px; }
.cx-prev-n{ font-weight:700; color:var(--ap-escape); white-space:nowrap; }

/* doom line (in the freed parries slot) */
.cx-doom{ color:var(--ap-suspicion); font-weight:700; }
.cx-doom--calm{ color:var(--ap-mut); font-weight:400; }

/* end-screen profile receipt (canvas PNG of Greg's notes) */
.cx-profile{ text-align:center; margin:2px auto 10px; width:100%; max-width:340px; line-height:1.45; }
.cx-receipt{ margin:0 auto 6px; position:relative; }
.cx-receipt--wait{ padding:28px 12px; background:rgba(0,0,0,.22); border:2px dashed rgba(196,163,90,.45); }
.cx-receipt-wait{ font-size:8px; color:var(--arcade-gold); letter-spacing:.08em; }
.cx-receipt-img{ display:block; width:100%; height:auto; border:3px solid rgba(0,0,0,.35);
  box-shadow:5px 5px 0 rgba(0,0,0,.28); image-rendering:auto; }
.cx-receipt-dl{ display:inline-block; margin-top:6px; font-size:7px; color:var(--sage); text-decoration:underline;
  cursor:pointer; background:none; border:0; font-family:inherit; letter-spacing:.04em; }
.cx-receipt-dl:hover{ color:var(--arcade-gold); }
/* text fallback if canvas fails */
.cx-profile-file{ list-style:none; margin:0 0 8px; padding:0; display:flex; flex-direction:column; gap:4px; text-align:left; }
.cx-profile-file li{ font-size:10px; color:var(--arcade-ink); display:flex; flex-direction:column; gap:2px;
  background:rgba(0,0,0,.22); padding:6px 8px; }
.cx-profile-file .who{ font-weight:400; }
.cx-profile-file .beats{ font-size:8px; color:var(--sage); line-height:1.5; }
.cx-profile-file .dead .who{ color:#e88; }
.cx-profile-file .more{ background:transparent; padding:0 8px; font-size:8px; color:var(--arcade-gold); }
.cx-profile-f{ font-size:9px; color:var(--arcade-ink); font-style:italic; margin-top:4px; line-height:1.5; text-align:left; }
.cx-name-hint{ font-size:7px; color:var(--sage); margin:8px 0 0; line-height:1.6; }
.cx-outcomes{ display:flex; flex-wrap:wrap; gap:5px; justify-content:center; margin:6px 0 10px; }
.cx-outcome{ font-size:7px; letter-spacing:.04em; padding:3px 7px; border-radius:10px; background:rgba(0,0,0,.25); color:var(--sage); }
.cx-outcome--escaped{ color:#8fd6a8; }
.cx-outcome--actionitem{ color:var(--arcade-gold); }
.cx-outcome--busted{ color:#e88; }
.cx-victory{ font-size:10px; color:var(--arcade-gold); line-height:1.6; }

/* deckbuilding draft cards (reuse the light card face on the arcade panel) */
.cx-draft-cards{ display:flex; flex-direction:column; gap:10px; width:100%; max-width:340px; margin:4px 0 6px; }
.cx-draft-card{ display:flex; flex-direction:column; gap:3px; text-align:left; width:100%;
  background:#f5f2ea; color:#1b2028; border:0; border-radius:12px; padding:11px 13px; cursor:pointer;
  box-shadow:0 3px 8px rgba(0,0,0,.35); transition:transform .1s,box-shadow .1s; }
.cx-draft-card:hover{ transform:translateY(-2px); box-shadow:0 0 0 2px var(--ap-you),0 8px 14px rgba(0,0,0,.4); }
.cx-draft-kind{ font-size:8px; font-weight:700; letter-spacing:.1em; color:#7a8390; }
.cx-draft-name{ font-size:15px; font-weight:700; color:#171c24; }
.cx-draft-sub{ font-size:10px; color:#4a5462; }
.cx-draft-sub .cx-slot-type{ margin-right:4px; }

@media (max-width:520px){
  .cx-goal{ width:min(50%,180px); }
  .cx-parries{ width:100%; justify-content:flex-start; margin-left:0; }
  .cx-gimmick{ max-width:100%; }
  .cx-notes{ top:110px; right:6px; left:6px; width:auto; max-height:42%; }
  .cx-tray-top{ flex-wrap:wrap; }
  .cx-combo-line{ flex:1 1 100%; order:-1; }
}

/* Start panel: Meeting Escape only (do not change shared game.css).
   Keep CLOCK IN / party select above the fold and clickable. */
.game-meeting-escape .panel{
  justify-content:safe center;
  touch-action:pan-y;
}
.game-meeting-escape #wrap .btn{ position:relative; z-index:2; }
.game-meeting-escape .side-card{
  font:inherit; color:inherit; text-align:center;
  appearance:none; -webkit-appearance:none;
}
.game-meeting-escape .side-row.need-side .side-card{
  animation:me-needside .35s ease-in-out 0s 2; border-color:var(--arcade-gold);
}
@keyframes me-needside{ 50%{ transform:translateX(4px); } }
@media (prefers-reduced-motion:reduce){
  .game-meeting-escape .side-row.need-side .side-card{ animation:none; }
}
.game-meeting-escape .small-note{ pointer-events:none; }
.game-meeting-escape .unsaved-host{
  pointer-events:none; position:relative; z-index:3;
}
.game-meeting-escape .unsaved-host .unsaved-banner,
.game-meeting-escape .unsaved-host button{ pointer-events:all; }
