/* Midlads demo. Same design language as Gaymes: premium dark, rainbow accents. Nothing animates or flashes. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(../fonts/fredoka-latin-wght.woff2) format("woff2"); }

:root {
  --bg: #0D0A1A;
  --surface: #17122B;
  --surface-raised: #221A3D;
  --surface-high: #2D2550;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #FFFFFF;
  --text-secondary: #C9C2E0;
  --text-muted: #8F87AD;
  --r1: #FF4D5E; --r2: #FF8A3D; --r3: #FFD23F; --r4: #36D98A; --r5: #3FA7FF; --r6: #A46BFF;
  --pink: #FF4FA8;
  --accent: #7B3FF2;
  --accent-hover: #6D35E0;
  --me-bubble: #3A2475;
  --success: #36D98A;
  --warning: #FFB86B;
  --danger: #FF6B7A;
  --gold: #F2C14E;
  --silver: #C7CCD8;
  --font-display: "Fredoka", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;
  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--r5); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; margin: 0; }
p { margin: 0; }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
:focus-visible { outline: 3px solid var(--r3); outline-offset: 2px; border-radius: 6px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }

.demo-bar { position: sticky; top: 0; z-index: 50; height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; font-size: 13px; color: #1a1030; background: var(--r3); font-weight: 600; text-align: center; }
.demo-bar a { color: #1a1030; font-weight: 750; }
.rainbow-rule { height: 4px; background: var(--rainbow); }

/* ---------- Layout ---------- */
.app { display: block; min-height: calc(100vh - 34px); }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: 92px; }
.topbar { position: sticky; top: 34px; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; background: rgba(13, 10, 26, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 21px; }
.topbar__sub { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.topbar__titles { min-width: 0; flex: 1; }
.topbar__titles h1, .topbar__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-raised); color: var(--text); text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--surface-high); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--surface-raised); }
.back { background: transparent; }
.page { max-width: 880px; margin: 0 auto; padding: 24px 16px 32px; }
.page > * + * { margin-top: 24px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { font-size: 20px; }
.section-title a, .section-title button { font-size: 14px; color: var(--text-secondary); background: none; border: 0; text-decoration: none; font-weight: 600; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(13, 10, 26, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 14px; color: var(--text-muted); text-decoration: none; font-size: 12px; font-weight: 600; position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--text); background: var(--surface-raised); }
.bottom-nav .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r1)); }
.brand__mark span { width: 32px; height: 32px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .01em; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
  .sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 34px; height: calc(100vh - 34px); overflow-y: auto; padding: 20px 16px; border-right: 1px solid var(--border); background: var(--surface); }
  .bottom-nav { display: none; }
  .main { padding-bottom: 32px; }
  .topbar { padding: 12px 28px; }
  .topbar .back.mobile-only { display: none; }
  .page { padding: 32px 28px 48px; }
  .mobile-only { display: none !important; }
}
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.side-nav a:hover { background: var(--surface-raised); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--surface-raised); color: var(--text); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--pink); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.side-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; padding: 0 12px; margin-bottom: 6px; }
.side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-raised); text-decoration: none; color: var(--text); }

