/* © 2026 Jattar Tajjar. Kroniki Lorviku. Wszelkie prawa zastrzeżone. */
/* KRONIKI LORVIKU - the website and the library: Atari TIA palette, monospace, square borders, dark background.
   The banner scene on top, the menu bar under it, framed boxes in the body (a game portal, not a landing page).
   No external assets and no inline styles (the CSP forbids them): every style lives here or in home.css. */

:root {
  --bg: #000000;
  --panel: #101010;
  --line: #4a4a4a;
  --line2: #6f6f6f;
  --muted: #8e8e8e;
  --text: #ececec;
  --head: #fcfc54;
  --gold: #d2d240;
  --link: #84c8fc;
  --ok: #80e880;
  --bad: #e46f6f;
  --boss: #f0aa67;
  --violet: #c57cee;
  --accent: #fcfc54;
  --accent2: #e8e84a;
  --ink: #000000;
  --frame: #a28638;
  --frame2: #694d14;
  --frame3: #482c00;
  --sky: #000000;
  --wall: #120d05;
  --mortar: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); overflow-x: hidden; }

/* behind the column: a dark stone wall, 32 x 16 bricks in offset rows with 2 px of mortar (gradients only) */
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--mortar) 2px, transparent 2px),
    conic-gradient(from 0deg at 2px 16px, transparent 0deg 270deg, var(--mortar) 270deg),
    conic-gradient(from 0deg at 2px 16px, transparent 0deg 270deg, var(--mortar) 270deg);
  background-size: 32px 16px, 32px 32px, 32px 32px;
  background-position: 0 0, 0 0, 16px 16px;
  color: var(--text);
  font: 16px/1.5 "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3 {
  color: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: bold;
  margin: 0 0 10px;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; margin-top: 4px; }
h3 { font-size: 16px; margin-top: 16px; }

p { margin: 6px 0; }
ul, ol { margin: 6px 0; padding-left: 22px; }
li { margin: 2px 0; }

:focus-visible { outline: 2px dashed var(--head); outline-offset: 2px; }

canvas.pix { image-rendering: pixelated; vertical-align: middle; }

/* ---------------------------------------------------------------- header */

/* the skip link sits off screen until a keyboard reaches it */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--head);
  border: 2px solid var(--head);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.skip:focus { left: 16px; }

.top { background: var(--sky); border-bottom: 2px solid var(--line); }

/* the banner: the painted scene spans the viewport, centred and cropped by a pixel or two at the sides */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--sky);
}
/* the whole banner is the way home */
.logo { display: block; line-height: 0; color: var(--head); }
.logo:hover { text-decoration: none; }
/* the script sets the width and the height to an integer scale of the backing */
.logo canvas { display: block; }

/* the two header bars span the page; their content lines up with the text of the 1100 px column
   (the column keeps a 16 px gutter inside, so the bars pad to the same edge) */
.bar, .subnav {
  padding-left: max(16px, calc((100% - 1068px) / 2));
  padding-right: max(16px, calc((100% - 1068px) / 2));
}

