@font-face {
  font-family: 'Sofia Sans';
  src: url('/fonts/sofia-sans-latin-ext.woff2') format('woff2');
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('/fonts/sofia-sans-latin.woff2') format('woff2');
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #101216;
  --bg-2: #14171d;
  --surface: #1a1e26;
  --surface-2: #222733;
  --line: #2b3140;
  --text: #e9ebf0;
  --muted: #9aa3b4;
  --faint: #6c7486;
  --grass: #6fcf5a;
  --grass-dim: #2f5a28;
  --gold: #f1c45c;
  --nether: #e0684b;
  --end: #b58cf0;
  --water: #5ab3e8;
  --radius: 14px;
  --font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 15% -10%, rgba(111, 207, 90, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(181, 140, 240, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- hlavicka ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(16, 18, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.01em; }
.brand img { width: 26px; height: 26px; image-rendering: pixelated; border-radius: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 9px;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current='page'] { color: var(--text); background: var(--surface-2); }

/* ---------- typografie ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- uvod ---------- */
.hero { padding: 72px 0 8px; }
.eyebrow { color: var(--grass); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin-top: 10px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 14px 0 0; }

.join { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 32px; }
.address {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.address { min-width: 0; max-width: 100%; }
.address code { font: 700 20px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.01em; margin-right: 10px; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: 700 15px/1 var(--font); color: #0e1a0b;
  background: var(--grass); padding: 12px 16px; border-radius: 10px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: transform 0.1s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn:focus-visible, .nav a:focus-visible, .card-link:focus-visible, .chip:focus-visible, .more:focus-visible {
  outline: 2px solid var(--grass); outline-offset: 2px;
}

.status {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 58px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--grass); box-shadow: 0 0 0 4px rgba(111, 207, 90, 0.18); }
.dot.off { background: var(--nether); }
.status .who { color: var(--muted); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.facts span::before { content: '•'; color: var(--faint); margin-right: 8px; }
.facts span:first-child::before { content: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.card-link {
  display: block; text-decoration: none; padding: 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
}
.card-link:hover { border-color: #3a4256; background: #1d2230; transform: translateY(-2px); }
.card-link .icon { font-size: 30px; line-height: 1; }
.card-link h3 { font-size: 22px; margin-top: 16px; }
.card-link p { margin: 6px 0 0; color: var(--muted); }
.card-link .go { margin-top: 18px; font-weight: 700; color: var(--grass); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.feature { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature h3 .tag { width: 8px; height: 8px; border-radius: 2px; background: var(--grass); }
.feature.nether h3 .tag { background: var(--nether); }
.feature.end h3 .tag { background: var(--end); }
.feature.water h3 .tag { background: var(--water); }
.feature.gold h3 .tag { background: var(--gold); }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

footer { margin: 72px 0 40px; color: var(--faint); font-size: 14px; }

/* ---------- statistiky ---------- */
.page-head { padding: 48px 0 0; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 720px; }

.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.award {
  display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(241, 196, 92, 0.07), transparent 70%), var(--surface);
  border: 1px solid var(--line); text-decoration: none;
}
.award:hover { border-color: #4a4330; }
.award img { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; flex: none; background: var(--surface-2); }
.award .title { font-weight: 900; color: var(--gold); font-size: 19px; line-height: 1.1; }
.award .name { font-weight: 700; }
.award .why { color: var(--muted); font-size: 14px; line-height: 1.3; }

.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.board { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.board h3 { color: var(--muted); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.rank { list-style: none; margin: 12px 0 0; padding: 0; }
.rank li a {
  display: grid; grid-template-columns: 22px 28px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 6px; border-radius: 8px; text-decoration: none;
}
.rank li a:hover { background: var(--surface-2); }
.rank .pos { color: var(--faint); font-weight: 700; text-align: right; }
.rank li:first-child .pos { color: var(--gold); }
.rank img { width: 28px; height: 28px; border-radius: 5px; image-rendering: pixelated; background: var(--surface-2); }
.rank .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .v { font-weight: 700; }
.more {
  margin-top: 8px; background: none; border: 0; color: var(--muted); font: 600 14px var(--font);
  cursor: pointer; padding: 6px; border-radius: 6px;
}
.more:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.chip:hover { border-color: #3a4256; background: var(--surface-2); }
.chip img { width: 32px; height: 32px; border-radius: 50%; image-rendering: pixelated; background: var(--surface-2); }
.chip .h { color: var(--muted); font-weight: 500; font-size: 14px; }

.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); margin-top: 40px; }
.empty strong { color: var(--text); display: block; font-size: 20px; margin-bottom: 6px; }

/* ---------- profil hrace ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; margin-top: 32px; }
.back:hover { color: var(--text); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 18px; }
.profile img { width: 96px; height: 96px; border-radius: 14px; image-rendering: pixelated; background: var(--surface-2); }
.profile h1 { font-size: clamp(34px, 6vw, 54px); }
.profile p { margin: 6px 0 0; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.kpi .v { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: 14px; margin-top: 2px; }

.travel { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); margin-top: 12px; }
.bar span { display: block; height: 100%; min-width: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 15px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.c-walk { background: var(--grass); }
.c-water { background: var(--water); }
.c-elytra { background: var(--end); }
.c-riding { background: var(--gold); }
.c-fly { background: #8a93a6; }

.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.list { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.list ol { list-style: none; margin: 10px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li span:last-child { font-weight: 700; }
.list .none { color: var(--faint); margin: 10px 0 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .wrap { gap: 12px; }
  .brand span { display: none; }
  .hero { padding-top: 48px; }
  .address { min-width: 0; max-width: 100%; }
.address code { font-size: 17px; }
  .profile { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
