/* Aethalgard - strona gry. Wyglad wg makiety: granat, ozdobne zlote ramki, Cinzel w naglowkach. */
:root {
  --bg: #05080d;
  --panel: #0a0f16;
  --panel-hi: #121b27;
  --line: #b48d4c;
  --line-hi: #e6c276;
  --line-soft: rgba(196, 156, 88, 0.3);
  --gold: #f0c979;
  --gold-hi: #ffe3a3;
  --gold-dark: #8c6426;
  --text: #e9e3d6;
  --dim: #a6a9ae;
  --red: #e0705a;
  --green: #59d467;
  --c-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M1.5 27V10L10 1.5h17' fill='none' stroke='%23e6c276' stroke-width='1.6'/%3E%3Cpath d='M5.5 13V8l2.5-2.5h5' fill='none' stroke='%23b48d4c' stroke-width='1'/%3E%3Cpath d='M1.5 1.5l3.2 1.3-1.9 1.9z' fill='%23ffe3a3'/%3E%3C/svg%3E");
  --c-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='matrix(-1 0 0 1 28 0)'%3E%3Cpath d='M1.5 27V10L10 1.5h17' fill='none' stroke='%23e6c276' stroke-width='1.6'/%3E%3Cpath d='M5.5 13V8l2.5-2.5h5' fill='none' stroke='%23b48d4c' stroke-width='1'/%3E%3Cpath d='M1.5 1.5l3.2 1.3-1.9 1.9z' fill='%23ffe3a3'/%3E%3C/g%3E%3C/svg%3E");
  --c-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='matrix(1 0 0 -1 0 28)'%3E%3Cpath d='M1.5 27V10L10 1.5h17' fill='none' stroke='%23e6c276' stroke-width='1.6'/%3E%3Cpath d='M5.5 13V8l2.5-2.5h5' fill='none' stroke='%23b48d4c' stroke-width='1'/%3E%3Cpath d='M1.5 1.5l3.2 1.3-1.9 1.9z' fill='%23ffe3a3'/%3E%3C/g%3E%3C/svg%3E");
  --c-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='matrix(-1 0 0 -1 28 28)'%3E%3Cpath d='M1.5 27V10L10 1.5h17' fill='none' stroke='%23e6c276' stroke-width='1.6'/%3E%3Cpath d='M5.5 13V8l2.5-2.5h5' fill='none' stroke='%23b48d4c' stroke-width='1'/%3E%3Cpath d='M1.5 1.5l3.2 1.3-1.9 1.9z' fill='%23ffe3a3'/%3E%3C/g%3E%3C/svg%3E");
  --diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0l3 7-3 7-3-7z' fill='%23f0c979'/%3E%3C/svg%3E");
  --emblem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe7a8'/%3E%3Cstop offset='.55' stop-color='%23d9a24a'/%3E%3Cstop offset='1' stop-color='%23875a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M20 1l3.2 12.2L20 16l-3.2-2.8zM20 39l-3-10.5 3-2.5 3 2.5zM1 20l12-3 3 3-3 3zM39 20l-12 3-3-3 3-3z'/%3E%3Cpath fill='none' stroke='url(%23g)' stroke-width='1.6' d='M20 9.5l10.5 10.5L20 30.5 9.5 20z'/%3E%3Cpath fill='url(%23g)' d='M20 14l6 6-6 6-6-6z'/%3E%3Cpath fill='%233aa0ff' d='M20 17.5l2.5 2.5-2.5 2.5-2.5-2.5z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 15px/1.55 "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(38, 58, 88, 0.28), transparent 70%),
    linear-gradient(#070b11, #04060a 60%, #05070b);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
b, strong { color: #fff1d6; font-weight: 600; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; margin: 0 0 12px; text-shadow: 0 1px 0 #000, 0 0 14px rgba(242, 190, 100, 0.16); }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
svg.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--dim); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.skull { color: var(--red); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ================================================================ gorny pasek */
nav.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: stretch; height: 46px; padding: 0 14px 0 0;
  background: linear-gradient(#101822, #070b11);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #000, 0 3px 0 -1px rgba(230, 194, 118, 0.22), 0 8px 24px rgba(0, 0, 0, 0.55);
}
nav.top .brand { display: flex; align-items: center; justify-content: center; width: 76px; flex: none; border-right: 1px solid rgba(196, 156, 88, 0.25); }
nav.top .brand img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(242, 190, 100, 0.4)); }
nav.top .links, nav.top .util { display: flex; align-items: stretch; }
nav.top .links { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.top .links::-webkit-scrollbar { display: none; }
nav.top a, nav.top .navform button {
  position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 0 clamp(8px, 1.05vw, 17px); color: #e4ddcd; font: 600 14px "Source Sans 3", sans-serif;
}
nav.top .navform { display: flex; margin: 0; }
nav.top .navform button { background: none; border: 0; cursor: pointer; }
nav.top a + a::before, nav.top .util > *:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 32%; bottom: 32%; width: 1px;
  background: linear-gradient(transparent, rgba(196, 156, 88, 0.45), transparent);
}
nav.top a svg.i, nav.top button svg.i { color: #d9c79e; }
nav.top a:hover, nav.top .navform button:hover { color: var(--gold-hi); }
nav.top a.on { color: var(--gold); background: radial-gradient(ellipse 85% 100% at 50% 100%, rgba(242, 190, 100, 0.22), transparent 70%); box-shadow: inset 0 -2px 0 var(--gold); }
nav.top a.on svg.i { color: var(--gold); }
nav.top .util { margin-left: 8px; flex: none; }
nav.top .clock { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 14px; color: #e4ddcd; font-weight: 600; font-variant-numeric: tabular-nums; }
nav.top .clock svg.i { width: 15px; height: 15px; }

/* ================================================================ naglowek */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center; height: clamp(190px, 18.6vw, 330px);
  background: url("/img/hero.jpg") center / cover no-repeat, #0b1017;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #000, 0 3px 0 -1px rgba(230, 194, 118, 0.3), inset 0 -50px 60px -40px rgba(5, 8, 13, 0.9);
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; transform: translateX(-50%);
  background: var(--diamond) center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(242, 190, 100, 0.9));
}
/* logo i haslo sa w grafice naglowka; prawdziwy <img> zostaje jako link i tekst alternatywny */
.hero .hero-link { display: block; width: min(420px, 58%); height: 78%; }
.hero .logo { width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.hero .tag { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ================================================================ uklad 3 kolumn */
.wrap {
  flex: 1; width: 100%; max-width: 1520px; margin: 0 auto; padding: 18px 20px 40px;
  display: grid; grid-template-columns: 255px minmax(0, 1fr) 333px; gap: 18px; align-items: start;
}
body.wide .wrap { grid-template-columns: minmax(0, 1fr) 333px; }
body.p-admin .wrap { grid-template-columns: minmax(0, 1fr); }
body.p-admin .wrap > .side { display: none; }
main { min-width: 0; }
@media (max-width: 1280px) {
  .wrap { grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 16px; }
  body.wide .wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1080px) {
  .wrap, body.wide .wrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .wrap > .left { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .wrap, body.wide .wrap { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 32px; }
}

/* ================================================================ ozdobne panele */
.panel {
  position: relative; margin-bottom: 18px; padding: 20px 24px;
  background: linear-gradient(180deg, rgba(19, 28, 41, 0.97), rgba(8, 12, 18, 0.98) 60%), var(--panel);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow:
    inset 0 0 0 3px #070b10, inset 0 0 0 4px rgba(196, 156, 88, 0.26), inset 0 1px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px #000, 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(214, 172, 92, 0.06);
}
.panel::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  background:
    var(--c-tl) left top / 28px 28px no-repeat, var(--c-tr) right top / 28px 28px no-repeat,
    var(--c-bl) left bottom / 28px 28px no-repeat, var(--c-br) right bottom / 28px 28px no-repeat;
}
.panel > h1:first-child, .panel > h2:first-child { margin-top: 2px; }
.panel h2 { padding-bottom: 9px; background: linear-gradient(90deg, var(--line), rgba(180, 141, 76, 0.4) 45%, transparent) left bottom / 100% 1px no-repeat; }
.panel.narrow { max-width: 560px; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ph h1, .ph h2 { margin: 0; padding: 0; background: none; }
.emb { display: inline-block; width: 26px; height: 26px; vertical-align: -6px; margin-right: 12px; background: var(--emblem) center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(242, 190, 100, 0.35)); }
.more { display: inline-flex; align-items: center; gap: 6px; font: 600 12px "Cinzel", serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.more svg.i { width: 15px; height: 15px; }

/* ================================================================ lewe menu */
.left { align-self: stretch; display: flex; flex-direction: column; }
.left .menu { flex: 1; padding: 16px 0 22px; }
.menu-title { display: flex; align-items: center; gap: 4px; margin: 4px 20px 10px; padding-bottom: 14px; font-size: 26px; font-weight: 700; letter-spacing: 0.08em;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent) left bottom / 100% 1px no-repeat; }
.menu-title .emb { width: 42px; height: 42px; margin-right: 14px; }
.menu nav a {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 14px 24px 14px 30px; color: #e8e1d2; font-size: 15px;
  border-bottom: 1px solid rgba(196, 156, 88, 0.14);
}
.menu nav a svg.i { width: 26px; height: 26px; color: #caa564; }
.menu nav a:hover { color: var(--gold-hi); background: linear-gradient(90deg, rgba(242, 190, 100, 0.07), transparent); }
.menu nav a.on { color: #fff; background: linear-gradient(90deg, rgba(58, 95, 140, 0.55), rgba(20, 32, 48, 0.3) 70%, transparent); }
.menu nav a.on::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; background: #7fc3ff; box-shadow: 0 0 10px #3aa0ff, 0 0 20px rgba(58, 160, 255, 0.6); }
.menu nav a.on svg.i { color: var(--gold); }
.quote { margin: 30px 16px 0; padding: 0; text-align: center; font: italic 400 19px/1.45 Georgia, "Times New Roman", serif; color: #e8dcc0; }
.quote p { margin: 12px 0; }
.q-orn { display: block; height: 30px; background: var(--emblem) center / 30px 30px no-repeat, linear-gradient(90deg, transparent, var(--line), transparent) center / 100% 1px no-repeat; opacity: 0.85; }
.q-orn.b { height: 14px; background: var(--diamond) center / 12px 12px no-repeat, linear-gradient(90deg, transparent, var(--line), transparent) center / 60% 1px no-repeat; }
@media (max-width: 1080px) {
  .left { display: block; }
  .left .menu { padding: 10px 12px; }
  .menu-title, .quote { display: none; }
  .menu nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .menu nav a { padding: 8px 14px; gap: 10px; border: 1px solid rgba(196, 156, 88, 0.2); border-radius: 3px; }
  .menu nav a svg.i { width: 18px; height: 18px; }
}

/* ================================================================ prawa kolumna */
.side .panel { padding: 16px 20px 18px; }
.side h3 { display: flex; align-items: center; gap: 12px; font-size: 19px; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 10px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--line), rgba(180, 141, 76, 0.25) 70%, transparent) left bottom / 100% 1px no-repeat; }
.side h3 svg.i { width: 28px; height: 28px; color: var(--gold); filter: drop-shadow(0 0 5px rgba(242, 190, 100, 0.35)); }
.side .small { color: #d3d5d8; font-size: 14.5px; }
.s-server {
  background:
    linear-gradient(90deg, rgba(9, 14, 21, 1) 38%, rgba(9, 14, 21, 0.55) 70%, rgba(9, 14, 21, 0.25)),
    url("/img/server_castle.jpg") right center / auto 100% no-repeat, var(--panel);
}
.status { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #fff; margin-bottom: 8px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.inline { width: 9px; height: 9px; vertical-align: 1px; }
.s-account .btn.block + .btn.block, .s-account form { margin-top: 10px; }
.top5 { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.top5 li { counter-increment: t; display: flex; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(196, 156, 88, 0.2); }
.top5 li::before { content: counter(t) "."; width: 44px; color: #d8d8d8; }
.top5 li a { flex: 1; color: var(--text); }
.top5 li a:hover { color: var(--gold-hi); }
.top5 li span { color: #fff; font-variant-numeric: tabular-nums; }

/* ================================================================ karuzela newsow */
.featured { padding: 0; min-height: 280px; overflow: hidden; }
.featured .slides { position: relative; min-height: 280px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s;
  background-color: #0a0f16; background-size: auto 100%; background-position: right center; background-repeat: no-repeat;
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 18, 1) 28%, rgba(8, 12, 18, 0.88) 48%, rgba(8, 12, 18, 0.2) 72%, rgba(8, 12, 18, 0.05)), linear-gradient(0deg, rgba(8, 12, 18, 0.7), transparent 30%); }
.slide.on { position: relative; opacity: 1; visibility: visible; }
.slide-body { position: relative; z-index: 1; max-width: 60%; padding: 26px 24px 30px; }
.slide .meta { display: flex; gap: 12px; font: 500 12px "Cinzel", serif; letter-spacing: 0.1em; text-transform: uppercase; color: #e8dcc0; margin-bottom: 12px; }
.slide h2 { font-size: 25px; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase; padding: 0; background: none; margin: 0 0 12px; }
.slide p { white-space: pre-line; margin: 0 0 18px; color: #e3ddd0; font-size: 14.5px; }
.car-ctl { position: absolute; right: 18px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 8px; margin-right: 10px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: #6d6a63; cursor: pointer; }
.dots button.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.car-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer; color: var(--gold); background: rgba(8, 12, 18, 0.7); border: 1px solid var(--line-soft); transform: rotate(45deg); }
.car-btn svg.i { transform: rotate(-45deg); width: 16px; height: 16px; }
.car-btn:hover { border-color: var(--gold); box-shadow: 0 0 10px rgba(242, 190, 100, 0.4); }
@media (max-width: 700px) {
  .slide { background-size: 100% auto; background-position: center top; align-items: flex-end; }
  .slide::before { background: linear-gradient(0deg, rgba(8, 12, 18, 1) 50%, rgba(8, 12, 18, 0.25)); }
  .slide-body { max-width: none; padding-top: 150px; }
  .slide h2 { font-size: 22px; }
  .car-ctl { position: relative; right: auto; bottom: auto; justify-content: center; padding: 0 0 14px; }
}

/* ================================================================ wybor klasy */
.classes-panel { padding: 16px 20px 20px; }
.classes-panel .ph h2 { font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; }
.classes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 760px) { .classes { grid-template-columns: repeat(2, 1fr); } }
.class {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text);
  background: #070b10; border: 1px solid var(--line); border-radius: 2px; padding: 3px 3px 10px;
  box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(196, 156, 88, 0.28), 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.class:hover { transform: translateY(-3px); color: var(--text); box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(196, 156, 88, 0.5), 0 0 18px rgba(242, 190, 100, 0.35); }
.class .cimg { display: block; width: 100%; aspect-ratio: 1 / 1.02; overflow: hidden; }
.class img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.class .sig {
  display: grid; place-items: center; width: 38px; height: 38px; margin-top: -21px; position: relative; z-index: 1; border-radius: 50%;
  color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); box-shadow: 0 0 0 2px #070b10, 0 0 10px rgba(242, 190, 100, 0.35);
}
.class .sigil { width: 22px; height: 22px; }
.class b { margin-top: 4px; font: 700 14px "Cinzel", serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.class small { color: var(--dim); font-size: 11.5px; }

/* ================================================================ tresci */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--gold); font: 600 13.5px "Cinzel", serif; letter-spacing: 0.04em; padding: 9px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(242, 204, 126, 0.07), transparent); }
td { padding: 9px 10px; border-bottom: 1px solid rgba(196, 156, 88, 0.13); vertical-align: top; }
tbody tr:nth-child(even) td { background: rgba(110, 150, 220, 0.03); }
tbody tr:hover td { background: rgba(242, 204, 126, 0.045); }
td.num, th.num { text-align: right; }
.news { border-bottom: 1px solid var(--line-soft); padding: 4px 0 16px; margin-bottom: 16px; }
.news:last-child { border-bottom: 0; margin-bottom: 0; }
.news h2 { background: none; padding: 0; margin: 4px 0 6px; }
.news h2 a { color: var(--gold); }
.news p { white-space: pre-line; margin: 0 0 8px; color: #ddd7ca; }
.date { color: var(--gold); opacity: 0.8; font: 500 12px "Cinzel", serif; letter-spacing: 0.12em; text-transform: uppercase; }
.article { padding-top: 0; overflow: hidden; }
.article .art-img { height: 240px; margin: 0 -24px 18px; background-size: cover; background-position: center 30%; border-bottom: 1px solid var(--line); }
.article h1 { margin-top: 6px; }
.article .body { white-space: pre-line; font-size: 16px; color: #e3ddd0; margin-bottom: 18px; }
.desc { color: #d8d0bf; font-style: italic; border-left: 3px solid var(--line-soft); padding-left: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 3px; background: rgba(5, 8, 12, 0.55); }
.stat span { display: block; color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat b { display: block; font-size: 18px; margin-top: 2px; }
ul.req, ol.steps { padding-left: 22px; }
ul.req li, ol.steps li { margin: 6px 0; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.charhead { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.charhead img { width: 84px; height: 84px; object-fit: cover; object-position: center 15%; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 12px rgba(242, 190, 100, 0.3); }
.charhead h1 { margin: 0; }
.charhead p { margin: 2px 0 0; }
.notfound { text-align: center; padding: 40px 24px; }
.announce { margin-bottom: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(90deg, rgba(242, 190, 100, 0.16), rgba(242, 190, 100, 0.04)); color: var(--gold-hi); font-weight: 600; text-align: center; }

/* ================================================================ formularze i przyciski */
form.stack { display: grid; gap: 14px; max-width: 460px; }
form.stack.wide { max-width: none; }
form.inline { display: inline; }
label { display: block; color: var(--dim); font-size: 14px; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); }
label.check input { width: auto; margin: 0; }
label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
input, select, textarea {
  width: 100%; margin-top: 5px; background: #04070b; color: var(--text); border: 1px solid #3e3b35; border-radius: 3px; padding: 10px 12px; font: inherit;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
input.short { max-width: 460px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(242, 204, 126, 0.15); }
textarea { min-height: 160px; resize: vertical; }
form.search { display: flex; gap: 8px; margin-bottom: 10px; }
form.search input, form.search select { margin: 0; }
form.search select { width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-radius: 2px; padding: 10px 22px; text-align: center;
  font: 600 14px "Cinzel", Georgia, serif; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(#131c28, #070b11); border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(196, 156, 88, 0.28), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.btn:hover { color: var(--gold-hi); filter: brightness(1.2); }
.btn svg.i { width: 16px; height: 16px; }
.btn.block { display: flex; width: 100%; }
.btn.fit { justify-self: start; }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn.gold {
  color: #2a1804; border-color: #6a4818; text-shadow: 0 1px 0 rgba(255, 240, 200, 0.5); font-weight: 700; font-size: 15px;
  background: linear-gradient(#fde7a6 0%, #e8bd66 40%, #c8923c 62%, #9c6b28 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 230, 170, 0.3), 0 0 16px rgba(255, 196, 100, 0.25), 0 2px 8px rgba(0, 0, 0, 0.6);
}
.btn.gold:hover { color: #2a1804; }
.btn.outline { background: rgba(8, 12, 18, 0.55); box-shadow: inset 0 0 0 2px rgba(8, 12, 18, 0.9), inset 0 0 0 3px rgba(196, 156, 88, 0.45), 0 0 12px rgba(242, 190, 100, 0.18); font-size: 13px; padding: 9px 20px; }
.btn.red { color: #ffd8cf; border-color: #b85a46; background: linear-gradient(#7a1e18, #3e0c0a); box-shadow: none; }
.msg { padding: 10px 14px; border-radius: 3px; margin-bottom: 14px; border: 1px solid; }
.msg.err { border-color: #b85a46; background: rgba(160, 50, 30, 0.18); color: #ffc9bd; }
.msg.ok { border-color: #4f9a55; background: rgba(60, 140, 70, 0.18); color: #c9f5cd; word-break: break-word; }
.pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 600px) { .pick { grid-template-columns: repeat(3, 1fr); } }
.pick label { display: block; cursor: pointer; border: 1px solid var(--line-soft); border-radius: 3px; overflow: hidden; color: var(--text); text-align: center; background: #070b10; }
.pick input { display: none; }
.pick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; opacity: 0.5; transition: opacity 0.15s; }
.pick input:checked + img { opacity: 1; }
.pick label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 196, 96, 0.5); }
.pick b { display: block; padding: 4px; font: 600 13px "Cinzel", serif; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 2px; color: var(--text); background: rgba(5, 8, 12, 0.6); font-size: 14px; }
.tabs a:hover { border-color: var(--line); color: var(--gold); }
.tabs a.on { border-color: var(--gold); color: #2a1804; font-weight: 600; background: linear-gradient(#f6d990, #c8923c); box-shadow: 0 0 10px rgba(255, 196, 96, 0.3); }
.tag { display: inline-block; font-size: 12px; padding: 0 8px; margin-right: 4px; border: 1px solid var(--line-soft); border-radius: 10px; color: var(--gold); }
.tag.bad { color: #ffb4a4; border-color: #b85a46; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
code { background: #04070b; border: 1px solid #3a3630; border-radius: 3px; padding: 0 5px; color: #f4dca8; font-size: 14px; }

/* ================================================================ panel admina */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.adminnav { position: sticky; top: 64px; padding: 16px 0; }
.adminnav h2 { display: flex; align-items: center; gap: 10px; margin: 0 18px 8px; }
.adminnav h2 svg.i { width: 24px; height: 24px; }
.adminnav a { display: block; padding: 10px 20px; color: var(--text); border-bottom: 1px solid rgba(196, 156, 88, 0.12); }
.adminnav a:hover { color: var(--gold-hi); background: rgba(242, 190, 100, 0.05); }
.adminnav a.on { color: #fff; background: linear-gradient(90deg, rgba(58, 95, 140, 0.55), transparent); box-shadow: inset 3px 0 0 #7fc3ff; }
.adminnav p { margin: 12px 20px 0; }
.admin-main { min-width: 0; }
table.log td { font-size: 14px; }
tr.k-login-failed td:nth-child(2) { color: #ffb4a4; }
tr.k-admin td:nth-child(2) { color: var(--gold); }
.crumbs { font-size: 14px; color: var(--dim); margin: 0 0 6px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .adminnav { position: static; display: flex; flex-wrap: wrap; padding: 10px; }
  .adminnav h2, .adminnav p { display: none; }
  .adminnav a { border: 1px solid var(--line-soft); margin: 3px; padding: 6px 12px; }
}

/* ================================================================ stopka */
footer {
  position: relative; margin-top: 10px; padding: 0 20px;
  background:
    radial-gradient(ellipse 40% 90% at 50% 0%, rgba(242, 190, 100, 0.12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V70l60-30 50 25 70-45 60 35 40-15 70 40 90-60 60 38 50-18 60 30V120z' fill='%23121a26'/%3E%3Cpath d='M680 120V78l70-42 50 28 80-50 60 40 45-16 75 36 60-30 80 36V120z' fill='%23121a26'/%3E%3Cpath d='M0 120V92l90-22 80 18 110-30 90 26 120-20 100 24 120-26 110 22 120-18 140 26 120-12 100 14V120z' fill='%230b1119'/%3E%3C/svg%3E") center bottom / 100% 80% no-repeat,
    #06090e;
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 #000, 0 -3px 0 -1px rgba(230, 194, 118, 0.3);
}
footer::before {
  content: ""; position: absolute; left: 50%; top: -17px; width: 34px; height: 34px; transform: translateX(-50%);
  background: var(--emblem) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(242, 190, 100, 0.6));
}
.f-inner { max-width: 1520px; margin: 0 auto; min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.f-left { justify-self: end; margin-right: 40px; white-space: nowrap; font: 500 11.5px "Cinzel", serif; letter-spacing: 0.14em; text-transform: uppercase; color: #bdb6a6; }
.f-left span { margin: 0 12px; color: var(--gold); }
.f-brand { display: flex; align-items: center; gap: 16px; font: 600 20px "Cinzel", serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 14px rgba(242, 190, 100, 0.35); }
.f-orn { width: 90px; height: 14px; background: var(--diamond) center / 10px 10px no-repeat, linear-gradient(90deg, transparent, var(--line), transparent) center / 100% 1px no-repeat; }
.f-right { display: flex; justify-content: flex-end; gap: 18px; }
.f-right a { color: #d9cdb2; }
.f-right a:hover { color: var(--gold-hi); }
.f-right svg.i { width: 20px; height: 20px; }
.f-copy { text-align: center; color: #7d7f84; font-size: 12.5px; padding: 0 0 14px; }
.f-copy a { color: #a7a08f; }
@media (max-width: 1100px) { .f-left { margin-right: 0; white-space: normal; text-align: center; } }
@media (max-width: 760px) {
  .f-inner { grid-template-columns: 1fr; text-align: center; padding: 26px 0 6px; gap: 10px; }
  .f-brand { justify-content: center; }
  .f-right { justify-content: center; }
}

/* ================================================================ wiki (tresci generowane z danych gry) */
.wikigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.card { display: block; border: 1px solid var(--line-soft); border-radius: 3px; padding: 13px 15px; background: linear-gradient(#0e151f, #070b10); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--gold); color: var(--text); box-shadow: 0 0 12px rgba(255, 196, 96, 0.22); }
.card b { display: block; font-family: "Cinzel", serif; color: var(--gold); margin-bottom: 4px; }
.card span { color: var(--dim); font-size: 14px; }
a.it { white-space: nowrap; }
.ico { width: 32px; height: 32px; vertical-align: middle; margin-right: 6px; background: radial-gradient(#1b2330, #0a0e14); border: 1px solid var(--line-soft); border-radius: 3px; }
.ico.ph { display: inline-block; }
.itemhead { display: flex; gap: 18px; align-items: center; }
.itemhead .ico { width: 96px; height: 96px; margin: 0; border-color: var(--line); }
ul.src { margin: 0; padding-left: 20px; }
ul.src li { margin: 4px 0; }
.classrow { display: flex; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
.classrow:last-child { border-bottom: 0; }
.classrow img { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .branches { grid-template-columns: 1fr; } .classrow { flex-direction: column; } }
.lore p { text-align: justify; }
.lore h2 { margin-top: 24px; }
.mapwrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; max-height: 80vh; border: 1px solid var(--line); border-radius: 3px; background: #13263d; cursor: grab; touch-action: none; }
.mapwrap:active { cursor: grabbing; }
.mapinner { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; transform-origin: 0 0; }
.mapinner img { width: 100%; height: 100%; display: block; user-select: none; }
.pin { position: absolute; width: 2.2%; height: 2.2%; transform: translate(-50%, -50%); border-radius: 50%; }
.pin:hover, .pin.sel { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255, 210, 120, 0.9); }
.mapbtns { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapbtns .btn { padding: 4px 12px; font-size: 20px; }
.mapinfo { display: none; position: absolute; left: 10px; bottom: 10px; max-width: 60%; background: rgba(7, 10, 15, 0.94); border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; font-size: 15px; }
.placelist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .placelist { grid-template-columns: 1fr; } }
.tooltip { display: inline-block; background: #04070b; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; margin-top: 12px; font-size: 14px; line-height: 1.6; }
.tooltip b { color: var(--gold); font-family: "Cinzel", serif; }

/* ================================================================ baner podstron (jak panel News na makiecie) */
.panel.banner {
  display: flex; align-items: center; min-height: 176px; padding: 0; overflow: hidden;
  background-color: #0a0f16; background-repeat: no-repeat; background-position: right center; background-size: auto 100%;
}
.panel.banner::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 12, 18, 1) 30%, rgba(8, 12, 18, 0.86) 50%, rgba(8, 12, 18, 0.25) 78%, rgba(8, 12, 18, 0.1)), linear-gradient(0deg, rgba(8, 12, 18, 0.55), transparent 40%); }
.bn-body { position: relative; z-index: 1; max-width: 64%; padding: 24px 28px; }
.eyebrow { display: flex; align-items: center; font: 500 12px "Cinzel", serif; letter-spacing: 0.16em; text-transform: uppercase; color: #e8dcc0; margin-bottom: 8px; }
.eyebrow .emb { width: 20px; height: 20px; margin-right: 10px; vertical-align: 0; }
.panel.banner h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: 0.07em; text-transform: uppercase; }
.panel.banner p { margin: 0; color: #d9d3c6; font-size: 15px; }
/* tytul jest w banerze - nie powtarzamy go w pierwszym panelu */
main > section.banner + div.panel > h1:first-child,
main > section.banner + div.panel > .crumbs + h1 { display: none; }
main > section.banner + div.panel > .crumbs { margin-top: -4px; }
@media (max-width: 700px) {
  .panel.banner { min-height: 150px; background-size: cover; background-position: 70% center; }
  .panel.banner::after { background: linear-gradient(90deg, rgba(8, 12, 18, 0.95) 20%, rgba(8, 12, 18, 0.55)); }
  .bn-body { max-width: none; padding: 20px; }
  .panel.banner h1 { font-size: 24px; }
}

/* naglowki sekcji w tresciach (wiki itp.) - z rombem jak na makiecie */
.panel > h2:not(.plain) { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 18px; margin-top: 8px; }
.panel > h2:not(.plain)::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--diamond) center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(242, 190, 100, 0.6)); }
.panel > h2:not(.plain):not(:first-child) { margin-top: 22px; }
h2.plain { background: none; padding: 0; }
.ph h2 { font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; }
.lead { font-size: 16.5px; color: #e3ddd0; margin: 0; }

/* ================================================================ puste stany */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px 20px; }
.empty .e-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); box-shadow: 0 0 0 3px #070b10, 0 0 16px rgba(242, 190, 100, 0.25); margin-bottom: 12px; }
.empty .e-ico svg.i { width: 30px; height: 30px; }
.empty b { font: 600 18px "Cinzel", serif; color: var(--gold); letter-spacing: 0.05em; }
.empty p { color: var(--dim); margin: 6px 0 0; max-width: 460px; }

/* ================================================================ zakladki z ikonami klas */
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a .sigil { width: 16px; height: 16px; color: var(--gold); }
.tabs a.on .sigil { color: #2a1804; }

/* ================================================================ highscores */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-top: 8px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px 16px; color: var(--text); border: 1px solid var(--line-soft); border-radius: 3px; background: linear-gradient(#111a26, #070b10); transition: transform 0.2s, box-shadow 0.2s; }
.pod:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 0 16px rgba(242, 190, 100, 0.25); }
.pod.p1 { padding-top: 22px; border-color: var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(242, 190, 100, 0.18), transparent 70%), linear-gradient(#141e2b, #070b10); }
.pimg { display: block; width: 86px; height: 86px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 0 0 3px #070b10, 0 0 14px rgba(242, 190, 100, 0.3); }
.p1 .pimg { width: 108px; height: 108px; border-color: var(--gold); }
.pimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.medal { display: grid; place-items: center; width: 30px; height: 30px; margin-top: -16px; position: relative; border-radius: 50%; font: 700 14px "Cinzel", serif; color: #2a1804; background: linear-gradient(#fde7a6, #c8923c); border: 1px solid #6a4818; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.p2 .medal { background: linear-gradient(#f2f4f7, #9aa3ad); border-color: #5b636c; }
.p3 .medal { background: linear-gradient(#f0c39a, #a8683a); border-color: #6b3d1c; }
.pod b { margin-top: 8px; font: 700 16px "Cinzel", serif; color: var(--gold); letter-spacing: 0.04em; }
.pod small { color: var(--dim); }
.pod em { margin-top: 4px; font-style: normal; font-size: 13px; color: #e8dcc0; }
.empty-pod { visibility: hidden; }
.rk { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; font: 700 13px "Cinzel", serif; color: var(--text); border: 1px solid var(--line-soft); }
.rk.r1 { color: #2a1804; background: linear-gradient(#fde7a6, #c8923c); border-color: #6a4818; }
.rk.r2 { color: #1b1f24; background: linear-gradient(#f2f4f7, #9aa3ad); border-color: #5b636c; }
.rk.r3 { color: #2a1406; background: linear-gradient(#f0c39a, #a8683a); border-color: #6b3d1c; }
table.rank td { vertical-align: middle; }
.ctag { display: inline-flex; align-items: center; gap: 7px; }
.csig { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--gold); border: 1px solid var(--line-soft); background: #070b10; }
.csig .sigil { width: 14px; height: 14px; }
@media (max-width: 600px) { .podium { grid-template-columns: 1fr; } .pod.p1 { order: -1; } }

/* ================================================================ karty bohaterow */
.herogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hero-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--text); border: 1px solid var(--line-soft); border-radius: 3px; background: linear-gradient(#0f1620, #070b10); transition: border-color 0.15s, box-shadow 0.15s; }
.hero-card:hover { color: var(--text); border-color: var(--gold); box-shadow: 0 0 12px rgba(242, 190, 100, 0.2); }
.hero-card img { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 1px solid var(--line); }
.hero-card b { display: block; font: 700 15px "Cinzel", serif; color: var(--gold); }
.hero-card small { color: var(--dim); }
.hero-card .dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; }

/* ================================================================ szukanie postaci */
.bigsearch label { font: 600 13px "Cinzel", serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.bigsearch div { display: flex; gap: 10px; }
.bigsearch input { margin: 0; font-size: 16px; padding: 12px 14px; }
.bigsearch .btn { flex: none; }

/* ================================================================ profil postaci */
.panel.profile { display: flex; align-items: center; gap: 26px; padding: 22px 26px; overflow: hidden; background-color: #0a0f16; background-repeat: no-repeat; background-position: right center; background-size: auto 100%; }
.panel.profile::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(8, 12, 18, 1) 40%, rgba(8, 12, 18, 0.85) 60%, rgba(8, 12, 18, 0.35)); }
.pf-portrait, .pf-body { position: relative; z-index: 1; }
.pf-portrait { flex: none; display: flex; flex-direction: column; align-items: center; }
.pf-portrait img { width: 150px; height: 180px; object-fit: cover; object-position: center 15%; border: 1px solid var(--line); border-radius: 2px; box-shadow: inset 0 0 0 2px #060910, 0 0 0 3px #070b10, 0 0 0 4px rgba(196, 156, 88, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6); }
.pf-portrait .sig { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); box-shadow: 0 0 0 2px #070b10, 0 0 10px rgba(242, 190, 100, 0.35); }
.pf-portrait .sigil { width: 22px; height: 22px; }
.pf-body { flex: 1; min-width: 0; }
.pf-body h1 { margin: 0; font-size: 34px; letter-spacing: 0.06em; }
.pf-sub { margin: 2px 0 14px; color: #e3ddd0; font-size: 16px; }
.pf-body .stats { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
@media (max-width: 700px) { .panel.profile { flex-direction: column; text-align: center; } .pf-body .stats { text-align: left; } }

/* ================================================================ gildie */
.guildgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.guild-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px; color: var(--text); border: 1px solid var(--line-soft); border-radius: 3px; background: linear-gradient(#0f1620, #070b10); }
.guild-card:hover { color: var(--text); border-color: var(--gold); box-shadow: 0 0 12px rgba(242, 190, 100, 0.2); }
.g-ico { color: var(--gold); margin-bottom: 8px; }
.g-ico svg.i { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(242, 190, 100, 0.35)); }
.guild-card b { font: 700 17px "Cinzel", serif; color: var(--gold); }
.guild-card small { color: var(--dim); }
.guild-card em { font-style: normal; margin-top: 6px; color: #e8dcc0; font-size: 13px; }

/* ================================================================ smierci - os czasu */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--line), rgba(180, 141, 76, 0.1)); }
.timeline li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 8px 0; }
.tl-ico { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #ff9b85; background: radial-gradient(#2a1414, #0b0707); border: 1px solid #7a3b2c; box-shadow: 0 0 0 3px #080b10; }
.tl-ico svg.i { width: 18px; height: 18px; }
.timeline p { margin: 6px 0 0; }
.timeline em { color: #ffb4a4; font-style: normal; }
.timeline time { display: block; color: var(--dim); font-size: 13px; }

/* ================================================================ pobieranie */
.panel.dl { background: linear-gradient(90deg, rgba(8, 12, 18, 1) 35%, rgba(8, 12, 18, 0.55)), url("/img/bn_valley.jpg") right center / cover no-repeat, var(--panel); }
.dl-main { display: flex; align-items: center; gap: 22px; padding: 8px 0; }
.dl-ico { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 50%; color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); box-shadow: 0 0 0 3px #070b10, 0 0 18px rgba(242, 190, 100, 0.3); }
.dl-ico svg.i { width: 38px; height: 38px; }
.dl-main h2 { font-size: 24px; margin: 0 0 4px; }
.dl-main p { margin: 0 0 14px; }
.btn.big { padding: 14px 30px; font-size: 17px; }
.btn.big svg.i { width: 20px; height: 20px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.req { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 10px; border: 1px solid var(--line-soft); border-radius: 3px; background: rgba(5, 8, 12, 0.55); }
.req span { color: var(--gold); margin-bottom: 6px; }
.req span svg.i { width: 30px; height: 30px; }
.req b { font: 600 14px "Cinzel", serif; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.req small { color: var(--text); }
.step-grid { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.step-grid li { counter-increment: s; position: relative; padding: 16px 14px 14px 58px; border: 1px solid var(--line-soft); border-radius: 3px; background: rgba(5, 8, 12, 0.55); }
.step-grid li::before { content: counter(s); position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 14px "Cinzel", serif; color: #2a1804; background: linear-gradient(#fde7a6, #c8923c); }
.step-grid b { display: block; color: var(--gold); font-family: "Cinzel", serif; }
.step-grid small { color: var(--dim); }

/* ================================================================ newsy - lista */
.news-card { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.news-card:last-child { border-bottom: 0; }
.nc-img { display: block; min-height: 120px; border: 1px solid var(--line-soft); border-radius: 2px; background-size: cover; background-position: center; }
.news-card h2 { margin: 4px 0 6px; font-size: 20px; }
.news-card h2 a { color: var(--gold); }
.news-card p { margin: 0 0 8px; color: #ddd7ca; }
@media (max-width: 600px) { .news-card { grid-template-columns: 1fr; } }

/* ================================================================ serwer - klasy */
.classbars { display: grid; gap: 10px; }
.cbar { display: grid; grid-template-columns: 28px 130px 1fr 40px; align-items: center; gap: 10px; }
.cbar b { font-weight: 600; }
.cbar .bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(196, 156, 88, 0.2); overflow: hidden; }
.cbar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #9c6b28, #f0c979); box-shadow: 0 0 8px rgba(242, 190, 100, 0.5); }
.cbar em { font-style: normal; text-align: right; }
ul.checks { list-style: none; margin: 0; padding: 0; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
ul.checks svg.i { color: var(--green); margin-top: 2px; }

/* ================================================================ logowanie / rejestracja */
.auth { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.auth > .panel { margin-bottom: 18px; }
.auth form.stack { max-width: none; }
.auth-side { background: linear-gradient(180deg, rgba(8, 12, 18, 0.75), rgba(8, 12, 18, 0.95) 65%), url("/img/news_art.jpg") center top / cover no-repeat, var(--panel); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.auth-side h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { min-height: 0; } }

/* ================================================================ tworzenie postaci */
.pick label { position: relative; padding-bottom: 8px; }
.pick .sig { display: grid; place-items: center; width: 32px; height: 32px; margin: -18px auto 0; position: relative; border-radius: 50%; color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); }
.pick .sigil { width: 18px; height: 18px; }
.pick small { display: block; color: var(--dim); font-size: 11px; padding: 0 4px; }

/* ================================================================ wiki - kafelki z ikonami */
.card { display: flex; flex-direction: column; }
.card .c-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 50%; color: var(--gold); background: radial-gradient(#1a2330, #070b10); border: 1px solid var(--line); box-shadow: 0 0 10px rgba(242, 190, 100, 0.2); }
.card .c-ico svg.i { width: 22px; height: 22px; }

/* ================================================================ bestiariusz */
.b-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.b-tools .tabs { margin: 0; }
.b-tools .tabs svg.i { width: 15px; height: 15px; }
.b-search { width: 260px; margin: 0; }
.bestiary { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.mcard {
  position: relative; display: flex; flex-direction: column; color: var(--text); background: #070b10;
  border: 1px solid var(--line); border-radius: 2px; padding: 3px;
  box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(196, 156, 88, 0.28), 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s, box-shadow 0.25s;
}
.mcard[hidden] { display: none; }
a.mcard:hover { color: var(--text); transform: translateY(-4px); box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(230, 194, 118, 0.6), 0 0 22px rgba(242, 190, 100, 0.35), 0 10px 24px rgba(0, 0, 0, 0.7); }
.m-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #1b2533, #070b10 75%); }
.m-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
a.mcard:hover .m-img img { transform: scale(1.06); }
.m-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 16, 0.95), transparent 38%); pointer-events: none; }
.m-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(240, 201, 121, 0.38); }
.m-ph .m-sil { width: 58%; height: auto; filter: drop-shadow(0 0 12px rgba(242, 190, 100, 0.25)); }
.m-ph small { font: 500 10px "Cinzel", serif; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(232, 220, 192, 0.55); }
.m-info { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; margin-top: -30px; padding: 0 8px 10px; }
.m-info b { font: 700 15px "Cinzel", serif; letter-spacing: 0.05em; color: var(--gold); text-shadow: 0 2px 6px #000; }
.m-stats { display: flex; gap: 12px; font-size: 12.5px; color: #e8e1d2; }
.m-stats i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; }
.m-stats i:first-child svg { color: #e0705a; }
.m-stats i:last-child svg { color: var(--gold); }
.m-stats svg.i { width: 13px; height: 13px; }
.m-info small { color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.m-crown { position: absolute; top: -13px; left: 50%; z-index: 3; transform: translateX(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #2a1804; background: linear-gradient(#fde7a6, #c8923c); border: 1px solid #6a4818; box-shadow: 0 0 12px rgba(255, 200, 110, 0.7); }
.m-crown svg.i { width: 17px; height: 17px; }
.mcard.boss { border-color: var(--gold); animation: bossglow 3.2s ease-in-out infinite; }
.mcard.boss .m-info b { color: var(--gold-hi); }
@keyframes bossglow {
  0%, 100% { box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(230, 194, 118, 0.5), 0 0 10px rgba(242, 190, 100, 0.25), 0 6px 16px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(255, 227, 163, 0.8), 0 0 24px rgba(242, 190, 100, 0.55), 0 6px 16px rgba(0, 0, 0, 0.6); }
}
.b-none { text-align: center; margin: 20px 0 0; }

/* strona potwora */
.panel.mprofile { display: flex; align-items: flex-start; gap: 28px; padding: 24px 26px; background: radial-gradient(ellipse at 20% 0%, rgba(242, 190, 100, 0.08), transparent 60%), linear-gradient(180deg, rgba(19, 28, 41, 0.97), rgba(8, 12, 18, 0.98)); }
.mp-img { position: relative; flex: none; width: 250px; aspect-ratio: 3 / 4; border: 1px solid var(--line); padding: 3px; background: #070b10; box-shadow: inset 0 0 0 2px #060910, 0 0 0 3px #070b10, 0 0 0 4px rgba(196, 156, 88, 0.35), 0 10px 26px rgba(0, 0, 0, 0.7); }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-img .m-ph { inset: 3px; background: radial-gradient(ellipse at 50% 35%, #1b2533, #070b10 75%); }
.mprofile.boss .mp-img { border-color: var(--gold); animation: bossglow 3.2s ease-in-out infinite; }
.mp-body { flex: 1; min-width: 0; }
.mp-body h1 { margin: 0; font-size: 34px; letter-spacing: 0.06em; text-transform: uppercase; }
.mp-body .stats { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.mp-body .stat small { color: var(--dim); font-weight: 400; font-size: 12px; }
.mp-abil { margin: 12px 0 0; color: #e3ddd0; }
.mp-abil b { color: var(--gold); }
@media (max-width: 760px) { .panel.mprofile { flex-direction: column; align-items: center; text-align: center; } .mp-img { width: 220px; } .mp-body .stats { text-align: left; } }

/* panel admina - obrazki potworow */
.progress { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(196, 156, 88, 0.25); overflow: hidden; margin: 6px 0 12px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #9c6b28, #f0c979); box-shadow: 0 0 8px rgba(242, 190, 100, 0.5); }
.admin-monsters .m-info { margin-top: -24px; }
.m-actions { display: flex; gap: 6px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
dialog.cropper { padding: 0; border: 0; background: transparent; color: var(--text); max-width: 460px; width: calc(100% - 32px); }
dialog.cropper::backdrop { background: rgba(0, 0, 0, 0.75); }
dialog.cropper .panel { margin: 0; }
.crop-wrap { display: flex; justify-content: center; margin: 10px 0 12px; }
#crop-canvas { width: 288px; height: 384px; border: 1px solid var(--line); cursor: grab; touch-action: none; background: #05080d; }
#crop-canvas:active { cursor: grabbing; }
.crop-msg { min-height: 1.4em; margin: 4px 0; color: var(--green); }
.crop-msg.bad { color: #ffb4a4; }
@media (prefers-reduced-motion: reduce) { .mcard.boss, .mprofile.boss .mp-img { animation: none; } }

/* ================================================================ menu uzytkownika (po zalogowaniu) */
.usermenu { position: relative; display: flex; align-items: center; padding: 0 6px; }
.usermenu summary {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; cursor: pointer; list-style: none; white-space: nowrap;
  color: var(--gold); font: 600 14px "Source Sans 3", sans-serif; border: 1px solid var(--line-soft); border-radius: 16px;
  background: linear-gradient(#141d29, #0a1018);
}
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary, .usermenu.on summary { border-color: var(--gold); box-shadow: 0 0 10px rgba(242, 190, 100, 0.25); }
.usermenu summary svg.i { width: 16px; height: 16px; }
.usermenu summary svg.i:last-child { width: 14px; height: 14px; transition: transform 0.2s; }
.usermenu[open] summary svg.i:last-child { transform: rotate(180deg); }
.um-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.um-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; padding: 8px 0;
  background: linear-gradient(#121a25, #080c12); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: inset 0 0 0 2px #070b10, inset 0 0 0 3px rgba(196, 156, 88, 0.25), 0 12px 30px rgba(0, 0, 0, 0.7);
}
.um-head { display: block; padding: 4px 16px 8px; margin-bottom: 4px; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line-soft); }
.um-pop a, .um-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; color: var(--text); font: 600 14px "Source Sans 3", sans-serif;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.um-pop a:hover, .um-pop button:hover, .um-pop a.on { color: var(--gold-hi); background: rgba(242, 190, 100, 0.07); }
.um-pop svg.i { width: 16px; height: 16px; color: var(--gold); }
.um-pop form { margin: 4px 0 0; border-top: 1px solid var(--line-soft); padding-top: 4px; }
nav.top .util > .usermenu::before { display: none; }

/* pasek zwęża się stopniowo, zamiast chowac pozycje */
@media (max-width: 1600px) { nav.top a { padding: 0 11px; font-size: 13.5px; gap: 7px; } nav.top .brand { width: 64px; } }
@media (max-width: 1440px) { nav.top a { padding: 0 9px; } nav.top a svg.i { width: 16px; height: 16px; } .um-name { max-width: 90px; } }
@media (max-width: 1320px) { nav.top .links a svg.i { display: none; } nav.top .links a { padding: 0 9px; } }
@media (max-width: 1140px) { nav.top .clock { display: none; } nav.top .links a svg.i { display: inline-block; } nav.top .links a:not(.on) span { display: none; } nav.top .links a { padding: 0 12px; } }

/* ================================================================ NPC */
.npcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.npc-card {
  display: flex; flex-direction: column; color: var(--text); background: #070b10; border: 1px solid var(--line); border-radius: 2px; padding: 3px;
  box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(196, 156, 88, 0.28), 0 6px 16px rgba(0, 0, 0, 0.6); transition: transform 0.25s, box-shadow 0.25s;
}
.npc-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: inset 0 0 0 2px #060910, inset 0 0 0 3px rgba(230, 194, 118, 0.6), 0 0 20px rgba(242, 190, 100, 0.3); }
.np-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.np-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.npc-card:hover .np-img img { transform: scale(1.06); }
.np-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 16, 0.95), transparent 35%); }
.np-info { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin-top: -26px; padding: 0 8px 10px; }
.np-info b { font: 700 14px "Cinzel", serif; color: var(--gold); text-shadow: 0 2px 6px #000; letter-spacing: 0.03em; }
.np-info small { color: var(--dim); font-size: 12px; }
.np-info em { font-style: normal; font-size: 11.5px; color: #e8dcc0; }
.npc-quote { margin: 10px 0 14px; padding: 10px 16px; border-left: 3px solid var(--line); background: rgba(242, 190, 100, 0.05); font: italic 16px/1.5 Georgia, serif; color: #e8dcc0; }

/* ================================================================ telefon */
@media (max-width: 760px) {
  nav.top { height: 48px; }
  nav.top .brand { width: 52px; }
  nav.top .util .clock { display: none; }
  .um-name { display: none; }
  .usermenu summary { padding: 0 10px; }
  nav.top a span, nav.top .navform button span { display: none; }
  nav.top a.on span { display: inline; }
  .panel { padding: 16px; }
  .panel h1 { font-size: 23px; }
  main .panel table { display: block; overflow-x: auto; }
  .article .art-img { margin: 0 -16px 16px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
