/* Hallmark · v2.0.0 · theme: midnight-club (custom) · genre: atmospheric · scope: landing + app · built 2026-11-13 */
/* Critique: near-black warm charcoal, ivory type, brass signal; quiet late-night chess room. */

/* ------------------------------------------------------------------
   PLAYMATE — layout, components, pages
   ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-9);
  border-top: var(--border);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--paper {
  background: var(--paper-2);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.section-head p {
  max-width: 28em;
  color: var(--muted);
  font-size: 15px;
}

.section-head h2 {
  max-width: 12em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.section-link:hover {
  color: var(--accent);
  border-color: var(--ink);
}

.section-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.section-link:hover svg {
  transform: translateX(3px);
}

.muted {
  color: var(--muted);
}

.ink {
  color: var(--ink);
}

.accent {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: var(--border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.brand__mark {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--ink);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}

.desktop-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: var(--space-2) 0;
  transition: color var(--dur) var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  background: var(--paper-2);
  border-color: var(--rule);
}

.icon-btn__icon,
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge-count[hidden] {
  display: none;
}

.badge-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-1);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  border-radius: 2px;
}

.account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: var(--space-1) 10px var(--space-1) var(--space-1);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.account:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.account__name {
  font-size: 13px;
  font-weight: 500;
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.header-cta {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

/* ------------------------------------------------------------------
   Buttons, chips, status, icons, avatars
   ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--primary:hover:not(:disabled) {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--accent:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--paper-2);
}

.btn--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn--danger:hover:not(:disabled) {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--accent-ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 28px;
  height: 28px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar--ink {
  background: var(--ink);
  color: var(--paper);
}

.avatar--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.avatar--green {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar + .avatar {
  margin-left: calc(var(--space-2) * -1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip svg {
  width: 16px;
  height: 16px;
}

.chip--accent {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--accent);
}

.chip--muted {
  color: var(--muted);
  border-color: var(--rule);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px var(--space-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex-shrink: 0;
}

.status--open {
  color: var(--green);
  border-color: var(--green);
}

.status--full {
  color: var(--muted);
  border-color: var(--rule-2);
}

.status--confirmed {
  color: var(--ink);
  border-color: var(--ink);
}

.status--done {
  color: var(--muted);
  background: var(--paper-2);
  border-color: var(--rule);
}

.status--cancelled {
  color: var(--danger);
  border-color: var(--danger);
}

.status--pending {
  color: var(--gold);
  border-color: var(--gold);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -.01em;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(var(--space-7), 7vh, var(--space-9));
}

.hero__copy {
  min-width: 0;
  max-width: 680px;
}

.hero h1 {
  min-width: 0;
  overflow-wrap: break-word;
}

.hero h1 .line {
  display: block;
}

.hero__lede {
  max-width: 31em;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 13px;
}

.hero__meta::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--rule-2);
}

.hero__art {
  position: relative;
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at 50% 50%, var(--hero-glow), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.board {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--rule-2);
  background: radial-gradient(circle at 32% 22%, var(--board-highlight), var(--board) 68%);
  overflow: hidden;
}

.board svg {
  width: 100%;
  height: 100%;
}

.board__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 9px var(--space-3);
  border-bottom: 1px solid var(--rule-2);
  background: var(--caption-bg);
  color: var(--muted);
  font-size: 12px;
}

.match-card {
  position: absolute;
  z-index: 1;
  left: -32px;
  bottom: -28px;
  width: 308px;
  padding: var(--space-4);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 10px;
}

.match-card__title {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.match-card__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.match-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 14px;
  padding-top: var(--space-3);
  border-top: var(--border);
}

.match-card__people {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--muted);
}

.live-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.live-mark::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ------------------------------------------------------------------
   Quick match console
   ------------------------------------------------------------------ */

.quick-match {
  padding-block: var(--space-9);
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--paper-2);
}

.console {
  margin-top: var(--space-6);
  border: 1px solid var(--rule-2);
  background: var(--surface);
}

.console__tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: var(--border);
}

