/* Sportive Circle @ UW
   Looks like washington.edu: a white page, dark gray text, a Husky Purple header with a gold line, gold bars
   under titles, bold condensed headings and Open Sans. Colors are UW's official digital palette
   (washington.edu/brand): Husky Purple #32006e, Spirit Purple #4b2e83, Husky Gold #b7a57a (and #e8e3d3 on
   the web), Heritage Gold #85754d. Light by default, like UW's own pages; dark mode is a choice in Settings. */

/* ============================== Tokens ============================== */
:root {
  color-scheme: light;         /* form controls stay light, even when the phone is in dark mode */
  --purple: #4b2e83;           /* Spirit Purple: header, main buttons, links, active tab */
  --purple-strong: #32006e;    /* Husky Purple: hover and pressed */
  --gold: #b7a57a;             /* Husky Gold: the line under the header, bars under titles */
  --gold-light: #e8e3d3;       /* Husky Gold (web): soft highlights */
  --gold-text: #85754d;        /* Heritage Gold: gold text that's readable on white */
  --spirit-gold: #ffc700;      /* Spirit Gold: tiny accents only */
  --accent: var(--purple);
  --accent-soft: #f1edf8;      /* a whisper of purple for boxes that need attention */

  --bg: #ffffff;
  --surface: #f1eff5;          /* inputs, quiet panels */
  --line: #d9d6e0;             /* hairlines */
  --control: #e8e5ee;          /* secondary buttons, chips, switches: a bit darker than the page */
  --control-line: #cdc8d8;     /* their thin outline, so they don't melt into the white page */
  --band: #f3f0e8;             /* thick dividers between sections: a warm, light gold */
  --tile: #faf9fb;             /* one game in a list */
  --text: #262626;
  --muted: #5d5b63;
  --faint: #9a98a2;

  --success: #1f7a4a;
  --danger: #c0352b;
  --header: #4b2e83;           /* the top bar and the landing band */
  --heading: #1e1e1e;
  --on-accent: #ffffff;        /* text on a purple button */

  --radius: 10px;
  --display: "Encode Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* Dark mode (Settings -> Look). "Match my phone" follows the phone's own setting. The header stays Husky Purple. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --purple: #b9a3e8;           /* purple text and links need to be lighter on a dark page */
  --purple-strong: #d9ccf5;
  --gold-light: #2e2918;
  --gold-text: #cdbd92;
  --accent: #b9a3e8;
  --accent-soft: #262035;
  --bg: #15121c;
  --surface: #211c2b;
  --line: #342d42;
  --control: #2a2436;
  --control-line: #3d3550;
  --band: #0f0d14;
  --tile: #1b1724;
  --text: #ece9f2;
  --muted: #a8a2b4;
  --faint: #6f687c;
  --success: #6fd49c;
  --danger: #ff8a80;
  --header: #32006e;
  --heading: #f4f1f9;
  --on-accent: #1a0f33;       /* text on a (light purple) button */
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --purple: #b9a3e8;           /* purple text and links need to be lighter on a dark page */
    --purple-strong: #d9ccf5;
    --gold-light: #2e2918;
    --gold-text: #cdbd92;
    --accent: #b9a3e8;
    --accent-soft: #262035;
    --bg: #15121c;
    --surface: #211c2b;
    --line: #342d42;
    --control: #2a2436;
    --control-line: #3d3550;
    --band: #0f0d14;
    --tile: #1b1724;
    --text: #ece9f2;
    --muted: #a8a2b4;
    --faint: #6f687c;
    --success: #6fd49c;
    --danger: #ff8a80;
    --header: #32006e;
    --heading: #f4f1f9;
    --on-accent: #1a0f33;       /* text on a (light purple) button */
  }
}

/* ============================== Base ============================== */
* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, even if a class gives it display: grid/flex. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  padding-bottom: 84px; /* room for the phone tab bar */
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .005em; color: var(--heading); }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
strong { font-weight: 650; }
em { font-style: normal; color: var(--muted); font-weight: 400; }
small { font-size: .82rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); color: var(--text); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; }

.page { max-width: 640px; margin: 0 auto; padding: 16px 16px 24px; }
.page-title { font-size: 1.6rem; margin: 6px 0 16px; }
/* The UW touch: a short Husky Gold bar under page titles. */
.page-title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 8px; background: var(--gold); }
.place-tip { display: block; margin-top: 4px; font-size: .82rem; }
.place-tip:empty { display: none; }
.section-title { font-size: 1rem; font-weight: 700; margin: 26px 0 8px; }
/* Dividers. Big sections of a page start with a soft full-width band (like Instagram/Facebook), so a
   long page reads as separate chunks instead of one block. Items inside a section keep thin lines. */