/* ---------- Bits ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
.card--raised { background: var(--surface-raised); }
.card--ring { border-color: rgba(164, 107, 255, .45); }
.card h3 { font-size: 18px; }
.card > * + * { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 0; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface-raised); color: var(--text); }
.btn--ghost:hover { background: var(--surface-high); }
.btn--rainbow { background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 52%), linear-gradient(100deg, #FF2A5F, #FF6B12 19%, #FFB800 37%, #1DC363 56%, #2B7FFF 77%, #9D4DFF 100%); text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 8px rgba(20,8,40,.5); }
.btn--rainbow:hover { filter: brightness(1.06); background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 52%), linear-gradient(100deg, #FF2A5F, #FF6B12 19%, #FFB800 37%, #1DC363 56%, #2B7FFF 77%, #9D4DFF 100%); }
.btn--danger { background: rgba(255, 107, 122, .16); color: var(--danger); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--text-secondary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill--plus { background: linear-gradient(100deg, rgba(255,79,168,.22), rgba(164,107,255,.22)); color: #F3D6FF; }
.pill--green { background: rgba(54, 217, 138, .14); color: var(--success); }
.pill--amber { background: rgba(255, 184, 107, .14); color: var(--warning); }
.pill--red { background: rgba(255, 107, 122, .14); color: var(--danger); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; flex-shrink: 0; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.avatar--sm { width: 32px; height: 32px; font-size: 14px; }
.avatar--lg { width: 88px; height: 88px; font-size: 36px; }
.avatar--room { border-radius: 14px; font-size: 22px; }

.shield { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; padding: 0; background: none; vertical-align: -4px; }
.shield svg { width: 18px; height: 18px; }

.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-field); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--r6); box-shadow: 0 0 0 3px rgba(164,107,255,.25); }
.hint { font-size: 13px; color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); font-weight: 600; font-size: 15px; }
.chip[aria-pressed="true"] { background: rgba(123, 63, 242, .28); border-color: var(--r6); color: var(--text); }
.chip .tick { display: none; }
.chip[aria-pressed="true"] .tick { display: inline; }

.toggle { position: relative; width: 52px; height: 30px; border-radius: 15px; border: 0; background: var(--surface-high); flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-checked="true"] { background: var(--success); }
.toggle[aria-checked="true"]::after { left: 25px; }
.setting { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 0; }
.setting + .setting { border-top: 1px solid var(--border); }

.list { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--text); }
.row:hover { background: var(--surface-raised); }
.row__body { min-width: 0; flex: 1; }
.row__title { font-weight: 650; display: flex; align-items: center; gap: 6px; }
.row__title span.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.unread { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--r4); color: #062414; font-size: 12px; font-weight: 750; line-height: 22px; text-align: center; }
.unread--muted { background: var(--surface-high); color: var(--text-secondary); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 98px; z-index: 15; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex-shrink: 0; padding: 8px 14px; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--text-secondary); text-decoration: none; font-weight: 650; font-size: 14px; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: var(--surface-raised); color: var(--text); }
@media (min-width: 900px) { .tabs { padding: 10px 28px; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.notice .icon { color: var(--r3); margin-top: 1px; }
.notice strong { color: var(--text); }

/* ---------- Chat ---------- */
.chat { max-width: 860px; margin: 0 auto; padding: 16px 12px 150px; display: grid; gap: 4px; }
@media (min-width: 900px) { .chat { padding: 20px 28px 120px; } }
.day { justify-self: center; margin: 10px 0; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-raised); font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.sys { justify-self: center; text-align: center; max-width: 520px; margin: 6px 0 10px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .2); color: #F3E2A6; font-size: 13px; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.msg--cont { margin-top: 2px; }
.msg--cont .avatar { visibility: hidden; }
.msg--me { justify-content: flex-end; }
.bubble { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; background: var(--surface-raised); position: relative; }
.msg--me .bubble { background: var(--me-bubble); border-radius: 18px 18px 6px 18px; }
.bubble__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 2px; font-size: 14px; }
.bubble__name { font-weight: 700; }
.bubble__pron { color: var(--text-muted); font-size: 12px; }
.bubble__tag { width: 100%; color: var(--text-muted); font-size: 12px; font-style: italic; margin-top: -2px; }
.bubble__text { font-size: 15.5px; overflow-wrap: anywhere; }
.bubble__time { float: right; margin: 6px 0 0 10px; font-size: 11px; color: var(--text-muted); }
.bubble .hevy { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 8px; background: #1E3A5F; color: #9CCBFF; font-size: 11px; font-weight: 700; text-decoration: none; }
.mention { color: var(--r5); font-weight: 650; }
.quote { display: block; margin: 4px 0 6px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); border-left: 3px solid var(--r6); font-size: 13.5px; color: var(--text-secondary); }
.quote b { display: block; color: var(--r6); font-size: 13px; }
.quote--hidden { border-left-color: var(--text-muted); font-style: italic; color: var(--text-muted); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 0 48px; position: relative; z-index: 1; }
.msg--me + .reacts { justify-content: flex-end; margin: -4px 4px 0 0; }
.react { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; color: var(--text-secondary); }
.react[aria-pressed="true"] { border-color: var(--r6); background: rgba(123, 63, 242, .25); color: var(--text); }
.muted-msg { margin: 8px 0 0 48px; display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 12px; border-radius: 14px; border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 13px; background: none; }

