/* uoerebor.cz – design system (dark Middle-earth, gold accents)
   Keeps the Erebor identity of the old site (artwork background, gold headings, UO gauntlet cursor)
   with modern typography, glass panels, responsive layout and accessible contrast. */

@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap;
  src: url("/fonts/cinzel-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Cinzel"; font-weight: 700; font-display: swap;
  src: url("/fonts/cinzel-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0a0d;
  --panel: rgba(22, 20, 25, 0.84);
  --panel-strong: rgba(30, 27, 33, 0.94);
  --panel-hover: rgba(44, 39, 47, 0.9);
  --line: rgba(246, 222, 82, 0.16);
  --line-strong: rgba(246, 222, 82, 0.34);
  --gold: #f6de52;
  --gold-2: #e2a521;
  --gold-3: #b9831a;
  --text: #ece6da;
  --muted: #aea597;
  --faint: #9a9285;   /* ≥ 4.5:1 on panels for small labels (UX audit M1; was 3.9–4.2:1) */
  --mordor: #ef5a4c;
  --gondor: #4c9bff;
  --gm: #9be15d;
  --ok: #57c78a;
  --warn: #f0b24a;
  --danger: #f06a5f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --cursor: url("/cursors/UO-Gauntlet.cur"), auto;
  --cursor-text: url("/cursors/UO-Text.cur") 4 19, text;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }   /* anchors land below the sticky header (UX H6) */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(246, 222, 82, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.88) 55%, rgba(8, 8, 10, 0.96) 100%),
    url("/img/bg.jpg") center top / cover fixed,
    var(--bg);
  cursor: var(--cursor);
  display: flex;
  flex-direction: column;
}
a, button, summary, select, label, [role="button"] { cursor: var(--cursor); }
input, textarea { cursor: var(--cursor-text); }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }
a { color: var(--gold-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(246, 222, 82, 0.35); color: #fff; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3, .h3 { font-size: 1.15rem; }   /* .h3: a level-2 heading with the h3 look (UX L3: no h1 → h3 jumps) */
.h4 { font-size: 1rem; margin-bottom: .3em; }   /* sub-group inside a panel (Nesrovnalosti → Identita) */
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 14, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a, .nav summary {
  color: var(--text); font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
  list-style: none; white-space: nowrap;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { background: rgba(246, 222, 82, 0.09); color: var(--gold); }
.nav details { position: relative; }
.nav details summary::after { content: "▾"; font-size: .7em; margin-left: 6px; opacity: .7; }
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
  background: var(--panel-strong); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.nav .menu a { display: block; padding: 8px 10px; }
.nav .menu .ext::after, a.ext::after { content: " ↗"; font-size: .8em; opacity: .6; }
.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--gold-2); }
.icon-link:hover { background: rgba(246, 222, 82, 0.09); }
.icon-link svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }

/* signed-in headers (account + Odhlásit, staff tabs) overflowed at 961–1180 px (UX audit H2): menu button up to 1199 px */
.site-header .actions .btn { white-space: nowrap; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; }
/* the sign-in button is never cut (Jeffrey 2026-10-04: "Přihlášení / registrace" was clipped by the 16ch cap and touched its edges) */
.site-header .actions .btn-primary { max-width: none; padding-inline: 16px; }
/* staff header with the full menu (> 1365 px) must stay inside the page width like the body (Jeffrey 2026-10-04: it stuck out
   past the content edge): tighter items, the account button shorter */