.page .band { margin: 22px -16px 0; padding: 18px 16px 6px; border: 0; border-top: 10px solid var(--band);
  border-radius: 0; background: none; }
.page .band-title { margin: 22px -16px 10px; padding: 18px 16px 0; border-top: 10px solid var(--band); }
/* Home: every section has a clear title. */
.home-section-title { margin: 0 0 12px; font-family: var(--display); font-size: 1.2rem; font-weight: 800;
  color: var(--purple-strong); }
/* Each game in a list is its own tile, with space around it, so games never blur together. */
.stack:has(> .event-card) { gap: 10px; }
.stack > .event-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tile); }
.stack > .event-card:hover { border-color: var(--faint); }
.band > h2:first-child, .band > .section-head:first-child { margin-top: 0; }
.band > h2:first-child { font-size: 1.05rem; }
section.band > .section-title:first-child { margin-top: 0; }
/* Parties, private games, team vs team */
/* Create a game: "Who's coming?" */
.who-coming { display: grid; gap: 8px; }
.who-note { margin: 0; font-size: .85rem; }
.friend-picks { max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 10px; }
.invite-app { margin: -4px 0 14px; }
.invite-landing { display: grid; gap: 10px; }
.invite-landing h1, .invite-landing p { margin: 0; }
.invite-landing .invite-game { margin: 4px 0; }
.player-math { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--gold-light);
  font-weight: 600; font-size: .92rem; color: var(--purple-strong); }
.player-math.is-over { background: color-mix(in srgb, var(--danger) 14%, var(--bg)); color: var(--danger); }
.remove-player { display: inline; margin-left: auto; }
.remove-player .link-button { color: var(--muted); font-size: .85rem; padding: 6px 0; }
.share-box { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); }
.share-box p { margin: 0; }
.invite-box { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); }
.invite-box .action-pair { margin-top: 4px; }
.password { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; margin-right: 8px; }
.password-join { display: grid; gap: 10px; }
.fact-note { display: block; }
.team-columns { display: grid; gap: 14px; }
@media (min-width: 560px) { .team-columns { grid-template-columns: 1fr 1fr; } }
.team-column { padding: 12px; border-radius: var(--radius); background: var(--surface); }
.team-column.is-mine { box-shadow: inset 0 0 0 2px var(--accent); }
.team-column h3 { margin: 0 0 6px; font-size: 1rem; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; font-weight: 600; }
.pick-row input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

/* The bell page */
.bell-dot { flex: none; width: 9px; height: 9px; margin: 6px 0 0 auto; border-radius: 50%; background: var(--purple); }
/* Settings */
.settings-list { margin-bottom: 18px; }
.settings-list .settings-row { margin: 0; border-top: 0; }
.settings-list .settings-row:first-child { border-top: 1px solid var(--line); }
.settings-row small { display: block; font-weight: 400; }
.settings-group { padding: 16px 0; border-top: 1px solid var(--line); }
.settings-group h2 { margin: 0 0 10px; }
/* On/off switches (Settings -> Notifications): a real checkbox, drawn as a switch. */
.switch-list { list-style: none; margin: 0; padding: 0; }
.switch-list li + li { border-top: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; }
.switch-text { display: grid; gap: 1px; font-weight: 600; }
.switch-text small { font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px;
  background: var(--control-line); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.switch:checked { background: var(--purple); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li + li { border-top: 1px solid var(--line); }
.bell-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 4px; color: var(--muted); }
.bell-item:hover { text-decoration: none; }
.bell-item.is-new { color: var(--text); font-weight: 600; }
.bell-emoji { flex: none; width: 24px; text-align: center; }
.bell-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.bell-text small { font-weight: 400; font-size: .8rem; }
/* Notification settings */
.notif-table { width: 100%; border-collapse: collapse; }
.notif-table th, .notif-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.notif-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.notif-table tbody th { text-align: left; font-weight: 500; font-size: .92rem; }
.notif-table thead th:first-child { text-align: left; }
.notif-table input { width: 22px; height: 22px; accent-color: var(--purple); }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0;
  margin-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.settings-row:hover { text-decoration: none; }
.settings-row .muted { font-weight: 400; font-size: .85rem; }
.stack { display: grid; }

/* ============================== Top bar (phones) & logo ============================== */
/* Like washington.edu: a purple header with a Husky Gold line under it. */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--header); border-bottom: 4px solid var(--gold); }
.topbar-inner { max-width: 640px; margin: 0 auto; padding: 0 12px 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em;
  color: var(--text); text-decoration: none; }
