/* ==========================================================================
   pkladog.com  ·  shared styles
   One stylesheet for every page. No build step.
   Responsive rules use container queries on .page, so layouts respond to the
   width of the page wrapper (works in the browser and in fixed-width mockups).
   Breakpoints: 720px (tablet), 1024px (desktop), 1280px (wide).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #000;
  --surface: #0b0a09;
  --surface-2: #13110f;
  --fg: #f3e9d6;
  --muted: #8a8175;
  --line: rgba(243, 233, 214, .08);
  --line-strong: rgba(243, 233, 214, .16);
  --field: #0b0a09;

  --blue: #4f8ff7;
  --gold: #f2c14e;
  --orange: #f5862b;
  --green: #3fd69b;
  --pink: #ff5d73;
  --purple: #b58cff;
  --cyan: #5ce1e6;
  --cream: #f3e9d6;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --accent: var(--cream); /* overridden per member with .accent-* */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Page still scrolls; the bar is just hidden. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--fg); color: var(--bg);
  padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.page {
  container-type: inline-size;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.page > main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}
@container (min-width: 720px) {
  .wrap { padding-inline: 40px; }
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.muted { color: var(--muted); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}
.link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link:hover { text-decoration-color: var(--fg); }
.link-arrow {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 15px; font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow--muted { color: var(--muted); }
.link-arrow--muted:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 700;
  font-stretch: 112%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--spotify { border-color: rgba(30, 215, 96, .45); }
.btn--spotify:hover { border-color: #1ed760; }
.spotify-icon { flex: none; color: #1ed760; }
.btn--danger { background: transparent; color: var(--pink); border-color: rgba(255, 93, 115, .35); }
.btn--danger:hover { border-color: var(--pink); }
.btn--approve { background: var(--green); color: #000; }
.btn--approve:hover { background: #6fe4b6; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px; font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63, 214, 155, .18); }

/* ---------- header ---------- */
.site-header { background: var(--bg); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none;
  min-height: 44px;
}
.brand__word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 9px;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--fg); }
.nav__signin { gap: 0; margin-left: 6px; min-height: 40px; padding: 0 14px; font-size: 14px; }
.nav__me {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 4px;
  border-radius: 50%;
}
.nav__me img {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.nav__me:hover img, .nav__me[aria-current="page"] img { box-shadow: 0 0 0 2px var(--fg); }

@container (min-width: 720px) {
  .nav { gap: 8px; }
  .nav__link { padding: 0 12px; }
  .nav__signin { margin-left: 10px; }
}

/* ---------- member tabs (signed in only) ---------- */
.tabs { border-bottom: 1px solid var(--line); }
.tabs__row {
  display: flex; gap: 24px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs__row::-webkit-scrollbar { display: none; }
.tabs__link {
  display: inline-flex; align-items: center; flex: none;
  min-height: 44px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}
.tabs__link:hover { color: var(--fg); }
.tabs__link[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
@container (min-width: 720px) {
  .tabs__row { gap: 32px; }
  .tabs__link { min-height: 52px; font-size: 16px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  align-items: center;
  padding-block: 24px 32px;
  font-size: 13px; color: var(--muted);
}
/* ---------- sections ---------- */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section--flush-top { border-top: 0; }
.section--tight { padding-top: 0; border-top: 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section__intro { display: grid; gap: 12px; max-width: 600px; }
.section__title { font-size: 30px; line-height: 1.05; }
.section__desc { font-size: 17px; color: var(--muted); max-width: 52ch; }
.section__meta { font-size: 14px; color: var(--muted); }
.section__meta b { color: var(--green); font-weight: 600; }

@container (min-width: 720px) {
  .section { padding-block: 96px; }
  .section__head { margin-bottom: 40px; }
  .section__title { font-size: 40px; }
}

.page-head { padding-block: 48px 32px; }
.page-head__title { font-size: 36px; line-height: 1; }
.page-head__sub { margin-top: 12px; max-width: 52ch; color: var(--muted); font-size: 17px; }
@container (min-width: 720px) {
  .page-head { padding-block: 72px 40px; }
  .page-head__title { font-size: 52px; }
}

/* ---------- status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; line-height: 1.3;
  color: var(--muted);
}
.status__dot {
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.status--ingame  { color: var(--green); }
.status--online  { color: var(--blue); }
.status--studio  { color: var(--orange); }
.status--offline { color: var(--muted); }
.status--offline .status__dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.status--none    { color: var(--muted); }
.status--none .status__dot { display: none; }
.status--ingame .status__dot { box-shadow: 0 0 0 3px rgba(63, 214, 155, .18); }

/* ---------- crew ---------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
}
@container (min-width: 720px) { .crew-grid { gap: 16px; } }


.crew-card {
  display: flex; flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s ease;
}
.crew-card:hover { border-color: var(--accent); }
.crew-card:focus-visible { outline-color: var(--accent); }
.crew-card__media {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  border-bottom: 2px solid var(--accent);
}
/* Roblox headshot fills the square */
.crew-card__avatar { width: 100%; height: 100%; object-fit: cover; }
/* Discord avatar fallback stays a centred circle */
.crew-card__avatar--discord { width: 52%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; }
.crew-card__body { display: grid; gap: 6px; padding: 14px 14px 16px; }
.crew-card__name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.crew-card:hover .crew-card__name { color: var(--accent); }
.crew-card .status { font-size: 13px; }
@container (min-width: 720px) {
  .crew-card__body { padding: 18px 20px 20px; gap: 8px; }
  .crew-card__name { font-size: 19px; }
  .crew-card .status { font-size: 14px; }
}

/* ---------- quotes ---------- */
.quote { display: grid; align-content: start; gap: 14px; margin: 0; }
.quote__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: anywhere;
}
.quote__credit { font-size: 14px; color: var(--muted); }
.quote__credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
.quote__credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.quote__credit-name { color: var(--fg); font-weight: 600; }
.quote__date { color: var(--muted); }

.quote-wall { column-count: 1; column-gap: 48px; }
@container (min-width: 720px)  { .quote-wall { column-count: 2; } }
@container (min-width: 1200px) { .quote-wall { column-count: 3; } }
.quote-wall > .quote {
  break-inside: avoid;
  padding-block: 28px 32px;
  border-top: 1px solid var(--line);
}
.quote-wall .quote__text { font-size: 26px; }
.quote-wall .quote--short .quote__text { font-size: 32px; line-height: 1.02; }
@container (min-width: 720px) {
  .quote-wall .quote__text { font-size: 28px; }
  .quote-wall .quote--short .quote__text { font-size: 36px; }
}

/* ---------- featured quote (home) ---------- */
.quote-feature { display: grid; gap: 28px; max-width: 1040px; }
.quote-feature .quote__text { font-size: clamp(34px, 6.4cqi, 76px); line-height: 1.02; letter-spacing: -0.01em; }
.quote-feature__who { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.quote-feature__who img { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.quote-feature__who a { color: var(--accent); font-weight: 600; text-decoration: none; }
.quote-feature__who a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- lore (home) ---------- */
.lore-block { display: grid; gap: 20px; }
.lore-block__text { font-family: var(--font-serif); font-size: clamp(24px, 3.2cqi, 36px); line-height: 1.2; max-width: 34ch; }
.lore-block__text mark { background: none; color: var(--gold); font-style: italic; }
@container (min-width: 1024px) {
  .lore-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}

/* ---------- things we made: big type list ---------- */
.made-list { border-top: 1px solid var(--line); }
.made-row {
  display: grid; gap: 6px 32px;
  padding-block: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
}
.made-row__name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(44px, 10cqi, 116px); line-height: .9; letter-spacing: -0.03em;
  transition: color .2s ease;
}
.made-row__meta { display: grid; gap: 2px; font-size: 15px; color: var(--muted); max-width: 36ch; }
.made-row__host { color: var(--fg); font-weight: 600; }
.made-row:hover .made-row__name, .made-row:focus-visible .made-row__name { color: var(--c); }
.made-row:focus-visible { outline: none; }
.made--blue { --c: var(--blue); } .made--gold { --c: var(--gold); }
.made--orange { --c: #ff6c47; } .made--green { --c: #2a9d6c; }
@container (min-width: 720px) {
  .made-row { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: end; }
  .made-row__meta { text-align: right; justify-items: end; padding-bottom: 10px; }
}

/* ---------- member page ---------- */
.member { display: grid; border-bottom: 1px solid var(--line); }
.member__panel {
  display: grid; place-items: center;
  min-height: 380px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-bottom: 2px solid var(--accent);
}
.member__avatar { width: min(100%, 520px); height: auto; aspect-ratio: 1 / 1; }
.member__avatar--discord { width: min(56%, 220px); border-radius: 24px; align-self: center; }
.member__info { display: grid; align-content: start; gap: 20px; padding-block: 32px 48px; }
.member__name {
  font-size: 40px;
  line-height: 1;
  overflow-wrap: anywhere;
  color: var(--fg);
}
.member__name--long { font-size: 28px; line-height: 1.05; }
.member__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.member__handle {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 16px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.member__handle:hover { text-decoration: underline; text-underline-offset: 4px; }
.member__about { display: grid; gap: 6px; }
.member__bio { font-size: 18px; line-height: 1.6; max-width: 40ch; }
.member__worth { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.member__worth-num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: 30px; line-height: 1; letter-spacing: -0.02em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.member__worth-label { font-size: 14px; color: var(--muted); }
.robux { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; }
.robux-icon {
  display: inline-block; flex: none;
  width: .82em; height: .9em;
  background: currentColor;
  -webkit-mask: url(/robux.png) center / contain no-repeat;
  mask: url(/robux.png) center / contain no-repeat;
}
/* on/off switch */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track {
  position: relative; flex: none;
  width: 46px; height: 28px; border-radius: 14px;
  background: var(--line-strong);
  transition: background-color .15s ease;
}
.toggle__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg);
  transition: transform .15s ease;
}
.toggle input:checked + .toggle__track { background: var(--green); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); background: #000; }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--fg); outline-offset: 3px; }
@container (min-width: 1024px) { .member__worth-num { font-size: 40px; } }
.member__quotes { margin-top: 12px; }
.member__quotes .eyebrow { margin-bottom: 4px; }
.member__quotes .quote { padding-block: 22px; border-top: 1px solid var(--line); }
.member__quotes .quote__text { font-size: 26px; }

@container (min-width: 1024px) {
  .member { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .member__panel { min-height: 720px; border-bottom: 0; border-right: 2px solid var(--accent); }
  .member__avatar { width: min(100%, 720px); }
  .member__info { padding: 72px 40px 88px 64px; gap: 24px; }
  .member__name { font-size: 56px; }
  .member__name--long { font-size: 36px; }
}

/* ---------- lore ---------- */
.entry { padding-block: 48px 72px; }
.entry__word { font-size: 56px; line-height: 1; margin-left: -.03em; }
.entry__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 8px; }
.entry__syll { font-size: 22px; color: var(--fg); }
.entry__pos { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--muted); }
.entry__body { display: grid; gap: 40px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.entry__sense { display: grid; gap: 24px; }
.entry__def { font-size: 19px; line-height: 1.65; max-width: 60ch; }
.entry__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 16px; }
.entry__examples { display: grid; gap: 12px; }
.entry__example { font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1.15; }
.entry__example mark { background: none; color: var(--gold); }
.entry__see { font-size: 16px; color: var(--muted); }
.entry__see a { color: var(--fg); }

@container (min-width: 1024px) {
  .entry { padding-block: 72px 120px; }
  .entry__word { font-size: 80px; }
  .entry__syll, .entry__pos { font-size: 26px; }
  .entry__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; margin-top: 48px; padding-top: 48px; }
  .entry__def { font-size: 20px; }
  .entry__example { font-size: 34px; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--fg); padding: 0; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.input, .textarea, .select select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  background: var(--field);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s ease;
}
.textarea { min-height: 132px; resize: vertical; font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.25; }
.textarea--plain { font-family: var(--font-ui); font-style: normal; font-size: 16px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #6d665c; }
.input:hover, .textarea:hover, .select select:hover { border-color: rgba(243, 233, 214, .3); }
.input:focus, .textarea:focus, .select select:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg); pointer-events: none;
}

/* input with a fixed prefix, e.g. pkladog.com/ */
.affix {
  display: flex; align-items: stretch;
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.affix:focus-within { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.affix__pre { display: flex; align-items: center; padding-left: 14px; color: var(--muted); font-size: 16px; white-space: nowrap; }
.affix .input { border: 0; background: transparent; padding-left: 2px; min-width: 0; }
.affix .input:focus { box-shadow: none; }

/* error state */
.field--error .input,
.field--error .textarea,
.field--error .affix { border-color: var(--pink); }
.field--error .affix .input { border: 0; }
.field__error {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 14px; font-weight: 600; color: var(--pink);
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--pink); color: #000; font-size: 12px; font-weight: 900; line-height: 1; transform: translateY(3px); }

.notice-saved { padding: 14px 18px; border: 1px solid rgba(63, 214, 155, .45); border-radius: 12px; color: var(--green); font-weight: 600; }
.notice-saved .link { color: var(--fg); font-weight: 500; }

.error-summary {
  border: 1px solid var(--pink);
  border-radius: 12px;
  padding: 18px 20px;
  display: grid; gap: 8px;
}
.error-summary__title { font-weight: 700; color: var(--pink); font-size: 16px; }
.error-summary ul { display: grid; gap: 4px; }
.error-summary a { color: var(--fg); font-size: 15px; }

/* accent color picker */
.color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.color-picker__input {
  -webkit-appearance: none; appearance: none;
  width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: 14px;
  background: none; cursor: pointer;
}
.color-picker__input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker__input::-webkit-color-swatch { border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(243, 233, 214, .2); }
.color-picker__input::-moz-color-swatch { border: 0; border-radius: 14px; }
.color-picker__input:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.color-picker__hex { min-width: 7ch; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-transform: uppercase; color: var(--fg); }
.color-picker__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset {
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--c); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(243, 233, 214, .12);
  transition: box-shadow .12s ease;
}
.preset:hover { box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--muted); }
.preset[aria-pressed="true"] { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--c); }
.field--error .color-picker__input::-webkit-color-swatch { box-shadow: inset 0 0 0 2px var(--pink); }

/* ---------- submit panel (quotes) ---------- */
.submit-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 24px 20px; display: grid; gap: 24px; }
.submit-panel__title { font-size: 26px; line-height: 1; }
.submit-panel__grid { display: grid; gap: 20px; }
@container (min-width: 1024px) {
  .submit-panel { grid-template-columns: 4fr 8fr; gap: 48px; padding: 40px; }
  .submit-panel__title { font-size: 32px; }
  .submit-panel__grid { grid-template-columns: 1fr 1fr; }
  .submit-panel__grid .field--full { grid-column: 1 / -1; }
}

.confirm { padding-block: 48px 96px; display: grid; gap: 24px; justify-items: start; }
.confirm__mark {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--green); color: var(--green);
}
.confirm__check { width: 11px; height: 20px; margin-top: -5px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
.confirm__title { font-size: 40px; line-height: 1; }
.confirm__text { font-size: 18px; max-width: 42ch; color: var(--muted); }
.confirm__preview { width: 100%; max-width: 560px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.confirm__preview .quote__text { font-size: 28px; }
@container (min-width: 1024px) {
  .confirm { padding-block: 80px 140px; }
  .confirm__title { font-size: 56px; }
  .confirm__preview .quote__text { font-size: 32px; }
}

/* ---------- edit card (/me) ---------- */
.editor { display: grid; gap: 48px; padding-bottom: 72px; }
.editor__preview { display: grid; gap: 14px; align-content: start; }
.editor__preview .crew-card { max-width: 280px; height: auto; }
.editor__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.editor__session {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.editor__session b { color: var(--fg); font-weight: 600; }
@container (min-width: 1024px) {
  .editor { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; padding-bottom: 120px; }
  .editor__preview { position: sticky; top: 24px; }
}

/* ---------- centered message pages (not in crew, 404) ---------- */
.notice { display: grid; justify-items: center; text-align: center; padding-block: 40px 96px; }
.notice__dog { width: min(76%, 360px); aspect-ratio: 1 / 1; object-fit: contain; }
.notice__dog--small { width: min(56%, 240px); }
.notice__title { font-size: 36px; line-height: 1; margin-top: 16px; }
.notice__text { font-size: 18px; max-width: 42ch; margin-top: 16px; color: var(--muted); }
.notice__text b { color: var(--fg); font-weight: 600; }
.notice .btn-row { justify-content: center; margin-top: 32px; }
@container (min-width: 1024px) {
  .notice { padding-block: 64px 140px; }
  .notice__title { font-size: 52px; }
}

.lost { display: grid; justify-items: center; text-align: center; padding-block: 40px 96px; }
.lost__dog { width: min(64%, 280px); aspect-ratio: 1 / 1; object-fit: contain; }
.lost__code { font-size: 56px; line-height: 1; margin-top: 16px; }
.lost__line { font-size: 26px; margin-top: 12px; color: var(--muted); }
.lost .btn-row { justify-content: center; margin-top: 32px; }
@container (min-width: 1024px) {
  .lost { padding-block: 64px 140px; }
  .lost__code { font-size: 80px; }
  .lost__line { font-size: 32px; }
}

/* ---------- admin ---------- */
.count-badge {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px;
  background: var(--gold); color: #000;
  font-size: 14px; font-weight: 800; font-stretch: 112%; letter-spacing: 0;
  vertical-align: middle;
}
.queue { border-top: 1px solid var(--line); }
.queue-item { display: grid; gap: 18px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.queue-item .quote__text { font-size: 26px; }
.queue-item__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.queue-item__meta b { color: var(--fg); font-weight: 600; }
.queue-item__actions { display: flex; gap: 10px; }
.queue-item--approved { gap: 12px; padding-block: 20px; }
.queue-item--approved .quote__text { font-size: 22px; }
@container (min-width: 1024px) {
  .queue-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 48px; }
  .queue-item__meta { grid-column: 1; }
  .queue-item__actions { grid-column: 2; grid-row: 1 / span 2; }
  .queue-item .quote__text { font-size: 30px; }
  .queue-item--approved .quote__text { font-size: 24px; }
}
.empty { padding-block: 40px; color: var(--muted); font-size: 16px; }

/* ---------- big hero (home) ---------- */
.hero--big { position: relative; padding: 0 0 8px; text-align: center; }
/* The big word sinks behind the dog as you scroll; the stage clips it at the dog's feet. */
.hero__stage { overflow: clip; }
.hero__big {
  display: block;
  font-size: 31.35cqi; line-height: .8;
  padding-top: 5cqi;
  margin-inline: -1cqi;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}
/* Stationary while the page scrolls: it moves down exactly as fast as the page moves up. */
@keyframes hero-sink { to { transform: translate3d(0, 2000px, 0); } }
@supports (animation-timeline: scroll()) {
  .hero__big { animation: hero-sink linear both; animation-timeline: scroll(root); animation-range: 0 2000px; }
}
.hero__bigdog {
  position: relative; z-index: 1;
  width: min(100%, 560px); aspect-ratio: 1 / 1;
  margin: -16.15cqi auto 0;
  object-fit: contain;
}
@container (min-width: 720px) {
  .hero__big { font-size: 34.675cqi; margin-inline: -1.5cqi; }
  .hero__bigdog { width: 50cqi; max-width: 680px; margin-top: -18.05cqi; }
}

/* ---------- pet the dog ---------- */
.hero__pet {
  position: relative; z-index: 1;
  display: block;
  width: min(100%, 560px);
  margin: -16.15cqi auto 0;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero__pet .hero__bigdog { display: block; width: 100%; margin: 0; transform-origin: 50% 100%; }
.hero__pet:focus-visible { outline-offset: -8px; border-radius: 24px; }
.hero__glow {
  position: absolute; left: 48.5%; top: 25.1%;
  width: 34%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 222, 110, .95) 0, rgba(242, 193, 78, .55) 22%, rgba(242, 193, 78, 0) 62%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) scale(calc(.4 * var(--pet-glow, 1)));
  opacity: 0;
  pointer-events: none;
}
.hero__pet.is-petted .hero__bigdog { animation: pet-squish .32s ease-out; }
.hero__pet.is-petted .hero__glow { animation: pet-glow .6s ease-out; }
.pet-plus {
  position: absolute; z-index: 2;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 22px;
  color: var(--gold);
  pointer-events: none;
  animation: pet-plus .8s ease-out forwards;
}
@keyframes pet-squish { 35% { transform: scale(1.02, .96); } 100% { transform: none; } }
@keyframes pet-glow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(calc(.4 * var(--pet-glow, 1))); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(calc(1.4 * var(--pet-glow, 1))); }
}
@keyframes pet-plus { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -60px); } }
.hero__pets { padding-top: 12px; font-size: 13px; color: var(--muted); }
.hero__pets b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
@container (min-width: 720px) {
  .hero__pet { width: 50cqi; max-width: 680px; margin-top: -18.05cqi; }
}

/* ---------- header dog (home, signed in): the dog stands left of the brand and tabs ---------- */
/* The dog fills 18% to 80% of its square image, hence the offsets below. */
.site-header--dog { position: relative; }
.header-dog { position: absolute; inset: 0; pointer-events: none; }
.header-dog .hero__pet { position: absolute; bottom: 4px; left: 0; width: 92px; max-width: none; margin: 0; pointer-events: auto; }
.header-dog .hero__pets { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header--dog .site-header__inner, .site-header--dog .tabs__row { padding-left: 86px; }
@container (min-width: 720px) {
  .header-dog .hero__pet { bottom: 6px; left: 20px; width: 112px; }
  .site-header--dog .site-header__inner, .site-header--dog .tabs__row { padding-left: 124px; }
}
/* With room beside the page, it hangs in the margin and everything else keeps its usual line. */
@container (min-width: 1400px) {
  .header-dog .hero__pet { left: -64px; }
  .site-header--dog .site-header__inner, .site-header--dog .tabs__row { padding-left: 40px; }
}

/* Members' home runs tighter than the public one: more sections, less scrolling. */
.home-member .section { padding-block: 48px; }
.home-member .section--flush-top { padding-top: 28px; }
@container (min-width: 720px) {
  .home-member .section { padding-block: 64px; }
  .home-member .section--flush-top { padding-top: 32px; }
}

/* ---------- how pkla r u ---------- */
.check-form { display: flex; gap: 10px; width: 100%; max-width: 520px; }
.check-form .input { flex: 1; min-width: 0; }
.check { display: grid; gap: 14px; padding-bottom: 96px; }
.check-teaser { display: grid; gap: 24px; }
@container (min-width: 1024px) {
  .check-teaser { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
}

.check-result { display: grid; gap: 36px; padding-block: 40px 112px; }
.check-result__head { display: grid; gap: 24px; align-items: center; }
.check-result__avatar {
  width: min(100%, 260px); aspect-ratio: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-bottom: 2px solid var(--accent);
}
.check-result__avatar img { width: 100%; height: 100%; object-fit: cover; }
.check-result__summary { display: grid; gap: 6px; }
.check-result__name { font-size: 18px; color: var(--muted); }
.check-result__name a { color: var(--fg); font-weight: 600; text-decoration: none; }
.check-result__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.check-result__score { font-size: clamp(96px, 19cqi, 208px); line-height: .85; color: var(--accent); font-variant-numeric: tabular-nums; }
.check-result__verdict { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 4.4cqi, 48px); line-height: 1.05; }
.check-result__note, .check-result__rank { font-size: 17px; color: var(--muted); max-width: 52ch; }
.check-result__rank b { color: var(--fg); font-weight: 600; }
@container (min-width: 720px) {
  .check-result__head { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
}

.breakdown { display: grid; gap: 16px; max-width: 760px; padding-top: 28px; border-top: 1px solid var(--line); }
.breakdown__row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.breakdown__label { font-size: 14px; color: var(--muted); }
.breakdown__bar { height: 8px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.breakdown__bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.breakdown__value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.breakdown__value .robux { gap: .3em; }

/* ---------- header on phones: brand + account on top, links underneath ---------- */
@container (max-width: 719px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-block: 10px 4px; }
  .nav { display: contents; }
  .brand { order: 0; }
  .nav__me, .nav__signin { order: 1; margin-left: auto; }
  .site-header__inner::after { content: ""; flex-basis: 100%; order: 2; }
  .nav__link { order: 3; min-height: 40px; padding: 0 16px 0 0; white-space: nowrap; }
}

/* ---------- scroll cue (home) ---------- */
.scroll-cue {
  position: fixed; right: 24px; bottom: 24px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted);
  text-decoration: none;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), visibility .4s;
}
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: var(--line-strong); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--fg);
  animation: cue-drop 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes cue-drop { from { transform: translateY(-14px); } to { transform: translateY(44px); } }
.scroll-cue.is-gone { transform: translateY(120px); visibility: hidden; }

/* ---------- definition examples slide up into view ---------- */
.js .entry__example[data-reveal] { overflow: clip; }
.js .entry__example[data-reveal] > span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .entry__example[data-reveal]:nth-child(2) > span { transition-delay: .12s; }
.js .entry__example[data-reveal]:nth-child(3) > span { transition-delay: .24s; }
.js .entry__example.is-in > span { transform: none; }

/* ---------- inline check result (home) ---------- */
.check-inline:empty { display: none; }
.check-inline { margin-top: 32px; }
.check-inline .check-result { padding-block: 16px 8px; }
.check-inline .field__error { margin-top: 4px; }
.check-inline.is-loading { opacity: .5; }
.check-result__board { display: flex; }

/* ---------- leaderboard ---------- */
.leaders-home { margin-top: 64px; }
.leaders-home .section__head { margin-bottom: 12px; }
.leaders { border-top: 1px solid var(--line); list-style: none; padding: 0; }
.leader {
  display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.leader__rank { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.leader__avatar { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.leader__avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader__name { font-weight: 600; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.leader__verdict { grid-column: 3; grid-row: 2; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: -4px; }
.leader__score {
  grid-column: 4; grid-row: 1 / span 2;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 28px;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.leader__rank, .leader__avatar { grid-row: 1 / span 2; }
.leaderboard { display: grid; gap: 32px; padding-bottom: 96px; }
@container (min-width: 720px) {
  .leader { grid-template-columns: 40px 56px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .leader__avatar { width: 56px; height: 56px; }
  .leader__rank, .leader__avatar, .leader__score { grid-row: auto; }
  .leader__verdict { grid-column: 4; grid-row: auto; margin-top: 0; }
  .leader__score { grid-column: 5; font-size: 34px; }
}

/* ---------- quote sorting + reactions ---------- */
.sort { display: flex; gap: 20px; margin-top: 20px; }
.sort a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.sort a:hover { color: var(--fg); }
.sort a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.reactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.reaction {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--fg);
  font-size: 15px; line-height: 1;
}
button.reaction { cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
button.reaction:hover { border-color: var(--fg); }
button.reaction:active { transform: scale(.94); }
button.reaction[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.reaction__n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reaction__n:empty { display: none; }

/* ---------- member page: favorite games ---------- */
.member__games { display: grid; gap: 12px; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.game { display: grid; gap: 8px; color: var(--fg); text-decoration: none; }
.game img, .game__blank { width: 100%; aspect-ratio: 1; border-radius: 14px; background: var(--surface-2); object-fit: cover; }
.game__name { font-size: 13px; line-height: 1.3; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game:hover .game__name { color: var(--fg); }
@container (min-width: 1024px) {
  .games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- scroll-in: page pieces rise into place as they come into view (app.js adds the classes) ---------- */
.rv {
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.985);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rv-delay, 0s);
}
.rv.is-in { opacity: 1; transform: none; }

/* ---------- quotes from discord ---------- */
.quote__credit .quote__source { color: var(--muted); font-weight: 500; }

/* ---------- members page (signed in only) ---------- */
.members__online { color: var(--green); font-weight: 600; }
.members-list { padding-bottom: 72px; }
.members { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.members > li { display: grid; }
.member-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--fg); text-decoration: none;
  transition: border-color .15s ease;
}
.member-row:hover { border-color: var(--accent); }
.member-row:focus-visible { outline-color: var(--accent); }
.member-row__avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.member-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-row__main { display: grid; gap: 6px; min-width: 0; }
.member-row__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.member-row__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; color: var(--accent); overflow-wrap: anywhere; }
.member-row__handle { font-size: 14px; color: var(--muted); }
/* Same as the bio on a member's own page. */
.member-row__bio { font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.member-row__facts { font-size: 13px; color: var(--muted); }
.member-row__facts .robux { gap: .3em; }
@container (min-width: 720px) {
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .member-row { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .member-row__avatar { width: 72px; height: 72px; }
}

/* Sparse content keeps its own rhythm. */
.quote-wall.quote-wall--small { column-count: 1; max-width: 780px; }
.crew-card__name.crew-card__name--long { font-size: 14px; font-stretch: 100%; }
.crew-card .status { overflow-wrap: anywhere; }
.footer-map { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; }
.footer-map a { color: var(--muted); text-decoration: none; }
.footer-map a:hover { color: var(--fg); }
@media (max-width: 560px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px; }
  .nav { flex-wrap: wrap; gap: 14px; }
}

.quote-detail { padding-block: 80px; display: grid; gap: 28px; max-width: 900px; }
.quote-detail .quote__text { font-size: clamp(36px, 5vw, 72px); overflow-wrap: anywhere; }
.quote-links { gap: 16px; font-size: 13px; }
.leader-group { padding-block: 24px; border-top: 1px solid var(--line); }
.leader-group > h2 { color: var(--accent); margin-bottom: 16px; }
.recent-checks { border-top: 1px solid var(--line); margin-top: 32px; padding-block: 24px; }
.recent-checks > div { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.recent-checks a { color: var(--fg); text-decoration: none; }
.recent-checks span { color: var(--muted); font-size: 13px; }
.versus { padding-bottom: 80px; }
.versus-form { display: flex; align-items: end; flex-wrap: wrap; gap: 20px; }
.versus-form .field { flex: 1 1 200px; }
.versus-winner { font-family: var(--font-serif); font-style: italic; font-size: clamp(32px, 5vw, 56px); margin-block: 48px 24px; }
.versus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 32px; }
.versus-person { border-top: 2px solid var(--accent); padding-top: 24px; min-width: 0; }
.versus-person > img { width: min(100%, 180px); height: auto; border-radius: 20px; }
.versus-person h3 { margin-top: 16px; overflow-wrap: anywhere; }
.versus-score { font-size: clamp(44px, 9vw, 120px); color: var(--accent); }
.versus-parts { display: grid; gap: 20px; margin-top: 24px; }
.versus-parts li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 13px; }
.versus-parts .breakdown__bar { grid-column: 1 / -1; }
@media (max-width: 560px) { .versus-grid { gap: 16px; } .versus-parts li { grid-template-columns: 1fr; } }
.compare-link { margin-top: 24px; }

:root { --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 48px; --dur-1: 150ms; --dur-2: 300ms; --dur-3: 700ms; --ease: cubic-bezier(.2,.7,.2,1); --type-small: 13px; --type-body: 16px; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-2); animation-timing-function: var(--ease); }
.member__panel { background-image: radial-gradient(ellipse at center, color-mix(in srgb,var(--accent) 12%,transparent),transparent 65%); }
.community { padding-block: var(--space-4); }
.community > h1 { margin-bottom: var(--space-3); }
.community-form { display: grid; gap: var(--space-2); max-width: 660px; margin-block: var(--space-3); }
.community-settings { display:flex; flex-wrap:wrap; gap:var(--space-2); padding-top:var(--space-3); align-items:center; }
.now-layout { display:grid; gap:var(--space-4); }
@container (min-width: 1024px) { .now-layout:has(> .now-feed) { grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:64px; align-items:start; } }
.now-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr)); gap:12px; align-items:start; }
.now-card { display:grid; gap:8px; align-content:start; min-width:0; padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); overflow-wrap:anywhere; }
.now-card:empty { display:none; }
.now-card__big { font-size:18px; font-weight:600; line-height:1.3; }
.now-card--online .eyebrow { color:var(--green); }
.now-card--pic { padding:0; gap:0; overflow:hidden; color:var(--fg); text-decoration:none; transition:border-color var(--dur-1) ease; }
.now-card--pic:hover { border-color:var(--line-strong); }
.now-card--pic .eyebrow { padding:12px 20px 14px; }
.now-pic { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; }
/* Spotify stays on the page background, not in a card. */
.now-listening:not(:empty) { margin-top:var(--space-3); }
/* The "quiet" card is the only card when it shows; someone listening means it isn't quiet. */
.now-main:has(> .now-listening:not(:empty)) > .now-grid:has(> .now-card--quiet) { display:none; }
.now-grid:has(> .now-card--quiet) + .now-listening { margin-top:0; }
.now-feed .activity { margin-top:8px; }
.now-feed .activity li:first-child { border-top:1px solid var(--line); }
.listening { display:flex; align-items:center; gap:14px; }
.listening + .listening { margin-top:var(--space-2); }
.listening__cover { flex:none; width:64px; height:64px; border-radius:6px; object-fit:cover; }
.listening__who { display:flex; align-items:center; gap:6px; margin-bottom:2px; }
.listening__logo { flex:none; }
.activity { margin-top:var(--space-2); }
.activity li { display:flex; justify-content:space-between; gap:var(--space-2); padding-block:12px; border-bottom:1px solid var(--line); }
.activity small { color:var(--muted); }
.plan { padding-block:var(--space-3); border-top:1px solid var(--line); display:grid; gap:var(--space-2); }
.plan h2 { font-size:24px; }
.moment-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr)); gap:var(--space-3); margin-top:var(--space-3); }
.moment { display:grid; gap:12px; align-content:start; }
.moment > img { border-radius:var(--radius); max-height:600px; width:100%; object-fit:contain; background:var(--surface); }
.vote-bar { height:8px; background:var(--blue); border-radius:8px; overflow:hidden; }
.vote-bar span { display:block; height:100%; background:var(--gold); }
.badges { display:flex; flex-wrap:wrap; gap:var(--space-1); margin-block:var(--space-2); }
.badges span { font-size:var(--type-small); padding:5px 10px; color:var(--accent); border:1px solid color-mix(in srgb,var(--accent) 40%,transparent); border-radius:24px; }

.hero__pet.is-milestone { animation:pet-milestone 1s var(--ease); }
@keyframes pet-milestone { 50% { filter:drop-shadow(0 0 50px var(--gold)); transform:scale(1.08); } }
@media(max-width:560px) { .activity li { flex-direction:column; gap:4px; } }
