:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --yellow: #eab308;
  --yellow-bright: #facc15;
  --yellow-soft: #fefce8;
  --yellow-border: #fde047;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --silver: #94a3b8;
  --bronze: #b45309;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes yellowPulseLine {
  0%, 100% { opacity: 0.55; transform: scaleX(0.92); }
  50% { opacity: 1; transform: scaleX(1); }
}

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

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

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

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; color: var(--muted); }

.empty {
  color: var(--ink-2);
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.avatar {
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.28rem 0.52rem;
  border-radius: 4px;
  vertical-align: middle;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow) 25%, var(--yellow-bright) 50%, var(--yellow) 75%, transparent);
  opacity: 0.45;
}

.nav-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--ink);
}

.brand img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}

.brand:hover img { border-color: var(--yellow); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  flex: 1;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.35rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.nav-name {
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-bar {
  background: var(--yellow-soft);
  border-bottom: 1px solid var(--yellow-border);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.notice-bar a {
  font-weight: 600;
  border-bottom: 1.5px solid var(--yellow);
}

/* Bottoni con effetto giallo */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink);
  background: var(--yellow-bright);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.6rem 1.15rem;
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.2s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -3px rgba(234, 179, 8, 0.45);
}

.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: #fca5a5;
  box-shadow: none;
}

.btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  box-shadow: none;
}

.btn-sm { padding: 0.36rem 0.8rem; font-size: 0.85rem; }

/* Layout principale */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem;
  animation: fadeUp 0.28s var(--ease);
}

.narrow { max-width: 760px; margin: 0 auto; }
.narrow.wide { max-width: 920px; }
.center { text-align: center; padding-top: 3rem; }
.center .muted { margin-bottom: 1.5rem; }
.spaced { margin-top: 2.4rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

.title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}

.title-row h1 { margin: 0; }
.crumbs { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.9rem; }
.crumbs a:hover { color: var(--ink); border-bottom: 1px solid var(--yellow); }

.tabs {
  display: flex;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin: 0.6rem 0 1.5rem;
}

.tabs a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.tabs a:hover { color: var(--ink); }
.tabs a:hover::after,
.tabs a[aria-current="page"]::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.foot a:hover { color: var(--ink); border-bottom: 1px solid var(--yellow); }