/* language toggle: PL | EN over the banner's top left corner (the moon and the dragon fly on the right) */
.langs {
  position: absolute;
  top: 8px;
  left: max(16px, calc((100% - 1068px) / 2));
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang {
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.06em;
  min-width: 40px;
  min-height: 40px;
  padding: 4px 8px;
  border: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.lang:hover { border-color: var(--link); color: var(--link); }
.lang.active { color: var(--head); border-color: var(--line2); }
.lang-sep { color: var(--line); }

/* the seam under the banner: a dark line, a row of bronze blocks, a light line (the frame colours of the boxes) */
.stripe {
  height: 6px;
  background:
    linear-gradient(var(--frame3) 0 2px, transparent 2px 4px, var(--frame) 4px 6px),
    repeating-linear-gradient(90deg, var(--frame) 0 4px, var(--frame2) 4px 8px);
}

/* the loading line over the seam while a page swap takes a moment (nav.js adds .on): no height of its own */
.navbar { position: relative; height: 0; pointer-events: none; }
.navbar.on::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 30%;
  height: 3px;
  background: var(--accent);
  animation: navbar 900ms steps(12) infinite;
}
@keyframes navbar {
  from { transform: translateX(-100%); }
  to { transform: translateX(340%); }
}
@media (prefers-reduced-motion: reduce) {
  .navbar.on::before { width: 100%; animation: none; opacity: 0.7; }
}

/* the menu bar: one bronze plate framed like the boxes, the entries split by dark lines */
.bar {
  display: flex;
  background: var(--frame3);
  border-bottom: 2px solid var(--frame);
  box-shadow: inset 0 -2px 0 var(--bg);
}

/* GRAJ sits in the middle of the row: the home entries before it, the others after it (DISCORD last)
   (the markup keeps GRAJ first, so the phone grid still opens with it) */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 auto;
  border-right: 2px solid var(--frame2);
}
.nav > * { border-left: 2px solid var(--frame2); }
@media (min-width: 881px) {
  .nav > * { order: 3; }
  .nav > [data-page="home"], .nav > [data-page="news"], .nav > [data-page="chron"], .nav > [data-page="rank"] { order: 1; }
  .nav > .play { order: 2; }
  /* the Polish home entries run longer, so RANKING goes after GRAJ there to keep GRAJ near the middle */
  html[lang="pl"] .nav > [data-page="rank"] { order: 3; }
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 9px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  background: transparent;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--head); background: var(--frame2); text-decoration: none; }
/* the current page in the colours of the box title bars; GRAJ stays the one yellow entry */
.nav-link.active { color: var(--head); background: var(--frame2); box-shadow: inset 0 -4px 0 var(--frame); }
.nav-link.play { min-width: 130px; background: var(--accent); color: var(--ink); }
.nav-link.play:hover, .nav-link.play:focus-visible { background: var(--accent2); color: var(--ink); }

/* BIBLIOTEKA opens its sections under it on hover or keyboard focus, no script needed */
.nav-drop { position: relative; display: flex; }
.nav-drop > .nav-link { flex: 1 1 auto; }
.drop {
  display: none;
  position: absolute;
  top: 100%;
  left: -2px;
  z-index: 20;
  min-width: calc(100% + 4px);
  padding: 4px 0;
  background: var(--frame3);
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 2px var(--bg);
}
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
.drop-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
}
.drop-link:hover, .drop-link:focus-visible { color: var(--head); background: var(--frame2); text-decoration: none; }

/* the library sections and the search box, shown under the menu on library pages only */
.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 8px;
  padding-bottom: 10px;
  background: var(--panel);
  border-top: 2px solid var(--line);
}
.subnav[hidden] { display: none; }
.sublinks { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  border: 2px solid transparent;
}
.sub-link:hover, .sub-link:focus-visible { border-color: var(--frame); color: var(--head); text-decoration: none; }
.sub-link.active { background: var(--frame2); border-color: var(--frame); color: var(--head); }

.search {
  display: flex;
  flex: 0 1 360px;
  min-width: 240px;
  margin: 0;
  padding: 0;
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line2);
  border-right: 0;
  border-radius: 0;
  padding: 6px 12px;
  -webkit-appearance: none;
  appearance: none;
}
/* mouse focus changes the border only; keyboard focus gets the site-wide dashed outline as every other control */
.search input:focus { border-color: var(--link); }
.search input:focus-visible { outline: 2px dashed var(--head); outline-offset: 2px; }
.search input::placeholder { color: var(--muted); }
.search .go {
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--head);
  background: var(--frame2);
  border: 2px solid var(--frame);
  cursor: pointer;
}
.search .go:hover { background: var(--frame); color: var(--ink); }

/* ---------------------------------------------------------------- layout */

.main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  outline: none;
  background: var(--bg);
  /* a dark bronze edge where the column meets the wall (a shadow: the column keeps its width) */
  box-shadow: -2px 0 0 var(--frame3), 2px 0 0 var(--frame3);
}