.console__tab {
  position: relative;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-right: var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.console__tab:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.console__tab.is-active {
  background: var(--surface);
  color: var(--ink);
}

.console__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.console__form {
  padding: var(--space-5);
}

.quick-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .8fr) auto;
  gap: 14px;
  align-items: end;
}

.quick-fields .field {
  min-width: 0;
}

.quick-fields .btn {
  min-height: 48px;
  white-space: nowrap;
}

.quick-note {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------------------------
   Live requests
   ------------------------------------------------------------------ */

.request-list {
  border-top: var(--border);
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr) minmax(0, .85fr) minmax(0, .6fr) minmax(0, .7fr) auto;
  align-items: center;
  gap: var(--space-5);
  padding: 20px var(--space-3);
  border-bottom: var(--border);
  transition: background-color var(--dur) var(--ease);
}

.request-row__meta {
  display: none;
}

.request-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.request-row__meta svg {
  width: 14px;
  height: 14px;
}

.request-row:hover {
  background: var(--paper-2);
}

.request-row__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.game-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  color: var(--ink);
  flex-shrink: 0;
}

.game-mark svg {
  width: 24px;
  height: 24px;
}

.request-row__title {
  min-width: 0;
}

.request-row__title h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-row__title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.meta-block {
  min-width: 0;
}

.meta-block .label {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.meta-block strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.spots__count {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.row-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.request-row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Three modes
   ------------------------------------------------------------------ */

.modes {
  display: grid;
  grid-template-columns: 1.15fr 1fr .9fr;
  border: var(--border);
}

.mode {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: var(--space-6);
  border-right: var(--border);
  transition: background-color var(--dur) var(--ease);
}

.mode:last-child {
  border-right: 0;
}

.mode:hover {
  background: var(--paper-2);
}

.mode__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  margin-bottom: auto;
}

.mode__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.mode__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.mode h3 {
  margin-top: var(--space-6);
  font-size: clamp(24px, 2.4vw, 32px);
}

.mode p {
  margin-top: 10px;
  max-width: 18em;
  color: var(--muted);
  font-size: 14px;
}

.mode__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
}

.mode__link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur) var(--ease);
}

.mode:hover .mode__link svg {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Categories
   ------------------------------------------------------------------ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: var(--border);
  border-left: var(--border);
}

.category {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 92px;
  padding: 18px;
  border-right: var(--border);
  border-bottom: var(--border);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.category:hover {
  background: var(--paper-2);
}

.category:hover .category__icon {
  color: var(--accent);
}

.category__icon {
  width: 26px;
  height: 26px;
  color: var(--ink);
  flex-shrink: 0;
}

.category__icon svg {
  width: 100%;
  height: 100%;
}

.category__name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.category__count {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Trust
   ------------------------------------------------------------------ */

.trust {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, var(--space-9));
  align-items: start;
}

.trust__intro h2 {
  max-width: 8em;
}

.trust__intro p {
  max-width: 20em;
  margin-top: var(--space-5);
  color: var(--muted);
}

.trust__list {
  border-top: var(--border);
}

.trust__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: var(--space-5) 0;
  border-bottom: var(--border);
}

.trust__item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.trust__item h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.trust__item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.safety-band {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: var(--space-6);
  padding: 18px 20px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
}

.safety-band svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.safety-band p {
  color: var(--muted);
  font-size: 13px;
}

.safety-band strong {
  color: var(--ink);
  font-weight: 500;
}

/* ------------------------------------------------------------------
   Closing
   ------------------------------------------------------------------ */

.closing {
  padding-block: var(--space-10);
  border-top: var(--border);
}

.closing__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-7);
}

.closing h2 {
  max-width: 10em;
  font-size: clamp(40px, 5.6vw, 80px);
}

.closing p {
  max-width: 22em;
  margin-top: var(--space-4);
  color: var(--muted);
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------ */

.page {
  padding-block: var(--space-7) var(--space-9);
  min-height: 60vh;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: var(--border);
}

.page-head h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.page-head p {
  max-width: 34em;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 15px;
}

.page-head__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------------
   Find page
   ------------------------------------------------------------------ */

.find-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-top: var(--border);
}

