:root {
  --bg: #14130f;
  --surface: #1c1a15;
  --surface-2: #252219;
  --line: #36322a;
  --text: #ece6d8;
  --muted: #a8a193;
  --accent: #e0a84a;
  --link: #f1c681;
  --ok: #7fbf7a;
  --warn: #e6a35a;
  --bad: #e07a6a;
  --discord: #5865f2;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--accent); color: #000; padding: 8px 12px; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 5; background: rgba(20, 19, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 8px; font: 700 .8rem var(--sans); letter-spacing: .04em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; background: none; border: 0; padding: 10px 8px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }
.who { display: flex; align-items: center; gap: 8px; }
.who img { width: 30px; height: 30px; border-radius: 50%; }
.who-menu { position: relative; }
.who-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.who-menu summary::-webkit-details-marker { display: none; }
.who-menu .pop { position: absolute; right: 0; top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 190px; display: grid; }
.who-menu .pop a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.who-menu .pop a:hover { background: var(--surface-2); }
@media (max-width: 940px) {
  .menu-btn { display: block; }
  .nav { display: none; }
  .nav-open .nav { display: grid; position: absolute; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-open .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .brand span:last-child { display: none; }
}

/* tlačítka */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; background: var(--accent); color: #1a1408; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); color: #1a1408; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.ico { width: 18px; height: 18px; flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* úvod */
.hero { padding: clamp(40px, 8vw, 96px) 0 40px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 300px at 85% 0%, rgba(224, 168, 74, .10), transparent 70%); }
.hero h1 { max-width: 20ch; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #d8d1c2; max-width: 60ch; }
.live { display: flex; gap: 22px; margin-top: 22px; color: var(--muted); font-size: .95rem; flex-wrap: wrap; }
.live b { color: var(--text); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; }
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; color: var(--accent); font-weight: 700; margin-bottom: .6em; }

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* karty */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 { margin: 0; }
.card p { margin: 0; color: #cfc8b9; }
.card .meta { margin-top: auto; padding-top: 10px; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
.card-world { border-top: 3px solid var(--w, var(--accent)); }
.card-world .emoji { font-size: 1.6rem; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: #d9d2c3; white-space: nowrap; }
.tag-ok { border-color: rgba(127, 191, 122, .5); color: var(--ok); }
.tag-warn { border-color: rgba(230, 163, 90, .5); color: var(--warn); }

/* stránky obsahu */
.pagehead { padding: 36px 0 18px; }
.pagehead p.lead { margin-bottom: 0; }
.pagehead .row { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 70ch; }
.prose li { margin-bottom: .4em; }
.layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; padding-bottom: 56px; }
.toc { position: sticky; top: 80px; font-size: .92rem; border-left: 1px solid var(--line); padding-left: 16px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--text); }
.toc p { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .toc { position: static; border-left: 0; padding: 0; } }

.rule { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.rule h2, .rule h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.rule p:last-child { margin: 0; }
.anchor { color: var(--muted); text-decoration: none; margin-left: 8px; font-family: var(--sans); font-size: .85em; opacity: 0; }
:hover > .anchor, .anchor:focus { opacity: 1; }

.entry { border-top: 1px solid var(--line); padding: 18px 0; }
.entry h3 { margin-bottom: .3em; }
.entry .role { color: var(--accent); font-size: .92rem; margin: -.2em 0 .5em; }
.chlist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding: 0; list-style: none; }
.chlist a { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--surface); font-size: .95rem; }
.chlist a:hover { border-color: var(--discord); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.hook { font-style: italic; color: #d8d1c2; }

/* formuláře a filtry */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.filters label, .form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
textarea { min-height: 120px; resize: vertical; width: 100%; }
.form { display: grid; gap: 14px; max-width: 720px; }
.form input, .form select { width: 100%; }
.form .two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } .filters > * { flex: 1 1 140px; } }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); margin: 12px 0; }
.notice.ok { border-color: var(--ok); }
.notice.bad { border-color: var(--bad); }

/* postava */
.charhead { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex: none; display: grid; place-items: center; font: 600 2rem var(--serif); color: var(--muted); }
.avatar-sm { width: 52px; height: 52px; border-radius: 8px; font-size: 1.2rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.charcard { flex-direction: row; gap: 14px; align-items: flex-start; }

.stars { color: var(--accent); letter-spacing: 2px; white-space: nowrap; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* kalendář */
.event { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.date { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; height: max-content; }
.date b { display: block; font: 600 1.6rem var(--serif); }
.date span { font-size: .8rem; color: var(--muted); text-transform: uppercase; }

/* patička */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; background: #100f0c; }
.foot-in { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-name { font: 600 1.15rem var(--serif); }
.foot-h { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.cmds { border-collapse: collapse; width: 100%; font-size: .95rem; }
.cmds td { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.cmds td:first-child { white-space: nowrap; }
