@import url(style_cs.1794863243.css);

/* =============================================================
   STYLE.CSS — tenebris legatum, дизайн з фігми («test design»)
   Сірий фон із квітами, світла підкладка 1010px, шапка-колаж,
   зелений акцент #839f81, шрифти Manrope + Civons.
   Картинки й шрифт Civons — у блоці «КАРТИНКИ» нижче:
   коли будуть посилання, просто встав їх у змінні.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300..800&family=Prata&display=swap');
@import url('https://kit-pro.fontawesome.com/releases/v6.6.0/css/pro.min.css');

/* Civons — шрифт назв категорій */
@font-face { font-family: 'Civons'; src: url(https://forumstatic.ru/files/001b/86/b8/41966.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }


/* =========================================================
   ЗМІННІ
   ========================================================= */

:root {
  color-scheme: light;

  /* ---------- КАРТИНКИ ---------- */
  --img-bg: url(https://forumstatic.ru/files/001b/86/b8/77644.png);       /* фон сторінки: фрейм «фон» */
  --img-header: url(https://forumstatic.ru/files/001b/86/b8/83681.png);   /* шапка: фрейм «шапка» (1023x307) */
  --img-cat: url(https://forumstatic.ru/files/001b/86/b8/40390.png);      /* смуга категорії без тексту (965x43) */
  --img-footer: url(https://forumstatic.ru/files/001b/86/b8/70768.png);   /* футер «design by cujo» (1010x43) */
  --img-up: none;          /* кнопка «стрелка вверх» */
  --img-down: none;        /* кнопка «стрелка вниз» */
  --up-label: 'наверх';    /* напис-заглушка; з картинками — none */
  --down-label: 'вниз';

  /* ---------- шрифти ---------- */
  --font: 'Manrope', Arial, sans-serif;
  --display: 'Civons', 'Prata', Georgia, serif;   /* у Civons лише латиниця, кирилиця — Prata */
  --fa: "Font Awesome 6 Pro", "Font Awesome 6 Brands";

  /* ---------- кольори з фігми ---------- */
  --page-color: #a9a9a9;   /* сірий фон сторінки */
  --pun-bg: #f4f4f4;       /* підкладка форуму */
  --sec-bg: #ffffff;       /* рядки форумів, картки, пости */
  --main-acc: #ebebeb;     /* сірі плашки, поля вводу */
  --add-acc: #a0a0a0;      /* рамки */
  --soft-line: #dcdcdc;    /* тонкі лінії всередині блоків */
  --link: #1e1e1e;         /* основний текст */
  --text-2: #464646;       /* дрібний текст, описи */
  --muted: #7a7a7a;        /* приглушений */
  --accent: #839f81;       /* шавлія: плашки, кнопки, посилання */
  --accent-dark: #66805f;  /* шавлія при наведенні */
  --on-accent: #ffffff;    /* текст на шавлії */
  --card-bg: #f4f4f4;      /* внутрішня картка мініпрофілю */

  /* ---------- розміри ---------- */
  --w-page: 1010px;        /* ширина підкладки */
  --side: 22px;            /* відступ вмісту від країв підкладки */
  --h-header: 264px;       /* висота шапки на підкладці */
  --pwidth: 210px;         /* ширина мініпрофілю */
  --radius: 5px;
  --ease: .25s ease;
}


/*************************************************************
A - НАЛАШТУВАННЯ
**************************************************************/

.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
#pun-announcement h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
  font-size: 0;
  height: 0;
  width: 0;
  line-height: 0;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

.punbb .container:after,
.punbb .main div.inline:after,
.punbb .post-box:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

* {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html {
  background: var(--page-color);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 1100px;
  overflow-x: hidden;
  font-size: 100.01%;
  color: var(--link);
  background: transparent;
}

/* фон сторінки: картинка «фон», не їде при прокрутці */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background: var(--page-color) var(--img-bg) center / cover no-repeat;
}

.punbb * {
  margin: 0;
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
}

.punbb img {
  border: none;
}

.punbb .main table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.checkfield input[type="checkbox"], .radiofield input[type="radio"] {
  margin: 0 .3em;
}

p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 1.8em;
  vertical-align: middle;
}

p[class="checkfield"] img,
div[class="checkfield"] img,
fieldset[class="radiofield"] img {
  height: auto;
  max-height: 50px;
}

:focus {
  outline: none;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background-color: var(--main-acc);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

.punbb {
  font: 400 11px/1.45 var(--font);
  color: var(--link);
}

.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: normal;
}

.punbb pre {
  font: 11px/140% Consolas, monaco, "courier new", monospace;
}

.punbb address, .punbb em {
  font-style: normal;
}

.punbb .post-content em {
  font-style: italic;
}

.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}

.punbb a,
.punbb #pun-admain a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.punbb a:hover,
.punbb #pun-admain a:hover {
  color: var(--accent);
}

.modlist,
.lastedit,
.punbb div#pun-live-rusff,
.punbb .topic a.sharelink {
  display: none;
}

.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 400 11px var(--font);
}

#pun input[type="text"],
#pun input[type="password"],
#pun input[type="email"],
#pun input[type="number"],
#pun textarea,
#pun select {
  padding: 4px 10px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
  color: var(--link);
}

.punbb optgroup {
  font-weight: bold;
}


/*************************************************************
B - КАРКАС: ПІДКЛАДКА 1010px
**************************************************************/

#pun {
  width: var(--w-page);
  margin: 0 auto;
  padding: 55px 0 40px;          /* зверху — місце під меню */
  position: relative;
  background: transparent;
}

/* підкладка; зверху — місце під шапку, знизу — під футер */
.punbb {
  display: flow-root;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 293px 0 80px;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--pun-bg);
}

/* футер «design by cujo» — нижня смуга підкладки */
.punbb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--main-acc) var(--img-footer) center / 100% 100% no-repeat;
  pointer-events: none;
}

#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  padding: 20px;
}

#pun-redirect::after, #pun-maint::after {
  display: none;
}

/* сторінки без шапки-оголошень (адмінка тощо) — той самий відступ */
.punbb:not(#pun-redirect):not(#pun-maint) {
  padding-top: 293px;
}

