/* NewRegulars web. Same type, spacing and colours as the iOS app (App/Theme.swift):
   a plain white ground, ink text, and colour that comes from the activities themselves. */
:root {
  --ground: #fff; --surface: #fff; --muted: #f2f4f6; --ink: #0a2a33; --ink2: #4a5d66; --ink3: #8a99a0;
  --line: #e6ebee; --accent: #0a7ea4; --pill: #34c46a; --film: #fff; --shadow: rgba(10, 42, 51, .06); --ok: #1f9d55; --warn: #d9822b; --bad: #d1343b;
  --radius: 16px; --gutter: 16px; --side: 248px;
  color-scheme: light;
}
:root[data-look="black"] {
  --ground: #000; --surface: #121214; --muted: #1c1c1f; --ink: #f2f4f6; --ink2: #a9b3b8; --ink3: #6e777c;
  --line: #26282b; --accent: #3cc4e6; --pill: #5fdc8f; --film: #2a2a2e; --shadow: transparent;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3, p { margin: 0; }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
#side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--ground); z-index: 20; }
#main { margin-left: var(--side); min-height: 100vh; }
.page { max-width: 760px; margin: 0 auto; padding: 22px var(--gutter) 120px; }
.page.wide { max-width: 1080px; }
/* Home's top: no title, and the row of days stays in view while the list scrolls under it. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hometop { display: contents; }
.hometop .days { position: sticky; top: 0; z-index: 6; background: var(--ground); padding-top: 10px; padding-bottom: 10px; margin-top: -10px; margin-bottom: 6px; }
/* Home on a full-screen window: your interests as tiles down the right. Below that width the column isn't shown. */
.rail { display: none; }
@media (min-width: 1400px) {
  .page.home:has(.rail) { max-width: 1062px; }   /* the one-column list at its usual width, plus the interests column */
  .homecols:has(.rail) { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; align-items: start; }
  /* full screen: the days and the controls share one row, and the whole row stays in view */
  .page.home:has(.rail) .hometop { display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 6; background: var(--ground); padding: 14px 0 12px; margin: -14px 0 6px; }
  .page.home:has(.rail) .hometop .head { margin: 0; flex: none; }
  .page.home:has(.rail) .hometop .days { position: static; flex: 1; min-width: 0; margin: 0; padding: 2px 0; }
  .rail { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 84px; max-height: calc(100vh - 106px); overflow-y: auto; scrollbar-width: thin; padding: 2px; }
  .rail .act { width: 100%; }
}
.brand { display: flex; align-items: center; gap: 3px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; padding: 4px 10px 18px; }
.brand .ic { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 500; color: var(--ink2); }
.nav:hover { background: var(--muted); color: var(--ink); }
.nav.on { background: var(--muted); color: var(--ink); font-weight: 600; }
.nav .badge { margin-left: auto; }
#side .add { margin: 14px 4px; }
#tabs { display: none; }
.fab { display: none; }
@media (min-width: 881px) { .mobile-only { display: none !important; } }
@media (max-width: 880px) {
  #side { display: none; }
  #main { margin-left: 0; }
  .page { padding: 14px var(--gutter) 150px; }
  #tabs { display: flex; position: fixed; inset: auto 0 0 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); z-index: 20; }
  #tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 500; color: var(--ink3); }
  #tabs a.on { color: var(--ink); }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--ground); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); z-index: 19; }
  body.nochrome #tabs, body.nochrome .fab { display: none; }
  .desktop-only { display: none !important; }
  .brand { font-size: 20px; }
}

/* ---------- type ---------- */
.title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.h2 { font-size: 19px; font-weight: 600; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.sub { color: var(--ink2); font-size: 15px; }
.foot { color: var(--ink3); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- layout helpers ---------- */
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; min-height: 44px; }
.head .mebtn { flex: none; margin-left: auto; border-radius: 50%; display: grid; }   /* your profile: always the last thing in the top row, on the right */
.back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--muted); margin-right: 2px; }
.dayhead { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; }
.dayhead:first-child { margin-top: 0; }
.dayhead i { flex: 1; height: 1px; background: var(--line); }
.tiles { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.stack > :empty { display: none; }
@media (min-width: 1180px) { .page.wide .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 4px 12px var(--shadow); }
a.card, button.card, .tile { display: block; width: 100%; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover, button.card:hover, a.tile:hover, button.tile:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .09); }
a.card:active, a.tile:active, button.tile:active { transform: scale(.985); }
.tile { min-width: 0; border-radius: 20px; padding: 14px; background: var(--wash); border: 1px solid color-mix(in srgb, var(--tint) 24%, transparent); box-shadow: 0 4px 10px rgba(0, 0, 0, .07); display: flex; flex-direction: column; gap: 8px; color: var(--ink); background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .05)); }
.tile .when { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tile .when b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .acticon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--film) 75%, transparent); color: var(--tint); flex: none; }
.tile .wx { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink2); min-height: 0; }
.tile .wx:empty { display: none; }
.wx .v { margin-left: auto; font-weight: 500; }
.wx .v.warn { color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--pc, var(--ink2)) 14%, transparent); color: var(--pc, var(--ink2)); white-space: nowrap; }
.chipx { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: color-mix(in srgb, var(--film) 70%, transparent); white-space: nowrap; }
.card .chipx { background: var(--muted); }
.org { display: inline-flex; align-items: center; gap: 3px; padding: 2.5px 6px; border-radius: 99px; background: #4a4f56; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 700; }
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.avs { display: flex; align-items: center; }
.avs .av { border: 2px solid var(--wash, var(--surface)); margin-left: -8px; }
.avs .av:first-child { margin-left: 0; }
.avs .open { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); margin-left: -6px; background: color-mix(in srgb, var(--film) 55%, transparent); }
.avs .cnt { font-size: 13px; font-weight: 600; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: var(--radius); background: var(--ink); color: var(--ground); font-weight: 600; white-space: nowrap; }
.btn.block { display: flex; width: 100%; }
.btn.big { height: 58px; font-size: 17px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.soft { background: var(--muted); color: var(--ink); }
.btn.small { height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; }
.btn.danger { color: var(--bad); }
.btn.gchat { background: var(--tint); color: #fff; box-shadow: 0 5px 14px color-mix(in srgb, var(--tint) 35%, transparent); }   /* a group's page: the way into its chat */
.btn.gadd { width: 60px; padding: 0; background: var(--surface); color: var(--tint); border-color: color-mix(in srgb, var(--tint) 35%, transparent); flex: none; }
/* Sign-in buttons carry Apple's and Google's own artwork (web/brand/): the logo images match the button colour, so keep these colours. */
.btn.sso { gap: 4px; padding: 0 20px 0 10px; }
.btn.sso img { width: 40px; height: 40px; flex: none; pointer-events: none; }
.btn.apple { background: #000; color: #fff; box-shadow: 0 0 0 1px rgba(128, 128, 128, .35); }
.btn.google { background: #f2f2f2; color: #1f1f1f; }
.btn.sso:hover:not(:disabled) { filter: none; opacity: .9; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn.outline:hover:not(:disabled), .btn.soft:hover:not(:disabled) { background: var(--muted); filter: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--muted); font-size: 15px; font-weight: 400; white-space: nowrap; border: 1px solid transparent; }
.chip.on { background: color-mix(in srgb, var(--pill) 24%, var(--ground)); border-color: color-mix(in srgb, var(--pill) 55%, transparent); font-weight: 600; }   /* a chosen pill: light green */
.chip.on[style*="--tint"] { background: color-mix(in srgb, var(--tint) 16%, var(--ground)); border-color: color-mix(in srgb, var(--tint) 45%, transparent); }   /* unless it carries an activity's own colour */
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }
.seg { display: flex; background: var(--muted); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 34px; border-radius: 9px; font-size: 14.5px; font-weight: 500; text-align: center; color: var(--ink2); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
label.f, div.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.f .chip, .f .seg button.on, .timebtn { color: var(--ink); }   /* one-tap choices in a form, in place of dropdowns */
.f .seg button { height: 40px; }
.f .scroller { margin: 0 -16px; padding: 2px 16px; }
.f .scroller .chip { flex: none; }
@media (min-width: 881px) { .f .scroller.days { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }   /* with a mouse, show every day instead of a row to drag */
.timebtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; background: var(--muted); font-size: 18px; }
.timebtn b { font-weight: 600; } .timebtn .sub { font-size: 14px; font-weight: 400; }
.timebtn:hover { background: color-mix(in srgb, var(--pill) 14%, var(--muted)); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tgrid .chip { justify-content: center; padding: 0; height: 42px; }
@media (max-width: 380px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }
input, select, textarea { font: inherit; color: var(--ink); background: var(--muted); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); background: var(--surface); }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--ink); flex: none; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; }
.toggle span { flex: 1; }
.toggle .av { flex: none; }
.toggle small { display: block; color: var(--ink3); font-weight: 400; }
.toggle .modeic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; }
.adminpill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: #ffd140; color: #1a1a1a; border: 1px solid rgba(217, 158, 13, .8); font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }   /* on Home while Admin is on */
#aseg button { padding: 0 4px; }
.list { display: flex; flex-direction: column; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; width: 100%; }
.list > *:last-child { border-bottom: 0; }
.list.pad > * { padding: 14px 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .list > *:hover { background: var(--muted); }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 15px; color: var(--ink3); }
.search input { padding-left: 42px; }

/* ---------- pieces ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic { color: var(--ink3); }
.empty b { color: var(--ink); font-size: 18px; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink2); animation: spin .8s linear infinite; margin: 48px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.act { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--wash); border: 1.5px solid transparent; font-weight: 500; font-size: 15px; min-width: 0; }
.act .acticon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--film) 75%, transparent); color: var(--tint); flex: none; }
.act.on { border-color: var(--tint); }
.act .tick { margin-left: auto; color: var(--tint); }
.map { width: 100%; height: 200px; border: 0; border-radius: 12px; background: var(--muted); display: block; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts > div { background: var(--muted); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.facts small { display: block; color: var(--ink3); font-size: 12px; font-weight: 600; }
.facts b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.hours { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hours > div { flex: none; width: 58px; text-align: center; background: var(--muted); border-radius: 12px; padding: 8px 4px; font-size: 12.5px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hours b { color: var(--ink); font-size: 15px; }
.bar { position: sticky; bottom: 0; margin: 18px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 70%, transparent); display: flex; gap: 10px; z-index: 5; }
.note { background: color-mix(in srgb, var(--accent) 9%, var(--ground)); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.week { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: center; font-size: 14px; }
.week .blocks { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- chat ---------- */
.thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-bottom: 12px; min-height: calc(100vh - 200px); min-height: calc(100dvh - 200px); }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; background: var(--muted); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--ink); color: var(--ground); }
.msg.sys { align-self: center; background: none; color: var(--ink3); font-size: 13px; padding: 2px; }
.msg small { display: block; font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 1px; }
.compose { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--ground); }
.compose input { border-radius: 99px; }
.compose button { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--ground); display: grid; place-items: center; flex: none; }
@media (max-width: 880px) { body:not(.nochrome) .compose, body:not(.nochrome) .bar { bottom: calc(58px + env(safe-area-inset-bottom)); } }

