/* EventMe visuals (visuals.js): covers, charts, going row, tickets, empty states, counters */

/* ── Event page photo caption: date and city with icons ── */
.edx-cap .edx-cap-date { display: inline-flex; align-items: center; gap: 5px; }
.edx-cap .edx-cap-date .ic { opacity: .85; }
.edx-cap .edx-cap-tags { flex-wrap: wrap; row-gap: 6px; }

/* ── Profile cover and completeness ── */
.pf-banner { background-size: cover !important; background-position: center !important; }
.pf-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); pointer-events: none; }
.pf-cover-btn { position: absolute !important; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.42); color: #fff; font: 600 .76rem var(--font-body, Inter, sans-serif); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pf-cover-btn:hover { background: rgba(0,0,0,.6); }
.pf-cover-btn[disabled] { opacity: .7; cursor: progress; }
.pf-complete { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,90,115,.28); background: linear-gradient(135deg, rgba(200,16,46,.12), rgba(200,16,46,.03)); color: var(--text-1, #fff); }
.pf-complete .em-ring { flex: none; }
.pf-complete-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-complete-txt b { font-size: .9rem; }
.pf-complete-txt span { font-size: .78rem; color: var(--muted); }
.pf-complete-dots { display: flex; gap: 4px; margin-top: 5px; }
.pf-complete-dots i { width: 14px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.14); }
.pf-complete-dots i.on { background: #ff3a5c; }
.pf-complete .pf-btn { flex: none; }
@media (max-width: 420px) { .pf-complete { flex-wrap: wrap; } .pf-complete .pf-btn { width: 100%; justify-content: center; } }
.em-ring-v { transition: stroke-dashoffset 900ms cubic-bezier(.2,.8,.2,1); }

/* ── Organiser dashboard chart ── */
.org-dash-chart { margin: 14px 0; padding: 14px 16px 12px; border-radius: 16px; border: 1px solid var(--border-sub, rgba(255,255,255,.08)); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); color: var(--text-1, #fff); }
.odc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.odc-head b { font-size: .92rem; }
.odc-range { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.odc-range button { height: 26px !important; min-height: 0 !important; padding: 0 10px !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important; color: var(--muted); font: 700 .72rem var(--font-body, Inter, sans-serif); cursor: pointer; }
.odc-range button.on { background: rgba(200,16,46,.3) !important; color: #fff; }
.odc-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.odc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.odc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.odc-legend b { color: var(--text-1, #fff); font-size: .9rem; }
.odc-chart svg { width: 100%; height: auto; display: block; color: var(--text-1, #fff); }
.odc-cap { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.odc-cap div { display: flex; flex-direction: column; gap: 2px; }
.odc-cap b { font-size: 1rem; }
.odc-cap span { font-size: .78rem; color: var(--muted); }
.odc-empty { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.odc-skel { height: 150px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: odcSk 1.2s linear infinite; }
@keyframes odcSk { to { background-position: -200% 0; } }
/* the six number boxes become one tidy strip */
.org-dash-summary { gap: 8px !important; }
.org-dash-stat { padding: 10px 6px !important; border-radius: 14px !important; }

/* ── Who is going ── */
.rg { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rg-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rg-faces { display: flex; flex: none; padding-left: 8px; }
.rg-av { width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--card, #1c1c1f); object-fit: cover; display: grid; place-items: center; color: #fff; font: 800 .78rem var(--font-body, Inter, sans-serif); position: relative; flex: none; }
.rg-line { font-size: .84rem; color: var(--text-2, #d4d4dc); line-height: 1.35; }
.rg-line b { color: var(--text-1, #fff); }
.rg-cap-top { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.rg-cap-top b { color: #38bdf8; font-weight: 700; }
.rg-cap.full .rg-cap-top b { color: #fbbf24; }
.rg-cap-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rg-cap-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #22c55e); transition: width 700ms ease; }
.rg-cap.full .rg-cap-bar i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
#evWhoRow { width: 100%; }

/* ── Live turnout on the public vote page ── */
.vt-lt-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vt-lt-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.vt-lt-q { margin: 12px 0 0; font-size: .8rem; font-weight: 700; }
.vt-lt-q.good { color: #22c55e; } .vt-lt-q.warn { color: #fbbf24; }
.vt-share-res { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vt-share-res > div:first-child { display: flex; flex-direction: column; gap: 2px; }

/* ── Home counters: glass cards with an icon ── */
.hero-stats .stat-item { flex-direction: row !important; align-items: center !important; gap: 12px !important; width: auto !important; min-width: 150px; padding: 12px 18px 12px 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-stats .stat-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(200,16,46,.85); color: #fff; box-shadow: 0 6px 16px rgba(200,16,46,.4); }
.hero-stats .stat-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-stats .stat-num { min-width: 0 !important; height: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; color: #fff !important; font-size: 1.7rem !important; line-height: 1 !important; overflow: visible !important; display: block !important; }
.hero-stats .stat-num::after { display: none !important; }
.hero-stats .stat-label { color: rgba(255,255,255,.78) !important; font-size: .64rem !important; text-align: left !important; white-space: nowrap !important; }
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; width: 100%; max-width: 380px !important; }
  .hero-stats .stat-item { min-width: 0; padding: 10px 12px 10px 10px; }
  .hero-stats .stat-ic { width: 34px; height: 34px; border-radius: 10px; }
  .hero-stats .stat-num { font-size: 1.4rem !important; }
}
/* photo dots under the hero were stretched by the tap size rule */
.hero-dots .hero-dot { min-height: 0 !important; min-width: 0 !important; height: 8px !important; padding: 0 !important; border: 0 !important; }
.hero-dots .hero-dot::before { content: ''; position: absolute; inset: -10px -3px; }

/* ── Illustrated empty states ── */
.em-illus-wrap { display: flex; justify-content: center; margin: 0 auto 6px; }
.em-illus { display: block; filter: drop-shadow(0 10px 18px rgba(200,16,46,.25)); animation: emIllusIn 500ms cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes emIllusIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.notif-empty.has-illus, .people-empty.has-illus { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ui-empty.has-illus .ui-empty-title, .mp-empty.has-illus b { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .em-illus { animation: none; } }

/* ── Ticket lists: each one is a real ticket with a stub ── */
.mp-ticket { padding-right: 76px !important; overflow: visible !important; background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)) !important; }
.mp-ticket::before, .mp-ticket::after { content: ''; position: absolute; right: 62px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg, #0f0f12); border: 1px solid var(--border, rgba(255,255,255,.1)); }
.mp-ticket::before { top: -8px; } .mp-ticket::after { bottom: -8px; }
.mp-ticket .mp-tqr { position: absolute; right: 0; top: 0; bottom: 0; width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-left: 2px dashed rgba(255,255,255,.14); color: #ff5a73; }

/* ── Ticket view ── */
.tk-ov { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(6,6,8,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.tk-ov.open { display: flex; animation: tkFade 200ms ease; }
@keyframes tkFade { from { opacity: 0; } }
.tk { --tk-c: #c8102e; width: 100%; max-width: 380px; margin: auto; border-radius: 26px; overflow: hidden; background: #fff; color: #18181b; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: tkIn 360ms cubic-bezier(.2,.9,.3,1.2); }
@keyframes tkIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.tk-top { position: relative; min-height: 210px; padding: 18px 20px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; background-color: var(--tk-c); background-size: cover; background-position: center; }
.tk-brand { position: absolute; left: 20px; top: 18px; display: flex; align-items: center; gap: 8px; font: 700 .68rem var(--font-body, Inter, sans-serif); letter-spacing: .16em; text-transform: uppercase; opacity: .95; }
.tk-brand span { padding: 4px 9px; border-radius: 999px; background: var(--tk-c); letter-spacing: .04em; text-transform: none; font-size: .74rem; }
.tk-x { position: absolute !important; right: 14px; top: 14px; width: 34px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; display: grid !important; place-items: center; border-radius: 50% !important; border: 0 !important; background: rgba(0,0,0,.45) !important; color: #fff; cursor: pointer; }
.tk-top h3 { margin: 0; font: 800 1.35rem/1.2 var(--font-display, var(--font-body, Inter, sans-serif)); text-wrap: balance; }
.tk-top p { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .84rem; opacity: .92; }
.tk-tear { position: relative; height: 22px; background: #fff; }
.tk-tear::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed #d4d4d8; }
.tk-tear::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 50%, rgba(6,6,8,.72) 11px, transparent 12px), radial-gradient(circle at 100% 50%, rgba(6,6,8,.72) 11px, transparent 12px); }
.tk-bot { padding: 4px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tk-in { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 700; font-size: .82rem; }
.tk-qr { padding: 10px; border-radius: 18px; border: 1px solid #e4e4e7; background: #fff; }
.tk-qr img { display: block; width: 220px; height: 220px; }
.tk-meta { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid #f0f0f2; border-bottom: 1px solid #f0f0f2; padding: 10px 0; }
.tk-meta span { display: flex; flex-direction: column; gap: 2px; }
.tk-meta small { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: #a1a1aa; font-weight: 700; }
.tk-meta b { font-size: .88rem; color: #18181b; }
.tk-hint { margin: 0; font-size: .76rem; color: #71717a; text-align: center; }
.tk-actions { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 12px !important; border-radius: 999px !important; border: 0; background: var(--tk-c) !important; color: #fff !important; font: 700 .82rem var(--font-body, Inter, sans-serif); text-decoration: none; cursor: pointer; box-shadow: none !important; }
.tk-btn.ghost { background: #f4f4f5 !important; color: #18181b !important; }
@media (max-width: 360px) { .tk-actions { grid-template-columns: 1fr; } .tk-qr img { width: 200px; height: 200px; } }
@media (prefers-reduced-motion: reduce) { .tk, .tk-ov.open { animation: none; } }

/* ── Profile buttons keep their whole label and wrap to a new line instead ── */
.pf-actions .pf-btn { flex: 1 1 auto; min-width: max-content; white-space: nowrap; }

/* ── Light mode ── */
[data-theme="light"] .pf-complete { color: #18090c; background: linear-gradient(135deg, rgba(200,16,46,.08), rgba(200,16,46,.02)); }
[data-theme="light"] .pf-complete-dots i { background: rgba(20,20,30,.12); }
[data-theme="light"] .pf-complete-dots i.on { background: #c8102e; }
[data-theme="light"] .org-dash-chart { background: #fff; border-color: rgba(20,20,30,.08); color: #18090c; }
[data-theme="light"] .odc-chart svg, [data-theme="light"] .em-ring { color: #18090c; }
[data-theme="light"] .odc-legend b, [data-theme="light"] .odc-cap b { color: #18090c; }
[data-theme="light"] .odc-range { background: rgba(20,20,30,.04); border-color: rgba(20,20,30,.08); }
[data-theme="light"] .odc-range button.on { background: #c8102e !important; color: #fff; }
[data-theme="light"] .odc-cap { border-top-color: rgba(20,20,30,.08); }
[data-theme="light"] .rg-av { border-color: #fff; }
[data-theme="light"] .rg-line { color: #3f3f46; }
[data-theme="light"] .rg-line b { color: #18090c; }
[data-theme="light"] .rg-cap-bar { background: rgba(20,20,30,.08); }
[data-theme="light"] .rg-cap-top b { color: #0369a1; }
[data-theme="light"] .mp-ticket { background: #fff !important; }
[data-theme="light"] .mp-ticket .mp-tqr { border-left-color: rgba(20,20,30,.16); color: #c8102e; }
[data-theme="light"] .edx-cap .pill, [data-theme="light"] .edx-cap .pill-red { color: #fff !important; background: rgba(200,16,46,.85) !important; border-color: transparent !important; }
[data-theme="light"] .edx-cap .edx-cap-date { color: rgba(255,255,255,.92); }
[data-theme="light"] .em-illus { filter: drop-shadow(0 10px 18px rgba(200,16,46,.18)); }
[data-theme="light"] .fx-soon { color: #9b0c24; }
/* phones: up to three counters side by side, icon above the number */
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important; max-width: 420px !important; }
  .hero-stats .stat-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; padding: 10px 12px !important; }
  .hero-stats .stat-ic { width: 30px; height: 30px; border-radius: 9px; }
  .hero-stats .stat-ic svg { width: 15px; height: 15px; }
}

/* ── Counter icons: glossy tiles in each counter's colour, with a shine and a gentle float ── */
.hero-stats .stat-ic {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, var(--c1, #ff3a5c) 0%, var(--c2, #c8102e) 100%) !important;
  box-shadow: 0 8px 20px -6px var(--c1, #ff3a5c), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18) !important;
  animation: statFloat 5s ease-in-out infinite;
}
.hero-stats .stat-item:nth-child(2) .stat-ic { animation-delay: -1.2s; }
.hero-stats .stat-item:nth-child(3) .stat-ic { animation-delay: -2.4s; }
.hero-stats .stat-item:nth-child(4) .stat-ic { animation-delay: -3.6s; }
.hero-stats .stat-ic::before { content: ''; position: absolute; inset: 0 0 50% 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0)); z-index: -1; }
.hero-stats .stat-ic svg { position: relative; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.stat-ic-shine { position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)); opacity: 0; pointer-events: none; }
.hero-stats.stats-in .stat-ic-shine { animation: statShine 1.1s ease .3s 1 both; }
.hero-stats .stat-item:nth-child(2) .stat-ic-shine { animation-delay: .5s !important; }
.hero-stats .stat-item:nth-child(3) .stat-ic-shine { animation-delay: .7s !important; }
.hero-stats .stat-item:hover .stat-ic-shine { animation: statShine .9s ease 1 both !important; }
.hero-stats .stat-item { transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.hero-stats .stat-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c1, #ff3a5c) 55%, transparent); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--c1, #ff3a5c) 70%, transparent); }
@keyframes statShine { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes statFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 860px) { .hero-stats .stat-ic svg { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .hero-stats .stat-ic, .hero-stats.stats-in .stat-ic-shine { animation: none !important; } }
[data-theme="light"] .hero-stats .stat-item { background: linear-gradient(135deg, rgba(20,8,12,.42), rgba(20,8,12,.26)); border-color: rgba(255,255,255,.28); }
.org-prev-x { display: inline !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--red-bright, #ff4d6a) !important; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ── People suggestions: a set at a time, then a button ── */
.plist-sugg-foot, .cmp-disc-foot { grid-column: 1 / -1; display: flex; justify-content: center; padding: 18px 0 8px; }
.pp-more-btn { display: inline-flex !important; align-items: center; gap: 8px; height: 44px; padding: 0 22px !important; border-radius: 999px !important; border: 1px solid rgba(255,90,115,.5) !important; background: linear-gradient(135deg, rgba(200,16,46,.28), rgba(139,0,26,.22)) !important; color: #fff !important; font: 700 .86rem var(--font-body, Inter, sans-serif); cursor: pointer; box-shadow: 0 8px 22px -10px rgba(200,16,46,.7) !important; }
.pp-more-btn:hover { background: linear-gradient(135deg, rgba(200,16,46,.4), rgba(139,0,26,.32)) !important; }
.pp-more-btn.ghost { background: transparent !important; border-color: var(--border, rgba(255,255,255,.14)) !important; box-shadow: none !important; }
.pp-caught { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 12px; color: var(--muted); font-size: .84rem; }
.pp-caught b { color: var(--text-1, #fff); font-size: .98rem; }
.pp-caught .pp-more-btn { margin-top: 8px; }
[data-theme="light"] .pp-more-btn { color: #9b0c24 !important; background: rgba(200,16,46,.08) !important; box-shadow: none !important; }
[data-theme="light"] .pp-caught b { color: #18090c; }

/* ── In app confirm (emConfirm) ── */
.emc-ov { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(6,6,8,0); transition: background 160ms ease; }
.emc-ov.in { background: rgba(6,6,8,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.emc { width: 100%; max-width: 360px; padding: 22px 20px 18px; border-radius: 22px; background: var(--card, #1c1c1f); border: 1px solid var(--border, rgba(255,255,255,.1)); box-shadow: 0 30px 70px rgba(0,0,0,.5); text-align: center; color: var(--text-1, #fff); transform: translateY(12px) scale(.97); opacity: 0; transition: transform 180ms cubic-bezier(.2,.9,.3,1.2), opacity 160ms ease; }
.emc-ov.in .emc { transform: none; opacity: 1; }
.emc-ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.14); color: #22c55e; }
.emc-ic.danger { background: rgba(239,68,68,.14); color: #f87171; }
.emc-t { margin: 0 0 6px; font: 700 1.02rem/1.35 var(--font-body, Inter, sans-serif); }
.emc-d { margin: 0 0 4px; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.emc-a { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.emc-a button { height: 44px; border-radius: 999px !important; font: 700 .88rem var(--font-body, Inter, sans-serif); cursor: pointer; padding: 0 12px !important; }
.emc-no { border: 1px solid var(--border, rgba(255,255,255,.14)) !important; background: transparent !important; color: var(--text-1, #fff) !important; box-shadow: none !important; }
.emc-yes { border: 0 !important; background: linear-gradient(135deg, #e11d48, #9f1239) !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(225,29,72,.8) !important; }
.emc-yes.danger { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; }
.emc-a button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[data-theme="light"] .emc { background: #fff; color: #18090c; border-color: rgba(20,20,30,.08); }
[data-theme="light"] .emc-no { color: #18090c !important; border-color: rgba(20,20,30,.14) !important; }
@media (prefers-reduced-motion: reduce) { .emc, .emc-ov { transition: none; } }

/* ── Sign in entrance (emWelcome) ── */
.emw { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; background: #050507; color: #fff; opacity: 0; transition: opacity 260ms ease; cursor: pointer; overflow: hidden; }
.emw.in { opacity: 1; }
.emw-glow { position: absolute; left: 50%; top: 46%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(200,16,46,.42) 0%, rgba(200,16,46,.12) 35%, rgba(200,16,46,0) 65%); transform: scale(.4); opacity: 0; animation: emwGlow 2.4s ease-out .1s forwards; }
.emw-dots i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255,120,140,.75); box-shadow: 0 0 8px rgba(255,58,92,.8); opacity: 0; animation: emwRise var(--t) ease-in var(--d) infinite; }
.emw-c { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.emw-logo { height: 34px; margin-bottom: 26px; opacity: 0; transform: translateY(-8px); filter: drop-shadow(0 0 18px rgba(255,58,92,.55)); animation: emwUp .6s cubic-bezier(.2,.9,.3,1) .15s forwards; }
.emw-av { position: relative; width: 120px; height: 120px; margin-bottom: 22px; opacity: 0; transform: scale(.7); animation: emwPop .7s cubic-bezier(.2,1.3,.4,1) .35s forwards; }
.emw-av svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.emw-av circle { fill: none; stroke-width: 4; }
.emw-av .bg { stroke: rgba(255,255,255,.1); }
.emw-av .fg { stroke: #ff3a5c; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; filter: drop-shadow(0 0 6px rgba(255,58,92,.9)); animation: emwRing 1.5s cubic-bezier(.6,.1,.2,1) .55s forwards; }
.emw-face { position: absolute; inset: 10px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ac, #c8102e); box-shadow: 0 10px 40px rgba(200,16,46,.45); }
.emw-face img { width: 100%; height: 100%; object-fit: cover; }
.emw-face b { font: 800 2.2rem var(--font-display, var(--font-body, Inter, sans-serif)); letter-spacing: .02em; }
.emw-hi { margin: 0; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.72); opacity: 0; transform: translateY(10px); animation: emwUp .6s ease .9s forwards; }
.emw-name { margin: 4px 0 10px; font: 800 clamp(2rem, 7vw, 3rem)/1.05 var(--font-display, var(--font-body, Inter, sans-serif)); letter-spacing: -.02em; background: linear-gradient(90deg, #fff 0%, #ffd2da 40%, #ff3a5c 60%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(12px); animation: emwUp .65s cubic-bezier(.2,.9,.3,1) 1.05s forwards, emwSheen 2.2s linear 1.3s 1; }
.emw-sub { margin: 0; font-size: .86rem; color: rgba(255,255,255,.55); opacity: 0; animation: emwUp .6s ease 1.35s forwards; }
/* the site opens from the centre */
.emw.out { animation: emwOpen .75s cubic-bezier(.7,0,.2,1) forwards; }
.emw-reveal body > *:not(#emWelcome):not(.toast):not(#toast) { animation: emwSite .8s cubic-bezier(.2,.8,.2,1) both; }
.emw.calm .emw-glow, .emw.calm .emw-dots { display: none; }
.emw.calm * { animation-duration: .01s !important; animation-delay: 0s !important; }
.emw.calm.out { animation: emwFade .25s ease forwards; }
@keyframes emwGlow { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: .8; transform: scale(1); } }
@keyframes emwRise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-105vh); opacity: 0; } }
@keyframes emwUp { to { opacity: 1; transform: none; } }
@keyframes emwPop { to { opacity: 1; transform: none; } }
@keyframes emwRing { to { stroke-dashoffset: 0; } }
@keyframes emwSheen { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes emwOpen { 0% { clip-path: circle(150% at 50% 46%); } 100% { clip-path: circle(0% at 50% 46%); opacity: .6; } }
@keyframes emwFade { to { opacity: 0; } }
@keyframes emwSite { from { transform: scale(.97); filter: brightness(.6); } to { transform: none; filter: none; } }

/* ── People to link with, right under the Community search: compact cards ── */
#cmpStrip { margin: 0 0 14px; padding: 12px 12px 4px; border: 1px solid var(--ctd-line, rgba(255,255,255,.08)); background: var(--card, #1c1c1f); }
#cmpStrip header { padding: 0 2px 10px; }
#cmpStrip .mc-row { gap: 10px; }
.mc.mc-mini { flex: 0 0 148px !important; padding: 0 10px 10px; }
.mc.mc-mini .mc-cover { height: 40px; margin: 0 -10px; }
.mc.mc-mini .mc-av { width: 64px !important; height: 64px !important; margin-top: -32px !important; }
.mc.mc-mini .mc-av span { font-size: 1.2rem !important; }
.mc.mc-mini .mc-name { font-size: .84rem; margin-top: 6px; }
.mc.mc-mini .mc-head { font-size: .72rem; margin-bottom: 4px; }
.mc.mc-mini .mc-why { font-size: .68rem; margin: 0 0 8px; min-height: 0; -webkit-line-clamp: 1; }
.mc.mc-mini .mc-btn { height: 34px; font-size: .78rem; }
.mc.mc-mini .mc-x { width: 24px; height: 24px; top: 6px; right: 6px; }
@media (max-width: 600px) { .mc.mc-mini { flex-basis: 136px !important; } }
[data-theme="light"] #cmpStrip { background: #fff; border-color: rgba(20,20,30,.08); }

/* ── Counters, final layout: one row of equal cards that always fits the screen.
   Each card switches to icon above number when it gets narrow (container query),
   so it works on any phone, tablet or laptop width. ── */
.hero-stats { display: grid !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; grid-template-columns: none !important;
  gap: 10px !important; width: min(calc(100% - 32px), 600px) !important; max-width: calc(100% - 32px) !important; margin: 8px auto 0 !important; padding: 0 !important; box-sizing: border-box; justify-content: stretch !important; }
.hero-stats .stat-item { container-type: inline-size; min-width: 0 !important; width: auto !important; box-sizing: border-box;
  flex-direction: row !important; align-items: center !important; gap: 12px !important; padding: 12px 14px 12px 12px !important; }
.hero-stats .stat-txt { min-width: 0; }
.hero-stats .stat-label { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@container (max-width: 175px) {
  .stat-item > .stat-ic { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
  .stat-item > .stat-ic svg { width: 16px !important; height: 16px !important; }
  .stat-item .stat-num { font-size: 1.35rem !important; }
  .stat-item .stat-label { font-size: .58rem !important; letter-spacing: .08em !important; white-space: normal !important; line-height: 1.25 !important; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 8px !important; }
  .hero-stats .stat-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; padding: 10px 10px 11px !important; border-radius: 16px !important; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 860px) { .hero-stats .stat-item { flex-direction: column !important; align-items: flex-start !important; } }
}

/* ── Celebration (emCelebrate) ── */
.emx { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 20px; background: rgba(5,5,7,0); transition: background 220ms ease; overflow: hidden; }
.emx.in { background: rgba(5,5,7,.94); }
.emx.out { opacity: 0; transition: opacity 240ms ease; }
.emx-glow { position: absolute; left: 50%; top: 42%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.22) 0%, rgba(200,16,46,.16) 35%, rgba(0,0,0,0) 65%); opacity: 0; transform: scale(.5); animation: emwGlow 1.4s ease-out .05s forwards; }
.emx-conf { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.emx-conf i { position: absolute; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); border-radius: 2px; background: var(--c); opacity: 0; animation: emxBurst 1.3s cubic-bezier(.15,.7,.3,1) var(--dl) forwards; }
.emx-c { position: relative; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.emx-tick { width: 96px; height: 96px; margin-bottom: 18px; opacity: 0; transform: scale(.6); animation: emwPop .55s cubic-bezier(.2,1.4,.4,1) .05s forwards; }
.emx-tick svg { width: 100%; height: 100%; overflow: visible; }
.emx-tick .ring { fill: rgba(34,197,94,.14); stroke: #22c55e; stroke-width: 4; stroke-dasharray: 264; stroke-dashoffset: 264; filter: drop-shadow(0 0 10px rgba(34,197,94,.7)); animation: emwRing .6s ease-out .15s forwards; }
.emx-tick .mark { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: emwRing .4s ease-out .55s forwards; }
.emx-k { margin: 0 0 6px; font: 800 .7rem var(--font-body, Inter, sans-serif); letter-spacing: .18em; text-transform: uppercase; color: #22c55e; opacity: 0; animation: emwUp .45s ease .65s forwards; transform: translateY(8px); }
.emx-t { margin: 0 0 8px; font: 800 clamp(1.5rem, 6vw, 2rem)/1.15 var(--font-display, var(--font-body, Inter, sans-serif)); letter-spacing: -.01em; opacity: 0; transform: translateY(10px); animation: emwUp .5s cubic-bezier(.2,.9,.3,1) .75s forwards; text-wrap: balance; }
.emx-d { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); opacity: 0; animation: emwUp .5s ease .9s forwards; text-wrap: pretty; }
.emx-a { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 24px; opacity: 0; transform: translateY(10px); animation: emwUp .5s ease 1.15s forwards; }
.emx-btn { height: 48px; border: 0 !important; border-radius: 999px !important; background: linear-gradient(135deg, #e11d48, #9f1239) !important; color: #fff !important; font: 700 .92rem var(--font-body, Inter, sans-serif); cursor: pointer; box-shadow: 0 10px 26px -10px rgba(225,29,72,.9) !important; }
.emx-btn.ghost { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important; box-shadow: none !important; }
.emx-done { height: 40px; border: 0 !important; background: none !important; box-shadow: none !important; color: rgba(255,255,255,.65) !important; font: 600 .86rem var(--font-body, Inter, sans-serif); cursor: pointer; }
.emx-done:hover { color: #fff !important; }
.emx-btn:focus-visible, .emx-done:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.emx.calm * { animation-duration: .01s !important; animation-delay: 0s !important; }
@keyframes emxBurst { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); } }

/* ── Undo bar ── */
.emu { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 15000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 999px; background: #1f1f24; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden; transform: translate(-50%, 24px); opacity: 0; transition: transform 220ms cubic-bezier(.2,.9,.3,1.2), opacity 200ms ease; }
.emu.in { transform: translate(-50%, 0); opacity: 1; }
.emu-t { font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emu-b { flex: none; height: 34px; padding: 0 16px !important; border: 0 !important; border-radius: 999px !important; background: rgba(255,90,115,.18) !important; color: #ff8fa3 !important; font: 800 .82rem var(--font-body, Inter, sans-serif); cursor: pointer; box-shadow: none !important; }
.emu-p { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ff3a5c; transform-origin: left; animation: emuBar 5s linear forwards; }
@keyframes emuBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 760px) { .emu { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
[data-theme="light"] .emu { background: #18181b; }

/* ── Checking your submission (emChecking) ── */
.emk { position: fixed; inset: 0; z-index: 19500; display: grid; place-items: center; padding: 20px; background: rgba(5,5,7,0); transition: background 200ms ease; }
.emk.in { background: rgba(5,5,7,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.emk-c { width: 100%; max-width: 360px; padding: 26px 22px 22px; border-radius: 24px; background: #141418; border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.9,.3,1.2); }
.emk.in .emk-c { opacity: 1; transform: none; }
.emk-c h3 { margin: 0 0 6px; font: 800 1.12rem var(--font-body, Inter, sans-serif); }
.emk-c p { margin: 0 0 16px; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.65); }
.emk-ring { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; position: relative; background: conic-gradient(from 0deg, #ff3a5c, #fbbf24, #22c55e, #38bdf8, #ff3a5c); animation: emkSpin 1.1s linear infinite; }
.emk-ring i { position: absolute; inset: 5px; border-radius: 50%; background: #141418; }
.emk-ring::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: #ff3a5c; box-shadow: 0 0 16px #ff3a5c; animation: emkPulse 1.1s ease-in-out infinite; }
.emk-c ul { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 9px; }
.emk-c li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.5); transition: color 200ms; }
.emk-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); position: relative; transition: all 200ms; }
.emk-c li.done { color: #fff; }
.emk-c li.done .emk-dot { border-color: #22c55e; background: #22c55e; }
.emk-c li.done .emk-dot::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.emk-x { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,68,68,.15); color: #f87171; }
.emk-why li { color: #fecaca !important; padding: 8px 12px; border-radius: 12px; background: rgba(239,68,68,.1); font-size: .82rem; }
.emk-btn { margin-top: 18px; width: 100%; height: 46px; border: 0 !important; border-radius: 999px !important; background: linear-gradient(135deg, #e11d48, #9f1239) !important; color: #fff !important; font: 700 .9rem var(--font-body, Inter, sans-serif); cursor: pointer; }
@keyframes emkSpin { to { transform: rotate(360deg); } }
@keyframes emkPulse { 50% { transform: scale(.7); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .emk-ring, .emk-ring::after { animation: none; } }

/* ── Report this event ── */
.evr { margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.evr-btn { display: inline-flex !important; align-items: center; gap: 6px; height: auto !important; min-height: 0 !important; padding: 4px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--muted) !important; font: 600 .78rem var(--font-body, Inter, sans-serif); cursor: pointer; }
.evr-btn:hover { color: #f87171 !important; }
.evr-q { margin: 0 0 8px; font-size: .84rem; font-weight: 700; color: var(--text-1, #fff); }
.evr-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.evr-opts button { height: 34px; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid var(--border, rgba(255,255,255,.14)) !important; background: transparent !important; color: var(--text-2, #d4d4dc) !important; font: 600 .76rem var(--font-body, Inter, sans-serif); cursor: pointer; box-shadow: none !important; }
.evr-opts button:hover { border-color: #f87171 !important; color: #fff !important; }
.evr-done { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #22c55e; }
[data-theme="light"] .evr { border-top-color: rgba(20,20,30,.08); }
[data-theme="light"] .evr-q { color: #18090c; }

/* sign in entrance: truly centred (the floating dots no longer take a row of the grid), bigger face and name */
.emw-dots { position: absolute; inset: 0; pointer-events: none; }
.emw-glow { top: 50%; }
.emw-logo { height: 40px; margin-bottom: 30px; }
.emw-av { width: 180px; height: 180px; margin-bottom: 26px; }
.emw-face { inset: 15px; box-shadow: 0 14px 56px rgba(200,16,46,.5); }
.emw-face b { font-size: 3.2rem; }
.emw-hi { font-size: 1.15rem; }
.emw-name { font-size: clamp(2.6rem, 8vw, 4rem); margin: 6px 0 12px; }
.emw-sub { font-size: .95rem; }
@media (max-width: 640px) {
  .emw-av { width: 150px; height: 150px; }
  .emw-face { inset: 12.5px; }
  .emw-face b { font-size: 2.7rem; }
  .emw-logo { height: 34px; margin-bottom: 24px; }
}