.topbar .brand { color: #fff; }
.topbar .brand-accent { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 28px; height: 28px; flex: none; }
.brand-accent { color: var(--accent); }
.brand:hover { text-decoration: none; }
.top-icons { display: flex; gap: 2px; }
.top-icons a { position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; }
.top-icons a:hover { background: rgb(255 255 255 / .14); text-decoration: none; }
.top-icons .count-dot { position: absolute; top: 4px; right: 2px; }
/* On narrow phones the icons need the room: show just the paw logo (4 icons below 370px, 5 for admins below 412px). */
@media (max-width: 370px) { body.has-app-nav .topbar .brand > span { display: none; } }
@media (max-width: 412px) { .topbar-inner.five-icons .brand > span { display: none; } }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a, .nav .link-button { color: var(--text); font-weight: 600; font-size: .95rem; }
.topbar .nav a, .topbar .nav .link-button { color: #fff; }
.nav form { margin: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 520px) { .nav .wide-only { display: none; } }
.nav-cta { background: var(--gold); color: var(--purple-strong) !important; padding: 7px 14px; border-radius: 6px; }
.nav-cta:hover { background: var(--gold-light); text-decoration: none; }

/* ============================== App navigation ==============================
   Phones & tablets: bottom tab bar.  Laptops (>= 1000px): left sidebar. Same sections, same order. */
.appnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.appnav .side-only { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 4px 2px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--muted); font: 500 .68rem/1.1 var(--font); text-decoration: none;
}
.tab:hover { text-decoration: none; color: var(--text); }
.tab-icon { position: relative; display: grid; place-items: center; }
.tab-icon .count-dot { position: absolute; top: -4px; right: -10px; }
.tab.is-active { color: var(--purple); }
.tab.is-active .icon { stroke-width: 2.4; color: var(--purple); }
.tab.is-active .tab-label { font-weight: 700; }
.side-logout { margin: 0; }
body.hide-tabs .appnav { display: none; }
body.hide-tabs { padding-bottom: 0; }

@media (min-width: 1000px) {
  body.has-app-nav { padding-left: 244px; padding-bottom: 0; }
  body.has-app-nav .topbar { display: none; }
  body.hide-tabs .appnav { display: flex; }
  .appnav {
    top: 0; right: auto; width: 244px; flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 26px 12px; border-top: 0; border-right: 1px solid var(--line);
  }
  .appnav .side-only { display: block; }
  .appnav .brand { padding: 0 12px 26px; font-size: 1.45rem; }
  .side-extra { display: flex !important; flex-direction: column; gap: 2px; margin-top: auto; }
  .tab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 14px; width: 100%;
    min-height: 0; padding: 11px 12px; font-size: .98rem; color: var(--text); }
  .tab:hover { background: var(--surface); }
  .tab.is-active .tab-label { font-weight: 800; }
  .tab-icon .count-dot { top: -6px; right: -8px; }
  .page { padding-top: 32px; }
}