/* ---------- sheet and toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .38); z-index: 50; display: flex; align-items: center; justify-content: center; animation: fade .15s ease; }
.sheet { background: var(--ground); border-radius: 22px; width: min(520px, calc(100vw - 32px)); max-height: min(92vh, 860px); overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sheet > * { flex-shrink: 0; }   /* a tall sheet scrolls; its rows and buttons don't squash */
.sheet .grab { display: none; }
@media (max-width: 880px) {
  .scrim { align-items: flex-end; }
  .sheet { width: 100%; border-radius: 22px 22px 0 0; max-height: 90vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: up .2s ease; }
  .sheet .grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: -8px auto 0; flex: none; }
  #onlyg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 2px 22px; }   /* Filter's "Show only" chips: one row to swipe on a phone */
  #onlyg::-webkit-scrollbar { display: none; }
  #onlyg .chip { flex: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; z-index: 60; max-width: min(92vw, 480px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: up .2s ease; }

/* ---------- sign-in and landing ---------- */
.center { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 18px; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shopgrid .ph { aspect-ratio: 1; border-radius: 12px; background: var(--muted); display: grid; place-items: center; color: var(--ink3); margin-bottom: 8px; overflow: hidden; }
.shopgrid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itemphoto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 12px; background: var(--muted); }

