/* The visitor pages: /explore, /calendar, /i/<invite>. Builds on app.css (colours, wordmark, buttons). */
body.site { padding: 0 0 80px; }
.site main { max-width: 1080px; padding: 0 16px; gap: 28px; }

/* ---- header ---- */
.site-top { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); background: rgba(11, 11, 13, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.site-top .inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-top .logo { font-family: "Shrikhand", "Archivo Black", sans-serif; font-size: 34px; line-height: 1.15; text-decoration: none;
  padding: .05em .12em .12em; margin: -.05em -.12em -.12em;
  background: linear-gradient(180deg, #fff3b0 0%, #ffd23f 30%, #ff8c42 58%, #ff3c78 85%, #d81b60 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(.045em .045em 0 #7b2cbf) drop-shadow(.04em .04em 0 #3a0ca3); }
.site-top nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .06em;
  padding: 8px 12px; border-radius: 10px; }
.site-top nav a:hover, .site-top nav a[aria-current="page"] { color: var(--fg); background: var(--panel); }
.bell { position: relative; }
.bell { padding-right: 22px !important; }
.bell .dot { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #ff3c78; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---- pickers ---- */
.cities, .days, .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cities::-webkit-scrollbar, .days::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.pill { flex: none; background: var(--panel); color: var(--fg); border: 1.5px solid var(--line); border-radius: 99px;
  padding: 8px 16px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pill[aria-pressed="true"] { background: #ffd60a; color: #0b0b0d; border-color: #ffd60a; }
.pill .sub { display: block; font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .06em; }
.days .pill { text-align: center; padding: 8px 14px; }
.cities { align-items: center; }
.city-pick { font-size: 16px; padding: 10px 18px; }
.city-pick .country { color: var(--muted); font-weight: 600; }
.city-total { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chip { flex: none; background: transparent; border: 1.5px solid var(--c, var(--line)); color: var(--c, var(--fg)); border-radius: 99px;
  padding: 6px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; opacity: .45; white-space: nowrap; }
.chip[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, var(--c) 14%, transparent); }
.toolbar { display: flex; flex-direction: column; gap: 12px; }
.count { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---- event cards ---- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card .img { aspect-ratio: 16 / 9; background: #1d1d22; position: relative; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .when-badge { position: absolute; left: 10px; top: 10px; background: rgba(11, 11, 13, .85); color: #ffd60a; font-weight: 800;
  font-size: 13px; padding: 5px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.card .live { position: absolute; right: 10px; top: 10px; background: #ff3b30; color: #fff; font-weight: 800; font-size: 11px;
  letter-spacing: .12em; padding: 5px 9px; border-radius: 99px; text-transform: uppercase; }
.card .streaming { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 11, 13, .85); color: #fff; font-weight: 800; font-size: 11px;
  letter-spacing: .06em; padding: 5px 9px; border-radius: 99px; border: 1px solid #ff3b30; animation: streaming 1.6s ease-in-out infinite; }  /* broadcast.py */
@keyframes streaming { 50% { box-shadow: 0 0 0 5px rgba(255, 59, 48, .25); } }
/* online events (online.py) and LAN parties (tournaments.py) */
.card .card-tags { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card .online-badge, .card .lan-badge { background: rgba(11, 11, 13, .85); font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 5px 9px;
  border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card .online-badge { color: #64d2ff; border: 1px solid rgba(100, 210, 255, .55); }
.card .lan-badge { color: #c6ff00; border: 1px solid rgba(198, 255, 0, .5); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.25; }
.card .where { color: var(--muted); font-size: 14px; }
.card .vibes { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.card .vibes span { color: var(--c); border: 1px solid var(--c); border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.card .who { font-size: 13px; color: var(--muted); gap: 6px; }
.card .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.act { background: transparent; color: var(--fg); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.act:hover { border-color: var(--fg); }
.act[aria-pressed="true"].going { background: #32d74b; border-color: #32d74b; color: #0b0b0d; }
.act[aria-pressed="true"].interested { background: #ffd60a; border-color: #ffd60a; color: #0b0b0d; }
.act.invite { margin-left: auto; border-color: #ff7eb6; color: #ff7eb6; }
.card a.more { color: var(--muted); font-size: 13px; }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---- calendar ---- */
.day-group h2 { margin: 18px 0 10px; color: #ffd60a; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; align-items: start; }
.row-card .t { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.row-card .t small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.row-card h3 { font-size: 16px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note-item { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #ff7eb6; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.note-item.unread { border-left-color: #ffd60a; background: #1c1a12; }
.note-item time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.subscribe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subscribe input { flex: 1; min-width: 220px; background: var(--panel); color: var(--muted); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; }

/* ---- invitation ---- */
.invite-hero { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.invite-hero .from { font-size: 20px; color: var(--muted); }
.invite-hero .from b { color: #ff7eb6; }
.invite-hero .card h3 { font-size: 24px; }
.answer { display: flex; gap: 10px; flex-wrap: wrap; }
.answer .primary { background: #32d74b; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg);
  font-weight: 800; padding: 12px 18px; border-radius: 12px; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast[hidden] { display: none; }

@media (max-width: 560px) {
  .site-top .logo { font-size: 28px; }
  .site-top nav { margin-left: 0; width: 100%; }
  .events { grid-template-columns: 1fr; }
}

/* ---- app ---- */
body.site { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.install-hint { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #1c1a12; border: 1px solid #ffd60a;
  color: var(--fg); border-radius: 14px; padding: 10px 12px 10px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.install-hint b { color: #ffd60a; }
.push-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---- footer, feedback, welcome ---- */
.site-foot { max-width: 1080px; margin: 48px auto 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; gap: 18px;
  flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line); font-size: 14px; }
.site-foot a, .linkish { color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 4px; }
.site-foot a:hover, .linkish:hover { color: var(--fg); }
.fb-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .7); backdrop-filter: blur(6px); }
.fb-panel { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fb-panel h2 { margin: 0; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.fb-panel textarea { font: inherit; color: var(--fg); background: #141418; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.fb-status { color: #ff6b6b; margin: 0; min-height: 1em; font-size: 14px; }
.fb-actions { display: flex; gap: 10px; }
.welcome { background: linear-gradient(135deg, rgba(255, 214, 10, .12), rgba(255, 60, 120, .1)); border: 1px solid rgba(255, 214, 10, .35);
  border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.welcome h2 { margin: 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.welcome p { margin: 0; }
.welcome ul { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--muted); }
.welcome ul b { color: var(--fg); }
.welcome .primary { align-self: flex-start; }
.legal main { max-width: 760px; line-height: 1.65; padding-top: max(24px, env(safe-area-inset-top)); }
.legal h1 { font-size: 30px; margin: 24px 0 6px; }
.legal h3 { margin: 22px 0 4px; font-size: 16px; }
.legal section + section { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; }
.legal .muted { color: var(--muted); }
.legal a { color: #ffd60a; }

/* ---- who made it: tap to follow ---- */
.makers { display: flex; flex-wrap: wrap; gap: 6px; }
.maker { font: inherit; font-size: 13px; font-weight: 600; color: var(--fg); background: #18181d; border: 1.5px solid var(--line);
  border-radius: 99px; padding: 4px 10px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maker:hover { border-color: #ffd60a; }
.maker[aria-pressed="true"] { background: rgba(255, 214, 10, .14); border-color: #ffd60a; color: #ffd60a; }
.maker::before { content: "+ "; color: #ffd60a; font-weight: 800; }
.maker[aria-pressed="true"]::before { content: "✓ "; }
.maker.more::before { content: ""; }
.makers { align-items: center; }
.makers-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.maker.more { color: var(--muted); }
.because { font-size: 13px; color: #ffd60a; }
.follow-list { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-list .count { color: var(--muted); font-weight: 500; }
.site .hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

/* vibes wrap onto more lines (a sideways strip hid half of them on desktop); days keep scrolling,
   with a visible scrollbar when there's a mouse */
.chips { flex-wrap: wrap; overflow: visible; }
@media (pointer: fine) {
  .days { scrollbar-width: thin; scrollbar-color: #3a3a44 transparent; padding-bottom: 8px; }
  .days::-webkit-scrollbar { display: block; height: 6px; }
  .days::-webkit-scrollbar-thumb { background: #3a3a44; border-radius: 3px; }
}

/* pointing at an event lights its edge in its vibe colour; clicking anywhere opens its page */
.card { transition: border-color .18s, box-shadow .18s, transform .18s; }
.card.clickable { cursor: pointer; }
.card.clickable:hover, .card.clickable:focus-visible { border-color: var(--glow); outline: none; transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--glow), 0 0 22px color-mix(in srgb, var(--glow) 45%, transparent); }
@media (prefers-reduced-motion: reduce) { .card, .card.clickable:hover { transition: none; transform: none; } }

/* Follow sits above Invite */
.act-col { margin-left: auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.act-col .act.invite { margin-left: 0; }
.act.follow { border-color: #ffd60a; color: #ffd60a; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.act.follow[aria-pressed="true"] { background: #ffd60a; color: #0b0b0d; }
.acts { align-items: flex-end; }

/* header avatar */
.me-link { display: inline-flex !important; align-items: center; gap: 6px; }
.me-av { width: 26px; height: 26px; border-radius: 50%; }

/* invite sheet: send in Superfly or share elsewhere */
.inv-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 8, .7); backdrop-filter: blur(6px); }
.inv-panel { width: min(460px, 100%); max-height: 88vh; overflow-y: auto; background: #14121c; border: 1px solid var(--line); border-radius: 20px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.inv-panel h2 { margin: 0; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.inv-panel h2 span { color: #ffd60a; }
.inv-people { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-people:empty { display: none; }
.inv-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; background: none; border: 0; color: var(--fg); font: inherit;
  font-size: 12px; cursor: pointer; }
.inv-face img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid transparent; transition: border-color .15s, transform .15s; }
.inv-face[aria-pressed="true"] img { border-color: #ffd60a; transform: scale(1.06); box-shadow: 0 0 14px rgba(255, 214, 10, .5); }
.inv-face span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-note { font: inherit; font-size: 16px; color: var(--fg); background: #1b1926; border: 1.5px solid #2e2a3e; border-radius: 12px; padding: 10px 14px; outline: none; }
.inv-note:focus { border-color: #ffd60a; }
.inv-or { text-align: center; color: var(--muted); font-size: 13px; }

/* reporting */
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.report-ev { font-size: 12px !important; color: var(--muted); opacity: .6; }
.report-ev:hover { opacity: 1; color: #ff6b6b !important; }
.rep-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-reason { font: inherit; font-size: 14px; color: var(--fg); background: #1b1926; border: 1.5px solid #2e2a3e; border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.rep-reason[aria-pressed="true"] { border-color: #ff6b6b; color: #ff6b6b; }

/* "＋ Host" in the header (hosting your own event, /host) */
.site-top nav a.nav-host { color: #ffd60a; }

/* ---- Explore: price ceiling and "For free" ---- */
.prices { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-range { display: inline-flex; background: var(--panel); border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.price-range::-webkit-scrollbar { display: none; }
.price-range[data-off="true"] { opacity: .45; }
.pchip { flex: none; background: transparent; border: 0; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pchip:hover { color: var(--fg); }
.pchip[aria-pressed="true"] { background: #f4f2ee; color: #0b0b0d; }
/* For free / Online: toggle switches that match the price selector, glowing in their colour when on */
.tgl { --c: #32d74b; flex: none; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 13px;
  color: var(--fg); background: var(--panel); border: 1.5px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 6px;
  cursor: pointer; white-space: nowrap; transition: border-color .2s, box-shadow .2s, background .2s; }
.online-toggle { --c: #64d2ff; }
.tgl:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.tgl-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: color-mix(in srgb, var(--c) 16%, transparent); }
.tgl-sw { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #2a2733; margin-left: 2px; transition: background .2s; }
.tgl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8e8a99;
  transition: transform .2s, background .2s; }
.tgl[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel));
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.tgl[aria-pressed="true"] .tgl-sw { background: var(--c); }
.tgl[aria-pressed="true"] .tgl-sw::after { transform: translateX(14px); background: #0b0b0d; }
.tgl:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tgl, .tgl-sw, .tgl-sw::after { transition: none; } }

/* ---- Explore: the day as invitations ---- */
.isets { display: flex; flex-direction: column; gap: 40px; }
.iset { display: flex; flex-direction: column; gap: 14px; }
.iset-head { display: flex; gap: 14px; align-items: flex-start; padding-left: 14px; border-left: 3px solid var(--accent); }
.iset-emoji { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.iset-head h2 { margin: 0; font-family: "Shrikhand", "Archivo Black", sans-serif; font-weight: 400; font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12; letter-spacing: .005em; text-transform: none; color: var(--fg); text-wrap: balance; }
.iset-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.iset-facts { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.iset-row { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; padding: 4px 16px 12px; margin: 0 -16px; overscroll-behavior-x: contain; scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 40%, #2a2a30) transparent; }
.iset-row > .card { scroll-snap-align: start; }
.iset-row > .card .body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.iset.rest .iset-head h2 { font-family: inherit; font-weight: 800; font-size: 22px; }
.iset-more { align-self: center; }
.iset-more-card { scroll-snap-align: start; align-self: stretch; min-height: 120px; border-radius: 18px; font-weight: 800;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.iset-you { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.isets { transition: opacity .18s ease; }
.isets.swapping { opacity: .25; }
.prices .narrow { display: none; }
@media (max-width: 560px) {
  .prices { flex-wrap: nowrap; gap: 8px; }
  .prices .wide { display: none; }
  .prices .narrow { display: inline; }
  .pchip { padding: 6px 10px; }
  .prices { flex-wrap: wrap; }
  .price-range { flex: 1 1 100%; justify-content: space-between; }
  .tgl { flex: 1 1 0; justify-content: space-between; }
  .iset-row { grid-auto-columns: 84%; }
  .isets { gap: 34px; }
  .iset-emoji { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
  .iset-head { gap: 12px; padding-left: 12px; }
}

/* ---- phone: slim header + tab bar at the bottom (site.js phoneTabs) ---- */
.tabbar, .more-sheet, .top-me { display: none; }
@media (max-width: 640px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom)); }
  .site-top { margin-bottom: 16px; }
  .site-top .inner { flex-wrap: nowrap; padding: 8px 16px; min-height: 52px; }
  .site-top .logo { font-size: 27px; }
  .site-top nav { display: none; }
  .top-me { display: block; margin-left: auto; line-height: 0; }
  .top-me .me-av { width: 34px; height: 34px; }

  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--tabbar);
    padding: 0 6px env(safe-area-inset-bottom); background: rgba(11, 11, 13, .94); border-top: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tab { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; font-size: 10.5px; font-weight: 700;
    letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tab-ic svg { width: 25px; height: 25px; display: block; }
  .tab[aria-current="page"], .tab[aria-expanded="true"] { color: #ffd60a; }
  .tab[aria-current="page"] .tab-ic { filter: drop-shadow(0 0 6px rgba(255, 214, 10, .45)); }
  .tab .dot { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #ff3c78; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #0b0b0d; }

  .more-sheet { position: fixed; inset: 0; z-index: 49; background: rgba(5, 5, 8, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .more-sheet:not([hidden]) { display: block; }
  .more-panel { position: absolute; left: 0; right: 0; bottom: var(--tabbar); background: #141418; border: 1px solid var(--line); border-bottom: 0;
    border-radius: 22px 22px 0 0; padding: 8px 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    animation: sheet-up .2s ease-out; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
  .more-grip { grid-column: 1 / -1; justify-self: center; width: 38px; height: 5px; border-radius: 3px; background: #3a3a44; margin: 2px 0 6px; }
  .more-panel a { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 14px; border-radius: 14px; background: var(--panel);
    border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; overflow: hidden; }
  .more-panel a[aria-current="page"] { border-color: #ffd60a; color: #ffd60a; }
  .more-panel a.nav-host { color: #ffd60a; }
  .more-panel a.me-link { grid-column: 1 / -1; }
  .more-panel .me-av { width: 28px; height: 28px; }
  body.more-open { overflow: hidden; }

  /* everything that sat on the bottom edge moves up above the bar */
  body.site.has-tabbar { padding-bottom: calc(var(--tabbar) + 24px); }
  .has-tabbar .install-hint { bottom: calc(var(--tabbar) + 10px); }
  .has-tabbar .toast { bottom: calc(var(--tabbar) + 14px); }
  .has-tabbar .hb-bar { bottom: var(--tabbar) !important; padding-bottom: 10px !important; }
  body.site.has-tabbar.has-hb-bar { padding-bottom: calc(var(--tabbar) + 90px); }
  .has-tabbar .map-sheet { bottom: var(--tabbar); max-height: calc(48vh - 40px); }
  .has-tabbar .maplibregl-ctrl-bottom-right, .has-tabbar .maplibregl-ctrl-bottom-left { bottom: var(--tabbar); }
  .has-tabbar .bc-pill, .has-tabbar .mm-progress { bottom: calc(var(--tabbar) + 14px); }
  .has-tabbar .site-foot { padding-bottom: 18px; }
  .has-tabbar .chat-app { height: calc(100dvh - var(--site-top, 52px) - var(--tabbar)); }
  /* inside a conversation or a game the screen belongs to it */
  body:has(.chat-app.open) .tabbar, .play-page .tabbar { display: none; }
  body:has(.chat-app.open) .chat-app { height: calc(100dvh - var(--site-top, 52px)); }
  .play-page.has-tabbar { padding-bottom: 0; }

  /* Explore on a phone: vibes as one swipeable row, actions in two tidy rows */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; }
  .cities { flex-wrap: wrap; row-gap: 4px; }
  .card .acts { flex-wrap: wrap; align-items: stretch; }
  .card .acts > .act { flex: 1; text-align: center; }
  .act-col { flex-direction: row; width: 100%; margin-left: 0; }
  .act-col > .act { flex: 1; text-align: center; max-width: none; }
  .card-foot { flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
  .card-foot .linkish, .card-foot a.more { font-size: 13px; white-space: nowrap; padding: 6px 0; }
  .card-foot .report-ev { margin-left: auto; }
  .act, .pill, .chip, .seg, .ghost, .primary { min-height: 40px; }

  /* crew posts: the "who's talking" pill stays inside its own space */
  .cp-foot .cp-talk { overflow: hidden; }
  .cp-foot .cp-talk .faces img:nth-child(n+3) { display: none; }
  .cp-foot .cp-talk .ts { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

.note-item a, .empty-state a { color: #ffd60a; }
