@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #000000;
  --surface: #121212;
  --surface-elevated: #1a1a1a;
  --surface-hover: #222222;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #6d7cff;
  --accent-strong: #5b6bf5;
  --accent-glow: rgba(109, 124, 255, 0.35);
  --purple-modal: #4c1d95;
  --purple-modal-bg: rgba(76, 29, 149, 0.92);
  --join-bg: #f3f4f6;
  --join-text: #111827;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --subnav-h: 52px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45);
  --max-w: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.nav-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: underline-in 0.35s var(--ease-out);
}

@keyframes underline-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: center;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: clamp(36px, 5vw, 44px);
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 48px;
    max-width: 280px;
  }
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.btn-join {
  background: var(--join-bg);
  color: var(--join-text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
    background 0.2s;
}

.btn-join:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-join:active {
  transform: scale(0.98);
}

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  height: var(--subnav-h);
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subnav-tab {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.subnav-tab:hover {
  color: var(--text-muted);
  transform: translateY(-1px);
}

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

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

.main-content {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-w) + 4rem);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 4rem;
}

.view {
  display: none;
  animation: view-in 0.45s var(--ease-out);
}

.view.is-active {
  display: block;
}

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

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: transform 0.22s var(--ease-spring), background 0.2s, color 0.2s,
    border-color 0.2s, box-shadow 0.2s;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 124, 255, 0.4);
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.chip-add {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.poll-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.poll-card:hover {
  border-color: rgba(109, 124, 255, 0.15);
}

.poll-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
}

.poll-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.fixture-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 72px;
}

.team-crest {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.score-pill {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.match-date {
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.vote-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.vote-option:hover {
  background: rgba(255, 255, 255, 0.03);
}

.vote-option input {
  display: none;
}

.radio-ui {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vote-option.is-selected .radio-ui {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}

.option-body {
  position: relative;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
}

.option-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  border-radius: var(--radius-pill);
  transition: width 0.6s var(--ease-out);
  opacity: 0.85;
}

.option-name {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #374151;
}

.option-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

.vote-option.is-selected .option-pct {
  color: var(--text);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.link-quiet {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s, transform 0.2s var(--ease-spring);
}

.link-quiet:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.engagement {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.engagement button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s var(--ease-spring), color 0.2s;
}

.engagement button:hover {
  color: var(--text);
  transform: scale(1.08);
}

.engagement button:active {
  transform: scale(0.95);
}

.countdown {
  width: 100%;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  text-align: center;
}

.search-bar {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.fixtures-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fixtures-card h3 {
  text-align: center;
  margin: 0;
  padding: 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.fixture-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.fixture-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fixture-date {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.fixture-league {
  font-size: 0.625rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.fixture-mid {
  text-align: center;
}

.fixture-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.fixture-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.btn-sm {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.2s;
}

.btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-sm:active {
  transform: scale(0.96);
}

.btn-sm.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.leaderboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.leaderboard-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.toggle-pair {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--border);
}

.toggle-pair button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
}

.toggle-pair button.is-active {
  background: var(--accent);
  color: #fff;
}

.filter-pills-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.35rem;
}

.lb-table th {
  text-align: left;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 0.75rem 0.35rem;
}

.lb-table td {
  background: var(--surface);
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
}

.lb-table tr td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 700;
  width: 3rem;
}

.lb-table tr td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lb-table tr.is-top td {
  background: linear-gradient(90deg, rgba(109, 124, 255, 0.25), var(--surface));
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.benefit-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 124, 255, 0.2);
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out);
}

.blog-item:hover {
  transform: translateX(4px);
  border-color: rgba(109, 124, 255, 0.25);
}

.blog-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.blog-item time {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.blog-item p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: color 0.2s, transform 0.2s;
}

.detail-back:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.comments {
  margin-top: 1.5rem;
}

.comment-composer {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.comment-composer input {
  flex: 1;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
}

.comment-composer input:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-composer button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease-spring);
}

.comment-composer button:hover {
  transform: scale(1.08);
}

.comment {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #374151;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-size: 0.8125rem;
  font-weight: 600;
}

.comment-time {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.comment-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.app-banner {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
}

.app-banner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 420px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(420px, 100%);
  background: var(--purple-modal-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.4s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 90vh;
  overflow-y: auto;
}

.overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

.modal h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  padding-right: 1rem;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s var(--ease-spring);
}

.share-item:hover {
  transform: translateY(-4px) scale(1.05);
}

.share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.modal-form label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

.modal-segment {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 1rem;
}

.modal-segment button {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.6);
}

.modal-segment button.is-active {
  background: var(--accent);
  color: #fff;
}

.check-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.check-list li:hover {
  transform: translateX(4px);
}

.check-box {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.check-list li.is-checked .check-box {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.signup-modal .modal {
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(440px, 100%);
}

.signup-modal h3 {
  color: var(--text);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-note {
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-elevated);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  z-index: 300;
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 0.75rem 1rem 0.65rem;
    gap: 0.5rem;
  }

  .nav-left {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-right {
    grid-column: 2;
    grid-row: 1;
  }

  .subnav {
    gap: 1.25rem;
  }

  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