@media (min-width: 1366px) {
  .site-header.staff .bar { gap: 10px; }
  .site-header.staff .nav a, .site-header.staff .nav summary { padding: 8px 8px; font-size: .9rem; }
  .site-header.staff .actions { gap: 6px; }
  .site-header.staff .actions .btn { max-width: 12ch; }
}
@media (max-width: 1199px) {
  .site-header .bar { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-toggle summary { list-style: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav, .actions { display: none; }
  .nav-toggle[open] ~ .nav, .nav-toggle[open] ~ .actions,
  .site-header.menu-open .nav, .site-header.menu-open .actions { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-toggle summary { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .nav-toggle summary svg { pointer-events: none; }
  .nav details .menu { position: static; box-shadow: none; margin: 4px 0 4px 12px; }
  .actions { flex-direction: row !important; flex-wrap: wrap; }
}
/* staff headers carry one more item (Administrace + badge) and overflowed at 1200–1365 px (UX audit P1): menu button up to 1365 px */
@media (max-width: 1365px) {
  .site-header.staff .bar { flex-wrap: wrap; }
  .site-header.staff .nav-toggle { display: block; margin-left: auto; }
  .site-header.staff .nav-toggle summary { list-style: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); }
  .site-header.staff .nav-toggle summary::-webkit-details-marker { display: none; }
  .site-header.staff .nav, .site-header.staff .actions { display: none; }
  .site-header.staff .nav-toggle[open] ~ .nav, .site-header.staff .nav-toggle[open] ~ .actions,
  .site-header.staff.menu-open .nav, .site-header.staff.menu-open .actions { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .site-header.staff .nav-toggle summary { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .site-header.staff .nav-toggle summary svg { pointer-events: none; }
  .site-header.staff .nav details .menu { position: static; box-shadow: none; margin: 4px 0 4px 12px; }
  .site-header.staff .actions { flex-direction: row !important; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 650; font-size: .95rem; line-height: 1;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
/* hover only where there is a pointer that hovers: on touch the style stuck after a tap (UX audit P5) */
@media (hover: hover) { .btn:hover { color: var(--gold); border-color: var(--gold-2); background: rgba(246, 222, 82, 0.07); transform: translateY(-1px); } }
.btn-primary {
  color: #1b1405; border: 0;
  background: linear-gradient(180deg, #ffe979 0%, var(--gold) 38%, var(--gold-2) 100%);
  box-shadow: 0 6px 22px rgba(226, 165, 33, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { color: #1b1405; background: linear-gradient(180deg, #fff0a0 0%, #ffe56b 40%, #f0b432 100%); box-shadow: 0 8px 26px rgba(226, 165, 33, 0.4); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- layout blocks */
main { flex: 1; padding: 34px 0 60px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stack > * + * { margin-top: 22px; }
.grid > * { margin-top: 0 !important; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .lead { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }   /* several buttons in a page head (Herní účty: Nový herní účet + Můj účet) */
.divider { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 26px 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
a.card { color: var(--text); display: block; }
a.card:hover { border-color: var(--line-strong); background: rgba(246, 222, 82, 0.05); transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card .meta { color: var(--faint); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero img { width: 100%; aspect-ratio: 1100 / 344; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 9, 12, 0.85) 100%); }
.hero .hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 3vw, 34px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.hero .hero-body h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.3rem); }
.hero .hero-body p { margin: 4px 0 0; color: var(--text); opacity: .9; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .hero .hero-body { position: static; background: rgba(12, 11, 14, 0.92); }
  .hero::after { display: none; }
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-weight: 650; color: var(--gold); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; background: rgba(246, 222, 82, 0.05); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.table .nowrap { white-space: nowrap; }
@media (max-width: 720px) {
  .table.stack-mobile thead { display: none; }
  .table.stack-mobile tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  /* label | value; every child of the cell stays in the value column (UX audit H1: extra children fell under the label, values were cut) */
  .table.stack-mobile td { display: grid; grid-template-columns: minmax(6rem, 35%) minmax(0, 1fr); gap: 8px; border: 0; padding: 4px 12px; overflow-wrap: anywhere; }
  .table.stack-mobile td > * { grid-column: 2; min-width: 0; }
  .table.stack-mobile td::before { content: attr(data-label); color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
  .table.stack-mobile td[data-label=""] { display: block; }
  .table.stack-mobile td[data-label=""]::before { content: none; }
  .table.stack-mobile td .actions-cell .inline-details[open] .form { max-width: none; }
}

/* ---------------------------------------------------------------- forms */
.search { display: flex; gap: 8px; max-width: 520px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 14px; font: inherit; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-strong); border-radius: 10px;
}
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 222, 82, 0.15); }
/* selects look like the inputs on every platform (UX audit P14): own chevron from gradients (CSP: no data: images), tap height */
.select { -webkit-appearance: none; appearance: none; min-height: 44px; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: #15130f; color: var(--text); }
.select[multiple] { background-image: none; padding-right: 14px; min-height: 0; }   /* list box: no chevron */
.filter-row .log-actions[open] { flex-basis: 100%; }
.action-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; margin: 10px 0 6px; }
.action-groups fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 8px; margin: 0; min-width: 0; }
.action-groups legend { color: var(--gold); font-weight: 600; font-size: .85rem; padding: 0 4px; }
.action-groups .checkbox { flex-direction: row; gap: 6px; align-items: flex-start; font-weight: 400; margin: 3px 0; }   /* not the column layout of .filter-row label */
.form { display: grid; gap: 16px; max-width: 440px; margin: 0 auto; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.actions-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }   /* FormExpired: back + Můj účet */
.checkbox { display: flex !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 500; }
.resend.is-disabled { color: var(--faint); pointer-events: none; cursor: default; font-variant-numeric: tabular-nums; }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.form-inline { max-width: 520px; margin: 0; }
.cf-turnstile { min-height: 65px; display: flex; justify-content: center; }
.admin-tabs { margin-top: 14px; }
.admin-box { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 6px; }
.template { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0 8px; overflow-x: auto; font-size: .85rem; white-space: pre; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.actions-cell form, .admin-actions form { margin: 0; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] { flex-basis: 100%; }
.inline-details .form { margin: 8px 0 0; max-width: 360px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form .select, .inline-form .input:not(.input-sm) { width: auto; flex: 1 1 200px; min-width: 0; max-width: 100%; }   /* long options overflowed phones (UX M7) */
.search-row { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.search-row .input { flex: 1; min-width: 180px; }
.input-sm { padding: 6px 10px; font-size: .9rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.filter-row label { display: flex; flex-direction: column; gap: 4px; }
.filter-row .users-q { flex: 1 1 320px; }
.filter-row .checkbox { flex-direction: row; align-self: center; }   /* a checkbox among labelled fields */
.filter-row select { min-width: 150px; }
.table tr.row-current td { background: var(--panel-hover); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.form-wide { max-width: 640px; margin: 0; }
.mt-sm { margin-top: 10px; }
.grid-coords { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-row td { padding-top: 0 !important; border-top: 0 !important; }
.char-card summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .9rem; padding: 2px 0 8px; }
.char-card[open] { padding-bottom: 10px; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 12px; }
.skill-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; }
.skill-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 3px 0; font-size: .92rem; }
@media (max-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar-list li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.bar-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-value { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: rgba(255, 255, 255, .06); border-radius: 5px; }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, #b8862a, #e2b84a); border-radius: 5px; }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, #b8862a, #e2b84a); border-radius: 5px; }
progress.bar-danger { width: 120px; vertical-align: middle; }
progress.bar-danger::-webkit-progress-value { background: linear-gradient(90deg, #a83232, #d93a3a); }
progress.bar-danger::-moz-progress-bar { background: linear-gradient(90deg, #a83232, #d93a3a); }
.top-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.top-list li { padding: 2px 0; border-bottom: 1px dashed var(--line); }
.top-list li > span, .top-list li { font-size: .92rem; }
.top-list li { display: list-item; }
.top-list li strong { float: right; font-variant-numeric: tabular-nums; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px;
  background: #d93a3a; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; vertical-align: middle; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.nav-badge.info { background: rgba(255, 255, 255, .14); color: var(--text); box-shadow: none; }   /* in progress on its own: not a task, not red */
.nav-toggle summary { position: relative; }
.nav-toggle summary .nav-badge { position: absolute; top: -7px; right: -7px; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.admin-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.account-name span { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.kv dt { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.kv dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- pagination, badges, misc */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pagination a:hover { border-color: var(--gold-2); color: var(--gold); }
.pagination .current { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1b1405; border: 0; }
.pagination .gap { border: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 10px; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; }   /* body font: Cinzel digits read as letters; 10px: long labels wrap without turning into ovals (UX L6) */
.realm-mordor { color: var(--mordor); }
.realm-gondor { color: var(--gondor); }
.mine { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }   /* the viewer's own character */
.mine-tag { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.realm-legend { white-space: nowrap; }
.realm-gm { color: var(--gm); }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.danger { color: var(--danger); } .badge.muted { color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(246, 222, 82, 0.06); }
.notice.info { border-color: rgba(76, 155, 255, 0.4); background: rgba(76, 155, 255, 0.08); }
.notice.warn { border-color: rgba(240, 178, 74, 0.5); background: rgba(240, 178, 74, 0.08); }
.notice svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.empty { text-align: center; padding: 38px 16px; color: var(--muted); }
.empty .display { font-size: 1.2rem; display: block; margin-bottom: 6px; }

.realm-columns { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.realm-columns h2 { display: flex; align-items: center; gap: 10px; }
.realm-columns h2 svg { width: 1em; height: 1em; }
.realm-columns h2.realm-mordor { color: var(--mordor); }
.realm-columns h2.realm-gondor { color: var(--gondor); }
.mine { font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }   /* the viewer's own character */
.mine-tag { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.realm-legend { white-space: nowrap; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guild-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.guild-item:hover { border-color: var(--line-strong); background: rgba(246, 222, 82, 0.04); }
.guild-item .name { font-weight: 700; color: var(--gold-2); }
.guild-item .sub { color: var(--muted); font-size: .88rem; }

.gallery { columns: 4 240px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); break-inside: avoid; }
.gallery a:hover { border-color: var(--gold-2); }
.gallery img { width: 100%; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: .88rem; font-weight: 600; }
.chip[aria-current="page"], .chip:hover { color: #1b1405; background: var(--gold); border-color: var(--gold); }

.agenda { display: grid; gap: 12px; }
.agenda .day { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: start; }
.agenda .date { text-align: center; border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 4px; background: rgba(246, 222, 82, 0.05); }
.agenda .date .d { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.agenda .date .m { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.news-card .excerpt { color: var(--text); opacity: .92; }
.news-card { display: flex; flex-direction: column; }
.news-more { margin: 4px 0 16px; gap: 6px; font-size: .92rem; }
.news-more time { color: var(--faint); font-size: .82rem; }
.news-card .btn { align-self: flex-start; margin-top: auto; }
.news-card time { color: var(--faint); font-size: .85rem; display: block; margin-bottom: 8px; }

/* server status */
.status-widget { display: block; color: var(--text); padding: 16px 20px; }
.status-widget:hover { border-color: var(--line-strong); color: var(--text); }
.status-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.status-line { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.status-line .players { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.state-badge { gap: 8px; }
.state-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chart { width: 100%; height: auto; display: block; }
.chart.mini { height: 60px; }
.stats .stat { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1.1; margin: 4px 0; }
.sync-overview .card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }   /* Synchronizace: live values at a glance */
.sync-overview .stat { font-size: 1.7rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.tabs a { color: var(--muted); font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; }
.tabs a:hover { color: var(--gold); background: rgba(246, 222, 82, 0.07); }
@media (max-width: 960px) { .tabs { border-radius: 16px; } }   /* wrapped rows: a pill radius turns the box into an oval */
.tabs a[aria-current="page"] { color: #1b1405; background: linear-gradient(180deg, #ffe979 0%, var(--gold) 45%, var(--gold-2) 100%); }
/* the admin tabs wrap to two rows: inside a pill-shaped box the corner pills stuck out over the rounded edge (Jeffrey 2026-10-04) */
.admin-tabs { padding: 7px; border-radius: 22px; gap: 4px 6px; }
.range-summary { display: flex; flex-wrap: wrap; gap: 8px 34px; margin: 0 0 14px; }
.range-summary dt { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.range-summary dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }
.range-summary dd .small { font-family: var(--font-body); }
.range-summary.world { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tchart-wrap { position: relative; touch-action: pan-y; }
.tchart { display: block; width: 100%; height: 280px; overflow: visible; }
.tchart .plot { width: 100%; height: 82%; }
.tchart text { font-family: var(--font-body); font-size: 11px; fill: var(--muted); paint-order: stroke; stroke: rgba(14, 13, 16, 0.85); stroke-width: 3px; }
.tchart .tc-note { fill: var(--faint); font-size: 12px; }
.tc-tip { position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; z-index: 2; white-space: nowrap;
  background: var(--panel-strong); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: .82rem; box-shadow: var(--shadow); }
.tc-tip strong, .tc-tip span { display: block; }
.tc-tip strong { color: var(--gold); font-weight: 650; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 2px 0 12px; }
.lg:first-child { margin-left: 0; }
.lg-max { background: rgba(246, 222, 82, 0.35); border-top: 2px solid var(--gold); }
.lg-avg { height: 2px; background: var(--text); }
.heatmap { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: 2px; margin: 10px 0 12px; font-size: .7rem; }
.hm-h, .hm-d { color: var(--faint); line-height: 1; }
.hm-h { text-align: left; padding-bottom: 3px; }
.hm-d { align-self: center; }
.hm { aspect-ratio: 1 / 1; border-radius: 3px; background: rgba(246, 222, 82, 0.05); }
.hm.none { background: rgba(255, 255, 255, 0.025); }
.hm.l1 { background: rgba(246, 222, 82, 0.13); } .hm.l2 { background: rgba(246, 222, 82, 0.22); }
.hm.l3 { background: rgba(246, 222, 82, 0.32); } .hm.l4 { background: rgba(246, 222, 82, 0.43); }
.hm.l5 { background: rgba(246, 222, 82, 0.55); } .hm.l6 { background: rgba(240, 190, 60, 0.7); }
.hm.l7 { background: rgba(240, 170, 40, 0.85); } .hm.l8 { background: #f6de52; box-shadow: 0 0 8px rgba(246, 222, 82, 0.5); }
.hm-note strong { color: var(--text); }
.mt { margin-top: 22px; }
.table.years td { padding: 7px 12px; white-space: nowrap; }
.table.years .years-bar { width: 55%; }
.table.years .years-bar svg { display: block; width: 100%; height: 12px; }
@media (max-width: 640px) {
  .tchart { height: 220px; }
  .tchart .tc-x.minor { display: none; }
  .tabs a { padding: 6px 11px; }
  .range-summary { gap: 8px 22px; }
}

/* GLightbox skin (gallery zoom) – dark Erebor look */
.glightbox-clean .gslide-description { background: var(--panel-strong); border-top: 1px solid var(--line); }
.glightbox-clean .gslide-title { font-family: var(--font-display); color: var(--gold); margin-bottom: 4px; }
.glightbox-clean .gslide-desc { color: var(--text); font-family: var(--font-body); }
.gslide-image img { border-radius: 6px; }
.goverlay { background: rgba(6, 6, 8, 0.92) !important; }

/* ---------------------------------------------------------------- utilities (no inline styles: CSP style-src 'self') */
.pre-line { white-space: pre-line; }
.m0 { margin: 0 !important; }
.my-sm { margin: 12px 0; }
.mb { margin-bottom: 20px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-center { justify-content: center; }
.steps { counter-reset: none; }
.steps .card h3 { margin: 2px 0 4px; }
.site-header form { margin: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(10, 9, 12, 0.82); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.env-ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: #6d1f1a; color: #ffd9d4; border: 1px solid #a33a31; padding: 6px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- final gate 2026-10-03 (UX audit) */
/* dangerous actions look dangerous (M2) */
.btn-danger { color: var(--danger); border-color: rgba(240, 106, 95, 0.55); }
.btn-danger:hover { border-color: var(--danger); background: rgba(240, 106, 95, 0.08); }
/* per-account "danger zone" (new game password): separated, red, explains before acting (MyKE 2026-10-04) */
.danger-zone { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(240, 106, 95, 0.45); }
.danger-zone-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; color: var(--danger); }
.danger-zone-head svg { width: 18px; height: 18px; }
.danger-zone-head .muted { color: var(--muted); }
.danger-zone ol { padding-left: 1.2em; }
/* the confirming "Ano, …" of a dangerous action is filled, the opener stays outlined (UX audit P15) */
.btn-danger[type="submit"] { color: #1b0806; background: var(--danger); border-color: var(--danger); }
@media (hover: hover) { .btn-danger[type="submit"]:hover { color: #1b0806; background: #ff8a80; border-color: #ff8a80; } }
/* an opened two-step action shows that it is open and how to close it (UX audit P5): summary dimmed with ✕, "Ne, zpět", Esc */
/* expandable action (asks first / opens a form): ▾ closed, ✕ open – a click/tap affordance, not "truncated text" like "…" (Jeffrey 2026-10-04) */
.inline-details > summary::after { content: "▾"; margin-left: 6px; font-size: .85em; opacity: .8; }
.inline-details[open] > summary { opacity: .7; }
.inline-details[open] > summary::after { content: "✕"; }
.inline-details .form .confirm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* on/off toggles (penalty "Splněno"): the pressed state must differ from the unpressed one (L8) */
.btn[aria-pressed="true"] { color: var(--ok); border-color: rgba(87, 199, 138, 0.6); background: rgba(87, 199, 138, 0.08); }
/* tap targets on touch screens (L4) */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .site-footer nav a { padding: 8px 0; display: inline-block; }
}
/* panel headings that lead to their section (dashboard) */
.heading-link { color: inherit; text-decoration: none; }
.heading-link:hover { color: var(--gold); text-decoration: underline; }
/* explanation chips next to actions: a tap target with a label, not a hover tooltip (works on phones and with the keyboard) */
.hint { display: inline-block; vertical-align: middle; }
.hint summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--line-strong); color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; }
.hint summary:hover, .hint[open] summary { color: var(--gold); border-color: var(--gold-2); border-style: solid; }
.hint[open] { display: block; flex-basis: 100%; }
.hint-body { margin-top: 8px; padding: 10px 14px; max-width: 680px; border: 1px solid var(--line); border-left: 3px solid var(--gold-2);
  border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.35); color: var(--text); line-height: 1.55; }
.hint-body strong { color: var(--gold); }
@media (pointer: coarse) { .hint summary { min-height: 40px; padding: 6px 12px; } }
/* /Stav: "Server běží nepřetržitě …" above the stat cards */
.uptime { margin: 4px 0 14px; }

/* Administrace → Datová mapa */
.datamap-small { font-size: 1.15rem; }
.datamap-flow { display: grid; gap: 8px; padding-left: 1.2em; margin: 0; }
.datamap-fields { min-width: 0; }
.datamap-fields .table { margin-top: 6px; }
.table.compact td { padding: 5px 8px; vertical-align: top; }
.datamap-events { columns: 2 260px; }
.datamap-template { font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace); font-size: .85rem; white-space: pre-wrap; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; overflow-x: auto; }

/* web build line under every admin page (version, commit, deploy time) */
.admin-build { text-align: center; margin: 0; }

/* roles matrix under "Co znamenají role?" (user detail): ticks and crosses per role */
.role-matrix th[scope="col"], .role-matrix td.yes, .role-matrix td.no { text-align: center; width: 4.5em; }
.role-matrix td.yes { color: var(--ok); font-weight: 700; }
.role-matrix td.no { color: var(--muted); }
.role-matrix .role-area th { text-align: left; color: var(--gold); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; }

/* user detail IP table in a half-width panel: long IPv6 addresses and the "invalid" badge wrap instead of pushing the dates out (prod rehearsal 2026-10-04) */
.ip-table td:first-child { overflow-wrap: anywhere; min-width: 9rem; }
.ip-table td:first-child .badge { white-space: normal; text-align: left; }
.ip-table td:nth-child(3), .ip-table td:nth-child(4) { white-space: nowrap; }