/* the footer line sits centred under the column (same side padding as the column's text) */
.foot {
  padding: 8px max(16px, calc((100% - 1068px) / 2)) 12px;
  text-align: center;
  font-size: 13px;
  background: var(--panel);
  border-top: 2px solid var(--line);
  min-height: 30px;
  word-break: break-word;
}
/* the library's data line goes under the copyright line, both centred */
.foot #built { display: block; }
.foot #built:empty { display: none; }

.view > h1 { margin-bottom: 12px; }
.view .lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.view .lead h1 { margin: 0; }

.crumbs { color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.crumbs a { color: var(--link); }

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: 12px 14px;
  margin: 0 0 14px;
  min-width: 0;
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }

.muted { color: var(--muted); }
.lore { max-width: 72ch; margin: 0 0 14px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.btn.retry { margin-top: 8px; }
/* the shell's note for a page whose scripts never came: it shows only after a while, without a script (the page
   replaces it the moment it runs) */
.slow { visibility: hidden; animation: slow-note 0s linear 12s forwards; }
@keyframes slow-note { to { visibility: visible; } }
.gold { color: var(--gold); }
.boss { color: var(--boss); }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- portal panels */

/* a framed box: bronze frame, a dark inner line and a filled title bar */
.box {
  background: var(--panel);
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 4px var(--frame3);
  padding: 16px;
  margin: 0 0 16px;
  min-width: 0;
}
.box > h2 {
  margin: -16px -16px 14px;
  padding: 9px 16px;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--head);
  background: var(--frame2);
  border-bottom: 2px solid var(--frame);
}
/* the last row of a box: the way to the full list (the full ranking, all the news) */
.more-row { margin: 12px 0 0; padding: 4px 0 0; border-top: 2px solid var(--line); text-align: right; }
.more-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: bold;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--accent2); border-color: var(--accent2); color: var(--ink); text-decoration: none; }
.btn.wide { display: flex; width: 100%; }
/* a framed button: the body of a page keeps one filled button (ZALOGUJ) */
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--frame); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--frame2); border-color: var(--frame); color: var(--head); }