/* ============================== Buttons & small controls ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 0; border-radius: 10px; background: var(--purple); color: var(--on-accent);
  font: 650 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--purple-strong); text-decoration: none; }
.btn:disabled, .btn[disabled] { background: var(--surface); color: var(--faint); cursor: not-allowed; }
.btn-ghost, .btn-danger-ghost { background: var(--control); color: var(--text); box-shadow: inset 0 0 0 1px var(--control-line); }
.btn-ghost:hover { background: var(--control-line); text-decoration: none; }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--line); }
.btn-gold { background: var(--purple); }          /* one main-button style everywhere */
.btn-small { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-large { padding: 12px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.is-static { cursor: default; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.danger-link, .link-button.danger-link { color: var(--danger); }
.count-dot { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff; font: 700 .66rem/1 var(--font); }
/* Pop-ups (<dialog>): a small centered card, like an iPhone alert. */
.popup { width: min(340px, calc(100vw - 32px)); padding: 22px 20px 18px; border: 0; border-radius: 16px;
  background: var(--bg); color: var(--text); text-align: center; box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
.popup::backdrop { background: rgb(0 0 0 / .45); }
.popup h2 { margin: 0 0 6px; font-size: 1.15rem; }
.popup p { margin: 0 0 16px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; margin-bottom: 4px; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* chips & tags: quiet, neutral */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--control); color: var(--text); font-size: .88rem; border: 0; box-shadow: inset 0 0 0 1px var(--control-line); }
.chip.is-on { background: var(--purple); color: var(--on-accent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: var(--surface); color: var(--muted); white-space: nowrap; }
.badge-success { color: var(--success); }
.badge-danger { color: var(--danger); }
.badge-purple, .badge-club, .badge-level { color: var(--accent); }
.badge-gold { color: var(--gold-text); background: var(--gold-light); }
.badge-muted { color: var(--muted); }
.badge-verified { color: var(--success); }
.going-pill, .done-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--success); }
.done-pill { font-size: .85rem; }

/* segmented control & tabs */
.segmented { display: inline-flex; background: var(--control); border-radius: 10px; padding: 3px;
  box-shadow: inset 0 0 0 1px var(--control-line); }
.segmented label { flex: 0 0 auto; }

.segmented span, .segmented-link { display: block; padding: 6px 14px; border-radius: 8px; font-size: .9rem;
  font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.segmented input:checked + span, .segmented-link.is-on { background: var(--bg); color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.segmented-link:hover { text-decoration: none; }
.home-tabs, .tab-list { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 16px;
  overflow-x: auto; scrollbar-width: none; }
.home-tabs::-webkit-scrollbar, .tab-list::-webkit-scrollbar { display: none; }
.home-tabs a, .tab-list button { padding: 12px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--muted); font: 650 .95rem var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.home-tabs a.is-on, .tab-list button.is-on { color: var(--purple); border-bottom-color: var(--purple); }
.home-tabs a:hover { text-decoration: none; color: var(--text); }
.tab-panel { outline: none; }

/* ============================== Cards, lists, rows ============================== */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
section.card, details.card { margin-top: 16px; }
section.card h2, details.card h2 { margin-top: 0; }
.empty { text-align: center; padding: 36px 18px; border: 0; }
.empty p { margin: 0 0 10px; }
.empty-emoji { font-size: 1.8rem; }
.people { list-style: none; padding: 0; margin: 0; }
.people > li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people > li:last-child { border-bottom: 0; }
.post-game-row { justify-content: space-between; flex-wrap: wrap; }
.person { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.person:hover { text-decoration: none; }
.person-extra { display: block; font-weight: 400; color: var(--muted); }

/* avatars */
.avatar-img { --size: 40px; width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  object-fit: cover; background: var(--surface); }
/* Initials, like Gmail or iMessage: the letter sits in the exact middle of the circle. */
.avatar-initial { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: calc(var(--size) * .42); line-height: 1; text-align: center; }

/* ============================== Event rows (Home, My events, profiles) ============================== */
.event-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.event-card.is-cancelled { opacity: .55; }
.event-emoji { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: 1.45rem; }
.event-emoji.big { width: 60px; height: 60px; font-size: 1.9rem; }
.event-body { flex: 1; min-width: 0; }
.event-title { display: block; font-weight: 650; color: var(--text); line-height: 1.3; }
.event-link::after { content: ""; position: absolute; inset: 0; }  /* whole row is tappable */
.event-link:hover { text-decoration: none; }
.event-card:hover .event-title { text-decoration: underline; }
.event-meta { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.rel { color: var(--muted); }
.dot { opacity: .6; }
.event-side { flex: none; display: grid; justify-items: end; gap: 6px; text-align: right; }
.event-count { font-size: .85rem; color: var(--muted); }
.event-count strong { color: var(--text); font-weight: 650; }
.event-count small { display: none; }
.card-join { position: relative; z-index: 1; margin: 0; }
.card-chat { position: relative; z-index: 1; color: var(--muted); display: inline-flex; }
.card-chat .count-dot { position: absolute; top: -5px; right: -8px; }
.event-card .badges { margin-top: 4px; }

/* ============================== Home ============================== */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.gold { color: var(--accent); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 540px; }
.welcome-help { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); font-size: .9rem; }
.welcome-help .link-button { color: var(--muted); }
.now-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 4px;
  scrollbar-width: none; scroll-snap-type: x mandatory; }
.now-row::-webkit-scrollbar { display: none; }
.now-tile { flex: none; width: 70px; display: grid; justify-items: center; gap: 2px; text-align: center;
  color: var(--text); scroll-snap-align: start; }
.now-tile:hover { text-decoration: none; }
.now-ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--surface); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.now-tile.is-mine .now-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple); }
.now-tile strong { font-size: .75rem; font-weight: 600; margin-top: 6px; line-height: 1.1; }
.now-tile small { font-size: .7rem; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.filter-more { display: contents; }
.filter-more > summary { list-style: none; cursor: pointer; font-weight: 600; }
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more[open] > summary { background: var(--text); color: var(--bg); }
.filter-row { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
@media (min-width: 640px) { .filter-row { grid-template-columns: repeat(3, 1fr); } }
.filters { display: grid; gap: 10px; margin-bottom: 12px; padding: 0; border: 0; }
.clear-filters { font-size: .88rem; display: inline-block; padding: 10px 0; }
.club-picks { margin-top: 8px; }
.club-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.top-dawgs { border: 0; padding: 0; }
.top-dawgs ol { list-style: none; padding: 0; margin: 0; }
.top-dawgs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.top-dawgs .person { flex: 1; min-width: 0; }
.rank { width: 24px; text-align: center; }

/* ============================== Forms ============================== */
.form-card { max-width: 520px; margin: 0 auto; border: 0; padding: 0; }
.form { display: grid; gap: 14px; margin: 16px 0; }
.row { display: grid; gap: 14px; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--control-line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: 16px/1.4 var(--font);   /* 16px: no zoom on iPhone */
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.toggle { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: .95rem; }
.toggle input { width: 20px; height: 20px; flex: none; accent-color: var(--purple); }
.attest { padding: 12px; border-radius: 10px; background: var(--surface); }
.chip-grid, .choice-pills { display: flex; flex-wrap: wrap; gap: 8px; }
/* Radio buttons/checkboxes drawn as pills: the real input stays (for keyboards and screen readers) but is
   invisible and 1px big, so it can't stretch the page sideways on phones. */
.segmented label, .chip-check, .choice-pill { position: relative; }
.segmented input, .chip-check input, .choice-pill input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chip-check span, .choice-pill span { display: inline-block; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: var(--control); border: 1px solid var(--control-line); font-size: .9rem; user-select: none; }
.chip-check input:checked + span, .choice-pill input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--on-accent); }
.chip-check input:focus-visible + span, .choice-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hint { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
details > summary { cursor: pointer; }
.fold > summary, .map-details > summary { list-style: none; font-weight: 600; padding: 12px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 8px; }
.fold > summary::-webkit-details-marker, .map-details > summary::-webkit-details-marker { display: none; }
.fold > summary::after, .map-details > summary::after { content: "›"; color: var(--faint); font-size: 1.2rem;
  transition: transform .15s; }
.fold[open] > summary::after, .map-details[open] > summary::after { transform: rotate(90deg); }
details.card.fold { padding: 4px 16px; }
.more-options { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-options > .form { margin: 0 0 14px; }

/* step-by-step forms */
.wizard-step { display: grid; gap: 14px; }
.wizard-progress { display: grid; gap: 6px; }
.wizard-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wizard-bar span { display: block; height: 100%; background: var(--purple); transition: width .25s ease; }
.wizard-count { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
form[data-wizard] .form-step { display: none; }
.form-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; font-size: 1rem; }
.form-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-size: .8rem; flex: none; }
.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .btn { flex: 1; }

/* ============================== Messages & notices ============================== */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; font-weight: 500;
  background: var(--surface); border-left: 3px solid var(--faint); }
.flash-success, .flash-celebrate { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-info { border-left-color: var(--accent); }
.flash-birthday { border-left-color: var(--gold); }
.note { background: var(--surface); border-radius: 10px; padding: 12px; white-space: pre-line; }

/* ============================== Event page ============================== */
.detail { border: 0; padding: 0; }
.detail-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.detail-head h1 { margin: 0; }
.facts { display: grid; gap: 10px; margin: 14px 0; }
.facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.primary-action { margin: 16px 0 6px; display: grid; gap: 6px; }
.primary-action form { margin: 0; }
.icon-actions { display: flex; justify-content: space-around; margin: 12px 0 4px; padding: 6px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.icon-action-form { margin: 0; display: contents; }
.icon-action { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 8px 2px; min-width: 56px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--text); font: 500 .74rem/1.1 var(--font); }
.icon-action:hover { background: var(--surface); text-decoration: none; }
.icon-action > span { position: relative; display: grid; }
.icon-action .count-dot { position: absolute; top: -5px; right: -10px; }
.map-card { display: grid; gap: 10px; padding-bottom: 8px; }
.event-map { height: 240px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-status { margin: 0; min-height: 1.4em; font-size: .88rem; }
.cancel-event { margin: 14px 0 0; text-align: center; }
.locked-level { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }

/* ============================== Profiles & badges ============================== */
/* Profile header, like Instagram: photo + name, then bio, then full-width buttons. */
.profile { display: grid; gap: 12px; margin-bottom: 18px; }
.profile-top { display: flex; gap: 16px; align-items: center; }
/* The wrapper is exactly the photo's size (inline boxes add room for text below), so the ring is centered. */
.profile-photo { position: relative; flex: none; display: inline-flex; line-height: 0; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple); }
.profile-photo .avatar-img { display: block; }
.profile-photo .avatar-initial { display: grid; }
.profile-photo:hover { text-decoration: none; }
.profile-name { min-width: 0; }
.socials-field .row { grid-template-columns: 1fr 1fr; }
.profile-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.profile-socials a { display: inline-block; padding: 4px 0; font-weight: 600; }
.profile-name h1 { margin: 0 0 2px; overflow-wrap: anywhere; }
.profile-name p { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.profile-bio { margin: 0; overflow-wrap: anywhere; }
.profile-buttons { display: flex; gap: 8px; }
.profile-buttons > * { flex: 1; margin: 0; }
.profile-buttons form .btn, .profile-buttons > .btn { width: 100%; justify-content: center; text-align: center; }
.profile-buttons .more-menu { flex: 0 0 auto; }
.profile-sports { gap: 6px; }
.edit-photo { display: grid; justify-items: center; gap: 8px; margin: 4px 0 16px; font-weight: 600; }
.edit-photo:hover { text-decoration: none; }
.people-search { display: flex; gap: 8px; margin: 0 0 16px; }
.people-search input { flex: 1; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: .9rem; font-weight: 600; padding: 8px 0; }
.showcase-row { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.showcase-badge { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius);
  background: var(--surface); text-align: center; }
.showcase-badge strong { font-size: .78rem; line-height: 1.2; overflow-wrap: anywhere; }
.showcase-badge.is-limited { box-shadow: inset 0 0 0 1.5px var(--gold); }
.showcase-emoji { font-size: 1.6rem; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 8px; background: var(--surface); font-weight: 700; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; min-width: 150px;
  display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.more-menu-panel.right { left: auto; right: 0; }
.more-menu-panel form { margin: 0; }
.more-menu-panel a { font-weight: 600; }
.more-menu-panel .link-button { text-align: left; white-space: nowrap; font-weight: 600; }
.locker-link { font-weight: 600; font-size: .9rem; }
.husky-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.husky-badges.showcase { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.husky-badge { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 10px; background: var(--surface); }
.husky-badge strong { display: block; font-size: .9rem; }
.husky-badge small { display: block; color: var(--muted); font-size: .75rem; }
.husky-badge-emoji { font-size: 1.5rem; }
.husky-badge.is-locked { background: none; border: 1px dashed var(--line); }
.husky-badge.is-locked .husky-badge-emoji { filter: grayscale(1); opacity: .5; }
.husky-badge.is-retired:not(.is-locked) { box-shadow: inset 0 0 0 1.5px var(--gold); }
.husky-badge:has(.showcase-pick:checked) { box-shadow: inset 0 0 0 2px var(--purple); }
.showcase-pick { width: 20px; height: 20px; accent-color: var(--purple); flex: none; cursor: pointer; }
.badge-tag { display: inline-block; margin-top: 3px; font-size: .64rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted); }
.tag-og { color: var(--gold-text); }
.badge-count { font-weight: 500; font-size: .85rem; color: var(--muted); }
.locker-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 64px; z-index: 5; padding: 10px 14px; background: var(--bg); }
.photo-form { justify-items: center; }
.photo-picker { position: relative; display: grid; justify-items: center; gap: 12px; cursor: pointer; }
.photo-preview { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--surface); font-size: 2.6rem; }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-picker:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }

.stat-row { list-style: none; display: flex; justify-content: space-around; padding: 12px 0; margin: 14px 0 8px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row li { display: grid; justify-items: center; }
.stat-row strong { font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.stat-row span { font-size: .78rem; color: var(--muted); }

/* ============================== Clubs ============================== */
.club-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.club-card { display: grid; gap: 6px; align-content: start; color: var(--text); }
.club-card:hover { text-decoration: none; border-color: var(--faint); }
.club-emoji { --size: 44px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: calc(var(--size) * .5); }
.club-logo { --size: 44px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; object-fit: cover;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.share-club { display: grid; justify-items: center; gap: 8px; }
.share-club h1 { margin: 4px 0 0; }
.club-qr { width: min(260px, 70vw); height: auto; border: 1px solid var(--line); border-radius: 8px; }
.share-link { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
@media print {
  .topbar, .appnav, .site-footer, .no-print, .flash { display: none !important; }
  body { padding: 0 !important; }
  .share-club { border: 0; box-shadow: none; }
}
.roster-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.club-share-row { margin: 0 0 10px; font-size: .9rem; font-weight: 600; }
.club-share-row .icon { width: 18px; height: 18px; vertical-align: -3px; }
.club-logo-wrap { display: grid; justify-items: center; gap: 4px; flex: none; }
.logo-edit { display: inline-block; padding: 8px 6px; font-size: .8rem; font-weight: 600; }
.club-name { font-weight: 700; }
.club-desc { font-size: .88rem; }
.club-search { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.club-hero { border: 0; padding: 0; }
.club-profile { display: flex; gap: 14px; align-items: center; }
.club-profile h1 { margin: 0; font-size: 1.4rem; }
.club-sub { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.verified { color: var(--success); font-weight: 600; }
.club-about { white-space: pre-line; margin: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.clamp.is-open { display: block; }
.club-actions { margin-top: 14px; }
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; }
.action-pair form { margin: 0; }
.action-pair .btn, .action-pair summary.btn { width: 100%; }
.join-panel > summary { list-style: none; }
.join-panel > summary::-webkit-details-marker { display: none; }
.join-panel[open] { grid-column: 1 / -1; }
.join-panel .form { margin: 10px 0 0; }
.waiting-box { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: var(--surface); }
.how-to-join { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 14px; scroll-margin-top: 80px; }
.how-to-join p { margin: 4px 0 0; white-space: pre-line; }
/* Club facts: a small label on top, the answer under it, two per row. */
.quick-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.quick-facts li { display: grid; gap: 1px; align-content: start; padding: 10px 0; border-bottom: 1px solid var(--line);
  min-width: 0; overflow-wrap: anywhere; }
.quick-facts small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.quick-facts strong { font-size: .92rem; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.quiet-leave { margin: 20px 0 0; text-align: center; font-size: .88rem; }
.quiet-leave .link-button { color: var(--muted); }
.club-posts { list-style: none; padding: 0; margin: 0; }
.club-posts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.club-posts p { margin: 0 0 2px; white-space: pre-line; }
.club-post-form { grid-template-columns: 1fr auto; align-items: end; margin: 0 0 8px; }
.inline-form { display: inline; margin-left: 8px; }
.request-row { flex-direction: column; align-items: stretch !important; }
.request-answer { margin: 0; padding: 8px 12px; background: var(--surface); border-radius: 10px; white-space: pre-line; }
.club-status { margin-bottom: 12px; }
.club-update { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.club-update-club { display: flex; gap: 10px; align-items: center; color: var(--text); }
.club-update-club:hover { text-decoration: none; }
.club-update-club small { display: block; }
.club-update-body { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.update-composer { display: grid; gap: 10px; margin-bottom: 8px; }
.update-composer .field { margin: 0; }
.composer-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.composer-row select { width: auto; flex: 1; min-width: 180px; }
.club-banner { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.landing-clubs { margin: 32px 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-actions form { margin: 0; }
.reject-form { display: flex; gap: 8px; flex: 1; min-width: 240px; }

/* ============================== News ============================== */
.team-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.team-chips .chip { white-space: nowrap; font-size: .85rem; }
.team-chips .chip:hover { text-decoration: none; }

/* ============================== Chat & messages ============================== */
.chat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chat-header h1 { margin: 0; font-size: 1.25rem; }
.chat-header p { margin: 2px 0 0; }
.chat { padding: 0; overflow: hidden; }
.chat-messages { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; align-content: start;
  height: min(60vh, 540px); overflow-y: auto; }
.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.chat-msg.is-mine { margin-left: auto; flex-direction: row-reverse; }
.chat-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: .8rem; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble { background: var(--surface); border-radius: 18px; padding: 8px 12px; min-width: 0; }
.chat-msg.is-mine .chat-bubble { background: var(--purple); color: var(--on-accent); }
.chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-name { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.chat-bubble time { display: block; font-size: .66rem; opacity: .65; margin-top: 2px; text-align: right; }
.chat-report { display: block; padding: 4px 0 2px; min-height: 24px; font-size: .75rem; color: var(--muted); }
.chat-empty { text-align: center; padding: 0 14px 14px; margin: 0; }
.chat-composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-composer textarea { resize: none; min-height: 42px; max-height: 140px; border-radius: 20px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--text);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.convo:hover { text-decoration: none; }
.convo.is-unread .convo-body strong::after { content: " •"; color: var(--danger); }
.convo-body { flex: 1; min-width: 0; display: grid; }
.convo-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-meta { display: grid; justify-items: end; gap: 4px; }

/* ============================== Create menu ============================== */
.create-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.create-option { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; color: var(--text); padding: 14px 16px; }
.create-option:hover { text-decoration: none; border-color: var(--faint); }
.create-option .muted { grid-column: 2; font-size: .88rem; }
.create-option strong { font-size: 1.02rem; }
.create-emoji { grid-row: span 2; font-size: 1.6rem; text-align: center; }

/* ============================== Landing & How it works ============================== */
.hero { padding: 32px 0 12px; }
.hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
/* Landing hero: UW purple with gold, the one big splash of color in the app. */
.husky-hero { margin: -16px -16px 0; padding: 36px 20px 28px; color: #fff; border-radius: 0;
  background: var(--header); border-bottom: 6px solid var(--gold); }
.husky-hero .eyebrow { color: var(--gold); }
.husky-hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.husky-hero .gold { color: var(--gold); }
.husky-hero .lead { color: rgba(255, 255, 255, .85); }
.btn-on-purple { background: var(--gold); color: var(--purple-strong); }
.btn-on-purple:hover { background: var(--gold-light); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 700px) { .husky-hero { margin: 8px 0 0; border-radius: 4px; padding: 44px 36px 34px; } }
.how-strip { margin: 24px 0 8px; }
.how-strip ol { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how-strip li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 6px;
  border-radius: var(--radius); background: var(--surface); }
.how-strip li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--purple); color: var(--on-accent); font-weight: 800; margin-bottom: 4px; }
.how-strip strong { font-size: .92rem; }
.how-strip small { color: var(--muted); font-size: .76rem; line-height: 1.25; }
.features { display: grid; gap: 0; margin: 28px 0; }
.feature { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--muted); }
.sport-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { list-style: none; padding: 0; margin: 12px 0 20px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step h2 { margin: 0 0 2px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step-number { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; }
.faq { border: 0; padding: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.how-cta { text-align: center; padding: 28px 0 8px; }
.step-number { background: var(--purple); color: var(--on-accent); }
.step, .step:hover { color: var(--text); text-decoration: none; }
.how-cta p { margin-top: 14px; }
/* Privacy & Terms */
.legal h2 { margin-top: 22px; }
.legal li { margin-bottom: 6px; }

/* ============================== Misc pages ============================== */
.past-list { list-style: none; margin: 0; padding: 0; border: 0; }
.past-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.error-paw { font-size: 2.2rem; margin: 0; }
.error-code { font-size: 2.6rem; font-weight: 800; margin: 0; color: var(--accent); }
.danger-zone { margin-top: 28px; border-color: var(--line); }
.delete-card h1 { font-size: 1.4rem; }
.lose-list { list-style: none; padding: 0; margin: 14px 0 18px; }
.lose-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.delete-confirm { margin-top: 16px; }
.delete-confirm summary { color: var(--danger); font-weight: 600; text-align: center; }
.report-reasons { display: grid; gap: 6px; }
.report-reason { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.report-reason:has(input:checked) { box-shadow: inset 0 0 0 2px var(--purple); }
.report-reason input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.report-quote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--danger); background: var(--surface);
  border-radius: 0 10px 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-card { margin-top: 12px; }
.report-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.report-details { font-style: italic; color: var(--muted); }
.flagged { border-color: var(--danger); }
.locked-level p { margin: 4px 0 0; }

/* ============================== Footer ============================== */
.site-footer { max-width: 640px; margin: 24px auto 0; padding: 16px; text-align: center; color: var(--muted); font-size: .78rem; }
.site-footer p { margin: 0 0 4px; }
.footer-fine { font-size: .72rem; }
.site-footer a { color: var(--muted); }

/* ============================== Confetti (celebrations) ============================== */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti span { position: absolute; top: -20px; display: block;
  animation-name: confetti-fall; animation-timing-function: cubic-bezier(.25, .6, .45, 1); animation-fill-mode: forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.detail-actions form { margin: 0; }
.chip .icon { width: 18px; height: 18px; }
/* page sections flow down the page, separated by one line (no boxes) */
section.card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; margin-top: 18px; }
details.card.fold { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 2px 0; }

/* Small text buttons (Leave club, Unfollow...) still get a finger-sized tap area. */
.quiet-leave .link-button { padding: 10px 0; }
.photo-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.photo-extra form { margin: 0; }
.event-meta .rel { white-space: nowrap; }  /* keep "in 2 days" together when the date line wraps */
/* The people who run Sportive Circle (admins): a small gold-on-purple label next to their name. */
.team-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px;
  background: var(--purple); color: var(--gold-light); font: 700 .72rem/1.4 var(--font); letter-spacing: .02em;
  vertical-align: middle; white-space: nowrap; }
h1 .team-pill { font-size: .78rem; margin-left: 4px; }
.suggestion-body { white-space: pre-line; overflow-wrap: anywhere; }
.suggestion-list { gap: 10px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: .88rem; font-weight: 600; }
.admin-nav a { padding: 6px 0; color: var(--muted); }
.admin-nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.trend-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trend-list .chip:hover { text-decoration: none; }