.photo { display: block; width: 100%; max-width: 300px; aspect-ratio: 4 / 3; border-radius: 12px; margin: 2px 0 4px; overflow: hidden; position: relative; }
.photo svg { width: 100%; height: 100%; display: block; }
.photo__badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.6); font-size: 11px; font-weight: 700; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; }
.sticker { font-size: 0; padding: 0; background: none !important; }
.sticker__art { display: block; width: 132px; height: 132px; display: grid; place-items: center; }
.sticker__art svg { width: 100%; height: 100%; }
.gif { display: block; width: 220px; aspect-ratio: 1.3; border-radius: 12px; overflow: hidden; position: relative; margin: 2px 0 4px; }
.gif svg { width: 100%; height: 100%; display: block; }

.cardmsg { justify-self: stretch; max-width: 560px; width: 100%; margin: 10px auto 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); padding: 16px; }
.cardmsg > * + * { margin-top: 12px; }
.cardmsg__kind { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.cardmsg__kind .k { padding: 3px 9px; border-radius: 8px; color: #1a1030; }
.cardmsg h4 { font-size: 18px; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); overflow: hidden; text-align: left; }
.opt .opt__fill { position: absolute; inset: 0 auto 0 0; background: rgba(164, 107, 255, .22); }
.opt span { position: relative; }
.opt[aria-pressed="true"] { border-color: var(--r6); }
.opt b { position: relative; font-size: 14px; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp button { min-height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); font-weight: 650; font-size: 14px; }
.rsvp button[aria-pressed="true"].go { background: rgba(54,217,138,.18); border-color: var(--success); color: var(--success); }
.rsvp button[aria-pressed="true"].maybe { background: rgba(255,184,107,.16); border-color: var(--warning); color: var(--warning); }
.rsvp button[aria-pressed="true"].no { background: rgba(255,107,122,.14); border-color: var(--danger); color: var(--danger); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-secondary); }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.faces { display: flex; align-items: center; }
.faces .avatar { width: 28px; height: 28px; font-size: 12px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.faces .avatar:first-child { margin-left: 0; }
.faces small { margin-left: 8px; color: var(--text-muted); font-size: 13px; }

.composer { position: fixed; left: 0; right: 0; bottom: 74px; z-index: 25; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--border); }
.composer__inner { max-width: 860px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; }
.composer__box { flex: 1; display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 4px 6px 4px 16px; border-radius: 24px; background: var(--surface-raised); color: var(--text-muted); }
.composer__box span { flex: 1; font-size: 15px; }
.composer__box .icon-btn { width: 38px; height: 38px; background: transparent; color: var(--text-secondary); }
.send { width: 48px; height: 48px; background: var(--accent); }
.send:hover { background: var(--accent-hover); }
.composer__note { max-width: 860px; margin: 0 auto 8px; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
@media (min-width: 900px) { .composer { left: 300px; bottom: 0; padding: 12px 28px; } }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-end; justify-content: center; background: rgba(5, 3, 12, .7); }
.sheet-wrap.open { display: flex; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--surface); border: 1px solid var(--border-strong); border-bottom: 0; }
.sheet > * + * { margin-top: 16px; }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: var(--surface-high); margin: 0 auto 4px; }
.sheet h3 { font-size: 21px; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--border-strong); padding-bottom: 24px; } }
.sheet-actions { display: grid; gap: 4px; }
.sheet-actions button, .sheet-actions a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 0; background: none; text-align: left; font-weight: 600; color: var(--text); text-decoration: none; }
.sheet-actions button:hover, .sheet-actions a:hover { background: var(--surface-raised); }
.sheet-actions .danger { color: var(--danger); }
.attach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.attach-grid button { display: grid; justify-items: center; gap: 8px; padding: 14px 4px; border-radius: 16px; border: 0; background: var(--surface-raised); font-size: 13px; font-weight: 600; position: relative; }
.attach-grid .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #1a1030; }
.attach-grid .lock { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--pink); color: #fff; font-weight: 750; }
.emoji-row { display: flex; justify-content: space-between; gap: 6px; }
.emoji-row button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-raised); font-size: 24px; }