.filter-group {
  padding: 18px 0;
  border-bottom: var(--border);
}

.filter-group h2,
.filter-group h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chips .chip {
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}

.filter-select {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
}

.filter-reset {
  margin-top: var(--space-4);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.find-main {
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: var(--border);
}

.tab {
  position: relative;
  min-height: 50px;
  padding: 0 var(--space-4);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.tab:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.tab.is-active {
  color: var(--ink);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 0;
  border-bottom: var(--border);
}

.results-head p {
  color: var(--muted);
  font-size: 13px;
}

.results-head strong {
  color: var(--ink);
  font-weight: 500;
}

.results-list {
  border-top: 0;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px 18px;
  border-bottom: var(--border);
  transition: background-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.result-card:hover {
  background: var(--paper-2);
  padding-left: var(--space-5);
}

.result-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.result-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 18px;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 13px;
}

.result-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-card__meta svg {
  width: 15px;
  height: 15px;
  color: var(--rule-2);
}

.result-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 110px;
}

.result-card__host {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 12px;
}

.result-card__host .avatar {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.result-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.result-card__go svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.result-card:hover .result-card__go svg {
  transform: translateX(3px);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--border);
  border-left: var(--border);
}

.player-card {
  padding: 22px;
  border-right: var(--border);
  border-bottom: var(--border);
  transition: background-color var(--dur) var(--ease);
}

.player-card:hover {
  background: var(--paper-2);
}

.player-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.player-card h3 .icon,
.host-card h3 .icon {
  display: inline-block;
  vertical-align: -2px;
  margin-left: var(--space-1);
}

.player-card__head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.player-card__bio {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.player-card__games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.player-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: 14px;
  border-top: var(--border);
  color: var(--muted);
  font-size: 12px;
}

.player-card__foot a {
  color: var(--ink);
  font-weight: 500;
}

.find-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
  border-bottom: var(--border);
}

.mobile-filter-btn {
  display: none;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent);
}

.link-button svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur) var(--ease);
}

.link-button:hover svg {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Detail
   ------------------------------------------------------------------ */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--space-7);
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.detail-title h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  max-width: 12em;
}

.detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 20px;
  color: var(--muted);
  font-size: 14px;
}

.detail-sub span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-sub svg {
  width: 16px;
  height: 16px;
  color: var(--rule-2);
}

.detail-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: var(--border);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.75;
}

.detail-section {
  margin-top: var(--space-7);
}

.detail-section h2 {
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--border);
  border-left: var(--border);
}

.meta-list__item {
  padding: var(--space-4) 18px;
  border-right: var(--border);
  border-bottom: var(--border);
}

.meta-list__item dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.meta-list__item dd {
  font-size: 15px;
  font-weight: 500;
}

.host-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 20px 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.host-card__main {
  min-width: 0;
  flex: 1;
}

.host-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.host-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.host-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 12px;
}

.host-card__meta svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.detail-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.join-card {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: var(--space-5);
}

.join-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-4);
}

.join-card__top h2 {
  font-size: 24px;
}

.join-card__spots {
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  border-top: var(--border);
  border-bottom: var(--border);
}

.join-card__spots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.join-card__spots-head strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.join-card__spots-head span {
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 6px;
  margin-top: var(--space-3);
  background: var(--paper-3);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.join-card__people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 12px;
}

.join-card__actions {
  display: grid;
  gap: 10px;
  margin-top: var(--space-5);
}

.join-card__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.manage-app {
  padding: var(--space-4) 0;
  border-bottom: var(--border);
}

.manage-app:last-child {
  border-bottom: 0;
}

.manage-app .host-card {
  padding: 0;
  border: 0;
}

.manage-app__note {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.manage-app__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.timeline {
  border-top: var(--border);
}

.timeline__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: var(--space-4) 0;
  border-bottom: var(--border);
}

.timeline__num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.timeline__item h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.timeline__item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-link:hover {
  color: var(--danger);
}

/* ------------------------------------------------------------------
   Profile
   ------------------------------------------------------------------ */

