/* UCP — vzhled laděný k herním oknům: tmavé hnědé panely, mosazné zlato, patkové písmo. */
:root {
    --bg: #14100d;
    --panel: #1c1713;
    --panel-2: #241d17;
    --line: #3a2f24;
    --gold: #c8a558;
    --gold-dim: #8a733c;
    --text: #e8e0d2;
    --muted: #9a8f7e;
    --ok: #8fbf7a;
    --bad: #d98a7a;
    --warn: #d2a05a;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: radial-gradient(120% 90% at 50% 0%, #2a221a 0%, var(--bg) 60%) fixed;
    color: var(--text);
    font: 15px/1.5 Georgia, "Times New Roman", serif;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- hlavička ---------- */
.top { background: #0f0c0a; border-bottom: 2px solid var(--gold-dim); }
.bar { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-size: 19px; letter-spacing: .08em; color: var(--gold); }
nav { display: flex; gap: 6px; flex: 1; }
nav a {
    padding: 6px 14px; color: var(--muted); font: 12px system-ui, sans-serif;
    letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent;
}
nav a:hover { color: var(--text); text-decoration: none; }
nav a.on { color: var(--gold); border-color: var(--line); background: var(--panel-2); }
.who { display: flex; align-items: center; gap: 14px; font: 13px system-ui, sans-serif; }
.who small { color: var(--muted); margin-left: 4px; }
.out { color: var(--muted); }
/* Trusted player (štítek se zlatou hvězdou jako na TABu ve hře), premium a pruh postupu XP. */
.tb { display: inline-flex; width: 19px; height: 19px; margin-right: 7px; vertical-align: -4px; filter: drop-shadow(0 0 3px rgba(150, 90, 230, .55)); }
.who .trusted { color: #bba3e3; }
.who small.prem { color: #e0c27a; border: 1px solid #8a733c; padding: 0 5px; margin-left: 8px; letter-spacing: .1em; font-size: 10px; }
.xpwrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.xpwrap > span { font-size: 12px; color: var(--muted); }
.xpbar { height: 6px; background: #120f0b; border: 1px solid var(--line); }
.xpbar i { display: block; height: 100%; background: var(--gold); }


main { padding-top: 26px; padding-bottom: 40px; min-height: 70vh; }
.foot {
    display: flex; justify-content: space-between; padding-top: 14px; padding-bottom: 24px;
    color: var(--muted); font: 12px system-ui, sans-serif; border-top: 1px solid var(--line);
}

h1 { margin: 0 0 14px; font-size: 26px; font-weight: normal; letter-spacing: .05em; color: var(--gold); }
h2 { margin: 18px 0 8px; font: normal 12px system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h1.h2 { font: normal 12px system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }

.muted { color: var(--muted); }
.hint { color: var(--muted); font: 12.5px/1.5 system-ui, sans-serif; margin: 10px 0 0; }
.bad { color: var(--bad); }
.crumbs { margin: 0 0 6px; font: 13px system-ui, sans-serif; }

/* ---------- hlášky ---------- */
.flash { padding: 10px 14px; margin-bottom: 16px; border-left: 3px solid var(--ok); background: var(--panel-2); font: 14px system-ui, sans-serif; }
.flash.bad { border-color: var(--bad); color: var(--bad); }

/* ---------- panely a karty ---------- */
.panel, .card {
    background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold-dim);
    padding: 14px 18px; margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.panel > h2:first-child, .card h2 { margin-top: 2px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.card header { display: flex; justify-content: space-between; align-items: center; }
.card h2 { font: normal 18px Georgia, serif; letter-spacing: .03em; text-transform: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.grid2 .panel { margin-bottom: 0; }

dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 14px; margin: 8px 0; font: 14px system-ui, sans-serif; }
.card dl { grid-template-columns: 112px minmax(0, 1fr); }   /* v úzké kartě postavy musí zbýt místo na XP a pruh */
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.money { font-family: Consolas, monospace; color: #8fd07a; }

.tag { display: inline-block; padding: 1px 8px; font: 11px system-ui, sans-serif; letter-spacing: .06em; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: var(--warn); border-color: var(--warn); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: baseline; }

/* ---------- tabulky ---------- */
table { width: 100%; border-collapse: collapse; font: 13.5px system-ui, sans-serif; margin: 6px 0 14px; }
th { text-align: left; padding: 6px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: normal; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid #2a2219; }
th.r, td.r { text-align: right; }
td small { margin-left: 6px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stats div { background: var(--panel-2); border: 1px solid var(--line); padding: 8px 14px; min-width: 120px; }
.stats b { display: block; font: 20px Georgia, serif; color: var(--text); }
.stats span { font: 11px system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- formuláře ---------- */
label { display: block; margin: 10px 0; font: 13px system-ui, sans-serif; color: var(--muted); }
input[type=text], input[type=password] {
    display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
    background: #14100d; border: 1px solid var(--line); color: var(--text); font: 15px system-ui, sans-serif;
}
input:focus { outline: none; border-color: var(--gold-dim); }
form.inline { display: flex; gap: 10px; align-items: flex-end; }
form.inline input[type=text] { margin-top: 0; max-width: 340px; }

.btn {
    display: inline-block; padding: 9px 20px; cursor: pointer;
    background: linear-gradient(180deg, #d2ac52 0%, #a8842f 100%); border: 1px solid #6d5620; color: #1a1410;
    font: bold 11px system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn.ghost { background: var(--panel-2); border-color: var(--line); color: var(--text); }

.login { max-width: 400px; margin: 40px auto; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 22px 26px; }
.login h1 { font-size: 22px; }

@media (max-width: 640px) {
    dl { grid-template-columns: 1fr; gap: 0; }
    dt { margin-top: 8px; }
    table { display: block; overflow-x: auto; }
    .bar { gap: 12px; }
}

/* ---- přihlášení (stejný vzhled jako ve hře) ---- */
body.login-page { background: #0e0b08 url("bg-login.jpg") center / cover no-repeat fixed; }
body.login-page .top, body.login-page .foot { display: none; }
body.login-page main.wrap { max-width: none; padding: 0; margin: 0; }
.lg { display: flex; min-height: 100vh; }
.lg-side { width: 360px; flex: none; padding: 34px 30px 24px; display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(34, 27, 21, .97), rgba(22, 17, 13, .97)); border-right: 1px solid rgba(217, 180, 95, .35);
    box-shadow: 8px 0 40px rgba(0, 0, 0, .55); }
.lg-logo { width: 250px; max-width: 100%; margin: 0 auto; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); }
.lg-plate { text-align: center; color: #e8cf94; letter-spacing: .2em; font-size: 12px; margin-top: 8px; }
.lg-sub { text-align: center; }
.lg-side form label { display: block; margin-top: 10px; }
.lg-side .btn { width: 100%; margin-top: 14px; }
/* stránka Launcher */
.lc-dl { max-width: 440px; margin: 6px auto 22px; }
.lc-dl .lg-dl { margin-top: 0; padding: 20px 22px; }
.lc-dl .dl-ic { width: 58px; height: 58px; font-size: 30px; }
.lc-dl .dl-n { font-size: 32px; }
.lc-text { word-wrap: break-word; line-height: 1.6; }
.lc-text img, .lc-edit img { max-width: 100%; height: auto; border-radius: 6px; }
.lc-text h2, .lc-text h3, .lc-text h4 { margin: .8em 0 .35em; }
.lc-text blockquote, .lc-edit blockquote { margin: .8em 0; padding: 4px 14px; border-left: 3px solid var(--gold-dim); color: var(--muted); }
.lc-text a, .lc-edit a { color: #8fb0ff; }
.lc-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.lc-b { padding: 4px 9px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.lc-b:hover { border-color: var(--gold-dim); }
.lc-b.bold { font-weight: 700; } .lc-b.ital { font-style: italic; } .lc-b.und { text-decoration: underline; } .lc-b.strk { text-decoration: line-through; }
.lc-s { padding: 4px 6px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 13px; }
.lc-c { width: 34px; height: 28px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.lc-l { color: var(--muted); font-size: 12px; }
.lc-edit { min-height: 220px; max-height: 70vh; overflow: auto; padding: 12px 14px; background: #0f0c0a; color: var(--text); border: 1px solid var(--line); border-radius: 6px; line-height: 1.6; outline: none; }
.lc-edit:focus { border-color: var(--gold-dim); }
/* karta Launcher Download */
.lg-dl { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 8px; text-decoration: none; color: #1a1410;
    background: linear-gradient(135deg, #e8cf94 0%, #c9a75a 55%, #a8863f 100%); border: 1px solid #f3e6c4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .15s, filter .15s; }
button.lg-dl { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.lg-dl:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.lg-dl:disabled { cursor: progress; filter: saturate(.8) brightness(.95); }
.dl-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #1a1410; color: #e8cf94; font-size: 24px; box-shadow: inset 0 0 0 2px #c9a75a; }
.dl-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dl-k { font-size: 11px; letter-spacing: .22em; font-weight: 700; }
.dl-n { font: 700 24px Georgia, serif; font-variant: small-caps; letter-spacing: .04em; }
.dl-b { font-size: 12px; letter-spacing: .26em; font-weight: 700; margin-top: 3px; }
.lg-dc { text-align: center; margin-top: 10px; color: #a39782; }
.lg-dc a { color: #8fb0ff; }
.lg-qr { display: block; width: 176px; margin: 14px auto 0; padding: 7px; background: #fff; border: 3px solid #c9a75a; border-radius: 6px; }
.lg-qr img { display: block; width: 100%; }
.lg-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 70px 40px; flex-wrap: wrap; }
.lg-ver { position: absolute; top: 18px; right: 24px; font-weight: 600; font-size: 13px; letter-spacing: .14em; color: #f3e6c4;
    background: rgba(18, 14, 10, .62); border: 1px solid rgba(217, 180, 95, .45); padding: 6px 12px; border-radius: 3px; }
.lg-glass { width: 340px; height: min(640px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 26, 22, .72), rgba(16, 13, 11, .80)); border: 1px solid rgba(255, 238, 200, .16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.lg-glass h2 { margin: 0 18px; padding: 30px 0 18px; text-align: center; font: 600 34px Georgia, serif; font-variant: small-caps;
    letter-spacing: .06em; color: #e8cf94; border-bottom: 1px solid rgba(217, 180, 95, .22); }
.lg-list { padding: 10px 18px 18px; overflow: hidden; flex: 1; }
.lg-news { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); cursor: pointer; }
.lg-news:hover { background: rgba(217, 180, 95, .10); }
.lg-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #c9a75a; color: #1a1410; font: bold 13px Georgia, serif;
    display: flex; align-items: center; justify-content: center; }
.lg-tag { color: #d9b45f; flex: none; }
.lg-t { color: #a9c3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-v { margin-left: auto; color: #a39782; font-size: 12px; flex: none; }
.lg-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.lg-row b { color: #a9c3ff; white-space: nowrap; }
.lg-row.now b { color: #7cd17a; }
.lg-empty { color: #a39782; padding: 14px 4px; }
.lg-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); z-index: 10; }
.lg-box { width: min(560px, 90%); max-height: 80vh; overflow: auto; background: rgba(24, 19, 15, .97); border: 1px solid rgba(217, 180, 95, .5);
    border-radius: 8px; padding: 22px 26px; }
.lg-box h3 { margin: 0 0 4px; font: 600 22px Georgia, serif; color: #e8cf94; }
.lg-box p { white-space: pre-wrap; line-height: 1.55; }
@media (max-width: 900px) {
    .lg { flex-direction: column; }
    .lg-side { width: auto; }
    .lg-stage { padding: 60px 16px 24px; }
    .lg-glass { width: 100%; height: auto; max-height: 520px; }
}
/* soubory ke stažení */
textarea { width: 100%; box-sizing: border-box; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); padding: 8px 10px; font: 14px system-ui, sans-serif; resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold-dim); }
input[type=file] { width: 100%; color: var(--muted); font: 13px system-ui, sans-serif; }
progress { width: 100%; height: 10px; margin: 8px 0; accent-color: var(--gold-dim, #b48d45); }
.btn.sm { padding: 4px 10px; font-size: 12px; }

/* řešení problémů (Pomoc) */
.fix { border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.fix > summary { cursor: pointer; padding: 12px 16px; font: 600 15px system-ui, sans-serif; color: var(--text); list-style: none; display: flex; gap: 10px; align-items: baseline; }
.fix > summary::-webkit-details-marker { display: none; }
.fix > summary::before { content: "▸"; color: var(--gold-dim, #b48d45); transition: transform .15s; }
.fix[open] > summary::before { transform: rotate(90deg); }
.fix > summary small { margin-left: auto; font-weight: 400; color: var(--muted); }
.fix .body { padding: 2px 18px 16px 34px; font: 14px/1.6 system-ui, sans-serif; }
.fix .body ol, .fix .body ul { margin: 6px 0 10px; padding-left: 20px; }
.fix .body li { margin: 3px 0; }
.cmd { display: flex; gap: 8px; align-items: stretch; margin: 8px 0 12px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line); padding: 8px 10px; font: 13px/1.4 Consolas, monospace; color: var(--text); }
.fix .note { color: var(--muted); font-size: 13px; }