:root {
  --site-line: rgba(102, 112, 133, 0.22);
  --site-ink: #182230;
  --site-muted: #667085;
  --site-accent: #9e2f3f;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--site-line);
}

.site-header .brand,
.topbar .brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  min-height: 34px;
}

.site-header .brand img,
.topbar .brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: min(46vw, 176px);
  object-fit: contain;
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 16px;
}

.site-nav,
.language-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a,
.language-switcher a {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.language-switcher {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--site-line);
}

.language-switcher a {
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 4px 9px;
}

.language-switcher a[aria-current="true"] {
  border-color: rgba(158, 47, 63, 0.45);
  color: var(--site-accent);
  background: rgba(158, 47, 63, 0.08);
}

.join-page,
.auth-link-page {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  color: #251f2e;
  background: #faf7f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  display: grid;
  place-items: center;
}

.join-shell {
  width: min(32rem, 100%);
}

.join-shell .language-switcher {
  justify-content: flex-start;
  margin-bottom: 18px;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.join-shell h1 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(166, 124, 50, 0.35);
  color: #7a2528;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 2.85rem);
  line-height: 1.2;
}

.join-shell p {
  margin: 0 0 1rem;
}

.join-shell .codes {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(166, 124, 50, 0.35);
  background: #fffaf1;
  border-radius: 8px;
  font-size: 1.1rem;
}

.join-shell .muted,
.join-shell .hint {
  color: #655e6b;
}

.join-shell .actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.join-shell .button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.join-shell .button.primary {
  color: white;
  background: #403682;
}

.join-shell .button.secondary {
  color: #403682;
  border: 1px solid rgba(64, 54, 130, 0.3);
  background: transparent;
}

.join-shell .hint {
  display: none;
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.join-shell .hint.visible {
  display: block;
}

.join-shell strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

@media (max-width: 760px) {
  .site-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header-actions,
  .site-nav,
  .language-switcher {
    justify-content: flex-start;
  }

  .language-switcher {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