#pun-admain {
  margin-left: var(--side);
  margin-right: var(--side);
}

.punbb-admin .adcontainer,
.punbb-admin .adformal {
  border: none;
}

.punbb-admin sup.new {
  display: none;
}

.punbb .section, .punbb .main {
  margin-bottom: 14px;
}

.punbb .category, .punbb .post {
  margin-top: 20px;
}

.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {
  margin-top: 0;
}

.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
  border: 0;
}

.punbb .container {
  border: 0 solid var(--add-acc);
}

/* вміст — у 22px від країв підкладки */
#pun-announcement, #pun-status, #pun-crumbs1, #pun-crumbs2, #pun-main, #pun-stats,
#pun-about, .punbb > .modmenu, .punbb > .info, .punbb > .formal,
.punbb > .section:not(#pun-title):not(#pun-navlinks):not(#pun-ulinks):not(#html-footer):not(#html-header) {
  margin-left: var(--side);
  margin-right: var(--side);
  position: relative;
}

/* заголовки блоків: світла смуга з рамкою */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2,
.punbb-admin #pun-admain h2 {
  padding: 10px 18px 9px;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--main-acc);
  color: var(--link);
  font: 800 10px/1.2 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
}

/* назва розділу / теми — як смуга категорії (див. розділ E) */
#pun-main > h1 {
  position: relative;
  height: 37px;
  margin-bottom: 14px;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: 400 28px/37px var(--display);
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  text-transform: uppercase;
}

#pun-main > h1 > span {
  position: relative;
  z-index: 1;
}

#pun-viewtopic #pun-main > h1 {
  font-size: 24px;
}

/* білі блоки */
.punbb .main .forum .container,
.punbb .main .formal .container,
.punbb .usertable .container,
.punbb-admin #pun-admain .adcontainer,
#pun .formal .container,
#pun-stats .container,
.punbb .info .container {
  background: var(--sec-bg);
  color: var(--link);
  border: 1px solid var(--add-acc);
}


/*************************************************************
C - ШАПКА, МЕНЮ
**************************************************************/

/* картинка шапки: фрейм «шапка» з фігми (1023x307), скотч виступає за краї */
#pun-title {
  position: absolute;
  top: -25px;
  left: -2px;
  width: 1023px;
  height: 307px;
  margin: 0;
  border: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--img-header) left top / 1023px 307px no-repeat;
}

#pun-title h1, #pun-title .title-logo {
  display: none;
}

#pun-title table {
  border: none;
  height: 40px;
  width: 100%;
}

#pun-title td.title-logo-tdr {
  pointer-events: auto;
}

/* HTML-верх: усі блоки рахуються від лівого верхнього кута підкладки */
#html-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  margin: 0;
  z-index: 6;
}

/* ---------- головне меню: над підкладкою ---------- */

#pun-navlinks {
  position: absolute;
  top: -39px;
  left: 0;
  width: 100%;
  margin: 0;
  border: 0;
  z-index: 100;
  background: transparent;
}

#pun-navlinks .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

#pun-navlinks li {
  display: flex;
  gap: 18px;
  padding: 0;
}

#pun-navlinks li a {
  display: block;
  padding: 2px 0;
  color: var(--link) !important;
  font: 800 11px/1 var(--font);
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

#pun-navlinks li a:hover,
#pun-navlinks li.isactive a {
  color: var(--accent) !important;
}

/* ---------- дрібні посилання: рядок на верхньому краї шапки ---------- */

#pun-ulinks {
  position: absolute;
  top: -11px;
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 100;
  text-align: center;
}

/* біла плашка під ними вже є в картинці шапки (533px, на 3.5px лівіше центру) */
#pun-ulinks .container {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  translate: -3.5px 0;
  gap: 2px 12px;
  min-width: 489px;
  height: 21px;
  padding: 0 22px;
  box-sizing: border-box;
  align-items: center;
  border: 0;
  background: transparent;
}

#pun-ulinks li,
#pun-ulinks li a {
  display: block;
  padding: 0;
  border: 0;
  white-space: nowrap;
  font: 400 8px/1 var(--font);
  text-transform: lowercase;
  color: var(--link) !important;
}

#pun-ulinks li::before {
  content: none;
}

#pun-ulinks li a:hover {
  color: var(--accent) !important;
}

#notify-link .unreads,
#navpm .unreads,
span.num_msg {
  background: var(--accent) !important;
}

/* ---------- посилання по центру шапки: гостевая — правила — … ---------- */

#html-header .tn-hlinks {
  position: absolute;
  top: 154px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--link);
  font: 400 9px/12px var(--font);
  text-transform: lowercase;
  z-index: 3;
}

#html-header .tn-hlinks a {
  color: var(--link);
}

#html-header .tn-hlinks a:hover {
  color: var(--accent);
}

/* ---------- новини: шість пілюль на нижньому краї шапки ---------- */

#html-header .tn-news {
  position: absolute;
  top: 246px;
  left: 21px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  z-index: 4;
}

#html-header .tn-news__item {
  flex: 0 0 154px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 10px 0 12px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--add-acc);
  border-radius: 45px;
  background: var(--main-acc);
  color: var(--link);
  transition: background var(--ease);
}

#html-header .tn-news__item:hover {
  background: var(--sec-bg);
}

#html-header .tn-news__date {
  flex: 0 0 30px;
  height: 16px;
  border-radius: 63px;
  background: var(--accent);
  color: var(--main-acc);
  font: 700 7px/16px var(--font);
  text-align: center;
}

#html-header .tn-news__text {
  min-width: 0;
  font: 400 7px/1.2 var(--font);
}

#html-header .tn-news__text b,
#html-header .tn-news__text i {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

#html-header .tn-news__text b {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

#html-header .tn-news__text i {
  color: #181818;
}


/*************************************************************
D - ПРИВІТАННЯ, ОГОЛОШЕННЯ, ХЛІБНІ КРИХТИ
**************************************************************/

#pun-status {
  margin-top: 0;
  margin-bottom: 14px;
  border: 0;
}

#pun-status .container {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--link);
  font: 400 8px/10px var(--font);
  text-transform: lowercase;
}

#pun-status .container strong {
  font-weight: 700;
}