.profile-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: var(--border);
}

.profile-id {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.profile-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-name h1 {
  font-size: clamp(36px, 4vw, 52px);
}

.profile-id p {
  margin-top: var(--space-2);
  max-width: 30em;
  color: var(--muted);
  font-size: 14px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  padding: var(--space-5) 0;
  border-bottom: var(--border);
}

.profile-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.profile-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.profile-section {
  margin-top: var(--space-7);
}

.profile-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.profile-section__head h2 {
  font-size: 28px;
}

.game-list {
  border-top: var(--border);
}

.game-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 18px 0;
  border-bottom: var(--border);
}

.game-item__name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 15px;
  font-weight: 500;
}

.game-item__name svg {
  width: 22px;
  height: 22px;
}

.game-item__level {
  color: var(--muted);
  font-size: 13px;
}

.game-item__level strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.game-item__actions {
  display: flex;
  gap: 6px;
}

.icon-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.icon-action:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--ink);
}

.icon-action svg {
  width: 17px;
  height: 17px;
}

.profile-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border: 1px dashed var(--rule-2);
}

.profile-empty h2 {
  font-size: 30px;
}

.profile-empty p {
  max-width: 46ch;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 14px;
}

.profile-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------------------------------------------
   Activities
   ------------------------------------------------------------------ */

.activity-list {
  border-top: var(--border);
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: var(--border);
}

.activity-row__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.activity-row h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

.activity-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.activity-row__meta {
  color: var(--muted);
  font-size: 13px;
}

.activity-row__meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.activity-row__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* ------------------------------------------------------------------
   Notifications
   ------------------------------------------------------------------ */

.notif-list {
  border-top: var(--border);
}

.notif {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px var(--space-4);
  border-bottom: var(--border);
  transition: background-color var(--dur) var(--ease);
}

.notif:hover {
  background: var(--paper-2);
}

.notif.is-unread {
  background: var(--paper-2);
}

.notif__main {
  display: flex;
  align-items: start;
  gap: var(--space-3);
  min-width: 0;
}

.notif__mark {
  width: 6px;
  height: 6px;
  margin-top: var(--space-2);
  background: transparent;
  flex-shrink: 0;
}

.notif.is-unread .notif__mark {
  background: var(--accent);
}

.notif p {
  font-size: 14px;
  line-height: 1.6;
}

.notif time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.notif__action {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.notif:hover .notif__action {
  color: var(--accent);
}

/* ------------------------------------------------------------------
   Settings
   ------------------------------------------------------------------ */

.settings-wrap {
  max-width: 780px;
}

.settings-section {
  padding: var(--space-5) 0;
  border-bottom: var(--border);
}

.settings-section h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.settings-section > p {
  color: var(--muted);
  font-size: 13px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 18px 0;
  border-bottom: var(--border);
}

.setting-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.setting-row__label strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.setting-row__label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.setting-row__value {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  transition: background-color var(--dur) var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.switch[aria-checked="true"] {
  background: var(--ink);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--paper);
}

.danger-zone {
  margin-top: var(--space-6);
  padding: 20px;
  border: 1px solid var(--danger);
}

.danger-zone h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--danger);
}

.danger-zone p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.danger-zone__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
}

/* ------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: block;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span,
.field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.field__hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.field__error {
  display: block;
  margin-top: 5px;
  color: var(--danger);
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
  opacity: .72;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--ink);
  outline: var(--focus);
  outline-offset: 1px;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A69C8A' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.textarea {
  min-height: 116px;
  padding: var(--space-3) 14px;
  line-height: 1.6;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border);
}

.form-actions--between {
  justify-content: space-between;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  min-width: 48px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--rule-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.segmented label:last-of-type {
  border-right: 0;
}

.segmented input:checked + label {
  background: var(--ink);
  color: var(--paper);
}

.segmented input:focus-visible + label {
  outline: var(--focus);
  outline-offset: -3px;
}

/* ------------------------------------------------------------------
   Create wizard
   ------------------------------------------------------------------ */

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  border: var(--border);
  margin-bottom: var(--space-6);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 14px 18px;
  border-right: var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.step:last-child {
  border-right: 0;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
}