.field { display: block; margin: 0 0 10px; }
.field span { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.field input {
  display: block;
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--line2);
  border-radius: 0;
  padding: 6px 10px;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus { border-color: var(--link); }
.field input:focus-visible { outline: 2px dashed var(--head); outline-offset: 2px; }

.links { margin: 10px 0 0; font-size: 15px; }
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  margin-left: -4px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.msg { margin: 8px 0 0; font-size: 14px; color: var(--bad); }
.msg[hidden] { display: none; }

/* the account pages (account.js): narrow forms, a green line for what went through */
.acct-form { max-width: 360px; }
.acct-form .btn { margin-top: 4px; }
.msg.good { color: var(--ok); }
.acct .btn + .msg, .acct .msg + .btn { margin-top: 10px; }
.acct-state { margin: 0 0 12px; }
.acct h3 { margin: 18px 0 6px; }
.acct-page > .links { margin-top: 0; }

/* the boss chips of the library landing: .boss on its own is the colour class (tags, names, headings) */
.bosses { display: flex; flex-wrap: wrap; gap: 8px; }
.bosses .boss {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--boss);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bosses .boss:hover, .bosses .boss:focus-visible { border-color: var(--boss); text-decoration: none; }
.bosses .boss canvas { flex: 0 0 auto; }
.bosses .boss .bname { min-width: 0; }
.bosses .boss .lv { color: var(--muted); font-weight: normal; font-size: 14px; text-transform: none; white-space: nowrap; }

/* ---------------------------------------------------------------- tables */

.table-box { margin: 0 0 12px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); background: var(--panel); max-width: 100%; }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid th, .grid td { padding: 5px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid #2a2a2a; }
.grid th {
  color: var(--head);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  white-space: nowrap;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.grid tbody tr:hover > td { background: #222222; }
.grid td.num, .grid th.num { text-align: right; white-space: nowrap; }
.grid td.pic { width: 1px; padding-right: 2px; }
.grid td .muted { display: block; font-size: 13px; }

/* a table wider than its wrap: a fade at the right edge and a hint under it (the script sets .scrolls) */
.scroll-hint { display: none; margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.table-box.scrolls .scroll-hint { display: block; }
.table-box.scrolls .table-wrap { box-shadow: inset -28px 0 20px -20px #000000; }

/* ---------------------------------------------------------------- detail lists, cards, chips */

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: 0 0 8px; }
dl.kv dt { color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; padding-top: 1px; }
dl.kv dd { margin: 0; min-width: 0; word-break: break-word; }

/* the item categories and the monster families: rows of one framed box, two columns wide */
.idx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.idx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 0;
  border-bottom: 1px solid #2a2a2a;
  color: var(--text);
  min-width: 0;
}
.idx-row:hover, .idx-row:focus-visible { text-decoration: none; background: #181818; }
.idx-row .pics { display: flex; flex: 0 0 56px; gap: 2px; align-items: center; }
.idx-row .name { flex: 1 1 auto; min-width: 0; color: var(--link); font-weight: bold; text-transform: uppercase; letter-spacing: 0.06em; word-break: break-word; }
.idx-row:hover .name, .idx-row:focus-visible .name { text-decoration: underline; }
.idx-row .count { flex: 0 0 auto; color: var(--muted); font-size: 14px; white-space: nowrap; }

/* the library landing: the three sections as rows of one framed box */
.secs { margin: 8px 0 0; }
.sec-row { display: block; padding: 10px 0; border-top: 2px solid var(--line); color: var(--text); }
.sec-row:last-child { padding-bottom: 0; }
.sec-row:hover, .sec-row:focus-visible { text-decoration: none; }
.sec-row .name { display: block; color: var(--link); font-size: 17px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; }
.sec-row:hover .name, .sec-row:focus-visible .name { text-decoration: underline; }
.sec-row .line { display: block; color: var(--muted); font-size: 15px; }

.chip {
  display: inline-block;
  padding: 0 6px;
  margin: 2px 6px 2px 0;
  border: 2px solid currentColor;
  font-size: 13px;
  line-height: 18px;
  font-weight: bold;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0 5px;
  margin: 0 4px 0 0;
  border: 2px solid currentColor;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag.boss { color: var(--boss); }
.tag.champ { color: var(--gold); }
.tag.stone { color: var(--violet); }

.quote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 4px solid var(--line2);
  color: var(--gold);
  font-style: italic;
  word-break: break-word;
}

.icons { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* search results */
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #2a2a2a; min-width: 0; }
.hits li:last-child { border-bottom: 0; }
.hits .pic { flex: 0 0 auto; width: 16px; height: 16px; }
.hits .what { min-width: 0; word-break: break-word; }
.hits .what .muted { display: block; font-size: 13px; }

/* ---------------------------------------------------------------- narrower screens: the menu bar */

/* a laptop keeps the nine entries in one row */
@media (max-width: 1100px) {
  .nav-link { padding: 8px 8px; font-size: 16px; letter-spacing: 0.01em; }
  .nav-link.play { min-width: 110px; }
}

/* a narrow laptop still fits them in one row with tighter cells */
@media (max-width: 1000px) {
  .nav-link { padding: 8px 5px; font-size: 15px; letter-spacing: 0; }
  .nav-link.play { min-width: 90px; }
}

/* a tablet or a phone: three equal cells to a row, GRAJ takes two of the first row, the other seven fill the rest
   and DISCORD takes the whole last row; the dark gaps between them are the dividers; the library sections are in
   the library's own sub nav, so the drop list stays shut */
@media (max-width: 880px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: var(--frame2);
    border: 0;
  }
  .nav > * { border-left: 0; }
  .nav-link { min-height: 44px; padding: 6px 4px; font-size: 16px; text-align: center; background: var(--frame3); }
  .nav-link.play { min-width: 0; grid-column: span 2; }
  .nav-link.dc-link { grid-column: 1 / -1; }
  .nav-drop:hover .drop, .nav-drop:focus-within .drop { display: none; }
}

/* ---------------------------------------------------------------- small screens (390 px) */

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 18px; }
  h2 { font-size: 17px; }
  h3 { font-size: 15px; }
  .langs { top: 4px; left: 8px; }
  /* a long entry (STRONA GŁÓWNA) takes two short lines in its cell */
  .nav-link {
    min-height: 44px;
    padding: 6px 4px;
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
  .idx { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; min-width: 0; }
  .search input, .search .go { min-height: 44px; }
  /* tight enough for the three sections to share one row at 390 px */
  .sub-link { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 6px 6px; font-size: 16px; letter-spacing: 0.04em; }
  .main { padding: 16px; }
  table.grid { font-size: 14px; }
  .hide-sm { display: none; }
  dl.kv { grid-template-columns: 1fr; gap: 0 0; }
  dl.kv dd { margin-bottom: 6px; }
  /* tighter rows: the other-language name goes, the cells lose some padding */
  .grid th, .grid td { padding: 4px 6px; }
  .grid td .alt { display: none; }
  /* one boss per row: sprite, name and level on one line */
  .bosses .boss { flex: 1 1 100%; min-width: 0; }
  .bosses .boss .bname { flex: 1 1 auto; }
  .bosses .boss .lv { margin-left: auto; }
}

/* ---------------------------------------------------------------- the forum */

.crumbs { margin: 0 0 8px; font-size: 15px; }
.crumbs .sep { color: var(--muted); }
.forum-me p { margin: 0; }
.forum-me .btn { min-height: 36px; padding: 4px 14px; margin-left: 8px; }
.forum-login .field input, .forum-form .field input, .forum-form textarea, .reason-form input, .forum-mod select, .forum-form select {
  display: block;
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--frame2);
  border-radius: 0;
}
.forum-form textarea { min-height: 160px; resize: vertical; line-height: 1.45; white-space: pre-wrap; }
.forum-form textarea:focus-visible, .forum-form input:focus-visible, .reason-form input:focus-visible { outline: 2px dashed var(--head); outline-offset: 2px; }
.forum-form .count { display: block; text-align: right; margin-top: 2px; }
.forum-form { max-width: 760px; margin: 10px 0 0; }
.forum-form[hidden], .forum-form .msg[hidden] { display: none; }
.forum-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 0 0 14px; }
.forum-tools > .forum-form { flex: 1 1 100%; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.field.inline span { margin: 0; }
.field.inline select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; min-height: 44px; }
.forum-secs .sec-name { font-weight: bold; }
.forum-secs .sec-desc { display: block; }
.grid td.last, .grid td.topic { word-break: break-word; }
.chip {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 0 6px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--head);
  border: 2px solid var(--frame2);
  vertical-align: middle;
}
.chip.pin { color: var(--gold); }
.chip.lock, .chip.del { color: var(--muted); }
.chip.st-new { color: var(--gold); }
.chip.st-accepted, .chip.st-considered { color: var(--link); }
.chip.st-fixed { color: var(--ok); }
.chip.st-rejected { color: var(--bad); }
.gone { opacity: 0.6; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.pager .pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  border: 2px solid var(--frame2);
}
.pager .pg.cur { background: var(--frame2); color: var(--head); }
.pager a.pg:hover, .pager a.pg:focus-visible { border-color: var(--frame); text-decoration: none; }
.pager .gap { color: var(--muted); }
.topic-h { word-break: break-word; }
.posts { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.post { border: 2px solid var(--frame2); background: var(--panel, transparent); padding: 10px 12px; scroll-margin-top: 12px; }
.post.by-staff { border-color: var(--frame); box-shadow: inset 4px 0 0 var(--accent); }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 0 6px; margin: 0 0 8px; border-bottom: 2px solid var(--line); }
.post-head .when { margin-left: auto; }
.staff-badge { padding: 0 6px; font-size: 13px; font-weight: bold; letter-spacing: 0.06em; color: var(--ink); background: var(--accent); }
.post-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.post-body .quote, .post-body blockquote { margin: 6px 0; padding: 4px 10px; border-left: 4px solid var(--frame2); color: var(--muted); }
.post-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.post-acts .act {
  min-height: 36px;
  padding: 2px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: transparent;
  border: 2px solid var(--frame2);
  cursor: pointer;
}
.post-acts .act:hover, .post-acts .act:focus-visible { border-color: var(--frame); color: var(--head); }
.post-acts .danger, .btn.danger { color: var(--bad); }
.edited { margin: 6px 0 0; }
.reason-form { max-width: 520px; margin: 8px 0 0; }
.small { font-size: 13px; }
@media (max-width: 640px) {
  .post { padding: 8px; }
  .post-head .when { margin-left: 0; }
  .post-acts .act { min-height: 44px; }
}