#pun-status span {
  white-space: nowrap;
  margin: 0 .2em;
}

#pun-status .status-right {
  display: none;
}

#pun-announcement {
  margin-bottom: 14px;
}

#pun-announcement .container {
  padding: 12px 18px;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
}

#pun-crumbs1, #pun-crumbs2 {
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
}

#pun-crumbs1 p.container, #pun-crumbs2 .container {
  border: 0;
  padding: 0 0 12px;
  background: transparent;
  text-align: center;
  font: 400 9px/1.4 var(--font);
  text-transform: lowercase;
}

#pun-crumbs1 em, #pun-crumbs2 em {
  padding: 0 .4em;
}

#pun-index #pun-crumbs1,
#pun-index #pun-crumbs2 {
  display: none;
}

.punbb .divider {
  margin: 0;
  border: 0;
  height: 0;
}


/*************************************************************
E - ГОЛОВНА: КАТЕГОРІЇ ТА ФОРУМИ
**************************************************************/

#pun-index thead,
#pun-index .category thead {
  display: none;
}

.punbb .category {
  width: auto;
  margin: 20px 0 0;
}

/* смуга категорії: картинка з фігми (рамка вже намальована в ній), назва великим Civons */
#pun-index .category h2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* у картинці смуги по центру лишилась плашка «the beggining».
   Щоб її не було видно, смугу складено з двох половин картинки
   без середини (ліва 0…438px, права 527…965px, ледь розтягнуті).
   Якщо перезбережеш картинку без плашки — ці два правила можна
   замінити на звичайне background: var(--img-cat) left bottom / 100% 43px. */
#pun-index .category h2::before,
#pun-index .category h2::after,
#pun-main > h1::before,
#pun-main > h1::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  background: var(--img-cat) no-repeat;
  background-size: 220.3% 43px;
}

#pun-index .category h2::before,
#pun-main > h1::before {
  left: 0;
  background-position: 0 100%;
}

#pun-index .category h2::after,
#pun-main > h1::after {
  right: 0;
  background-position: 100% 100%;
}

/* перший рядок форуму заходить на нижню лінію смуги */
#pun-index .category h2 + .container {
  margin-top: -1px;
}

#pun-main div.catleft, #pun-main div.catright {
  display: none;
}

#pun-index .category h2 > span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--link);
  font: 400 19px/37px var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* «назва | підпис» — підпис зеленою плашкою по центру (скрипт у HTML-низу) */
#pun-index .category h2 .cat-title {
  font-weight: 400;
}

#pun-index .category h2 .cat-sub {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  rotate: -5deg;
  padding: 5px 9px;
  border-radius: 42px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 8px/1.2 var(--font);
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* назву з підписом не обрізаємо, щоб плашка не загубилась */
#pun-index .category h2 > span:has(.cat-sub) {
  overflow: visible;
}

#pun-index .category .container {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* рядок форуму: білий, з рамкою */
#pun-index .category table tr {
  display: table-row;
}

#pun-index .category td {
  padding: 0;
  border: 1px solid var(--add-acc);
  border-width: 1px 0;
  background: var(--sec-bg);
  color: var(--link);
  vertical-align: middle;
}

#pun-index .category td.tc2,
#pun-index .category td.tc3,
#pun-index .category td.tcmod {
  display: none;
}

#pun-index .category td.tcl {
  width: auto;
  height: 103px;
  padding: 0 24px 0 87px;
  border-left-width: 1px;
  overflow: visible;
  font: 400 9px/1.2 var(--font);
}

#pun-index .category .intd {
  position: relative;
  padding: 18px 0 19px;
}

#pun-index .category .tclcon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
  margin: 0;
}

/* значок нових повідомлень: кружечок зліва */
#pun-index .category div.icon {
  position: absolute;
  left: -58px;
  top: 50%;
  float: none;
  width: 14px;
  height: 14px;
  margin: -7px 0 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 50%;
  background: transparent;
}

#pun-index .category tr.inew div.icon,
#pun-index .category div.icon.inew {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--sec-bg), 0 0 0 4px var(--accent);
}

/* назва форуму */
#pun-index .tclcon h3 {
  order: 1;
  margin: 0 0 7px;
  padding: 0;
}

#pun-index .tclcon h3 a {
  color: var(--link);
  font: 700 14px/1 var(--font);
  text-transform: none;
}

#pun-index .tclcon h3 a:hover {
  color: var(--accent);
}

/* опис */
#pun-index .tclcon > p,
#pun-index .tclcon .desktext {
  order: 2;
  max-width: 600px;
  margin: 0;
  padding: 0;
  color: var(--text-2);
  font: 400 9px/1.25 var(--font);
  text-transform: none;
}

/* посилання з опису (.lens) — пілюлі під описом, перша зелена */
#pun-index .tclcon .lens {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 11px 0 0;
  font-size: 0;            /* ховає роздільники • */
  line-height: 0;
}

#pun-index .tclcon .lens .tooltip {
  display: block;
  line-height: 0;
}

#pun-index .tclcon .lens a {
  display: block;
  height: 24px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--link) !important;
  font: 700 7px/22px var(--font);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

#pun-index .tclcon .lens a b {
  font-weight: 700;
}

#pun-index .tclcon .lens .tooltip:first-child a {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent) !important;
}

#pun-index .tclcon .lens a:hover,
#pun-index .tclcon .lens .tooltip:first-child a:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--on-accent) !important;
}

/* підфоруми */
#pun-index .subforums {
  order: 4;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 9px;
  text-transform: lowercase;
}

/* останнє повідомлення: кружечок з аватаром + назва теми */
#pun-index .category td.tcr {
  width: 226px;
  padding: 0 14px 0 0;
  border-right-width: 1px;
  text-align: left;
  font: 400 8px/1.37 var(--font);
}

#pun-index td.tcr em.user-avatar {
  float: left;
  position: relative;
  width: 34px;
  height: 34px;
  margin: -3px 17px 0 0 !important;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 50%;
}

#pun-index td.tcr em.user-avatar a,
#pun-index td.tcr .avatar-image {
  display: block;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  outline: 0;
  opacity: .8;
}

#pun-index td.tcr a.lastpost-link {
  display: block;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--accent);
  font: 800 10px/1.37 var(--font);
  text-transform: lowercase;
}