/* ---------- Sign-up ---------- */
.join { min-height: calc(100vh - 34px); display: grid; grid-template-rows: auto 1fr; }
.join__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.join__body { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
.join__body > * + * { margin-top: 24px; }
.join h1 { font-size: clamp(30px, 7vw, 42px); }
.join .lead { font-size: 17px; color: var(--text-secondary); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-high); }
.steps i.done { background: var(--r6); }
.steps i.now { background: var(--r3); }
.step-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 8px; }
.counter { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.counter__num { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.hero-art { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); }
.hero-art svg { display: block; width: 100%; height: auto; }
.rule-card { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border-strong); }
.rule-card > * + * { margin-top: 12px; }
.rule-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.rule-card h3 { font-size: 22px; }
.rule-dots { display: flex; gap: 8px; justify-content: center; }
.rule-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-high); }
.rule-dots i.on { background: var(--r3); }
.rule-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(54, 217, 138, .1); color: var(--success); font-weight: 650; font-size: 14px; }
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-grid .chip { text-align: left; justify-content: flex-start; border-radius: 14px; min-height: 52px; }
.mode-switch { display: flex; gap: 6px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.mode-switch button { flex: 1; min-height: 38px; border-radius: var(--radius-pill); border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.mode-switch button[aria-pressed="true"] { background: var(--surface-high); color: var(--text); }
.queue { text-align: center; padding: 28px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-strong); }
.queue > * + * { margin-top: 12px; }
.queue__pos { font-family: var(--font-display); font-size: 72px; line-height: 1; font-weight: 700; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.age-opt { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); text-align: left; }
.age-opt[aria-pressed="true"] { border-color: var(--r6); background: rgba(123,63,242,.18); }
.age-opt .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-raised); flex-shrink: 0; }