/* Hero lineare su base bianca con accenti gialli */
.hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 3rem 2rem 2.5rem;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.hero:hover {
  border-color: var(--line-strong);
  border-top-color: var(--yellow);
  box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.14);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 2px;
  background: var(--yellow-bright);
  animation: yellowPulseLine 3.6s ease-in-out infinite;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.wordmark {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.wordmark span {
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
}

.hero .tag {
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0.65rem 0 0.5rem;
  color: var(--ink);
}

.hero p.desc {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.center-actions { justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stats > div {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-stats > div:hover {
  transform: translateY(-2px);
  border-color: var(--yellow-border);
  border-left-color: var(--yellow);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* Sezioni Home */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  transition: transform 0.2s var(--ease), border-top-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature:hover {
  transform: translateY(-2px);
  border-top-color: var(--yellow);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.2);
}

.feature p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.2rem;
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: s;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.steps li:hover { border-color: var(--yellow); }

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.steps strong { display: block; font-size: 0.96rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }

.sections { display: grid; gap: 0.85rem; }

.section-link {
  display: block;
  padding: 1.05rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

a.section-link:hover {
  background: var(--yellow-soft);
  transform: translateX(3px);
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.2);
}

.section-link h2 { margin-bottom: 0.25em; }
.section-link p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.side {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.people li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.staff-group {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
}
.prose p { max-width: 64ch; }

/* Account e login */
.auth { max-width: 440px; margin: 1.5rem auto; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.4rem;
}
.facts { display: grid; grid-template-columns: 9rem 1fr; gap: 0.55rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; word-break: break-word; font-weight: 500; }

/* Discussioni */
.threads {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.threads li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background-color 0.16s var(--ease), border-left-color 0.16s var(--ease);
}

.threads li:last-child { border-bottom: 0; }
.threads li:hover { background: var(--yellow-soft); border-left-color: var(--yellow); }
.threads a { font-weight: 600; font-size: 1.02rem; }
.threads small { color: var(--muted); font-size: 0.85rem; }

.status {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  background: var(--yellow-soft);
  color: var(--ink);
  border: 1px solid var(--yellow);
}

.status-closed { background: var(--surface-alt); border-color: var(--line-strong); color: var(--ink-2); }
.status-archived { background: #f1f5f9; border-color: var(--silver); color: var(--muted); }

.mod-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 1.1rem; }
.posts { display: grid; gap: 0.9rem; margin-top: 1rem; }

.post {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 1rem;
  padding: 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.post:hover { border-color: var(--line-strong); }
.post-author { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; word-break: break-word; }
.post-main time { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 0.45rem; }

/* Testo ricco */
.rich { overflow-wrap: anywhere; }
.rich p { margin: 0 0 0.7em; }
.rich h1 { font-size: 1.55rem; }
.rich h2 { font-size: 1.25rem; }
.rich h3 { font-size: 1.08rem; }
.rich blockquote {
  margin: 0.7em 0;
  padding: 0.35rem 0.9rem;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  color: var(--ink-2);
}
.rich code, .rich pre {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.12em 0.38em;
}
.rich a { color: var(--ink); border-bottom: 1.5px solid var(--yellow); }

/* Form ed editor */
.compose, .form { display: grid; gap: 1rem; }
.compose label, .form label, .user-form label, .auth label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.compose > label > input,
.form label > input,
.auth label > input,
.user-form input,
.user-form select,
.search input {
  font: inherit;
  font-weight: 400;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.58rem 0.75rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.compose > label > input:focus,
.form label > input:focus,
.auth label > input:focus,
.user-form input:focus,
.user-form select:focus,
.search input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
  outline: none;
}

.editor {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.18s var(--ease);
}

.editor:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.toolbar button, .toolbar select, .toolbar .color {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.26rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.toolbar button:hover, .toolbar select:hover {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.toolbar .color { display: inline-flex; align-items: center; gap: 0.35rem; }
.toolbar input[type="color"] { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.editor-area { min-height: 210px; padding: 0.9rem; outline: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--muted); }

.error { color: var(--danger); font-weight: 500; font-size: 0.9rem; min-height: 1.3em; margin: 0; }
.notice {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

/* Classifica e partite */
.board {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.board li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background-color 0.16s var(--ease);
}

.board li:last-child { border-bottom: 0; }
.board li:hover { background: var(--surface-alt); }
.rank { width: 2rem; text-align: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.who { flex: 1; display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; }
.who small { color: var(--muted); font-weight: 400; font-size: 0.84rem; }
.pts { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.top-1 { border-left-color: var(--yellow) !important; background: var(--yellow-soft); }
.top-2 { border-left-color: var(--silver) !important; }
.top-3 { border-left-color: var(--bronze) !important; }

.matches { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.match {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
}
.match header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.match h2 { margin: 0; font-size: 1.1rem; }
.match time { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }
.match ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.25rem; }
.match li { display: flex; justify-content: space-between; max-width: 380px; font-size: 0.92rem; }
.match li strong { font-family: var(--font-mono); }

/* Admin */
.search { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.search input { flex: 1; }
.users { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.users > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.user-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.user-head small { display: block; color: var(--muted); font-size: 0.83rem; word-break: break-all; }
.user-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.picker {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.picker li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.picker li:last-child { border-bottom: 0; }
.pick { display: flex !important; align-items: center; gap: 0.6rem; font-weight: 400 !important; cursor: pointer; }
.pts-input {
  width: 92px;
  text-align: right;
  font-family: var(--font-mono);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.32rem 0.5rem;
}
.recent { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.recent li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
}
.recent small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; }

@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 1rem; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .row { grid-template-columns: 1fr; }
  .nav-name { display: none; }
  .hero { padding: 2rem 1.2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0.15rem 1rem; }
}

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