#pun-index td.tcr a.lastpost-link:hover {
  color: var(--accent-dark);
}

#pun-index td.tcr br {
  display: none;
}

#pun-index .lastpost {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--link);
}

#pun-index .lastpost a {
  color: var(--link);
}

#pun-index .user-avatar .isonline {
  top: 0;
  right: 0;
}

/* статистика */
#pun-stats {
  margin-top: 20px;
  font: 400 10px/1.5 var(--font);
  text-transform: lowercase;
}

#pun-stats h2 {
  display: block;
}

#pun-stats .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  margin: 0;
  padding: 12px 18px;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-sizing: border-box;
}

#pun-stats li span {
  font-weight: 400;
}

#pun-stats li strong {
  font-weight: 700;
}

li#onlinelist {
  width: 100%;
  margin-top: 6px;
  padding: 8px 0 0;
  border-top: 1px solid var(--soft-line);
  text-align: justify;
}

li#onlinelist div > a {
  font-weight: 700;
}


/*************************************************************
F - СПИСКИ ТЕМ, СТОРІНКИ, «ОТВЕТИТЬ»
**************************************************************/

/* таблиці форуму (не чіпають таблиці всередині постів) */
.punbb .main th:not(.post-content th) {
  padding: 9px 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--add-acc);
  background: var(--main-acc);
  color: var(--link);
  font: 800 9px/1.2 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
}

.punbb .main td:not(.post-content td) {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: var(--sec-bg);
  color: var(--link);
}

.punbb .main tr:last-child td:not(.post-content td) {
  border-bottom: 0;
}

.punbb .main .forum .container,
.punbb .main .usertable .container {
  border-radius: var(--radius);
  overflow: hidden;
}

.punbb .main .tcl {
  width: 50%;
  overflow: hidden;
  text-align: left;
}

.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  width: 10%;
  text-align: center;
}

.punbb .main .tcr {
  width: 30%;
  overflow: hidden;
  text-align: left;
  font-size: 9px;
}

#pun-searchtopics .tcl, #pun-modviewforum .tcl, #pun-userlist .tcl {
  width: 40%;
}

#pun-searchtopics .tc2, #pun-userlist .tc2 {
  width: 20%;
  text-align: left;
}

#pun-debug table .tcl { width: 15%; }
#pun-debug .tcr { width: 90%; }

.punbb tbody.hasicon td.tcl {
  padding-left: 34px;
}

/* кружечок теми */
.punbb div.icon {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: 3px 0 0 -20px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 50%;
  background: transparent;
}

.punbb tr.inew div.icon,
.punbb div.icon.inew {
  border-color: var(--accent);
  background: var(--accent);
}

.punbb tr.isticky div.icon {
  border-color: var(--link);
  background: var(--link);
}

.punbb tr.iclosed div.icon {
  border-color: var(--add-acc);
  background: var(--add-acc);
}

.punbb tr.iredirect div.icon {
  border-color: transparent;
}

.punbb .main .tcl a {
  font-weight: 700;
}

.punbb .main .tcl .pagestext a,
.punbb .main .tcl .byuser {
  font-weight: 400;
}

.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;
}

.punbb td .modlist {
  display: block;
  padding-top: .3em;
}

/* сторінки і «ответить» */
.punbb .linkst, .punbb .linksb {
  float: none;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: auto;
  height: auto;
  margin: 10px 0;
  padding: 0;
  text-align: left;
  text-transform: lowercase;
  font: 400 10px var(--font);
}

.punbb .linksb {
  flex-direction: row-reverse;
}

.multipage {
  margin-top: 0;
}

.linkst .pagelink, .linksb .pagelink {
  position: static;
  float: none;
  width: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0;
  order: 0;
}

div.pagelink a, div.pagelink strong, div.pagelink span {
  display: block;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--link);
  font: 700 9px/22px var(--font);
  text-align: center;
}

div.pagelink strong,
div.pagelink a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.linkst .postlink, .linksb .postlink {
  position: static;
  float: none;
  width: auto;
  margin-left: auto;
  text-align: right;
}

.punbb .postlink a,
.postlink.long .new-topic,
.postlink.long .new-poll {
  display: inline-block;
  height: 24px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 55px;
  background: var(--accent);
  color: var(--on-accent) !important;
  font: 700 8px/24px var(--font);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.punbb .postlink a:hover,
.postlink.long .new-topic:hover,
.postlink.long .new-poll:hover {
  background: var(--accent-dark);
}

.postlink.long {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.subscribelink {
  clear: both;
  flex: 0 0 100%;
  order: 3;
  padding: 2px 0 0;
  text-align: right;
  text-transform: lowercase;
}

.linksb noindex {
  order: 1;
}

.topic-users-in {
  margin: 6px 0;
  font: 400 10px var(--font);
}

/* меню модератора */
.punbb .modmenu .container {
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-align: right;
  text-transform: lowercase;
  font: 400 10px var(--font);
}

.punbb .modmenu strong, .punbb .modmenu a {
  height: 1.8em;
  line-height: 1.8em;
}

.punbb .modmenu .container strong {
  float: left;
}

.punbb .modmenu input {
  margin-left: 1em;
}

.punbb .modmenu a[href*="export.php"] {
  display: none !important;
}

.punbb .info .container {
  padding: 10px 16px;
  border-radius: var(--radius);
}

.punbb .info .container .backlink {
  padding-top: 8px;
}

.punbb .info-box {
  margin: 0 0 1.1em 0;
  padding: 1.1em 1.7em 1em;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
}

.punbb .info-box * {
  padding: 0 0 .7em 0;
}

.punbb #pun-main .info-box .legend {
  font-size: 1.1em;
  font-weight: bold;
}


/*************************************************************
G - ТЕМА: ПОВІДОМЛЕННЯ І МІНІПРОФІЛЬ
**************************************************************/

#pun-viewtopic .post,
.punbb .post {
  position: relative;
  width: auto;
  margin: 20px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-transform: none;
}

.punbb .post .container {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* смужка з датою і номером — над текстом поста */
#pun .post h3 {
  position: relative;
  display: block;
  height: auto;
  margin: 0 0 0 calc(var(--pwidth) + 14px);
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 2;
}

#pun .post h3 span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  padding: 3px 16px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--main-acc);
  color: var(--link);
  font: 400 9px/1.3 var(--font);
  text-transform: lowercase;
}