/* ---------- Profiles, boards ---------- */
.profile-head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.profile-head h2 { font-size: 26px; display: flex; align-items: center; gap: 8px; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; }
.kv div + div { border-top: 1px solid var(--border); }
.kv dt, .kv span:first-child { color: var(--text-muted); }
.date-card { display: grid; gap: 12px; }
.date-card__top { display: flex; gap: 12px; align-items: center; }
.date-card__pic { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.date-card__pic svg { width: 100%; height: 100%; display: block; }
.looking { display: flex; flex-wrap: wrap; gap: 6px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar b { font-size: 11px; color: var(--text-muted); text-align: center; font-weight: 700; }
.calendar span { aspect-ratio: 1; border-radius: 10px; background: var(--surface-raised); display: grid; place-items: center; font-size: 13px; color: var(--text-muted); }
.calendar span.tick { background: rgba(54, 217, 138, .2); color: var(--success); font-weight: 750; box-shadow: inset 0 0 0 1px rgba(54,217,138,.5); }
.calendar span.today { box-shadow: inset 0 0 0 2px var(--r3); color: var(--text); }
.calendar span.empty { background: none; }
.board { display: grid; }
.board__row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.board__row + .board__row { border-top: 1px solid var(--border); }
.board__pos { width: 28px; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--text-muted); }
.board__row.me { background: rgba(123,63,242,.16); border-radius: 12px; padding: 10px 8px; }
.board__score { margin-left: auto; font-weight: 750; }
.stat { padding: 16px; border-radius: 16px; background: var(--surface-raised); }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--text-muted); }
.train-card { display: flex; gap: 12px; align-items: center; }
.social-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; }
.plan { display: grid; gap: 14px; }
.plan .pill { justify-self: start; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--success); }
.price { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.price small { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.gaymes-tile { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.gaymes-tile:hover { background: var(--surface-raised); }
.gaymes-tile .fmt { display: inline-flex; align-self: start; justify-self: start; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 750; color: #1a1030; }
.flow { display: grid; gap: 10px; }
.flow__step { display: flex; gap: 14px; align-items: flex-start; }
.flow__num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-high); font-weight: 750; font-size: 14px; flex-shrink: 0; }
.gm-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(13, 10, 26, .94); }
.gm-logo img { height: 40px; width: auto; display: block; }
.gm-logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pending-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.pending-row + .pending-row { border-top: 1px solid var(--border); }
.mode-cards { display: grid; gap: 10px; }
.mode-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--bg); text-align: left; width: 100%; }
.mode-card[aria-pressed="true"] { border-color: var(--r6); background: rgba(123,63,242,.16); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-muted); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.mode-card[aria-pressed="true"] .radio { border-color: var(--r6); }
.mode-card[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--r6); }
.mute-hero { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 28px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-strong); }
.mute-hero .clock { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,184,107,.14); color: var(--warning); font-size: 34px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 70; padding: 12px 18px; border-radius: 14px; background: var(--surface-high); border: 1px solid var(--border-strong); font-weight: 600; font-size: 14px; display: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { display: block; }

/* ===================== Polish pass ===================== */
.avatar--face { background: none; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.avatar--face svg { width: 100%; height: 100%; display: block; }
.logo { display: block; width: auto; filter: drop-shadow(0 4px 10px rgba(164, 107, 255, .35)); }
.flip { transform: rotate(180deg); }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0; }

/* Icon tiles, like the Gaymes "Ways to play" cards */
.tile { --tint: #7B3FF2; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 100%, #fff 18%), color-mix(in srgb, var(--tint) 100%, #000 22%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px -6px color-mix(in srgb, var(--tint) 80%, transparent); }
.tile .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.tile--lg { width: 60px; height: 60px; border-radius: 19px; }
.tile--lg .icon { width: 28px; height: 28px; }

/* Tinted cards with a soft glow, the Gaymes card look */
.tint-card { --tint: #7B3FF2; position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 22px; color: var(--text); text-decoration: none;
  background: radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--tint) 12%, #17122B), #15102A);
  border: 1px solid color-mix(in srgb, var(--tint) 38%, transparent); }
.tint-card::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 16%, transparent); pointer-events: none; }
.tint-card > * { position: relative; z-index: 1; }
.tint-card h3 { font-size: 19px; }
.tint-card p { color: var(--text-secondary); font-size: 14.5px; }
a.tint-card:hover { border-color: color-mix(in srgb, var(--tint) 65%, transparent); }

.faces { display: inline-flex; align-items: center; }
.faces .avatar { width: 30px; height: 30px; margin-left: -9px; box-shadow: 0 0 0 2.5px var(--bg); }
.faces .avatar:first-child { margin-left: 0; }
.faces--lg .avatar { width: 40px; height: 40px; margin-left: -12px; }
.online { display: inline-flex; align-items: center; gap: 6px; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(54,217,138,.18); }