/* ---------------------------------------------------------------- the website's login over the banner */

/* ZALOGUJ, or the account name opening PROFIL and WYLOGUJ: over the banner's top right corner, as PL | EN on the left */
.me {
  position: absolute;
  top: 8px;
  right: max(16px, calc((100% - 1068px) / 2));
  z-index: 5;
  max-width: calc(100% - 160px);
}
.me-link {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  min-height: 40px;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--head);
  background: var(--bg);
  border: 2px solid var(--line2);
  cursor: pointer;
  list-style: none;
}
.me-link::-webkit-details-marker { display: none; }
.me-link:hover, .me-link:focus-visible, .me-link.active, .me-menu[open] > .me-link { border-color: var(--link); color: var(--link); text-decoration: none; }
.me-menu > .me-link::after { content: " v"; color: var(--muted); }
.me-drop {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 4px 0;
  background: var(--frame3);
  border: 2px solid var(--frame);
  box-shadow: inset 0 0 0 2px var(--bg);
}
.me-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.me-item:hover, .me-item:focus-visible, .me-item.active { color: var(--head); background: var(--frame2); text-decoration: none; }
.me-msg { max-width: 220px; margin: 0; padding: 6px 16px; font-size: 14px; color: var(--bad); }

/* DISCORD, the last menu entry: the game's Discord server in a new tab, hidden while the panel names none */
.nav-link.dc-link { color: var(--link); }
.nav-link.dc-link:hover, .nav-link.dc-link:focus-visible { color: var(--head); }
.dc-link[hidden] { display: none; }