.step.is-active {
  background: var(--ink);
  color: var(--paper);
}

.step.is-done {
  color: var(--ink);
}

.step.is-done .step__num {
  color: var(--accent);
}

.wizard-panel {
  max-width: 860px;
  border: var(--border);
  background: var(--surface);
  padding: var(--space-6);
}

.wizard-panel h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.wizard-panel > p {
  max-width: 36em;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--rule-2);
  background: transparent;
  text-align: left;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.choice:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.choice svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: auto;
}

.choice strong {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.choice span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.preview-card {
  margin-top: var(--space-5);
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: var(--space-5);
}

.preview-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.preview-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.preview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 20px;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 13px;
}

.preview-card__note {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.publish-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 14px var(--space-4);
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
}

.publish-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ------------------------------------------------------------------
   Empty states
   ------------------------------------------------------------------ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-7), 8vw, 88px) var(--space-5);
  border: 1px dashed var(--rule-2);
  text-align: center;
}

.empty__icon {
  width: 48px;
  height: 48px;
  color: var(--muted);
  margin-bottom: 18px;
}

.empty h2,
.empty h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.empty p {
  max-width: 28em;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 14px;
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-5);
}

/* ------------------------------------------------------------------
   Modal + toast
   ------------------------------------------------------------------ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--scrim);
  animation: fade-in var(--dur) var(--ease);
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
  animation: modal-in var(--dur) var(--ease);
}

.modal--wide {
  max-width: 700px;
}

.modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--space-5);
  border-bottom: var(--border);
}

.modal__head h2 {
  font-size: 28px;
}

.modal__head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.modal__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.modal__close:hover {
  background: var(--paper-2);
  border-color: var(--rule);
  color: var(--ink);
}

.modal__body {
  padding: var(--space-5);
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px var(--space-5);
  border-top: var(--border);
}

.modal__foot--between {
  justify-content: space-between;
}

.modal__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 1200;
  transform: translate(-50%, 16px);
  max-width: min(92vw, 520px);
  padding: var(--space-3) 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

#toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
  padding-block: var(--space-8) var(--space-5);
  border-top: var(--border);
  background: var(--paper-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
}

.footer__brand p {
  max-width: 34ch;
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer__col h3 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.footer__col a,
.footer__col span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: 13px;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__note {
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------------------------
   Mobile nav
   ------------------------------------------------------------------ */