/* ---------- leagues and tournaments ---------- */
.scroller .tile.comp { flex: none; width: 270px; }
.ladder { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ladder th { font-size: 12px; font-weight: 600; color: var(--ink3); text-align: right; padding: 4px 6px; }
.ladder td { text-align: right; padding: 8px 6px; border-top: 1px solid var(--line); }
.ladder th:nth-child(2), .ladder td:nth-child(2) { text-align: left; width: 99%; overflow-wrap: anywhere; }
.ladder td:first-child { color: var(--ink3); text-align: left; }
.ladder tr.me td { background: color-mix(in srgb, var(--tint, var(--accent)) 10%, transparent); font-weight: 600; }
.list > button { text-align: left; }

/* ---------- the front door: everyone signs in first ---------- */
body.gate #side, body.gate #tabs, body.gate .fab { display: none; }
body.gate #main { margin-left: 0; }
.page.gatewrap { max-width: 1080px; padding-top: 0; padding-bottom: 40px; }
.gatepage { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 32px 0; }
.gatepage .pitch { display: flex; flex-direction: column; gap: 20px; }
.gatepage .pitch h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.gatepage .pitch .sub { font-size: 17px; max-width: 46ch; }
.gatepage .signin { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 22px; box-shadow: 0 12px 40px rgba(10, 42, 51, .10); }
@media (max-width: 880px) {
  .gatepage { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; padding: 22px 0 28px; }
  .gatepage .signin { order: -1; padding: 22px; }
  .gatepage .pitch h1 { font-size: 28px; }
}
/* Where Google draws its own sign-in button. Google's frame is light whatever the look, so keep the box light too. */
.gsi { min-height: 44px; display: flex; justify-content: center; align-items: center; color-scheme: light; }
.or { display: flex; align-items: center; gap: 12px; }
.or i { flex: 1; height: 1px; background: var(--line); }

/* Who's going, on the activity's own scene (scenes.js). The backdrops keep fixed colours, like a real court, in both looks. */
.going .sc-head { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.going .sc-org { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.going .sc-org i, .sc-av i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; flex: none; }
.scene { position: relative; width: 100%; max-width: 520px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--muted); }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-spot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; }
.sc-av { position: relative; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--ring, #fff), 0 2px 6px rgba(0, 0, 0, .3); }
.sc-av.host { box-shadow: 0 0 0 3.5px var(--ring), 0 2px 6px rgba(0, 0, 0, .3); }
.sc-av i { position: absolute; right: -4px; bottom: -3px; border: 1.5px solid #fff; }
.sc-name { max-width: 74px; padding: 1.5px 6px; border-radius: 99px; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene.light .sc-name { color: #fff; background: rgba(0, 0, 0, .28); }
.scene.dark .sc-name { color: #1e2a30; background: rgba(255, 255, 255, .7); }
.sc-role { padding: 2px 6px; border-radius: 99px; border: 1px solid #fff; background: #f2b53a; color: #3a2a05; font-size: 8.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
button.sc-spot:hover .sc-open, button.sc-spot:focus-visible .sc-open { transform: scale(1.1); border-style: solid; }   /* an open spot you can take */
.sc-open { transition: transform .12s ease; }
.sc-ghost, .sc-open { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.sc-ghost { background: rgba(255, 255, 255, .55); border: 2px solid #fff; color: #fff; }
.scene.light .sc-open { background: rgba(255, 255, 255, .12); border: 1.5px dashed rgba(255, 255, 255, .85); color: rgba(255, 255, 255, .9); }
.scene.dark .sc-open { background: rgba(255, 255, 255, .5); border: 1.5px dashed rgba(30, 42, 48, .85); color: rgba(30, 42, 48, .9); }
.sc-plane { position: absolute; top: 12px; right: 14px; color: rgba(255, 255, 255, .9); transform: rotate(-20deg); }
.everyone summary { cursor: pointer; list-style: none; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--tint, var(--accent)); }
.everyone summary::-webkit-details-marker { display: none; }
.everyone summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.everyone[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.everyone[open] summary { margin-bottom: 8px; }