/* Sign-up */
.join { background: radial-gradient(90% 50% at 50% 0%, rgba(123,63,242,.22), transparent 70%), var(--bg); }
.join__top { border-bottom: 0; padding: 12px 16px; min-height: 64px; }
.join__count { min-width: 44px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.join__body { padding: 8px 16px 48px; }
.join__body > * + * { margin-top: 24px; }
.join__intro > * + * { margin-top: 10px; }
.steps { gap: 5px; }
.steps i { height: 5px; }
.steps i.done { background: var(--r6); }
.steps i.now { background: var(--rainbow); }
.hero { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 8px; }
.hero__logo { margin-bottom: -4px; }
.hero h1 { font-size: clamp(32px, 8.5vw, 46px); line-height: 1.08; }
.hero .lead { max-width: 440px; }
.hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn--join-cta { background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 52%, rgba(0,0,0,.10)), linear-gradient(100deg, #FF2A5F, #FF6B12 19%, #FFB800 37%, #1DC363 56%, #2B7FFF 77%, #9D4DFF 100%); color: #fff; font-weight: 750; text-shadow: 0 1px 1px rgba(0,0,0,.55), 0 0 6px rgba(20,8,40,.55), 0 0 14px rgba(20,8,40,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 6px 18px -8px rgba(255,70,140,.75), 0 6px 18px -8px rgba(60,130,255,.7); padding: 0 28px; }
.btn--join-cta:hover { filter: brightness(1.07) saturate(1.08); background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,0) 52%, rgba(0,0,0,.10)), linear-gradient(100deg, #FF2A5F, #FF6B12 19%, #FFB800 37%, #1DC363 56%, #2B7FFF 77%, #9D4DFF 100%); }
.counter { display: inline-flex; gap: 14px; align-items: center; text-align: left; padding: 12px 18px 12px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.counter__num { font-family: var(--font-display); font-size: 20px; }
.panel { padding: 22px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.panel > h2 { font-size: 22px; margin-bottom: 16px; }
.feat-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-secondary); }
.how b { color: var(--text); }
.how__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,210,63,.14); color: var(--r3); font-weight: 800; font-size: 14px; }
.demo-mode { padding: 16px; border-radius: 18px; border: 1px dashed rgba(255,210,63,.35); background: rgba(255,210,63,.05); }
.demo-mode p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.rule-card { padding: 24px; gap: 14px; min-height: 240px; }
.rule-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.rule-card__n { font-size: 13px; font-weight: 800; color: var(--text-secondary); padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(0,0,0,.25); }
.rule-card h3 { font-size: 26px; }
.rule-card p { font-size: 16.5px; line-height: 1.55; }
.rule-dots i { width: 8px; height: 8px; }
.rule-dots i.on { background: var(--r6); }
.rule-dots i.now { background: var(--r3); width: 22px; border-radius: 4px; }
.rule-done { display: grid; gap: 6px; }
.rule-check { padding: 10px 14px; background: rgba(54, 217, 138, .08); border: 1px solid rgba(54,217,138,.2); }
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.region { position: relative; display: grid; gap: 2px; text-align: left; padding: 14px 14px 13px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); }
.region b { font-size: 15.5px; }
.region span:last-child { font-size: 12.5px; color: var(--text-muted); }
.region__tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-strong); color: transparent; }
.region[aria-pressed="true"] { border-color: var(--r2); background: radial-gradient(120% 120% at 0% 0%, rgba(255,138,61,.24), transparent 60%), var(--surface); }
.region[aria-pressed="true"] .region__tick { background: var(--r2); border-color: var(--r2); color: #1a1030; }
.done-card { text-align: center; justify-items: center; padding: 28px 22px; gap: 12px; }
.done-card .kv { width: 100%; text-align: left; }
.confetti { width: 100%; max-width: 320px; height: auto; margin-bottom: -6px; }
.queue__pos { font-size: 84px; }

/* App header and Rooms */
.apphead { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); background: radial-gradient(60% 120% at 15% 0%, rgba(123,63,242,.18), transparent), var(--bg); }
.apphead__actions { display: flex; gap: 8px; }
.page--rooms > * + * { margin-top: 28px; }
.page-head h1 { font-size: clamp(32px, 7vw, 40px); }
.page-head p { margin-top: 6px; }
.home-room { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 20px; border-radius: 24px; text-decoration: none; color: var(--text);
  background: radial-gradient(120% 100% at 100% 0%, rgba(255,77,94,.28), transparent 55%), radial-gradient(120% 100% at 0% 0%, rgba(255,138,61,.32), transparent 60%), #1D1330; border: 1px solid rgba(255,138,61,.4); }
.home-room__glow { position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,138,61,.12); }
.home-room > * { position: relative; }
.home-room__top { display: flex; gap: 14px; align-items: center; }
.home-room__top > div { flex: 1; }
.home-room h2 { font-size: 28px; margin-top: 2px; }
.home-room__last { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.28); }
.home-room__last p { font-size: 14.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-room__last b { color: var(--text); }
.home-room__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13.5px; color: var(--text-secondary); }
.home-room__foot .faces .avatar { box-shadow: 0 0 0 2.5px #24152E; }
.home-room__social { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(54,217,138,.14); color: var(--success); font-weight: 650; }
@media (min-width: 560px) { .home-room__social { margin-left: auto; } }
.card--list { padding: 6px; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1100px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-card { padding: 16px; gap: 8px; min-height: 172px; }
.room-card h3 { font-size: 17px; margin-top: 4px; }
.room-card p { font-size: 13.5px; line-height: 1.4; }
.room-card__count { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: 12.5px; font-weight: 650; color: var(--text-muted); }
.room-card__badge { position: absolute !important; top: 14px; right: 14px; }
.row .tile { width: 44px; height: 44px; border-radius: 14px; }

/* Room header */
.roomhead { gap: 10px; }
.roomhead .back { margin-right: -4px; }
.roomhead .tile { width: 40px; height: 40px; border-radius: 13px; }
.roomhead .tile .icon { width: 20px; height: 20px; }
.roomhead h1 { font-size: 20px; }
.roomhead__faces { display: none; margin-right: 6px; }
@media (min-width: 900px) { .roomhead__faces { display: inline-flex; } .roomhead .back { display: none; } }

/* Pinned bar, as in Gaymes Chat */
.pinbar { position: sticky; top: 156px; z-index: 14; display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); max-width: 836px; margin: 12px auto 0; padding: 10px 14px; border-radius: 18px; border: 1px solid rgba(255,138,61,.55); background: linear-gradient(90deg, #2A1A24, #1D1330); text-align: left; font-size: 14.5px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.7); }
.pinbar > .icon { color: var(--r2); }
.pinbar__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.pinbar__text b { color: var(--text); }
.pinbar__n { min-width: 24px; height: 24px; border-radius: 12px; background: var(--r2); color: #1a1030; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pinbar__chev { transform: rotate(-90deg); color: var(--text-muted); }
@media (min-width: 900px) { .pinbar { width: calc(100% - 56px); } }

/* Messages, laid out like Gaymes Chat */
.chat { gap: 2px; padding-top: 12px; }
.sys { display: flex; gap: 8px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text-muted); font-size: 12.5px; margin: 4px 0 2px; }
.sys .icon { flex-shrink: 0; }
.day { margin: 8px 0 4px; background: var(--surface); border: 1px solid var(--border); }
.msg { align-items: flex-start; gap: 10px; margin-top: 14px; }
.msg--cont { margin-top: 4px; }
.msg__av { flex-shrink: 0; text-decoration: none; }
.msg__av .avatar { width: 42px; height: 42px; }
.msg--cont .msg__av { visibility: hidden; height: 0; }
.msg__col { display: grid; justify-items: start; gap: 4px; min-width: 0; max-width: min(82%, 560px); }
.msg--me .msg__col { justify-items: end; }
.msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; width: 100%; font-size: 14px; }
.msg__name { font-weight: 750; color: var(--text); text-decoration: none; font-size: 15px; }
.msg__pron { color: var(--text-muted); font-size: 12.5px; }
.msg__plus { padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, #FF4FA8, #A46BFF); }
.msg__hevy { padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #1E3A5F; color: #9CCBFF; text-decoration: none; }
.msg__time { margin-left: auto; padding-left: 10px; font-size: 12px; color: var(--text-muted); }
.msg__tag { margin-top: -3px; font-size: 12.5px; color: var(--text-muted); font-style: italic; }
.msg__meta { font-size: 11.5px; color: var(--text-muted); margin-top: -1px; }
.bubble { max-width: 100%; padding: 10px 15px; border-radius: 6px 20px 20px 20px; background: #251C42; }
.msg--me .bubble { border-radius: 20px 6px 20px 20px; background: linear-gradient(160deg, #4A2C92, #3A2475); }
.bubble--media { padding: 6px 6px 10px; }
.bubble--media .bubble__text { display: block; padding: 4px 8px 0; }
.bubble__text { font-size: 15.5px; line-height: 1.45; }
.photo, .gif { margin: 0 0 4px; border-radius: 14px; max-width: 320px; }
.photo__badge { display: inline-flex; align-items: center; gap: 4px; }
.photo__badge .icon { width: 14px; height: 14px; }
.quote { border-left-width: 3px; border-radius: 10px; margin: 0 0 6px; background: rgba(0,0,0,.25); }
.quote--hidden { display: flex; gap: 6px; align-items: center; font-style: normal; }
.sticker { width: 130px; height: 130px; cursor: pointer; }
.sticker svg { width: 100%; height: 100%; }
.reacts { margin: 0; }
.msg--me .reacts { justify-content: flex-end; margin: 0; }
.react { background: #1B1433; padding: 3px 9px; }
.muted-msg { margin: 12px 0 0 52px; }

/* Cards in chat */
.cardmsg { --tint: var(--r6); position: relative; overflow: hidden; margin: 16px auto 4px; padding: 18px; border-radius: 22px;
  background: radial-gradient(130% 80% at 0% 0%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--tint) 10%, #17122B), #15102A);
  border: 1px solid color-mix(in srgb, var(--tint) 40%, transparent); }
.cardmsg::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 12%, transparent); pointer-events: none; }
.cardmsg > * { position: relative; z-index: 1; }
.cardmsg__kind { letter-spacing: .07em; font-size: 12.5px; color: var(--text-muted); }
.cardmsg__kind .k { padding: 0; background: none !important; font-size: 13px; font-weight: 800; }
.cardmsg h4 { font-size: 21px; }
.cardmsg--full { margin: 0; max-width: none; }
.opt { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.12); border-radius: 14px; }
.opt .opt__fill { background: color-mix(in srgb, var(--tint, #A46BFF) 30%, transparent); }
.opt[aria-pressed="true"] { border-color: var(--tint, var(--r6)); }
.rsvp button { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.12); }
.board__row.me { background: color-mix(in srgb, var(--tint, #7B3FF2) 22%, transparent); }

/* Composer, as in Gaymes Chat */
.composer { padding: 10px 12px 12px; }
.composer__note { justify-content: center; }
.composer__plus { width: 48px; height: 48px; flex-shrink: 0; background: var(--surface-raised); }
.composer__box { min-height: 48px; padding: 4px 6px 4px 18px; background: var(--surface); border: 1px solid var(--border-strong); }
.composer__inner { align-items: center; }
.home-room { grid-template-columns: minmax(0, 1fr); }
.home-room > .home-room__glow { position: absolute; }
.home-room__last { min-width: 0; }
.home-room__last p { min-width: 0; flex: 1; }
.region { align-content: start; }
.sys span { max-width: 440px; text-align: left; }
.tile--xs { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.tile--xs .icon { width: 15px; height: 15px; }
.composer__box span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-card__pic { background: linear-gradient(135deg, #2A1650, #17122B); }