#pun .post h3 a.permalink { order: 1; font-weight: 700; }
#pun .post h3 .FNTslider { order: 2; }
#pun .post h3 strong {
  order: 3;
  margin-left: auto;
  float: none;
  padding: 0 9px;
  border-radius: 42px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 8px/16px var(--font);
}
#pun .post h3 a.translatelink { order: 4; }

#pun .post h3 strong::before {
  content: '#';
}

#pun .post h3 a.sharelink {
  display: none;
}

/* повзунок розміру шрифту */
#pun .post h3 .FNTslider {
  float: none;
  width: 90px;
  height: 3px;
  margin: 0 8px;
  border: 0;
  border-radius: 3px;
  background: var(--add-acc);
}

#pun .post h3 .FNTslider .before {
  height: 3px;
  margin-top: 0;
  border: 0;
  background: var(--accent);
}

#pun .post h3 .FNTslider .thumb {
  top: -4px;
  width: 8px;
  height: 11px;
  border-radius: 3px;
  background: var(--link);
}

#pun .post.hideprofile h3,
#pun .post.hideprofile .post-body {
  margin-left: 0 !important;
}

/* ---------- мініпрофіль: як «профиль (большой аватар)» у фігмі ----------
   біла рамка 210px — сіра картка 180px: нік, статус, аватар,
   досье (fld1), статистика (сообщения · репутация · баллы fld3),
   зелена плашка (fld2) унизу картки, «активен» під карткою */

.punbb .post .post-author {
  float: left;
  position: sticky;
  top: 12px;
  z-index: 1;
  width: var(--pwidth);
  margin: -26px 0 0;
  padding: 14px 14px 9px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
  text-align: center;
  color: var(--text-2);
  font: 400 8px/1.3 var(--font);
}

.punbb .post .post-author * {
  box-sizing: border-box;
}

.punbb .post .post-author ul {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 0 0;
}

/* сіра картка: тягнеться до «активен» */
.punbb .post .post-author ul::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--card-bg);
}

.punbb .post .post-author ul:has(.pa-online)::before {
  bottom: 23px;
}

.punbb .post .post-author li,
.punbb .post .post-author .addflds {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* нік */
.punbb .post .post-author .pa-author {
  position: relative;
  width: 100%;
  padding: 0 14px;
  color: #131313;
  font: 700 12px/1.3 var(--font);
  text-transform: lowercase;
}

.punbb .post .post-author .pa-author a {
  color: #131313 !important;
  font: inherit;
}

.punbb .post .post-author .pa-author a:hover {
  color: var(--accent) !important;
}

.punbb .post .post-author .indOnline,
.punbb .post .post-author .indOffline {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 6px;
  height: 6px;
  margin: -3px 0 0;
  border-radius: 50%;
}

.punbb .post .post-author .indOnline {
  background: var(--accent);
}

.punbb .post .post-author .indOffline {
  background: var(--add-acc);
}

/* статус */
.punbb .post .post-author .pa-title {
  width: 100%;
  margin: 1px 0 6px;
  padding: 0 8px;
  color: #4e4e4e;
  font: 500 8px/1.3 var(--font);
  text-transform: lowercase;
}

/* аватар 180x180 — на всю ширину картки */
.punbb .post .post-author .pa-avatar {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.punbb .post .post-author .pa-avatar img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* fld1 · досье персонажа */
.punbb .post .post-author .pa-fld1 {
  width: 100%;
  margin: 8px 0 0;
  padding: 0 10px;
  color: var(--text-2);
  font: 400 8px/1.35 var(--font);
  text-transform: lowercase;
}

.punbb .post .post-author .pa-fld1 a {
  color: var(--accent) !important;
  font-weight: 700;
}

/* статистика: три колонки, підпис дрібно, число жирно */
.punbb .post .post-author .pa-posts { order: 50; }
.punbb .post .post-author .pa-respect { order: 51; }
.punbb .post .post-author .pa-positive { order: 52; }
.punbb .post .post-author .pa-fld3 { order: 53; }

.punbb .post .post-author .pa-fld4,
.punbb .post .post-author ul::after { order: 90; }
.punbb .post .post-author .pa-gifts { order: 95; }
.punbb .post .post-author .pa-online { order: 100; }

.punbb .post .post-author ul {
  flex-flow: row wrap;
  justify-content: center;
}

.punbb .post .post-author .pa-author,
.punbb .post .post-author .pa-title,
.punbb .post .post-author .pa-avatar,
.punbb .post .post-author .pa-fld1,
.punbb .post .post-author .pa-fld2,
.punbb .post .post-author .pa-fld4,
.punbb .post .post-author ul::after,
.punbb .post .post-author .pa-gifts,
.punbb .post .post-author .pa-online {
  flex: 0 0 100%;
}

.punbb .post .post-author .pa-posts,
.punbb .post .post-author .pa-respect,
.punbb .post .post-author .pa-positive,
.punbb .post .post-author .pa-fld3 {
  flex: 1 1 0;
  min-width: 0;
  margin: 12px 0 0;
  padding: 0 2px;
  color: #131313;
  font: 700 12px/1.2 var(--font);
  white-space: nowrap;
}

.punbb .post .post-author .pa-posts::before,
.punbb .post .post-author .pa-respect::before,
.punbb .post .post-author .pa-positive::before,
.punbb .post .post-author .pa-fld3::before {
  display: block;
  margin-bottom: 1px;
  color: #474747;
  font: 400 7px/1.3 var(--font);
  text-transform: lowercase;
}

.punbb .post .post-author .pa-posts::before { content: 'сообщения'; }
.punbb .post .post-author .pa-respect::before { content: 'репутация'; }
.punbb .post .post-author .pa-positive::before { content: 'позитив'; }
.punbb .post .post-author .pa-fld3::before { content: 'баллы'; }

.punbb .post .post-author .fld-name,
.punbb .post .post-author .pa-respect a,
.punbb .post .post-author .pa-respect img {
  display: none !important;
}

.punbb .post .post-author .pa-respect span,
.punbb .post .post-author .pa-fld3 a {
  color: #131313 !important;
  font: inherit;
}

/* fld2 · данные о персонаже: картинка-посилання під досье */
.punbb .post .post-author .pa-fld2 {
  margin: 8px 0 0;
  padding: 0 10px;
  color: var(--text-2);
  font: 400 8px/1.35 var(--font);
}

.punbb .post .post-author .pa-fld2 a {
  color: var(--accent) !important;
  font-weight: 700;
}

.punbb .post .post-author .pa-fld2 img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* fld4 · плашка: зелена смуга внизу картки
   (перший рядок жирний, решта дрібніше — як у фігмі).
   Порожнє поле — смуга з текстом-заглушкою (змінна --plate-empty). */
.punbb .post .post-author {
  --plate-empty: 'тут могла быть ваша плашка';
}

.punbb .post .post-author .pa-fld4,
.punbb .post .post-author ul:not(:has(.pa-fld4))::after {
  display: block;
  min-height: 34px;
  margin: 14px 0 0;
  padding: 8px 10px;
  box-sizing: border-box;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: 400 7px/1.35 var(--font);
  text-align: center;
}

.punbb .post .post-author ul:not(:has(.pa-fld4))::after {
  content: var(--plate-empty);
  font-weight: 700;
  font-size: 8px;
  line-height: 18px;
}

.punbb .post .post-author .pa-fld4::first-line {
  font-weight: 700;
  font-size: 8px;
}

.punbb .post .post-author .pa-fld4 a {
  color: var(--on-accent) !important;
}

.punbb .post .post-author .pa-fld4 img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* подарунки — дрібно під плашкою */
.punbb .post .post-author .pa-gifts {
  display: none;
}

/* «активен …» під карткою */
.punbb .post .post-author .pa-online {
  margin: 7px 0 0;
  min-height: 16px;
  color: #181818;
  font: 400 8px/16px var(--font);
  text-transform: lowercase;
}

.punbb .post .post-author .pa-online strong {
  font-weight: 400;
}

/* сховане */
.punbb .post .post-author :is(.pa-last-visit, .pa-reg, .pa-time-visit, .pa-from, .pa-invites, .pa-ip) {
  display: none !important;
}

/* лупа пошуку по темі */
.punbb .post .post-author #tuser {
  position: absolute !important;
  top: 22px;
  left: 22px;
  width: 14px;
  height: 14px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--link);
  font-size: 10px;
  opacity: .35 !important;
  cursor: pointer;
  z-index: 2;
}