.mobile-nav {
  display: none;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: var(--space-7);
  }

  .match-card {
    left: -16px;
    bottom: -20px;
    width: 280px;
  }

  .quick-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-fields .btn {
    grid-column: 1 / -1;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }

  .find-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-h: 62px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--mobile-nav-bg);
    border-top: var(--border);
  }

  .mobile-nav a {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    transition: color var(--dur) var(--ease);
  }

  .mobile-nav a.is-active {
    color: var(--ink);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav__create {
    position: relative;
  }

  .mobile-nav__create::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translateX(-50%);
    background: var(--ink);
  }

  .mobile-nav__create span:first-child {
    position: relative;
    z-index: 1;
    color: var(--paper);
    height: 36px;
    display: grid;
    place-items: center;
  }

  .mobile-nav__create span:last-child {
    margin-top: 1px;
    color: var(--ink);
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  #toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: var(--space-7) var(--space-8);
    gap: 40px;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__art {
    max-width: 520px;
    justify-self: start;
  }

  .match-card {
    position: static;
    width: 100%;
    margin-top: var(--space-4);
  }

  .board__caption {
    position: static;
    border-top: var(--border);
  }

  .section {
    padding-block: var(--space-8);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .modes {
    grid-template-columns: 1fr;
  }

  .mode {
    min-height: auto;
    border-right: 0;
    border-bottom: var(--border);
  }

  .mode:last-child {
    border-bottom: 0;
  }

  .mode h3 {
    margin-top: var(--space-5);
  }

  .trust {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .closing__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .closing__actions {
    margin-top: var(--space-2);
  }

  .request-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-3);
    padding: 18px var(--space-2);
  }

  .request-row__host,
  .request-row__level,
  .request-row__time,
  .request-row .spots {
    display: none;
  }

  .request-row__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    padding-left: 58px;
    color: var(--muted);
    font-size: 12px;
  }

  .meta-block .label {
    display: inline;
    margin-right: var(--space-1);
  }

  .meta-block strong {
    display: inline;
  }

  .row-arrow {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .find-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filters {
    display: none;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .find-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 0;
    border-bottom: var(--border);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .detail-side {
    position: static;
  }

  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .btn {
    flex: 1;
  }

  .game-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .game-item__level {
    grid-column: 1;
  }

  .game-item__level + .game-item__level {
    grid-column: 2;
    text-align: right;
  }

  .game-item__actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-3);
  }

  .activity-row__meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
  }

  .activity-row__actions {
    grid-column: 2;
    grid-row: 1;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero__lede {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    align-items: flex-start;
    font-size: 12px;
  }

  .quick-match {
    padding-block: 56px;
  }

  .console__form {
    padding: 18px;
  }

  .quick-fields {
    grid-template-columns: 1fr;
  }

  .quick-fields .btn {
    grid-column: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category {
    min-height: 82px;
    padding: 14px;
  }

  .section-head h2 {
    max-width: 100%;
  }

  .closing h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .page {
    padding-block: var(--space-6) var(--space-8);
  }

  .page-head h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .page-head__actions {
    width: 100%;
  }

  .page-head__actions .btn {
    flex: 1;
  }

  .tabs {
    margin-inline: -20px;
    padding-inline: var(--space-2);
  }

  .result-card {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: 20px var(--space-2);
  }

  .result-card__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .result-card:hover {
    padding-left: var(--space-3);
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .game-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .game-item__level + .game-item__level {
    grid-column: 1;
    text-align: left;
  }

  .profile-id {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .profile-stats {
    gap: 28px;
  }

  .profile-empty {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 140px;
  }

  .wizard-panel {
    padding: 20px;
  }

  .steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step {
    border-right: 0;
    border-bottom: var(--border);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .modal__head,
  .modal__body,
  .modal__foot {
    padding-inline: 18px;
  }

  .modal__foot {
    flex-direction: column-reverse;
  }

  .modal__foot .btn {
    width: 100%;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .form-actions--between {
    flex-direction: column-reverse;
  }

  .account__name {
    display: none;
  }

  .account {
    padding: var(--space-1);
    border-color: transparent;
  }

  .header__actions {
    gap: 2px;
  }

  .notif {
    padding-inline: var(--space-2);
  }

  .setting-row {
    align-items: flex-start;
  }

  .activity-row__actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .activity-row {
    grid-template-columns: 1fr;
  }

  .notif__action {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   PWA install
   ------------------------------------------------------------------ */

.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.install-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.install-btn svg {
  width: 18px;
  height: 18px;
}

.install-btn[hidden] {
  display: none;
}

.can-install .install-btn {
  border-color: var(--accent);
  color: var(--accent);
}

body.is-installed .install-btn,
body.is-installed .install-section {
  display: none;
}

.install-section {
  border-top: var(--border);
}

.install-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--rule-2);
  background:
    radial-gradient(circle at 85% 20%, var(--hero-glow), transparent 55%),
    var(--surface);
}

.install-band h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.install-band p {
  max-width: 42ch;
  margin-top: var(--space-3);
  color: var(--muted);
}

.install-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.install-band__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.install-note {
  color: var(--muted);
  font-size: 12px;
}

.install-steps {
  border-top: var(--border);
}

.install-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) 0;
  border-bottom: var(--border);
}

.install-step__num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.install-step strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.install-step p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.install-step__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.install-step__icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 880px) {
  .install-band {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
  }

  .install-band__action {
    align-items: flex-start;
    width: 100%;
  }

  .install-band__action .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .install-btn {
    width: 44px;
    padding: 0;
  }

  .install-btn__label {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }
}