@media (max-width: 640px) {
  .me { top: 4px; right: 8px; }
  .me-link { max-width: 150px; min-height: 40px; font-size: 15px; letter-spacing: 0.02em; }
}

/* ---------------------------------------------------------------- the profile */

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.profile h3 { margin: 16px 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.profile .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.profile .field input, .profile .field select { min-height: 44px; }
.profile .field.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pchars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pchar { padding: 10px 12px; border: 2px solid var(--line); background: var(--bg); }
.pchar.online { border-color: var(--ok); }
.pchar-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 6px; }
.pchar-head .who { font-weight: bold; color: var(--head); }
.ptitle { margin: 0 0 6px; color: var(--violet); }
.pstate { margin-left: auto; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.04em; }
.pstate.on { color: var(--ok); }
.pstate.off { color: var(--muted); }
.pchar .btn.play { min-height: 44px; min-width: 120px; }
.ptopics { margin: 0; padding-left: 18px; }
.ptopics li { margin: 0 0 4px; word-break: break-word; }
.grid.plogins td.good { color: var(--ok); }
.grid.plogins td.bad { color: var(--bad); }

@media (max-width: 640px) {
  .pchars { grid-template-columns: minmax(0, 1fr); }
  .pstate { margin-left: 0; flex: 1 1 100%; }
  .pchar .btn.play { width: 100%; }
}

/* ---------------------------------------------------------------- the deletion of an account, the legal pages */

.delbar {
  margin: 0;
  padding: 6px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  background: var(--bad);
}
.delbar[hidden] { display: none; }
.delbar a { color: var(--ink); text-decoration: underline; margin-left: 6px; }
.profile-del-pending { border-color: var(--bad); }
.profile-del-pending .btn { min-height: 44px; }
.profile-del { border-color: var(--frame2); }
.profile-del .check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.profile-del .check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.profile-del form[hidden] { display: none; }
.btn.danger { border-color: var(--bad); }
.legal-page ul, .legal-page ol { margin: 0 0 8px; padding-left: 20px; }
.legal-page li { margin: 0 0 6px; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 6px; }
.flinks a { color: var(--link); text-transform: uppercase; letter-spacing: 0.04em; }