.punbb .post .post-author #tuser:hover {
  opacity: .9 !important;
}

/* тіло повідомлення: біла картка з рамкою */
.punbb .post-body {
  width: auto;
  min-width: 0;
  margin-left: calc(var(--pwidth) + 14px);
  padding: 0;
  position: relative;
  border: 1px solid var(--add-acc);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--sec-bg);
}

#pun .post.hideprofile .post-body,
.punbb .post:not(:has(h3)) .post-body {
  border-radius: var(--radius);
}

.punbb .post-box {
  padding: 20px 26px 16px;
  border: 0;
  background: transparent;
  color: var(--link);
  font: 400 11px/1.55 var(--font);
}

.punbb fieldset .post-box {
  margin-bottom: .8em;
  padding: 12px 14px;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
}

.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  text-align: justify;
}

.punbb .post-content,
.punbb .post-content p,
.punbb .post-box {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.punbb .post-content p {
  margin: 0;
  padding: 0 0 .8em 0;
  line-height: 155%;
  text-align: justify;
  text-transform: none;
}

.punbb .post-content img {
  vertical-align: middle;
}

.punbb .post-content img.postimg {
  max-width: 100%;
  height: auto;
  margin: .4em 0;
}

.punbb .post-content a:not(.dice-btn) {
  color: var(--accent);
  font-weight: 700;
}

.punbb .post-content a:not(.dice-btn):hover {
  color: var(--link);
}

/* межі таблиць у постах сховані (extra.css малює їх з !important — перебиваємо сильнішим селектором) */
.punbb .post-content td,
.punbb .post-content th {
  border-width: 0 !important;
}

.punbb .post-content td {
  padding: .4em .5em !important;
  overflow: hidden;
}

.post-content table {
  border-collapse: collapse;
  margin: 0 0 .8em;
}

.post-content hr {
  opacity: .5;
  margin-bottom: .8em;
}

.post-content ul {
  padding: 0 0 1em 2.3em;
}

.post-content ul li {
  list-style: inherit;
  margin-bottom: .3em;
}

.post-content abbr {
  cursor: help;
  border-bottom: 1px dotted var(--link);
  text-decoration: none;
}

.post-content .highlight-text {
  background-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: inherit;
}

del {
  text-decoration: none !important;
  filter: blur(2px);
  transition: filter .5s ease-in-out;
}

del:hover {
  filter: none;
}

/* цитата, код, спойлер */
.punbb .post-content .blockcode,
.punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;
}

.punbb .scrollbox,
.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
  max-height: 200px;
}

.punbb .quote-box,
.punbb .code-box,
#pun .quote-box,
#pun .code-box {
  position: relative;
  margin: 4px 0 12px;
  padding: 14px 20px 8px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--pun-bg);
  color: var(--link);
}

.punbb .quote-box .quote-box,
#pun .quote-box .quote-box {
  background: var(--sec-bg);
}

#pun .code-box {
  padding: 10px 14px;
}

/* «хтось написав(ла):» і «код:» — зеленими пілюлями */
.punbb .quote-box cite,
.punbb .code-box strong.legend,
#pun .quote-box cite,
#pun .code-box strong {
  position: static;
  display: inline-block;
  margin: 0 0 8px;
  padding: 0 12px;
  border-radius: 42px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 8px/18px var(--font);
  font-style: normal;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#pun .quote-box cite a,
#pun .code-box strong a {
  color: inherit !important;
}

#pun .post-content .spoiler-box {
  padding: 10px 14px;
}

#pun .post-content .spoiler-box > div {
  display: inline-block;
  position: relative;
  padding: 0 16px 0 26px !important;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc) !important;
  color: var(--link);
  font: 700 8px/22px var(--font);
  text-transform: uppercase;
  cursor: pointer;
}

