/* RiconTop Footy match chat */
.rtc-btn { position:fixed; right:16px; bottom:max(16px, env(safe-area-inset-bottom)); z-index:50;
  display:flex; align-items:center; gap:8px; padding:12px 16px; border:none; border-radius:999px;
  background:var(--brand, #1F3A93); color:#fff; font:600 .95rem -apple-system,system-ui,sans-serif;
  box-shadow:0 6px 20px rgba(17,24,39,.22); cursor:pointer; }
.rtc-btn .rtc-unread { background:#dc2626; border-radius:999px; min-width:20px; height:20px; padding:0 6px;
  font-size:.72rem; line-height:20px; text-align:center; }
.rtc-btn .rtc-unread:empty { display:none; }

.rtc-panel { position:fixed; z-index:60; display:none; flex-direction:column; background:#fff;
  border:1px solid var(--line, #e5e7eb); box-shadow:0 10px 40px rgba(17,24,39,.18);
  font-family:-apple-system,system-ui,"Segoe UI",Roboto,sans-serif; color:var(--ink, #111827); }
.rtc-panel.open { display:flex; }
/* phones: slide-up sheet */
.rtc-panel { left:0; right:0; bottom:0; height:72vh; border-radius:16px 16px 0 0; }
/* wider screens: panel on the right */
@media (min-width: 760px) {
  .rtc-panel { left:auto; right:16px; bottom:16px; width:380px; height:min(620px, calc(100vh - 32px)); border-radius:14px; }
}

.rtc-head { display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--line, #e5e7eb); }
.rtc-head b { font-size:1rem; }
.rtc-head .rtc-me { margin-left:auto; font-size:.8rem; color:var(--muted, #6b7280); }
.rtc-head .rtc-me a { color:var(--brand, #1F3A93); cursor:pointer; text-decoration:underline; }
.rtc-close { border:none; background:none; font-size:1.4rem; line-height:1; color:var(--muted, #6b7280); cursor:pointer; padding:0 2px; }

.rtc-list { flex:1; overflow-y:auto; padding:10px 14px; -webkit-overflow-scrolling:touch; }
.rtc-msg { margin:0 0 8px; font-size:.92rem; line-height:1.35; word-wrap:break-word; }
.rtc-msg .u { font-weight:700; margin-right:6px; }
.rtc-msg .t { color:var(--muted, #6b7280); font-size:.7rem; margin-left:6px; }
.rtc-msg.mine .u { color:var(--brand, #1F3A93); }
.rtc-msg.bot { background:#fff8e6; border:1px solid #f5d98b; border-radius:8px; padding:6px 9px; font-size:.85rem; }
.rtc-msg.bot .u { color:#8a5a00; }
.rtc-msg .x { margin-left:6px; font-size:.7rem; color:#dc2626; cursor:pointer; text-decoration:underline; }
.rtc-empty { color:var(--muted, #6b7280); font-size:.9rem; text-align:center; margin-top:30px; }

.rtc-foot { border-top:1px solid var(--line, #e5e7eb); padding:10px 12px max(10px, env(safe-area-inset-bottom)); }
.rtc-form { display:flex; gap:8px; }
.rtc-form input { flex:1; min-width:0; font:inherit; font-size:16px; padding:10px 12px; border:1px solid var(--line, #e5e7eb);
  border-radius:10px; outline:none; }
.rtc-form input:focus { border-color:var(--brand, #1F3A93); }
.rtc-form button { border:none; border-radius:10px; padding:0 14px; background:var(--brand, #1F3A93); color:#fff;
  font:600 .9rem inherit; cursor:pointer; }
.rtc-form button:disabled { opacity:.5; }
.rtc-note { font-size:.8rem; margin-top:6px; min-height:1em; color:var(--muted, #6b7280); }
.rtc-note.err { color:#b91c1c; }
.rtc-hint { font-size:.85rem; color:var(--muted, #6b7280); margin:0 0 8px; }
.rtc-agree { display:block; font-size:.8rem; color:var(--muted, #6b7280); margin:0 0 8px; line-height:1.4; }
.rtc-agree input { vertical-align:-2px; margin-right:4px; }
.rtc-agree a { color:var(--brand, #1F3A93); }
.rtc-msg .x.rep { color:var(--muted, #6b7280); }

.rtc-ic { width:1.1em; height:1.1em; vertical-align:-.18em; margin-right:4px; }
