/* Friend invite card. Crane and Math Hunt have their own colours, so it carries its own. */
.inv { display:grid; gap:8px; margin:0 0 12px; text-align:center; font-family:'Nunito','Segoe UI',system-ui,sans-serif; }
.inv-card { background:#241f3d; color:#f1f5f9; border:2px solid #a78bfa; border-radius:18px; padding:14px 12px; display:grid; gap:6px; text-align:center; }
.inv-pic { font-size:2.6rem; line-height:1.1; }
.inv-title { margin:0; font-size:1.1rem; font-weight:900; line-height:1.25; text-wrap:balance; color:inherit; }
.inv-facts { display:flex; gap:6px; margin-top:4px; }
.inv-facts div { flex:1 1 0; min-width:0; background:#0f0e1a; color:#94a3b8; border-radius:10px; padding:6px 3px; font-size:.68rem; font-weight:700; overflow-wrap:anywhere; }
.inv-facts b { display:block; color:#f1f5f9; font-size:.88rem; font-weight:900; }
.inv-btn { display:block; width:100%; min-height:46px; border:2px solid #7c3aed; border-radius:14px; padding:10px; background:#241f3d; color:#f1f5f9; font:inherit; font-weight:900; font-size:1rem; cursor:pointer; }
.inv-go { background:#7c3aed; color:#fff; }
.inv-btn:focus-visible { outline:3px solid #a78bfa; outline-offset:2px; }
.inv-link { margin:0; font-size:.78rem; font-weight:700; overflow-wrap:anywhere; user-select:all; opacity:.85; }
.inv-note { margin:0; color:#94a3b8; font-size:.9rem; font-weight:600; line-height:1.4; }
.inv[hidden], .inv-link[hidden] { display:none; }
/* The card makes the Crane and Math Hunt lobbies taller than a small phone. */
.overlay-box:has(.inv), .es-overlay-box:has(.inv) { max-height:92dvh; overflow-y:auto; }

.inv-sheet { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.7); display:flex; align-items:center; justify-content:center; padding:16px; font-family:'Nunito','Segoe UI',system-ui,sans-serif; }
.inv-sheet-box { background:#1a1930; color:#f1f5f9; border-radius:20px; padding:20px; width:100%; max-width:320px; max-height:100%; overflow-y:auto; display:grid; gap:12px; text-align:center; }
.inv-qr { background:#fff; border-radius:14px; padding:10px; width:210px; max-width:100%; min-height:210px; margin:0 auto; line-height:0; }
.inv-qr svg { display:block; width:100%; height:auto; }

/* join.html */
.join-page { margin:0; min-height:100dvh; background:#0f0e1a; color:#f1f5f9; display:flex; align-items:center; justify-content:center; padding:24px 16px; font-family:'Nunito','Segoe UI',system-ui,sans-serif; }
.join-box { width:100%; max-width:360px; display:grid; gap:12px; text-align:center; }
.join-box .inv-card { padding:22px 14px; }
.join-box .inv-pic { font-size:3.4rem; }
.join-box .inv-title { font-size:1.3rem; }
.join-brand { font-weight:900; font-size:1rem; color:#a78bfa; }
.join-ghost { border-color:#35325a; color:#94a3b8; background:none; font-size:.92rem; }