#pun .post-content .spoiler-box > div::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform .3s linear;
}

#pun .post-content .spoiler-box > div.visible::before {
  transform: translateY(-50%) scale(.6);
}

.post-content .spoiler-box > blockquote {
  display: none;
  padding-top: 10px;
}

.post-content .spoiler-box > blockquote.visible {
  display: block;
  overflow: auto;
}

#pun .post-content .hide-box {
  padding: 0;
  overflow: hidden;
}

#pun .hide-box cite {
  display: block;
  margin: 0;
  padding: 0 20px;
  border-radius: 0;
  border-bottom: 1px solid var(--add-acc);
  background: var(--main-acc);
  color: var(--link);
  text-align: center;
}

#pun .hide-box blockquote {
  padding: 12px 20px 4px;
  box-sizing: border-box;
}

.quiet-quote {
  position: relative;
  margin: 4px 15px 0 19px !important;
  font-style: italic;
  font-size: 11px;
  color: var(--text-2);
}

.quiet-quote:before {
  content: "\201C";
  position: absolute;
  left: -13px;
  top: -4px;
  font: 900 17px Arial, sans-serif;
}

/* підпис */
.punbb .post-sig dt {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  border-top: 1px dashed var(--add-acc);
}

.punbb .post-sig dd {
  font-size: 10px;
}

/* оцінка повідомлення */
body div.post-rating,
body div.post-vote {
  float: right;
  position: relative;
  line-height: initial;
}

.punbb .post-rating {
  clear: both;
  padding: 6px 0 0;
}

div.post-rating p {
  float: right !important;
  border: 0 !important;
  padding: 3px 0 !important;
}

div .post-rating p > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 38px;
  height: 24px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--link) !important;
  font: 700 9px/1 var(--font) !important;
  text-decoration: none !important;
}

div .post-rating p > a:hover,
.mylike .post-rating p > a,
.post-rating.mylike p > a {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent) !important;
}

div.post-vote {
  margin-bottom: 0;
}

div.post-vote p {
  float: right !important;
  border: 0 !important;
  padding: 3px 5px !important;
}

div.post-rating a,
div.post-vote a {
  cursor: pointer !important;
  text-decoration: none !important;
}

/* реакції */
.punbb .reaction-chip {
  border: 1px solid var(--add-acc) !important;
  background: var(--main-acc) !important;
  color: var(--link);
}

.punbb .reaction-chip.reaction-chip--clicked {
  background: color-mix(in srgb, var(--accent) 25%, var(--sec-bg)) !important;
  border-color: var(--accent) !important;
}

.punbb .reaction-counter__count {
  color: var(--link) !important;
  font-weight: 700;
}

.punbb .reaction-picker-button svg {
  color: var(--accent) !important;
}

/* посилання під повідомленням: пілюлі */
.punbb .post-links {
  margin: 0;
  padding: 0 16px 14px;
  border: 0;
  width: auto;
  font: 700 7px/1 var(--font);
  text-transform: uppercase;
}

.punbb .post-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}

.punbb .post-links li {
  display: block;
  padding: 0 !important;
}

.punbb .post-links a {
  display: block;
  height: 22px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--link) !important;
  line-height: 20px;
  letter-spacing: .02em;
}

.punbb .post-links a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent) !important;
}

li.pl-email.email,
li.pl-share {
  display: none !important;
}

/* «профиль» і «лс» — під мініпрофілем, на всю його ширину; решта — під постом.
   Рядок кнопок винесено в нижній відступ поста, тож картка автора,
   що їде за прокруткою, зупиняється над кнопками і не наїжджає на них. */
#pun-viewtopic .post:has(.post-links),
.punbb .post:has(.post-links) {
  padding-bottom: 32px;
}

.punbb .post .post-links {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
}

.punbb .post-links li.profile,
.punbb .post-links li.pm {
  order: -2;
  width: calc((var(--pwidth) - 3px) / 2);
  text-align: center;
}

.punbb .post-links li.pm {
  order: -1;
  margin-right: auto;
}

.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
}

#Bubble a {
  width: 25px;
  height: 20px;
  display: block;
  text-decoration: none !important;
}

#Bubble a::before {
  content: '\f10e';
  font-family: var(--fa);
  position: absolute;
  top: -16px;
  width: 25px;
  height: 20px;
  display: block;
  padding: 5px 0 0;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 4px;
}


/*************************************************************
H - ФОРМИ, КНОПКИ
**************************************************************/

.punbb .formal .container {
  padding: 14px 22px;
  border-radius: var(--radius);
}

.punbb .formal h2 + .container {
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.punbb .formsubmit {
  padding: 0;
  margin: 10px 0 0;
  text-align: center;
}

.punbb fieldset {
  border: 0;
  padding: 0 0 8px;
  margin: 0 0 1em;
  color: var(--link);
}

.punbb fieldset legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 400;
}

.punbb fieldset legend span,
.punbb-admin #pun fieldset legend span {
  display: inline-block;
  padding: 0 14px;
  border: 0;
  border-radius: 42px;
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  font: 800 8px/20px var(--font);
  font-style: normal;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.punbb fieldset legend span * {
  color: inherit !important;
}

.punbb fieldset fieldset {
  border: 0;
  margin: 0;
  padding: 0 0 8px;
}

#post-form legend > span {
  display: none;
}

#post-form > h2 {
  display: none;
}

.punbb .fs-box {
  padding: 5px 0;
}

.punbb .fs-box p,
.punbb .fs-box fieldset {
  padding: 0 0 8px;
}

.punbb .inline .inputfield,
.punbb .inline .selectfield,
.punbb .inline .passfield {
  float: left;
  margin-right: 10px;
}

.punbb .inline .infofield {
  clear: both;
}

.punbb .datafield br {
  display: none;
}

.punbb .required label,
.punbb .datafield span.input {
  font-weight: bold;
}

.punbb .datafield span.input a {
  font-weight: normal;
}

.punbb .areafield span.input,
.punbb p.longinput span.input {
  display: block;
  padding: 0 12em 0 0;
  height: 100%;
}

.punbb textarea,
.punbb .longinput input {
  width: 64%;
  margin: 0;
}

.punbb .hashelp {
  position: relative;
}

.punbb .helplinks {
  display: block;
  position: absolute;
  top: 1em;
  right: 0;
  font-weight: normal;
  width: 36%;
}

.punbb .helplinks span {
  display: block;
  padding-bottom: .2em;
}

#main-reply {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

#tags {
  position: relative;
}

#plng {
  display: inline-block;
  height: 22px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--add-acc) !important;
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--text-2) !important;
  font: 400 9px/20px var(--font) !important;
  text-transform: lowercase;
}

#plng b {
  color: var(--link);
  font-weight: 700;
}

/* кнопки */
#pun input.button,
#pun input[type="button"],
#pun input[type="submit"],
#pun button.button,
#pun a.button,
#pun .formsubmit input,
#pun .formsubmit a.button {
  box-sizing: border-box;
  height: 26px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 55px;
  background: var(--accent);
  color: var(--on-accent);
  font: 800 8px/24px var(--font);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

#pun input.button:hover,
#pun input[type="button"]:hover,
#pun input[type="submit"]:hover,
#pun button.button:hover,
#pun a.button:hover,
#pun .formsubmit input:hover,
#pun .formsubmit a.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--on-accent);
}

/* друга кнопка (посмотреть) — сіра */
#pun input[name="preview"],
#pun .formsubmit input[name="preview"] {
  border-color: var(--add-acc);
  background: var(--main-acc);
  color: var(--link);
}

#pun .formsubmit input + input,
#pun .formsubmit input + a {
  margin-left: 4px;
}

#pun .formsubmit a,
#pun .formsubmit span {
  margin: 0 4px 0 0;
}

#font-area {
  height: 220px;
  width: 680px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  padding: 15px !important;
  max-height: 144px;
  overflow: auto;
}


/*************************************************************
I - ПРОФІЛЬ, СПИСКИ
**************************************************************/

#pun-profile {
  font-family: var(--font);
  text-transform: lowercase;
}

#viewprofile-next {
  margin: 0 auto;
  padding: 20px 30px;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--sec-bg);
}

#pun-profile #profile .container,
#pun-profile #viewprofile,
#pun-profile #viewprofile .container {
  background: transparent;
  border: 0;
}

#viewprofile tr {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

#viewprofile td {
  border: 0;
  padding: 0;
  overflow: hidden;
}

#viewprofile-next #profile-left {
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  box-sizing: border-box;
  border: 1px solid var(--add-acc);
  border-radius: var(--radius);
  background: var(--card-bg);
}

#viewprofile-next #profile-left li#profile-name strong {
  font: 700 14px var(--font) !important;
}

#profile-left li strong,
#profile-right li strong {
  font-weight: normal !important;
}

#profile-right li {
  display: flex;
  padding: 4px 0;
}

#profile-right li span {
  width: 150px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 42px;
  background: var(--main-acc);
  color: var(--link);
  font: 700 8px/20px var(--font);
  text-align: center;
  text-transform: uppercase;
}

#profile-right li strong {
  padding-left: 1.5em;
}

#profile .container {
  padding-left: 200px;
  min-height: 100px;
}

#profilenav {
  float: left;
  width: 180px;
  margin-left: -180px;
}

#profilenav h2 {
  display: none;
}

#profilenav li {
  padding: 0 0 6px;
}

#profilenav li a {
  display: inline-block;
  padding: 0 14px;
  border: 1px solid var(--add-acc);
  border-radius: 55px;
  background: var(--main-acc);
  color: var(--link);
  font: 700 8px/22px var(--font);
  text-transform: uppercase;
}

#profilenav li.isactive a,
#profilenav li a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

#profile-signature ul {
  border-top: 1px dashed var(--add-acc);
  margin: 0;
  padding: 1em 1em 0;
}

img.avatardemo,
.punbb img.avatardemo {
  float: right;
  margin: 0 0 8px 18px;
}

#pun-messages .clearer {
  display: none;
}

#pun-userlist .usertable .container {
  padding: 0;
}

/* модальні вікна */
#tags .container,
.post_report,
.post_reputation,
#MyBookmarks,
.inner.popup_graffiti,
.pun-modal .modal-inner,
#pun .pun-modal .modal-inner {
  background: var(--sec-bg);
  color: var(--link);
}


/*************************************************************
J - ПІДВАЛ, КНОПКИ ВГОРУ / ВНИЗ
**************************************************************/

/* копірайт rusff — дрібно над футером */
#pun-about {
  margin-top: 20px;
}

#pun-about .container {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 400 8px/1.4 var(--font);
  text-align: center;
  text-transform: lowercase;
}

#pun-about a {
  color: var(--muted);
}

#html-footer {
  position: relative;
  z-index: 3;
  margin: 0 var(--side);
}

#html-footer .container {
  padding: 0;
  border: 0;
  background: transparent;
}

/* кнопки вгору / вниз: стікери зі скотчем праворуч від підкладки */
.go-up,
.go-down {
  display: none;
  position: fixed;
  left: calc(50% + 518px);
  z-index: 9999;
  margin: 0 !important;
  padding: 0;
  cursor: pointer;
  background: center / contain no-repeat;
  transition: transform var(--ease);
}

.go-up img,
.go-down img {
  display: none;
}

.go-up {
  top: calc(50% - 80px);
  width: 105px !important;
  height: 56px !important;
  background-image: var(--img-up);
}

.go-down {
  top: calc(50% - 8px);
  width: 100px !important;
  height: 50px !important;
  background-image: var(--img-down);
}

.go-up:hover,
.go-down:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* поки картинок немає — паперові плашки з написом
   (коли вставиш картинки, у змінних --up-label / --down-label постав none) */
.go-up::before,
.go-down::before {
  position: absolute;
  inset: 12px 30px 12px 6px;
  border: 1px solid var(--add-acc);
  background: var(--pun-bg);
  color: var(--link);
  font: 800 8px/30px var(--font);
  text-align: center;
  text-transform: uppercase;
  rotate: -4deg;
}

.go-up::before { content: var(--up-label); }
.go-down::before { content: var(--down-label); rotate: 3deg; }
