@import url(style_cs.1793833324.css);

@import url(https://forumstatic.ru/files/001c/43/fc/27566.css);

@import url(https://forumstatic.ru/files/001a/28/10/55678.css);

/* Иконический шрифт */
@import url('https://fonts.googleapis.com/css2?family=Material+Icons+Outlined');

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Raleway:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap');

/* Font Awesome */
@import url('https://kit-pro.fontawesome.com/releases/v6.6.0/css/pro.min.css');

@font-face { font-family: horror; src: local("horror"), url(https://forumstatic.ru/files/0019/86/a2/53604.otf);
}

@font-face {font-family: Kudry; 
src: local("Kudry"), url(https://forumstatic.ru/files/001c/0a/be/46374.otf);
}

@font-face { font-family: Sagire; src: local("Sagire"), url(https://forumstatic.ru/files/001b/73/d1/52535.otf);
}

@font-face { font-family: Cinzel; src: local("Cinzel"), url(https://forumstatic.ru/files/001a/ff/52/15353.ttf);
}

@font-face { font-family: raleway; src: local("raleway"), url(https://forumstatic.ru/files/001b/70/14/27590.ttf);
}

@font-face { font-family: espina; src: local("espina"), url(https://forumstatic.ru/files/001b/70/14/43891.ttf);
}

@font-face { font-family: ramillas; src: local("ramillas"), url(https://forumstatic.ru/files/001b/70/14/21130.ttf);
}

@font-face { font-family: TheSilverEditorial; src: local("TheSilverEditorial"), url(https://forumstatic.ru/files/001c/a5/83/34024.ttf);
}

@font-face { font-family: nice; src: local("nice"), url(https://forumstatic.ru/files/001c/a5/83/60762.otf);
}

@font-face { font-family: things; src: local("things"), url(https://forumstatic.ru/files/001c/a5/83/33043.otf);
}

@font-face {font-family: fine; src: local("fine"), url(https://forumstatic.ru/files/001b/73/d1/67460.otf);
}

/* Полезные сервисные настройки
-------------------------------------------------------------*/
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks 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.0;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  line-height: 0.0;
  font-size: 0;
}

/* Основные переменные
------------------------------------------*/
:root {
  --pwidth: 244px;
  --pad1: 10px 30px;
  --pad2: 10px 20px;
  --pad3: 5px 10px;
  --font-family: "Manrope", sans-serif;
  --second-family: "mulish", sans-serif;
  --fa: "Font Awesome 6 Pro", "Font Awesome 6 Brands";
  --second-font: "fine";
}

/* Світла тема */
:root:not([data-forum-theme="dark"]) {
  color-scheme: light;
  --header-image: url(https://forumstatic.ru/files/001c/92/fe/78656.svg?v=1);
  /*  --header-image: url("https://upforme.ru/uploads/001c/a5/83/2/75657.jpg");*/
  /* футер: СВІТЛА тема */
  --footer-img: url(https://forumstatic.ru/files/001c/92/fe/27742.svg?v=1);
  /* розміщення елементів у шапці: СВІТЛА тема */
  --quote-top: 58px;
  --quote-left: 855px;
  --quote-w: 187px;
  --quote-h: 30px;
  --b1-top: 29px;
  --b1-left: 687px;
  --b1-rot: 0deg;
  --b2-top: 29px;
  --b2-left: 755px;
  --b2-rot: 0deg;
  --b3-top: 52px;
  --b3-left: 712px;
  --b3-rot: 0deg;
  /* ---- картинки категорій (світла тема) ---- */
  --cat1-img: url(https://forumstatic.ru/files/001c/a5/83/24761.jpg);
  --cat2-img: url(https://forumstatic.ru/files/001c/a5/83/57217.jpg);
  --cat3-img: url(https://forumstatic.ru/files/001c/a5/83/61580.jpg);
  --cat4-img: url(https://forumstatic.ru/files/001c/a5/83/79077.jpg);
  --cat5-img: url(https://forumstatic.ru/files/001c/a5/83/50824.jpg);
  --cat6-img: url(https://upforme.ru/uploads/001c/cf/a0/4/865488.png);
  --cat7-img: url(https://upforme.ru/uploads/001c/cf/a0/4/421802.png);
  --cat-overlay: rgba(0, 0, 0, 0);
  --icon-old: url(https://forumstatic.ru/files/001c/92/fe/65200.png?v=1);
  --icon-new: url(https://forumstatic.ru/files/001c/92/fe/20998.png?v=1);
  --nav-top: 50px;
  --nav-left: 81px;
  --nav-rot: 0deg;
  --nav-color: #333333;
  --nav-color-hover: #70332c;
  --pun-bg: #e5e5e5;
  --sec-bg: #f2f2f2;
  --link: #464646;
  --link-hover: #70332c;
  --link-hover-text: #70332c;
  --main-acc: #f2f2ee;
  --add-acc: #a2a2a2;
  --meta-line: #a2a2a2;
  --winter-warm: #808080;
  --winter-chip: #e8e8e8;
  /* плашки announcements (старий варіант) */
  --ann-bg: #70332c;
  --ann-text: #ffffff;
  /* пілюлі announcements */
  --ann2-bg: #f2f2ee;
  --ann2-hover-bg: #e8e8e8;
  --ann2-text: #373737;
  --ann2-badge: #70332c;
  --ann2-ring: rgba(255, 255, 255, .55);
  /* перемикач теми */
  --theme-control-bg: #f2f2ee;
  --theme-control-text: #70332c;
  --theme-control-border: #a2a2a2;
  /* випадне меню й імена в шапці */
  --nav-dd-bg: #f2f2ee;
  --nav-dd-border: #a2a2a2;
  --nav-dd-link-bg: #70332c;
  --nav-dd-link-text: #ffffff;
  --nav-dd-link-hover-bg: #ffffff;
  --nav-dd-link-hover-text: #70332c;
  --best-link: #4a4a4a;
  /* плашка fld4 */
  --plate-bg: linear-gradient(120deg, #4f2019 0%, #70332c 50%, #94574f 100%);
  /* кнопки */
  --btn-bg: #70332c;
  --btn-text: #ffffff;
  --btn-border: #70332c;
  --btn-hover-bg: #f2f2ee;
  --btn-hover-text: #70332c;
  --cat8-img: linear-gradient(135deg, #70332c55, #70332c22);
  /* меню, назви форумів, дрібниці */
  --nav-link-bg: transparent;
  --nav-link-hover-bg: transparent;
  --nav-link-text: #333333;
  --forum-title: #70332c;
  --base-link: #464646e0;
  --go-down: #70332c;
  --card-bg-main: #e5e5e5;
  --login-field: #e8e8e8;
  --list-track: #464646;
  --list-thumb: #a2a2a2;
  --page-overlay: rgba(0, 0, 0, 0);
  --ann2-date: #ffffff;
}

/* Темна тема: трішки темніша за світлу */
:root[data-forum-theme="dark"] {
  color-scheme: dark;
  /* --header-image: url(https://upforme.ru/uploads/001c/a5/83/2/503297.jpg); */
  --header-image: url(https://forumstatic.ru/files/001c/92/fe/78656.svg?v=1);
  /* футер: ТЕМНА тема */
  --footer-img: url(https://forumstatic.ru/files/001c/92/fe/27742.svg?v=1);
  /* розміщення в шапці: ТЕМНА тема.
     Стартові значення = світлим. Підбирайте під темну картинку шапки. */
  --quote-top: 58px;
  --quote-left: 855px;
  --quote-w: 187px;
  --quote-h: 30px;
  --b1-top: 29px;
  --b1-left: 687px;
  --b1-rot: 0deg;
  --b2-top: 29px;
  --b2-left: 755px;
  --b2-rot: 0deg;
  --b3-top: 52px;
  --b3-left: 712px;
  --b3-rot: 0deg;
  /* ---- картинки категорій (темна тема) ---- */
  --cat1-img: url(https://forumstatic.ru/files/001c/a5/83/24761.jpg);
  --cat2-img: url(https://forumstatic.ru/files/001c/a5/83/57217.jpg);
  --cat3-img: url(https://forumstatic.ru/files/001c/a5/83/61580.jpg);
  --cat4-img: url(https://forumstatic.ru/files/001c/a5/83/79077.jpg);
  --cat5-img: url(https://forumstatic.ru/files/001c/a5/83/50824.jpg);
  --cat6-img: url(https://upforme.ru/uploads/001c/cf/a0/4/865488.png);
  --cat7-img: url(https://upforme.ru/uploads/001c/cf/a0/4/421802.png);
  --icon-old: url(https://forumstatic.ru/files/001c/92/fe/65200.png?v=1);
  --icon-new: url(https://forumstatic.ru/files/001c/92/fe/20998.png?v=1);
  --nav-top: 50px;
  --nav-left: 81px;
  --nav-rot: 0deg;
  --nav-color: #333333;
  --nav-color-hover: #5e2820;
  --pun-bg: #d0cecc;
  --sec-bg: #dcdad8;
  --link: #3a3633;
  --link-hover: #5e2820;
  --link-hover-text: #5e2820;
  --main-acc: #e2e0dd;
  --add-acc: #8e8a88;
  --meta-line: #8e8a88;
  --winter-warm: #6c6864;
  --winter-chip: #d5d3d1;
  --ann-bg: #5e2820;
  --ann-text: #ffffff;
  --ann2-bg: #e2e0dd;
  --ann2-hover-bg: #d5d3d1;
  --ann2-text: #33302e;
  --ann2-badge: #5e2820;
  --ann2-ring: rgba(255, 255, 255, .55);
  --theme-control-bg: #e2e0dd;
  --theme-control-text: #5e2820;
  --theme-control-border: #8e8a88;
  --nav-dd-bg: #e2e0dd;
  --nav-dd-border: #8e8a88;
  --nav-dd-link-bg: #5e2820;
  --nav-dd-link-text: #ffffff;
  --nav-dd-link-hover-bg: #f2f2ee;
  --nav-dd-link-hover-text: #5e2820;
  --best-link: #3a3633;
  --plate-bg: linear-gradient(120deg, #3e1712 0%, #5e2820 50%, #7f463e 100%);
  --btn-bg: #5e2820;
  --btn-text: #ffffff;
  --btn-border: #5e2820;
  --btn-hover-bg: #e2e0dd;
  --btn-hover-text: #5e2820;
  --cat8-img: linear-gradient(135deg, #5e282055, #5e282022);
  --cat-overlay: rgba(40, 36, 30, .35);
  background-color: #171717;
  /* меню, назви форумів, дрібниці */
  --nav-link-bg: transparent;
  --nav-link-hover-bg: transparent;
  --nav-link-text: #333333;
  --forum-title: #5e2820;
  --base-link: #3a3633e0;
  --go-down: #5e2820;
  --card-bg-main: #d0cecc;
  --login-field: #d5d3d1;
  --list-track: #33302e;
  --list-thumb: #8e8a88;
  --page-overlay: rgba(0, 0, 0, 0);
  --ann2-date: #ffffff;
}

/* Global
------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  border: none;
  text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  /*scrollbar-width: thin;
  scrollbar-color: var(--link-hover) var(--sec-bg);*/
}

/* Полоса прокрутки */
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  border-radius: 10px;
}

*::-webkit-scrollbar-track {
  background-color: var(--sec-bg);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--link-hover);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:active {
  background: var(--link-hover);
  border-radius: 10px;
}

/* Выделение текста */
::selection {
  background: var(--link-hover);
  color: var(--pun-bg);
}

:focus {
  outline: none;
}

/* Все ссылки */
a,
.punbb #pun-admain a {
  text-decoration: none;
  text-transform: lowercase;
  /*font-weight: 600;*/
  transition: all .2s linear 0s;
}

a:hover,
.punbb #pun-admain a:hover {
  color: var(--link-hover);
  font-weight: 400;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre {
  margin: 0;
}

h1,
h2 {
  padding: 10px 20px;
  font-weight: normal;
  font-size: 12px;
  text-align: center;
}

.multipage h1,
.multipage h2 {
  display: none;
}

.multipage thead {
  display: none;
}

ul,
dl,
li,
dd,
dt {
  list-style: none;
}

address,
em {
  font-style: normal;
}

.modlist,
.lastedit,
.punbb div#pun-live-rusff,
.punbb .topic a.sharelink {
  display: none;
}

/* Модальные окна, репутация, закладки */
#tags .container,
.post_report,
.post_reputation,
#MyBookmarks,
.inner.popup_graffiti,
.pun-modal .modal-inner,
.punbb-admin #pun-admin-award-form .inner {
  background: var(--sec-bg);
}

/* Формы
------------------------------------------- */

/* Оформление кнопок */
input.button,
#pun-admain input.button,
#sub4,
input[type="button"],
input[type="submit"] {
  padding: 5px 10px;
  cursor: pointer;
  transition: all .2s linear 0s;
  border-radius: 10px;
  color: var(--pun-bg);
  text-transform: lowercase;
  font-weight: 300;
  font-family: var(--font-family);
}

input.button:hover,
#pun-admain input.button:hover,
#sub4:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--link-hover);
}

/* Оформление полей ввода */
input[type="text"],
input[type="password"],
textarea,
select {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--sec-bg);
  color: #141414;
  font-family: var(--font-family);
  font-weight: 500;
}

textarea,
input,
select,
optgroup {
  font-size: 12px;
}

optgroup {
  font-weight: bold;
}

.checkfield input[type="checkbox"],
.radiofield input[type="radio"] {
  margin: 0 3px;
}

p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 20px;
  vertical-align: middle;
}

.formal .container {
  padding: var(--pad1);
}

.formsubmit {
  padding: 0;
  margin: 10px 0 0 0;
  text-align: center;
}

.formsubmit input,
.formsubmit a,
.formsubmit span {
  margin: 0 6px 0 0;
  background: #9393932e;
  font-family: var(--font-family);
  text-transform: lowercase;
  border: 1px solid var(--body-bg);
  border-radius: 29px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--textcolor);
}

fieldset {
  border: none;
}

fieldset legend {
  font-weight: bold;
  margin-bottom: 10px;
}

fieldset legend span {
  font-family: var(--font-family);
  font-style: italic;
  border: 1px solid var(--body-bg);
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--body-bg);
}

fieldset fieldset {
  border: none;
  margin: 0;
  padding: 0 0 8px 0;
}

#plng {
  border: 1px solid #3a3a3a !important;
  padding: 5px 5px 5px 8px !important;
  margin: 0 20px 0 5px !important;
  border-radius: 10px;
  border-color: var(--link-hover) !important;
}

.fs-box {
  padding: 5px 0;
}

.fs-box p,
.fs-box fieldset {
  padding: 0 0 8px 0;
}

.inline .inputfield,
.inline .selectfield,
.inline .passfield {
  float: left;
  margin-right: 10px;
}

.inline .infofield {
  clear: both;
}

.datafield br {
  display: none;
}

.required label,
.datafield span.input {
  font-size: 10px;
}

textarea,
.longinput input {
  width: 64%;
  margin: 0;
}

.hashelp {
  position: relative;
}

/* Админка
------------------------------------------*/
.punbb-admin .adcontainer,
.punbb-admin .adformal {
  border: none;
}

.punbb-admin sup.new {
  display: none;
}

/* Тело форума
------------------------------------------*/

/* Фон */
html {
  background: var(--link) url() no-repeat top center;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -10;
  background: linear-gradient(var(--page-overlay), var(--page-overlay)), url(https://upforme.ru/uploads/001c/88/79/2/77050.jpg) center top fixed no-repeat;
  background-size: cover;
  background-color: transparent;
}

/* Основной контейнер */
#pun {
  margin: 30px auto;
  width: 1050px;
  background: var(--pun-bg);
  color: var(--link);
}

/* Внутреннее тело */
.punbb {
  font: 11px Verdana;
  display: flex;
  flex-direction: column;
}

.punbb > div .container {
  padding: var(--pad1);
}

/* Навигационные ссылки */
#pun-navlinks {
  order: -1;
  background: transparent;
  position: absolute;
  top: 0px; /* було 0 */
  left: 0;
  width: 100%;
  z-index: 100;
  font: 700 1.2em/100% 'mulish';
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
}

#pun-navlinks a {
  text-decoration: none;
  margin: 12px 0;
  color: var(--nav-link-text) !important;
  font: 600 14px fine;
  text-transform: lowercase;
  letter-spacing: .5px;
  width: auto;
  text-align: center;
  /* height: 32px; */
  border-radius: 10px;
  padding: 0px 12px 3px;
  transition: .5s ease-in-out;
  background: var(--nav-link-bg);
}

#pun-navlinks a:hover {
  color: white !important;
  background: var(--nav-link-hover-bg);
  box-shadow: 0 1px 11.7px 0 rgba(39, 43, 54, .6);
}

#pun-navlinks .container {
  text-align: center;
  padding: 16px;
  font-family: 'fine';
  font-size: 18px;
}

#pun-navlinks li {
  padding: 0 5px;
  display: inline;
}

/* Пользовательские ссылки */
#pun-ulinks {
  font-family: var(--font-family);
  font-size: 10px;
  text-transform: lowercase;
  margin-bottom: -5px;
}

#pun-ulinks li::before {
  content: '';
  margin-right: 3px;
}

#pun-ulinks .container {
  text-align: center;
}

#pun-ulinks li {
  padding: 0 5px;
  display: inline;
}

#pun-status {
  font-family: var(--font-family);
  text-transform: lowercase;
  font-size: 11px;
  /* text-align: center; */
}

#pun-status .container strong {
  font-weight: normal;
}

#pun-status span {
  white-space: nowrap;
  margin-right: 5px;
}

#pun-status .status-right {
  display: none;
}

/* Хлебные крошки */
.crumbs.container {
  text-align: center;
  font-family: var(--font-family);
  font-size: 11px;
  text-transform: lowercase;
}

#pun-index .crumbs.container {
  display: none !important;
}

/* Копирайт */
#pun-about {
  height: 200px;
  background: url(https://forumstatic.ru/files/001c/8b/c7/36401.jpg) center var(--main-acc);
  /* background-blend-mode: exclusion; */
  background-image: var(--footer-img);
}

#pun-about .container {
  font-size: 0 !important;
}

/* Главная таблица форума
------------------------------------------*/
.main table {
  table-layout: fixed;
  /* background: #eaeaea; */
  /* border: 1px solid var(--add-acc); */
  border-radius: 10px;
  width: 100%;
}

.main th {
  padding: 5px 10px;
}

.main td {
  padding: 10px;
}

.tcl {
  width: 50%;
}

.tc2,
.tc3,
.tcmod {
  text-align: center;
  width: 10%;
}

#pun-index .tc2,
#pun-index .tc3,
#pun-index .tcmod {
  visibility: hidden;
}

.tcr {
  width: 33%;
}

#pun-searchtopics .tcl,
#pun-modviewforum .tcl {
  width: 40%;
}

#pun-searchtopics .tc2 {
  text-align: left;
  width: 20%;
}

#pun-debug table .tcl {
  width: 15%;
}

#pun-debug .tcr {
  width: 90%;
}

tbody.hasicon td.tcl {
  padding-left: 40px;
}

#pun-index .hasicon td.tcl {
  padding-left: 24px;
  width: 60%;
}

/* Аватар пользователя */
#pun-index td .user-avatar {
  float: right;
  margin: 0 0 0 12px;
}

.punbb td .user-avatar .avatar-image {
  outline: 1px solid var(--main-acc);
  transition: all .2s linear 0s;
}

/* Иконки тем и форумов */
div.icon {
  position: absolute;
  margin-left: -30px;
  width: 20px;
  height: 20px;
  background: var(--link) url() no-repeat top center;
}

#pun-index div.icon {
  margin-left: -54px;
  width: 12px;
  height: 45px;
  background: var(--add-acc) url() no-repeat top center;
  border-radius: 0px 5px 5px 0px;
}

#pun-index tr.inew div.icon {
  background: var(--link-hover) url() no-repeat top center;
}

.multipage {
  margin-top: 10px;
}

.linkst {
  position: relative;
  padding: var(--pad2);
  display: flex;
  justify-content: space-between;
  margin: 0 30px 10px;
  text-transform: lowercase;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 10px;
  color: var(--textcolor);
}

.linkst .pagelink,
.linksb {
  text-transform: lowercase;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--textcolor);
}

.linkst .postlink {
  text-align: right;
}

.linksb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#pun-viewtopic .linksb,
#pun-main.main.multipage .linksb {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 30px 10px;
}

.linksb .pagelink {
  order: -1;
}

.subscribelink {
  width: 100%;
  text-align: right;
}

.linksb noindex {
  order: 1;
}

.linksb .postlink {
  margin-left: auto;
  text-align: right;
}

.postlink.long {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.postlink.long .new-topic {
  padding-right: 5px !important;
}

.postlink.long .new-topic,
.postlink.long .new-poll {
  background: var(--link);
  padding: 2px 5px;
  border-radius: 10px;
}

.postlink.long .new-topic:hover,
.postlink.long .new-poll:hover {
  background: var(--link-hover);
}

#pun .postlink.long a {
  color: #fff;
}

.topic-users-in {
  font-family: var(--font-family);
  font-size: 11px;
}

/* Меню модератора, RSS, Atom */
.modmenu .container {
  padding: var(--pad3);
  text-align: right;
}

.modmenu .container strong {
  float: left;
}

.modmenu input {
  margin-left: 10px;
}

.modmenu strong ::before {
  content: '\f591';
  font-family: 'Font Awesome 6 Pro';
  padding: 0 6px 0 0;
  font-weight: 600;
}

.modmenu strong {
  font-family: var(--font-family);
  font-size: 11px;
}

/* Главная страница
------------------------------------------*/
#pun-index thead {
  display: none;
}

/* --- Категории --- */
.category {
  width: 990px;
  margin: 1px auto;
  transition: all .09s linear !important;
  -webkit-transition: all .09s linear !important;
  -moz-transition: all .09s linear !important;
  -o-transition: all .09s linear !important;
  margin-bottom: 20px;
  min-height: 1px;
}

.category .container {
  box-sizing: border-box;
}

#pun-index .tclcon h3 a {
  font-family: 'fine';
  font-weight: 500;
  font-size: 28px;
  font-style: italic;
  text-transform: lowercase;
}

#pun-index .tclcon h3 a:hover {
  letter-spacing: 0px;
}

#pun-index .tclcon .desktext {
  font-family: var(--second-family);
  font-size: 11px;
  text-transform: lowercase;
  margin-top: 5px;
  margin-bottom: 10px;
  color: var(--link);
  width: auto;
  max-width: 650px;
}

#pun-index .tclcon .desklink {
  display: flex;
  flex-flow: wrap;
  gap: 10px;
  margin-top: 16px;
}

#pun-index .tclcon .desklink a {
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid #4155496f;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 11px;
  text-transform: lowercase;
  background: var(--main-acc);
  border-color: var(--add-acc);
  color: var(--link-hover-text);
}

#pun-index .tclcon .desklink a:hover {
  font-weight: 400;
  background: var(--link-hover);
  color: #fff;
}

#pun-index .category .tcr {
  /* border-left: 1px dashed #81684f4a; */
  text-align: right;
}

#pun-index .lastpost-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 11px;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  margin-left: auto;
  width: 200px;
}

#pun-index .lastpost {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  text-transform: lowercase;
}

#pun-stats {
  font-family: var(--font-family);
  text-transform: lowercase;
  font-size: 11px;
}

/* Заголовок статистики */
#pun-stats h2 {
  display: none;
}

#pun-stats .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 950px;
  margin: 25px auto 0;
  box-sizing: border-box;
  padding: 10px 0;
  /*border-top: 1px dashed #81684f4a;*/
}

#pun-stats li.item1,
#pun-stats li.item2,
#pun-stats li.item3,
#pun-stats li.item4 {
  text-align: center;
}

#pun-stats li.item1 span,
#pun-stats li.item2 span,
#pun-stats li.item3 span,
#pun-stats li.item4 span {
  display: block;
  font-weight: 600;
}

#pun-stats li.item1 strong,
#pun-stats li.item2 strong,
#pun-stats li.item3 strong,
#pun-stats li.item4 strong {
  font-weight: 400;
}

/* Активные пользователи за сутки */
li#onlinelist {
  width: 100%;
  padding: 10px 0;
  /*border-block: 1px dashed #81684f4a;*/
  text-align: justify;
}

li#onlinelist div > a {
  font-weight: 700;
}

/* Шапка форума
------------------------------------------*/
#pun-title {
  background: url(https://upforme.ru/uploads/001c/cf/a0/4/987211.jpg);
  width: 1050px;
  height: 535px;
  background-image: var(--header-image);
  background-position: center top;
  background-repeat: no-repeat;
}

#pun-title .title-logo {
  display: none;
}

/* Объявление
------------------------------------------*/
#pun-announcement h2 {
  display: none;
}

/* Подвал сайта
------------------------------------------*/
#html-footer .container {
  padding: 0;
}

/* Баннеры */
.banners {
  padding: var(--pad1);
}

.banners .container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  height: 73px;
  justify-content: center;
  overflow: auto;
}

.banners a {
  opacity: .7;
}

.banners a:hover {
  opacity: 1;
}

/* Тема форума
------------------------------------------*/
.post {
  margin: 10px auto 0;
  border-radius: 12px;
  background: var(--sec-bg);
  padding: 8px 0 0;
  text-transform: none;
}

#pun-viewtopic .post {
  width: 998px;
}

.toppost,
.topicpost {
  margin-top: 0;
}

/* Контейнер сообщения */
.punbb .post .container {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  padding: var(--pad2);
}

/* Номер сообщения */
.post h3 strong {
  text-align: right;
}

/* Автор сообщения */
.post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/8b/c7/2/219267.jpg); /* фон за замовчуванням */
  width: var(--pwidth);
  text-align: center;
  box-sizing: border-box;
  background: linear-gradient(0deg, var(--card-bg) 70%, rgba(0, 0, 0, 0) 100%), var(--user-bg) top center / 100% auto no-repeat, var(--card-bg);
  margin-bottom: 15px;
  padding: 40px 10px 20px 10px;
  position: relative;
  --card-bg: var(--card-bg-main);
}

/* фон окремим юзерам: змінюється тільки картинка, розмиття лишається */

/*
#pun-viewtopic .post[data-user-id="5"]  .post-author { --user-bg: url(https://upforme.ru/uploads/001c/8c/2b/5/701926.png); }
#pun-viewtopic .post[data-user-id="6"]  .post-author { --user-bg: url(https://upforme.ru/uploads/001c/8c/2b/6/560386.png); }*/
#pun-viewtopic .post[data-user-id="3"] .post-author {
  --user-bg: url(https://i.pinimg.com/1200x/d8/05/71/d80571d7e2cc676f52a7aa848134b313.jpg);
}

#pun-viewtopic .post[data-user-id="4"] .post-author {
  --user-bg: url(https://i.pinimg.com/736x/47/3e/5b/473e5b97843f9748fc8bd675c2680789.jpg);
}

#pun-viewtopic .post[data-user-id="2"] .post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/8c/2b/6/560386.png);
}

#pun-viewtopic .post[data-user-id="6"] .post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/cf/a0/6/161557.png);
}

#pun-viewtopic .post[data-user-id="58"] .post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/cf/a0/6/73044.png);
}

#pun-viewtopic .post[data-user-id="75"] .post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/cf/a0/6/222806.jpg);
}

#pun-viewtopic .post[data-user-id="57"] .post-author {
  --user-bg: url(https://i.pinimg.com/736x/4c/5e/d5/4c5ed50eec23a60e7c7cae2db53e27c5.jpg);
}

#pun-viewtopic .post[data-user-id="70"] .post-author {
  --user-bg: url(https://upforme.ru/uploads/001c/8c/2b/6/560386.png);
}

.post-author ul {
  padding: 10px;
  background: var(--sec-bg);
  border-radius: 8px;
}

.pa-author {
  font-family: var(--second-font);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
}

.pa-title {
  font-family: var(--second-family);
  font-style: italic;
  font-weight: 400;
  font-size: 9px;
  text-transform: lowercase;
  padding: 5px 0;
  text-align: center;
  width: 180px;
  margin: 0 auto 5px;
}

.pa-avatar img {
  border-radius: 4px;
}

.pa-fld1 {
  font-family: 'fine';
  /* font-style: italic; */
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  margin: 5px auto 0;
  text-align: center;
  /* background: #814f4f; */
  width: fit-content;
  padding: 2px 1px;
  border-radius: 10px;
  max-width: 180px;
  box-sizing: border-box;
}

.pa-fld2 {
  font-size: 10px;
  text-transform: lowercase;
  padding: 5px 0;
  /* border-bottom: 1px dashed #81684f4a; */
  /* border-top: 1px dashed #81684f4a; */
  text-align: center;
  width: 180px;
  margin: 0px auto 5px;
}

.pa-posts,
.pa-respect,
.pa-fld3 {
  display: inline-flex;
  gap: 2px;
  font-size: 10px;
  padding: 0px 5px !important;
  margin-top: 4px !important;
  width: auto;
  text-transform: lowercase;
  line-height: 13px;
  height: auto;
  margin-bottom: 2px;
}

.pa-fld3 a {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pa-online,
.pa-last-visit {
  display: none !important;
}

/* Текст сообщения */
.post-body {
  width: calc(100% - var(--pwidth));
  position: relative;
}

.post-box {
  padding: 10px 10px 10px 20px;
}

.post-links {
  margin-left: var(--pwidth);
  width: 100%;
  text-transform: lowercase;
  font-family: var(--font-family);
  font-size: 12px;
}

.post-links ul {
  padding: 0;
  margin-left: calc(var(--pwidth) * -1);
  text-align: right;
}

.post-links li {
  display: inline;
}

.post-links li:not(:first-of-type) {
  padding-left: 10px;
}

.pl-email,
.pl-website {
  float: left;
}

.clearer {
  clear: both;
  height: 0;
  font-size: 0;
}

.punbb .post td {
  border: 0px transparent !important;
}

pre {
  font: 12px/140% Inter, monaco, "bitstream vera sans mono", "courier new", courier, monospace;
}

.post-content em {
  font-style: italic;
}

.post .post-content td {
  border-width: 0px !important;
}

.post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}

.post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 150%;
  text-align: justify;
  text-transform: none;
}

.post-content img {
  vertical-align: middle;
}

.scrollbox {
  width: 100%;
  overflow: auto;
  max-height: 200px;
}

.quote-box,
.code-box {
  margin: 20px 10px 10px;
  padding: 12px;
  border: 1px solid var(--add-acc);
  background: var(--pun-bg);
  border-radius: 12px;
  position: relative;
}

.code-box strong a {
  color: var(--link);
}

.quote-box cite,
.code-box strong {
  font-weight: bold;
  font-style: normal;
  padding: 3px 20px;
  border-radius: 15px;
  position: absolute;
  top: -6px;
  margin-left: 15px;
  font-family: var(--font-family);
  font-size: 11px;
  text-transform: lowercase;
  transform: translateY(-50%);
}

.code-box strong.legend {
  display: block;
  padding-bottom: 5px;
  font-weight: bold;
  font-style: normal;
}

.post-content .spoiler-box>div::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--link-hover);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all .3s linear 0s;
}

.post-content .spoiler-box > div.visible::before {
  transform: translateY(-50%) scale(50%);
}

.post-content .spoiler-box>div {
  background: transparent !important;
  padding-left: 25px !important;
  position: relative;
}

.post-sig dt {
  border-bottom: 1px solid var(--link-hover);
  width: 300px;
  margin: 10px auto;
}

#main-reply {
  box-sizing: border-box;
  border-radius: 0 0 10px 10px;
}

#post-form legend >span {
  display: none;
}

/* форма відповіді: фон як у форуму, світліше лише саме поле */
#pun #post-form,
#pun #post-form .container {
  background-color: var(--pun-bg);
}

#tags {
  position: relative;
}

#tags .container {
  padding: var(--pad3) !important;
  top: 0 !important;
}

/* Профиль и личные сообщения
------------------------------------------*/
#pun-profile {
  font-family: var(--font-family);
  text-transform: lowercase;
}

#pun-profile h1 span {
  font-size: 15px;
  padding: 5px;
  border-top: 1px dashed #81684f4a;
  border-bottom: 1px dashed #81684f4a;
}

#pun-profile h1 {
  display: none !important;
}

#viewprofile tr {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

#viewprofile-next #profile-left {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  outline: 10px solid var(--main-acc);
  padding-bottom: 10px;
}

#viewprofile-next #profile-left li#profile-name strong {
  font-family: var(--second-family);
  font-style: italic;
  font-weight: 800 !important;
  font-size: 15px;
  text-transform: uppercase;
}

#profile-left li#profile-title strong {
  width: 180px;
  display: block;
  text-align: center;
}

#profile .container {
  padding-left: 200px;
  min-height: 100px;
}

#profilenav {
  float: left;
  width: 180px;
  margin-left: -180px;
}

#profilenav h2 {
  display: none;
}

#viewprofile h2,
#profilenav h2 {
  padding: 0;
  margin: 0;
}

#profilenav li {
  padding: 0 0 13px;
}

#profilenav li a {
  /* background: var(--main-acc); */
  text-align: center;
  border-radius: 10px;
  padding: 2px 10px;
}

#viewprofile li {
  padding: 5px 0;
}

#profile-right li {
  display: flex;
}

#profile-right li span {
  width: 146px;
  flex-shrink: 0;
  background: var(--main-acc);
  text-align: center;
  padding: 2px 0;
  border-radius: 10px;
}

#profile-left li strong,
#profile-right li strong {
  font-weight: normal !important;
}

img.avatardemo {
  float: right;
  margin: 0 0 8px 18px;
}

#pun-messages .clearer {
  display: none;
}

/* Прочие страницы
------------------------------------------*/
#pun-userlist .formal,
#pun-userlist .formal .container {
  margin-bottom: 0;
}

#pun-userlist .tc2 {
  text-align: left;
  width: 20%;
}

#pun-userlist .tcl {
  width: 40%;
}

.info .container {
  padding: var(--pad3);
}

.info .container .backlink {
  padding-top: 8px;
}

.info-box {
  margin: 0 0 10px 0;
}

.info-box * {
  padding: 0 0 5px 0;
}

.info-box .legend {
  font-weight: bold;
}

.jGrowl-notification .jGrowl-close {
  position: relative;
  right: 6px;
}

.tipsy #respect figcaption {
  margin-top: 0;
}

/* Кнопки прокрутки вверх и вниз
-------------------------------------------------------*/
.go-up,
.go-down {
  cursor: pointer;
  z-index: 9999;
  display: none;
  position: fixed;
  margin-left: 1050px !important;
  box-sizing: border-box;
  transition: all .3s linear 0s;
}

.go-up {
  top: 420px;
  width: 20px;
  height: 60px;
  line-height: 0px;
  border-radius: 0px 10px 10px 0px;
  text-align: center;
  padding-left: 0px;
  background: var(--link-hover);
}

.go-down {
  top: 497px;
  width: 20px;
  height: 60px;
  line-height: 0px;
  text-align: center;
  padding-left: 0px;
  border-radius: 0px 10px 10px 0px;
  background: var(--go-down);
}

.go-down:hover,
.go-up:hover {
  opacity: 1;
}

/* ---------- вікно ---------- */
.reveal-modal {
  --m-line: 1px solid color-mix(in srgb, var(--link-hover) 28%, transparent);
  visibility: hidden;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  width: 870px;
  height: 640px;
  padding: 0;
  display: block;
  box-sizing: border-box;
  background: url(https://forumstatic.ru/files/001c/89/b1/33747.png) no-repeat top left;
  border: var(--m-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 200vmax rgba(39, 43, 54, .72), 0 18px 50px rgba(0, 0, 0, .35);
}

.reveal-modal::before {
  display: none;
}

.reveal-modal .close-reveal-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  font-size: 22px;
  line-height: .5;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  color: var(--link);
  opacity: .55;
  transition: opacity .2s ease;
}

.reveal-modal .close-reveal-modal:hover {
  opacity: 1;
  color: var(--link-hover);
}

/* контейнери всередині: без старого темного фону */
.reveal-modal .character {
  width: 100%;
  height: 358px;
  max-height: none;
  padding: 0;
  display: block;
  background: none;
  border: 0;
  overflow: hidden;
}

.reveal-modal .charinner {
  display: flex;
  width: 100%;
  height: 358px;
  gap: 0;
  flex-wrap: nowrap;
}

.charinner * {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--link-hover) 55%, transparent) transparent;
}

/* ---------- підпис розділу ---------- */
.ch_title {
  position: absolute;
  top: -10px;
  left: 14px;
  z-index: 2;
  margin: 0;
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: var(--link-hover);
  color: #f1f1ef;
  font: 400 12px/1 var(--second-font);
  letter-spacing: .6px;
  text-transform: lowercase;
  white-space: nowrap;
}

/* =========================================================
   ЛІВА КОЛОНКА: персонаж + ТВІНКИ
   ========================================================= */
.ch_twins {
  flex-shrink: 0;
  width: 280px;
  height: 340px;
  padding: 18px 14px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* картка персонажа */
.me {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.me_avatar {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: var(--m-line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  /* filter: grayscale(100%);  &#8592; розкоментуй, якщо аватар має бути чорно-білим */
}

.me_text {
  min-width: 0;
  max-height: 80px;
  overflow: auto;
}

.me_text h4 {
  margin: 0 0 4px;
  font-family: var(--second-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--link-hover);
}

.me_text p {
  margin: 0;
  font-family: var(--second-family);
  font-size: 9px;
  line-height: 1.3;
  color: color-mix(in srgb, var(--link) 72%, transparent);
}

/* список твінків */
.twins_box {
  position: relative;
  flex: none;
  height: 208px;
  padding: 18px 10px 10px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.twins_inner {
  position: absolute;
  inset: 18px 10px 10px 10px; /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.twin_item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--winter-chip);
}

.twin_item img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.twin_item a {
  font-family: var(--second-font);
  font-size: 14px;
  line-height: 1.1;
  color: var(--link);
}

.twin_item a:hover {
  color: var(--link-hover);
}

/* =========================================================
   ЦЕНТР: ФОНИ
   ========================================================= */
.ch_bgs {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  width: 270px;
  height: 324px;
  margin-left: 11px;
  padding: 22px 12px 12px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.bgs_inner {
  position: absolute;
  inset: 22px 8px 8px 8px;
  /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 72px;
  gap: 5px;
}

.bgs_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: var(--m-line);
  display: block;
}

/* =========================================================
   НИЖНЯ КОЛОНКА: нагороди, колекції та подарунки
   ========================================================= */
.ch_awards {
  position: relative;
  flex-shrink: 0;
  width: 410px;
  height: 130px;
  margin-left: -561px;
  padding: 22px 12px 12px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.awards_inner {
  position: absolute;
  inset: 22px 8px 8px 8px;
  /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.awards_inner img {
  border-radius: 8px;
  border: var(--m-line);
  display: block;
}

.ch_gifts {
  position: relative;
  flex-shrink: 0;
  margin-top: -5px;
  width: 410px;
  height: 130px;
  margin-left: -561px;
  padding: 22px 12px 12px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.gifts_inner {
  position: absolute;
  inset: 22px 8px 8px 8px;
  /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.gifts_inner img {
  border-radius: 8px;
  border: var(--m-line);
  display: block;
}

.ch_coll {
  position: relative;
  flex-shrink: 0;
  width: 410px;
  height: 271px;
  margin-top: -291px;
  margin-left: -133px;
  padding: 22px 12px 12px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.coll_inner {
  position: absolute;
  inset: 22px 8px 8px 8px;
  /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  grid-auto-rows: 72px;
}

.coll_inner img {
  border-radius: 8px;
  border: var(--m-line);
  display: block;
}

/* =========================================================
   ПРАВА КОЛОНКА: ПЛАШКИ (лампаси) + КУПОНИ
   ========================================================= */
.ch_right {
  flex-shrink: 0;
  width: 304px;
  height: 358px;
  padding: 26px 14px 18px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ch_plates {
  position: relative;
  flex: none;
  height: 200px;
  padding: 0 8px 8px 10px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.plates_inner {
  position: absolute;
  inset: 20px 8px 10px 8px; /* жорсткі межі: все, що не влізло, прокручується */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* кожна плашка: горизонтальна картинка 220&#215;41 */
.plates_inner img {
  display: block;
  flex-shrink: 0;
  width: 220px;
  height: 41px;
  object-fit: cover;
  border-radius: 6px;
}

.plates_inner .tooltip {
  display: block;
  flex-shrink: 0;
}

/* роздільник у сітці */
.divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0;
  opacity: .35;
}

.divider span {
  width: 80%;
  height: 0;
  border-bottom: 1px dashed var(--link);
}

/* підказки */
.tooltip {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.tooltip .tooltiptext {
  position: fixed; /* позицію виставляє маленький скрипт */
  z-index: 10;
  transform: translate(-50%, -100%);
  width: max-content;
  max-width: 110px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--link-hover);
  color: #f1f1ef;
  font: 500 9px/1.25 var(--second-family);
  text-align: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* купони */
.ch_coupons {
  position: relative;
  flex-shrink: 0;
  height: 96px;
  padding: 20px 10px 8px;
  box-sizing: border-box;
  background: var(--pun-bg);
  border: var(--m-line);
  border-radius: 10px;
}

.coupons_inner {
  position: absolute;
  inset: 20px 10px 8px 10px; /* жорсткі межі: все, що не влізло, прокручується */
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coupon_item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--sec-bg);
  border-radius: 10px;
}

.coupon_item::before {
  content: '\f145';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--link-hover);
  color: #f1f1ef;
  font: 900 10px/1 'Font Awesome 6 Pro';
}

.coupon_item span {
  display: block;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.1;
  color: var(--link);
}

.coupon_item p {
  margin: 1px 0 0;
  font-family: var(--second-family);
  font-size: 8px;
  line-height: 1.2;
  text-transform: lowercase;
  color: color-mix(in srgb, var(--link) 70%, transparent);
}

.plads-img-grid,
.plads-img-grid tr,
.plads-img-grid td {
  border: none !important;
  background: transparent;
}

/* Формы
------------------------------------------- */
#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;
}

.noNull:before {
  content: "+";
  font-size: 9px;
  display: inline-block;
  margin-left: -6px;
  margin-top: 0px;
  position: absolute;
}

div .post-rating p>a {
  outline: 1px solid transparent;
  font-weight: 700;
  background: url(https://forumstatic.ru/files/001b/a6/d4/26514.svg) no-repeat center;
  background-size: 38px auto;
  position: relative;
  padding-left: 1px;
  z-index: 100;
  width: 38px;
  height: 38px;
  text-align: center;
  font-size: 11px !important;
  display: inline-block;
  vertical-align: middle;
  line-height: 34px;
  letter-spacing: -1px;
  transition: filter .3s ease, color .3s ease;
  color: var(--link);
}

.mylike .post-rating p>a,
.post-rating.mylike p>a,
div .post-rating p>a:hover {
  filter: brightness(.78); /* менше число = темніше (0.6 темніше, 0.9 ледь помітно) */
}

div.dark-style .post-rating p>a {
  color: var(--link-hover) !important;
}

div.post-vote {
  margin-bottom: 65px;
}

div.post-vote p>a {
  font-size: 0 !important;
  position: absolute;
  cursor: pointer;
  z-index: 200;
  width: 23px;
  height: 23px;
  background: url(https://forumstatic.ru/files/0012/d8/04/75043.png?) no-repeat;
  display: block;
  background-size: 100%;
  margin-left: 29px;
  margin-top: 42px;
}

.post.dark-style div.post-vote p>a {
  background: url(https://forumstatic.ru/files/0012/d8/04/38128.png?) no-repeat;
  background-size: 100%;
}

#pun-navlinks a:not(.NextShow)+span.odd {
  display: none !important;
}

#pun-navlinks a#New-exit {
  background: transparent !important;
  position: absolute;
  z-index: 100000 !important;
  margin-top: -1px !important;
  margin-left: 30px !important;
  display: inline-block !important;
}

#pun-navlinks #New-exit img {
  position: absolute;
  width: 18px;
  height: auto;
  transition: .63s;
}

#pun-navlinks #New-exit:hover img {
  transition: .63s;
  opacity: .42;
}

.punbb #pun-navlinks a#New-exit:before {
  content: none;
}

.punbb #pun-navlinks #form-login input {
  border: 1px solid #5D6755;
  text-rendering: auto;
  color: #000000 !important;
  margin-top: 4px !important;
  margin-bottom: 3px !important;
  border-radius: 5px;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block !important;
  text-align: center;
  box-sizing: border-box;
  height: 20px;
  width: 110px;
  padding: 4px;
  font: normal normal 400 11px/normal Verdana !important;
  border-color: var(--link-hover);
}

.punbb #pun-navlinks #form-login input[type="submit"] {
  margin: 13px 0 2px !important;
  box-sizing: border-box;
  height: 26px;
  width: 67px;
  font-size: 11px !important;
  color: #ffffff !important;
  border: 1px outset rgba(161,172,152,.8) !important;
  text-align: center;
  padding: 0 12px !important;
  border-radius: 13px;
  font-family: Verdana !important;
  font-weight: 700 !important;
  transition: all 0.5s ease-in-out 0s;
  cursor: pointer;
  /*border: 2px outset #83693E!important; 
color:#565462!important;
font-weight:700!important; */
  background: var(--link-hover);
  border-color: var(--link-hover) !important;
}

.punbb #pun-navlinks #form-login input[type="submit"]:hover {
  opacity: 0.6;
}

.punbb #pun-navlinks #form-login {
  min-height: 183px;
  border: 1px solid #626262;
  border-radius: 0px 0px 6px 6px;
  display: block;
  font: 11px "Verdana";
  left: 0px;
  padding: 8px 12px;
  margin: 1px 0;
  position: absolute !important;
  text-align: center;
  word-spacing: normal;
  white-space: normal;
  /*text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.235);*/
  text-transform: none;
  letter-spacing: 0.2px !important;
  top: 6px;
  width: 122px;
  z-index: 100000 !important;
  background: var(--sec-bg);
  border-color: var(--link-hover);
  color: var(--link);
}

#pun-navlinks #navlogin #form-login {
  margin-left: -30px; /*Подвижки формы влево от вход*/
}

#pun-navlinks #navlogout #form-login {
  margin-left: -30px; /*Подвижки формы влево от выход*/
}

.ismoderator #pun-navlinks #navlogout #form-login {
  margin-left: -30px !important; /*Подвижки формы влево от выход для АМС*/
}

.punbb #pun-navlinks #form-login a.Rega,
.punbb #pun-navlinks #form-login a.Forgot {
  position: relative;
  text-transform: none !important;
  z-index: 20;
  cursor: pointer;
  font: normal normal 200 10px/normal Verdana !important;
  display: inline;
  background: none !important;
  padding: 0 0 0 3px !important;
  font-size: 9px !important;
  /*text-shadow: 1px 1px 1px rgba(40, 52, 61, 0.39);*/
  color: var(--link-hover) !important;
}

.punbb #pun-navlinks #form-login a.Rega:before,
.punbb #pun-navlinks #form-login a.Forgot:before {
  content: none;
}

#form-login input.none {
  outline: red dashed 2px !important;
}

#List-UserNames {
  position: absolute;
  margin-top: -9px;
  min-height: 90px;
  width: 220px;
  right: 100%;
  padding: 12px 19px 12px 17px;
  border-style: solid; /* Стиль границы */
  border-width: 1px 1px 1px 1px; /* Толщина границы */
  border-radius: 0 0 0px 6px;
  text-align: center;
  /*box-shadow:inset 0.23em 0 3.4em rgba(20,20,11,.99);*/
  background: var(--sec-bg);
  border-color: var(--link-hover);
}

.punbb #List-UserNames ul {
  padding: 0;
  overflow: hidden;
  overflow-y: auto;
  min-height: 36px;
  max-height: 72px; /*Видимое число Ников без прокрутки! сейчас - 4*/
}

.punbb #List-UserNames li {
  display: block !important;
  position: relative;
  text-transform: none !important;
  text-align: left;
  padding-left: 5px !important;
  margin: 1px auto !important;
  padding: 2px 0;
  transition: .33s;
  background: var(--link-hover);
  box-shadow: 2px 2px 1px var(--list-thumb);
}

.punbb #List-UserNames li:hover {
  opacity: .84;
  /*background:#83693E!important;*/
}

.punbb #List-UserNames li>b {
  cursor: pointer;
  opacity: .9;
  color: #fffefe;
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
}

.punbb #List-UserNames li>b:hover {
  opacity: .93;
  text-shadow: 1px 1px 1px rgba(0,0,0,.6);
}

#List-UserNames ul::-webkit-scrollbar {
  width: 3px;
  height: 5px;
}

#List-UserNames ul::-webkit-scrollbar-track {
  border: 0px solid #d7d8d9;
  box-shadow: none;
  background-color: var(--list-track);
}

#List-UserNames ul::-webkit-scrollbar-thumb {
  border: 0px solid #d7d8d9;
  box-shadow: none;
  background-color: var(--list-thumb);
}

#List-UserNames ul li>span {
  display: inline-block;
  padding: 0 3px;
  position: absolute;
  opacity: .88;
  cursor: pointer;
  top: 0;
  bottom: 0;
  right: 2px;
  color: #fff;
  font: normal normal 700 10.56px/normal Verdana;
  text-shadow: 1px 1px 1px rgba(0,0,0,.6);
}

#List-UserNames ul:empty:before {
  display: inline-block;
}

#navlogin #exit-2 {
  display: none;
}

#pun:not(.isguest) #navlogout .Rega,
#pun:not(.isguest) #navlogout .Forgot {
  display: none !important;
}

#List-UserNames ul+span {
  display: inline-block;
  padding: 6px 0 8px 0;
  text-align: left;
  font: normal normal 400 10.56px/normal Verdana;
}

.punbb #List-UserNames input {
  border: 1px solid #5D6755 !important;
  text-shadow: none !important;
  color: #333 !important;
  font: normal normal 400 11px/normal Verdana !important;
  /* box-shadow: inset 0px 0px 3px rgba(100,102,80,.97); */
  margin-top: 9px;
  padding: 2px !important;
  vertical-align: middle;
}

#List-UserNames ul+span b {
  font: normal normal 400 13px/normal Verdana;
  padding: 0 3px;
  color: #000000;
}

#List-UserNames .a1-copy {
  display: inline-block !important;
  cursor: pointer;
  float: left;
}

#List-UserNames .a1-paste {
  cursor: pointer;
  display: inline-block !important;
  float: right;
}

.tipsy.a11 {
  font: normal normal 400 11px/normal Verdana !important;
  margin-top: -22px !important;
  margin-left: 148px !important;
  max-width: 170px;
}

#pun-index #pun-crumbs1 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#pun-index #pun-crumbs1 p.container {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ---------- Базові поверхні й текст ---------- */
html,
body {
  color: var(--link);
}

#pun a,
#pun .punbb #pun-admain a {
  color: var(--link);
}

#pun a:hover,
#pun .punbb #pun-admain a:hover {
  color: var(--link-hover-text);
}

#pun-index .category .container,
#pun .post,
#pun .post-author ul,
#pun .quote-box,
#pun .code-box,
#pun .formal .container,
#pun #tags .container,
#pun .post_report,
#pun .post_reputation,
#pun #MyBookmarks,
#pun .inner.popup_graffiti,
#pun .pun-modal .modal-inner {
  background-color: var(--sec-bg);
  color: var(--link);
}

#pun .post h3 {
  color: var(--link);
  position: absolute;
  top: 18px; /* вирівняно по верху картки автора */
  left: calc(var(--pwidth) + 40px);
  right: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 30px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--add-acc);
  border-radius: 12px;
}

#pun-index .tclcon h3 a,
#pun-index .tclcon h3 a:hover {
  color: var(--forum-title);
}

#pun input[type="text"],
#pun input[type="password"],
#pun textarea,
#pun select {
  background: var(--sec-bg);
  color: var(--link);
  border: 1px solid var(--add-acc);
}

#pun .quote-box cite,
#pun .code-box strong {
  background: var(--main-acc);
  color: var(--link);
}

#pun .post-author {
  color: var(--link);
}

/* ---------- Додатково для ТЕМНОЇ теми ---------- */
:root[data-forum-theme="dark"] #pun .post .post-author {
  background-color: var(--pun-bg);
}

:root[data-forum-theme="dark"] #pun .texttable,
:root[data-forum-theme="dark"] #pun .textact {
  background-color: var(--sec-bg);
  color: var(--link);
}

/* ---------- Розміщення елементів у шапці по темах ---------- */
.hdr-quote,
.hdr-best {
  position: absolute;
}

.hdr-quote {
  top: var(--quote-top);
  margin-left: var(--quote-left);
  width: var(--quote-w);
  height: var(--quote-h);
}

.hdr-best1 {
  top: var(--b1-top);
  margin-left: var(--b1-left);
  width: 70px;
  transform: rotate(var(--b1-rot));
}

.hdr-best2 {
  top: var(--b2-top);
  margin-left: var(--b2-left);
  width: 70px;
  transform: rotate(var(--b2-rot));
}

.hdr-best3 {
  top: var(--b3-top);
  margin-left: var(--b3-left);
  width: 90px;
  transform: rotate(var(--b3-rot));
}

.hdr-best a {
  color: var(--best-link) !important;
}

/* навігація "navigation" у шапці (стилі з HTML-верху лишаються, тут лише позиція) */
html .spirit_nav-wrap {
  top: var(--nav-top);
  margin-left: var(--nav-left);
}

html .nav_button {
  color: var(--nav-color);
  /*  transform: rotate(var(--nav-rot));*/
}

/* ---------- Плашки announcements (горизонтальні) ---------- */
#announcements {
  justify-content: center;
}

#announcements .inner {
  display: flex;
  overflow: auto hidden;
  justify-content: safe center;
  gap: 14px;
  padding: 6px 14px;
}

#announcements .inner .announcement {
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-left: 0;
  padding: 0 24px 0 7px;
  box-sizing: border-box;
  background: var(--ann2-bg);
  color: var(--ann2-text);
  border-radius: 999px;
  transition: background .25s ease;
  justify-content: flex-start; /* замість space-between */
  gap: 10px; /* відстань між кружком і текстом */
  min-width: 0; /* пілюля підлаштовується під текст */
}

#announcements .inner .announcement .date {
  left: -24px;
  top: 50%;
  transition: border-color .25s ease;
  position: static;
  transform: none;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: var(--ann2-badge);
  color: var(--ann2-date);
  font: 700 13px/1 "Instrument Serif", serif;
  letter-spacing: .2px;
}

#announcements .inner .announcement .column {
  overflow: visible;
  padding: 0;
}

#announcements .inner .announcement em {
  display: block;
  height: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 24ch;
  font: 500 9px/1.3 var(--second-family);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: inherit;
}

#announcements .inner .announcement span {
  display: block;
  height: auto;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
  font: 400 9px/1.3 var(--second-family);
  letter-spacing: .4px;
  color: inherit;
  opacity: .7;
}

#announcements .inner .announcement:hover .date {
  color: var(--ann2-date);
  border: 0;
  background: var(--ann2-badge);
}

/* ---------- Перемикач теми: тепер у лівому верхньому куті ---------- */
#forum-theme-switch {
  position: fixed;
  top: 14px;
  left: 14px;
  right: auto;
  bottom: auto;
  z-index: 9999;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--theme-control-border);
  border-radius: 30px;
  background: var(--theme-control-bg);
  box-shadow: 0 4px 18px #0002;
}

#forum-theme-switch button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--theme-control-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#forum-theme-switch button:hover {
  transform: translateY(-1px);
}

#forum-theme-switch button[aria-pressed="true"] {
  background: var(--link-hover);
  color: #fff;
}

#forum-theme-switch button:focus-visible {
  outline: 2px solid var(--theme-control-text);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  #forum-theme-switch {
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
  }
}

/* ---------- Менша відстань між рядком «привет, …» і категоріями ---------- */
#pun-status .container {
  padding-bottom: 0; /* верхній відступ лишається як був */
}

#pun-index .category:nth-of-type(1) {
  margin-top: 4px; /* регулятор: більше число = далі від рядка «привет» */
}

/* ---------- Сторінка теми: менша відстань між хлібними крихтами і повідомленнями ---------- */
#pun-viewtopic #pun-crumbs1 p.container {
  padding-bottom: 0; /* під рядком » necro test » … » код */
}

#pun-viewtopic .linkst {
  padding-top: 0;
  padding-bottom: 0; /* рядок «страница: 1 … ответить» */
  margin-bottom: 4px; /* відстань до першого повідомлення */
}

#pun .post {
  position: relative;
}

#pun .post h3 span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  color: var(--link);
  flex-direction: row-reverse;
}

#pun .post h3 strong {
  float: none;
  font-weight: 500;
}

#pun .post h3 strong::before {
  content: ''; /* прибирає «#» перед номером */
}

#pun .post h3 .FNTslider {
  float: none;
  margin: 0 8px;
}

/* місце під рамку над текстом повідомлення */
#pun .post-box {
  padding-top: 50px;
}

/* повідомлення зі схованим мініпрофілем [hideprofile]: рамка на всю ширину */
#pun .post.hideprofile h3 {
  left: 30px;
}

/* ---------- Рамка навколо мініпрофілю = як у code / quote ---------- */
#pun .post .post-author {
  border: 1px solid var(--add-acc);
  border-radius: 12px;
}

/* ---------- Профіль: по центру, заокруглені краї ---------- */
#viewprofile-next {
  margin: 0 auto; /* замість margin-left: 30px */
  width: 990px; /* як ширина категорій */
  max-width: 100%;
  box-sizing: border-box;
  padding: 20px 30px; /* місце для рамки навколо аватара (outline 10px) */
  background: var(--sec-bg);
  border-radius: 16px;
}

/* якщо фон лежить на зовнішніх обгортках, а не на #viewprofile-next */
#pun-profile #profile .container,
#pun-profile #viewprofile,
#pun-profile #viewprofile .container {
  background: transparent;
  border-radius: 16px;
}

#pun-profile #profile {
  width: 990px;
  max-width: calc(100% - 60px);
  margin: 0 auto;
}

/* посилання в тексті постів — жирні й кольорові */
.punbb .post-content a:not(.dice-btn) {
  font-weight: 700;
  text-decoration: none;
  color: var(--link, #75424a);
}

[data-forum-theme="dark"] .punbb .post-content a:not(.dice-btn) {
  color: var(--link, #415549);
}

.punbb .post-content a:not(.dice-btn):hover {
  text-decoration: underline;
}

html .nav_button:hover {
  color: var(--nav-color-hover);
}

html .nav_block {
  background: var(--nav-dd-bg);
  border: 1px solid var(--nav-dd-border);
}

html .nav_block .link a {
  background: var(--nav-dd-link-bg);
  color: var(--nav-dd-link-text) !important;
}

html .nav_block .link a:hover {
  background: var(--nav-dd-link-hover-bg);
  color: var(--nav-dd-link-hover-text) !important;
}

/* =========================================================
   МІНІПРОФІЛЬ: плашка fld4 + статистика (іконка + число)
   ========================================================= */

/* ---------------------------------------------------------
   1. Плашка внизу картки (поле fld4)
   --------------------------------------------------------- */

/* картка автора: плашка завжди внизу */
#pun .post-author ul {
  display: flex;
  flex-direction: column;
}

/* плашка */
#pun .post-author .pa-fld4 {
  order: 99;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: auto;
  margin: 14px -10px -10px;
  padding: 8px 16px;
  border: 0;
  border-radius: 0 0 8px 8px;
  color: var(--ann-text);
  font: 400 8px/1.4 var(--second-family);
  text-transform: none;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  background: var(--plate-bg);
}

#pun .post-author .pa-fld4 a {
  color: inherit;
}

/* перший рядок тексту: великі літери, жирніше */
#pun .post-author .pa-fld4::first-line {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* картинка з поля: на всю плашку, під текстом */
#pun .post-author .pa-fld4 img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

/* затемнення поверх картинки */
#pun .post-author .pa-fld4:has(img)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .21);
  /*background: color-mix(in srgb, var(--ann-bg) 55%, transparent);*/
}

/* ---------------------------------------------------------
   2. Статистика над плашкою fld4: контурна іконка + число
   --------------------------------------------------------- */

/* ряд: 3 або 4 пункти рівномірно по ширині картки */
#pun .post-author .addflds {
  order: 50;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: 6px;
}

/* один пункт: без фону й рамки */
#pun .post-author .addflds > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: none;
  border: 0;
  line-height: 1;
}

/* старий текст («mess: 5») ховаємо, коли скрипт зчитав число */
#pun .post-author .addflds > li[data-val] {
  font-size: 0;
}

/* іконка (контурна) */
#pun .post-author .addflds > li::before {
  font-family: 'Font Awesome 6 Pro';
  font-weight: 400;
  font-size: 12px;
  color: var(--link);
  opacity: .6;
  transition: color .2s ease, opacity .2s ease;
}

#pun .post-author .addflds > .pa-posts::before {
  content: '\f4a6';
}

/* повідомлення */
#pun .post-author .addflds > .pa-respect::before {
  content: '\f004';
}

/* серце */
#pun .post-author .addflds > .pa-giftbox::before {
  content: '\f0e0';
}

/* конверт (подарунки) */
#pun .post-author .addflds > .pa-fld3::before {
  content: '\24';
}

/* долар (money) */

/* число */
#pun .post-author .addflds > li[data-val]::after {
  content: attr(data-val);
  margin-top: 5px;
  font: 400 10px/1 arial;
  color: var(--link);
}

/* при наведенні іконка підсвічується кольором теми */
#pun .post-author .addflds > li:hover::before {
  color: var(--link-hover);
  opacity: 1;
}

/* посилання «Уважение» лишається клікабельним */
#pun .post-author .addflds > .pa-respect a {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 0;
}

/* ---------- Картинки категорій і іконки (обидві теми) ---------- */

/* ---------- Каркас категорії ---------- */

/* ========== КАТЕГОРІЇ НА ГОЛОВНІЙ ========== */
#pun-index .category h2 {
  display: none; /* стару смугу-банер ховаємо */
}

#pun-index .category .container {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--sec-bg);
  border: 1px solid var(--add-acc);
  border-radius: 12px;
}

:root[data-forum-theme="dark"] #pun #pun-index .category .container {
  border-color: var(--add-acc); /* темна рамка тепер за палітрою теми */
}

/* вертикальна картинка зліва на всю висоту */
#pun-index .category .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 124px;
  height: 100%;
  background: var(--cat1-img) center / cover no-repeat;
  border-radius: 11px 0 0 11px;
}

/* ---------- Рядки форумів ---------- */
#pun-index .category table tr {
  display: flex;
  align-items: center;
  gap: 0 30px;
  position: relative;
  margin: 15px 20px 15px 150px; /* 150px = місце під картинку зліва */
  padding: 10px 0;
}

/* пунктирні лінії між форумами */
#pun-index .category tbody:not(:last-of-type) tr,
#pun-index .category tr:not(:last-child) {
  border-bottom: 1px dashed var(--add-acc);
  padding-bottom: 24px;
}

#pun-index .category tbody td {
  padding: 0;
}

#pun-index .category tbody td.tcl {
  flex: 1;
  width: auto;
  min-width: 0;
}

#pun-index .category tbody td.tcr {
  flex: none;
  width: 280px;
}

#pun-index .category td.tc2,
#pun-index .category td.tc3,
#pun-index .category td.tcmod {
  display: none;
}

/* текстовий блок поруч з короною */
#pun-index .category td div.tclcon {
  margin: 0;
  display: flow-root;
}

/* ---------- Корона: стара / нова ---------- */
#pun-index .category tr div.icon {
  position: static;
  float: left;
  display: block;
  width: 91px;
  height: 80px;
  margin: 0 10px 0 -35px;
  background: var(--icon-old) center / contain no-repeat;
  border-radius: 0;
}

#pun-index .category tr.inew div.icon {
  background: var(--icon-new) center / contain no-repeat;
}

/* затемнення: у світлій теми немає, у темній 25% */

/* темна тема: інші картинки й корони */

/* картинка категорії = затемнення поверх картинки */
#pun-index .category:nth-of-type(1) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat1-img);
}

#pun-index .category:nth-of-type(2) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat2-img);
}

#pun-index .category:nth-of-type(3) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat3-img);
}

#pun-index .category:nth-of-type(4) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat4-img);
}

#pun-index .category:nth-of-type(5) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat5-img);
}

#pun-index .category:nth-of-type(6) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat6-img);
}

#pun-index .category:nth-of-type(7) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat7-img);
}

#pun-index .category:nth-of-type(8) .container::before {
  background-image: linear-gradient(var(--cat-overlay), var(--cat-overlay)), var(--cat8-img);
}

#announcements .inner .announcement:hover {
  background: var(--ann2-hover-bg);
  color: var(--ann2-text);
}

/* ---------- Репутація: плюс ховаємо, сердечко веде на статистику ---------- */

/* плюс (relation.php) прибираємо повністю */
#pun .post-author .pa-respect a[href*="relation.php"] {
  display: none !important;
}

/* посилання на статистику (respect.php) розтягнуте на плашку із сердечком */
#pun .post-author .addflds > .pa-respect a[href*="respect.php"] {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 0;
}

#pun input.button,
#pun input[type="button"],
#pun input[type="submit"],
#pun button.button,
#pun a.button,
#pun #sub4,
#pun .formsubmit input,
#pun .formsubmit a.button {
  box-sizing: border-box;
  padding: 4px 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  line-height: 1.3;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 400;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

#pun input.button:hover,
#pun input[type="button"]:hover,
#pun input[type="submit"]:hover,
#pun button.button:hover,
#pun a.button:hover,
#pun #sub4:hover,
#pun .formsubmit input:hover,
#pun .formsubmit a.button:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  border-color: var(--btn-border);
}

/* друга кнопка (посмотреть): контурна */
#pun input[name="preview"],
#pun .formsubmit input[name="preview"] {
  background: transparent;
  color: var(--btn-border);
}

#pun input[name="preview"]:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* відступ між кнопками */
#pun .formsubmit input + input,
#pun .formsubmit input + a {
  margin-left: 6px;
}

/* ========== ПОСИЛАННЯ: без жирного ========== */
#pun .linkst,
#pun .linksb,
#pun .linkst .pagelink,
#pun .linksb .pagelink,
#pun .pagelink a,
#pun .pagelink strong,
#pun .subscribelink,
#pun .subscribelink a,
#pun .linksb a,
#pun .linkst a,
#pun .postlink a,
#pun li#onlinelist div > a,
#pun .topic-users-in a {
  font-weight: 400;
}

#pun .pagelink strong,
#pun .pagelink .current {
  color: var(--link-hover); /* поточна сторінка: колір + жирний */
  font-weight: 700;
}

/* ========== ПОСИЛАННЯ В МІНІПРОФІЛІ (лз, описи): жирні й кольорові ========== */
#pun .post-author .pa-fld2 a,
#pun .post-author .pa-fld3 a,
#pun .post-author .pa-title a {
  color: var(--link-hover) !important;
  font-weight: 700 !important;
  text-decoration: none;
  border-bottom: 0;
  transition: color .2s;
}

#pun .post-author .pa-fld2 a:hover,
#pun .post-author .pa-fld3 a:hover,
#pun .post-author .pa-title a:hover {
  color: var(--link) !important;
  font-weight: 700 !important;
}

/* ========== АКТИВНІ КОРИСТУВАЧІ: вужчий відступ між колонками ========== */
#pun-online table {
  table-layout: fixed;
  width: 100%;
}

#pun-online table th:nth-child(1),
#pun-online table td:nth-child(1) {
  width: 32%;
  text-align: left;
}

#pun-online table th:nth-child(2),
#pun-online table td:nth-child(2) {
  width: 42%;
  text-align: left;
}

#pun-online table th:nth-child(3),
#pun-online table td:nth-child(3) {
  width: 26%;
  text-align: right;
}

#pun-online table td {
  padding: 8px 10px;
}

/* ========== КНОПКА «КИНУТЬ КУБИК» у формі ответа ========== */
#pun .formsubmit.has-dice-btn {
  position: relative;
}

#pun .formsubmit .dice-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  padding: 4px 14px;
  background: transparent;
  color: var(--btn-border);
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

#pun .formsubmit .dice-btn:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* ===== реакції: праворуч біля лайків + під дизайн ===== */
.punbb .post-body .reactions-root {
  position: absolute;
  right: 62px;
  bottom: 19px;
  padding: 0;
  z-index: 5;
}

.punbb .reactions-container {
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
}

.punbb .reaction-counters-container {
  flex-direction: row-reverse;
  gap: 6px;
}

/* чіпи */
.punbb .reaction-chip {
  height: 26px;
  border: 1px solid rgba(107,61,70,.35) !important;
  background: transparent !important;
  transition: all .25s ease;
  border-color: var(--add-acc) !important;
  color: var(--link-hover);
}

.punbb .reaction-counter {
  border-radius: 13px;
  padding: 0 8px 0 6px;
  font-size: 11px;
}

.punbb .reaction-counter__count {
  font-weight: 600;
}

/* кнопка «+» */
.punbb .reaction-picker-button {
  width: 26px;
  border-radius: 50% !important;
}

.punbb .reaction-picker-button svg {
  width: 11px;
  height: 11px;
}

/* панель емодзі відкривається вліво, щоб не вилазила за край */
.punbb .reaction-picker-panel {
  right: 0;
  left: auto;
}

/* бульбашка цитування виділеного */
#Bubble a {
  width: 25px;
  height: 20px;
  display: block;
  text-decoration: none !important;
}

#Bubble a::before {
  content: '\f10e';
  font-family: 'FontAwesome';
  position: absolute;
  top: -16px;
  width: 25px;
  height: 20px;
  display: block;
  padding: 5px 0 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  background: var(--link, #6b3d46);
  border-radius: 4px;
  backdrop-filter: blur(2px);
  transition: transform .2s ease;
}

#Bubble a:hover::before {
  transform: scale(1.1);
}

/* швидка зміна акаунтів: текст порожнього списку (без кракозябр) */
#form-login #List-UserNames ul:empty::before {
  content: "\423 \432 \430 \441 \43d \435 \442 \437 \430 \43f \43e \43c \43d \435 \43d \43d \44b \445 \43d \438 \43a \43e \432 , \432 \432 \435 \434 \451 \43d \43d \44b \445 \447 \435 \440 \435 \437 \444 \43e \440 \43c \443 \441 \43f \440 \430 \432 \430 \438 \43b \438 \447 \435 \440 \435 \437 \43f \435 \440 \435 \43d \43e \441 \43d \438 \436 \435 !" !important;
}

#form-login #List-UserNames ul:not(:empty)::before {
  content: none !important;
}

/* ---------- Профіль: поле plashka (fld4) як плашка ---------- */

/* strong = сама плашка */
#viewprofile #pa-fld4 > strong {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  display: block !important;
  width: 220px;
  min-height: 34px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--plate-bg);
  color: var(--ann-text);
  font: 400 8px/1.4 var(--second-family);
  text-transform: none;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* посилання всередині: без своїх фонів і позиціювання, на всю плашку */
#viewprofile #pa-fld4 > strong a {
  position: static !important;
  display: block !important;
  background: none !important;
  color: inherit !important;
  font: inherit;
  text-transform: none;
  text-decoration: none;
}

/* перший рядок: великі літери, жирніше */
#viewprofile #pa-fld4 > strong a::first-line {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* картинка: фоном під текстом, тільки в межах плашки */
#viewprofile #pa-fld4 > strong img {
  position: absolute !important;
  inset: 0;
  z-index: -2;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

/* легке затемнення поверх картинки */
#viewprofile #pa-fld4 > strong::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .21);
}

/* Довгий текст в один рядок без пробілів не вилазить за межі повідомлення */
.punbb .post-body {
  min-width: 0;
}

.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 img {
  max-width: 100%;
  height: auto;
}

/* ---------- Кольори, прописані в правилах напряму ---------- */
a,
.punbb #pun-admain a {
  color: var(--base-link);
}

input.button,
#pun-admain input.button,
#sub4,
input[type="button"],
input[type="submit"] {
  background: var(--link-hover);
}

#pun .pa-fld1 {
  color: var(--winter-warm);
}

/* профіль */
#profilenav li a,
#profile-right li span,
#profile-right li span a {
  color: var(--link);
}

.punbb .reaction-chip:not(.reaction-chip--disabled):hover {
  background: var(--add-acc) !important;
  border-color: var(--link-hover) !important;
}

.punbb .reaction-chip.reaction-chip--clicked {
  background: var(--add-acc) !important;
  border-color: var(--link-hover) !important;
}

.punbb .reaction-counter__count,
.punbb .reaction-picker-button svg {
  color: var(--link-hover) !important;
}

.punbb #form-login #fld1:empty,
#form-login #fld2:empty,
.punbb #form-login #fld1,
#form-login #fld2 {
  background-color: var(--login-field);
}

.punbb #List-UserNames input {
  border-color: var(--link-hover) !important;
  background-color: var(--login-field);
}

/* =====================================================================
   HONEY DUKES: дизайн із Figma
   Блок стоїть у кінці файлу й перекриває старі правила.
   Картинки вставляються в змінні --hd-* нижче, кольори у :root вище.
   ===================================================================== */

/* ---------- ШРИФТИ ---------- */
@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/16901.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/49872.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/16098.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/76833.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/57328.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/82568.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/14855.woff2?v=1') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/43784.woff?v=1') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/57947.woff2?v=1') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/94535.woff?v=1') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/47257.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/67706.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pragmatica';
    src: url('https://forumstatic.ru/files/001c/92/fe/13825.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/31419.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Quisas Standard';
    src: url('https://forumstatic.ru/files/001c/92/fe/70285.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/31214.woff?v=1') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quisas SVG';
    src: url('https://forumstatic.ru/files/001c/92/fe/46982.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/16145.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/23403.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/20964.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/83333.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/87786.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/17069.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/83540.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/92767.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/48079.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/55443.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/65415.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/20315.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/56414.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/97501.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/57313.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/73796.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/17303.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Moisette';
    src: url('https://forumstatic.ru/files/001c/92/fe/10328.woff2') format('woff2'),
        url('https://forumstatic.ru/files/001c/92/fe/20964.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
  /* ---------- КАРТИНКИ: замість none вставте url(посилання) ---------- */
  --hd-page-bg: url(https://forumstatic.ru/files/001c/92/fe/29984.svg);     /* фон сторінки */
  --hd-cat-strip: url(https://forumstatic.ru/files/001c/92/fe/50202.svg?v=1);  /* смуга категорії */
  --hd-user-bg: url(https://forumstatic.ru/files/001c/92/fe/19162.png);  /* фон картки автора за замовчуванням */
  --hd-tape: none;        /* скотч: MaskingTape-20 1 */
  --hd-divider: none;     /* риска під іменем: 025 1 */
  --hd-card-badge: none;  /* кружечок у картці: image 24 */
  --hd-modal-bg: none;    /* фон вікна: Без имени-2 2 */

  /* ---------- ШРИФТИ ---------- */
  --hd-title-font: "Moisette", "Instrument Serif", serif;
  --hd-tape-font: "Quisas Standard", "fine", cursive;
  --font-family: "Pragmatica", "Manrope", sans-serif;
  --second-font: var(--hd-title-font);
  --pwidth: 250px;
}

/* ---------- Сторінка ---------- */
html {
  background: #171717;
}

body::before {
  background: var(--hd-page-bg) center top / cover no-repeat, linear-gradient(#171717, #252525);
}

#pun {
  position: relative;
  width: 1100px;
  margin: 31px auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #000;
}

/* ---------- Шапка ---------- */
#pun-title {
  box-sizing: border-box;
  width: 1100px;
  height: 414px;
  border: 1px solid var(--add-acc);
  background-size: 1100px 414px;
}

#pun #pun-ulinks {
  position: absolute;
  top: 15px;
  left: 102px;
  z-index: 5;
  margin: 0;
}

#pun #pun-ulinks .container {
  padding: 0;
  text-align: left;
  white-space: nowrap;
}

#pun #pun-ulinks li {
  padding: 0 8px 0 0;
}

#pun #pun-ulinks li::before {
  content: none;
}

#pun #pun-ulinks a {
  color: var(--link-hover);
  font: 500 8px/1 var(--font-family);
  text-transform: lowercase;
}

#pun #pun-navlinks {
  top: 362px;
  left: 261px;
  width: 279px;
}

#pun #pun-navlinks .container {
  padding: 0;
  line-height: 21px;
}

#pun #pun-navlinks li {
  padding: 0;
}

#pun #pun-navlinks a {
  margin: 0;
  padding: 5px 11px;
  border-radius: 54px;
  background: var(--nav-link-bg);
  font: 600 12px/.9 var(--hd-title-font);
  letter-spacing: -.24px;
  text-transform: lowercase;
}

#pun #pun-navlinks a:hover {
  color: var(--link-hover) !important;
  background: var(--nav-link-hover-bg);
  box-shadow: none;
}

html .nav_button {
  font: 500 9px/21px var(--font-family);
}

.hdr-best a {
  font: 400 32px/1.45 var(--hd-tape-font);
  text-transform: lowercase;
  white-space: nowrap;
}

.hdr-best1,
.hdr-best2,
.hdr-best3 {
  width: auto;
}

.hdr-quote {
  color: #232528;
  font: 400 8px/1.2 var(--font-family);
  text-align: right;
  text-transform: lowercase;
}

.hdr-quote a,
.hdr-quote b,
.hdr-quote strong {
  color: var(--link-hover);
  font-weight: 700;
}

/* справжні блоки шапки з верхнього HTML */
#pun .best-people a {
  position: absolute;
  z-index: 5;
  color: var(--best-link);
  font: 400 32px/1.45 var(--hd-tape-font);
  text-transform: lowercase;
  white-space: nowrap;
}

#pun .best-people a:nth-of-type(1) { top: 29px; left: 687px; }
#pun .best-people a:nth-of-type(2) { top: 29px; left: 755px; }
#pun .best-people a:nth-of-type(3) { top: 52px; left: 712px; }

#pun .best-post {
  position: absolute;
  top: 58px;
  left: 855px;
  z-index: 5;
  width: 187px;
  color: #232528;
  font: 400 8px/1.2 var(--font-family);
  text-align: right;
  text-transform: lowercase;
}

#pun .best-post a {
  color: var(--link-hover);
  font-weight: 700;
}

html .spirit_nav-wrap {
  position: absolute;
  top: 50px;
  left: 81px;
  z-index: 110;
  width: 153px;
  margin: 0;
}

html .nav_button {
  height: 21px;
  color: var(--nav-color);
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
}

html .nav_block {
  position: absolute;
  top: 24px;
  left: 0;
  box-sizing: border-box;
  width: 180px;
  padding: 8px;
  border-radius: 10px;
}

html .nav_block .link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html .nav_block .link a {
  padding: 4px 10px;
  border-radius: 95px;
  font: 500 9px/1.2 var(--font-family);
  text-align: center;
}

/* ---------- Оголошення ---------- */
#pun #pun-announcement .container {
  padding: 0;
}

#pun #announcements {
  margin: 13px auto 0;
}

#announcements .inner {
  gap: 4px;
  padding: 0;
}

#announcements .inner .announcement {
  gap: 9px;
  width: 160px;
  height: 37px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--add-acc);
  border-radius: 20px;
}

#announcements .inner .announcement .date,
#announcements .inner .announcement:hover .date {
  width: 40px;
  height: 27px;
  border-radius: 54px;
  background: var(--ann2-badge);
  color: var(--ann2-date);
  font: 600 8px/.9 var(--hd-title-font);
  letter-spacing: -.16px;
}

#announcements .inner .announcement em,
#announcements .inner .announcement span {
  max-width: 96px;
  color: var(--ann2-text);
  font: 500 9px/1.2 var(--font-family);
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

/* ---------- Категорії на головній ---------- */
#pun-index .category {
  width: 1044px;
  margin: 0 auto 15px;
}

#pun-index .category h2 {
  display: block;
  position: relative;
  left: auto;
  box-sizing: border-box;
  width: 100%;
  height: 35px;
  margin: 0 0 -1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--add-acc);
  background:
    var(--hd-tape) 80px 4px / 93px 25px no-repeat,
    var(--hd-cat-strip) top center / 1044px auto no-repeat,
    var(--sec-bg);
  color: var(--best-link);
  font: 400 32px/33px var(--hd-tape-font);
  text-align: left;
  text-transform: lowercase;
}

#pun-index .category h2 > span {
  display: block;
  position: absolute;
  top: 0;
  left: 26px;
  width: 200px;
  text-align: center;
  white-space: nowrap;
}

/* опис категорії: його додає скрипт makeDescription у нижньому HTML */
#pun-index .category .categoryLine {
  display: none;
}

#pun-index .category h2 > span .categoryTool {
  position: absolute;
  top: 12px;
  left: 156px;
  width: 386px;
  color: #232528;
  font: 400 8px/1.2 var(--font-family);
  text-align: left;
  text-transform: lowercase;
  white-space: normal;
}

/* обгортка зі скрипта задає собі відступи прямо в HTML */
.category-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

#pun #pun-index .category .container,
:root[data-forum-theme="dark"] #pun #pun-index .category .container {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#pun-index .category .container::before {
  content: none;
}

#pun-index .category table {
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 0;
}

#pun-index .category table tr,
#pun-index .category tbody:not(:last-of-type) tr,
#pun-index .category tr:not(:last-child) {
  box-sizing: border-box;
  justify-content: space-between;
  gap: 0;
  min-height: 117px;
  margin: 0 0 -1px;
  padding: 10px 20px;
  border: 1px solid var(--add-acc);
  background: var(--sec-bg);
}

#pun-index .category tbody td.tcl {
  flex: none;
  width: 520px;
  padding: 0;
}

#pun-index .category tbody td.tcr {
  flex: none;
  width: 240px;
  text-align: left;
}

#pun-index .tclcon h3 a,
#pun-index .tclcon h3 a:hover {
  font: italic 600 20px/1.45 var(--hd-title-font);
  letter-spacing: 0;
}

#pun-index .tclcon .desktext {
  max-width: none;
  margin: 10px 0 0;
  color: var(--winter-warm);
  font: 400 10px/1.33 var(--font-family);
  text-align: justify;
}

#pun-index .tclcon .desklink {
  gap: 5px;
  margin-top: 10px;
}

#pun #pun-index .tclcon .desklink a {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 22px;
  border: 0;
  border-radius: 95px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 500 8px/1 var(--font-family);
}

#pun #pun-index .tclcon .desklink a:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
}

/* значок нове / старе: посередині рядка */
#pun-index .category tr div.icon,
#pun-index .category tr.inew div.icon {
  position: absolute;
  top: 50%;
  left: 605px;
  float: none;
  width: 73px;
  height: 43px;
  margin: 0;
  transform: translateY(-50%);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#pun-index .category tr div.icon {
  background-image: var(--icon-old);
}

#pun-index .category tr.inew div.icon {
  background-image: var(--icon-new);
}

/* останнє повідомлення */
#pun-index .category .tcr .user-avatar {
  float: left;
  margin: 0 8px 0 0;
}

#pun-index .category .tcr .avatar-image {
  display: block;
  box-sizing: border-box;
  width: 33px;
  height: 33px;
  border: 2px solid var(--pun-bg);
  border-radius: 50%;
  outline: 1px solid var(--add-acc);
  outline-offset: -1px;
  background-size: cover;
  background-position: center;
}

#pun #pun-index .lastpost-link {
  display: block;
  width: 198px;
  margin: 0;
  color: var(--link-hover);
  font: 500 11px/1.44 var(--font-family);
  text-transform: none;
}

#pun-index .category .tcr br {
  display: none;
}

#pun-index .lastpost {
  color: color-mix(in srgb, var(--link) 60%, transparent);
  font: 500 9px/1.44 var(--second-family);
}

#pun-stats .container {
  max-width: 1044px;
}

/* ---------- Повідомлення ---------- */
#pun .post,
#pun-viewtopic .post {
  position: relative;
  width: 1044px;
  margin: 25px auto 0;
  padding: 0 0 25px;
  border-radius: 0;
  background: transparent;
}

.punbb .post .container {
  padding: 0;
}

/* рядок із датою і номером */
#pun .post h3 {
  top: 0;
  left: calc(var(--pwidth) + 12px);
  right: 0;
  height: 25px;
  border: 1px solid var(--add-acc);
  border-radius: 5px;
  background: var(--main-acc);
}

#pun .post.hideprofile h3 {
  left: 0;
}

#pun .post h3 span,
#pun .post h3 strong,
#pun .post h3 a {
  color: var(--link-hover);
  font: 700 10px/1.2 var(--font-family);
  text-transform: uppercase;
}

#pun .post h3 span {
  padding: 0 10px;
}

/* картка автора */
#pun .post .post-author {
  --user-bg: var(--hd-user-bg, none);
  box-sizing: border-box;
  width: var(--pwidth);
  min-height: 447px;
  margin: 0;
  padding: 48px 15px 68px;
  border: 1px solid var(--add-acc);
  border-radius: 10px;
  background:
    linear-gradient(transparent 93px, var(--main-acc) 93px, var(--pun-bg) 100%),
    var(--user-bg) top center / 100% auto no-repeat,
    linear-gradient(var(--main-acc), var(--pun-bg));
}

:root[data-forum-theme="dark"] #pun .post .post-author {
  background-color: transparent;
}

#pun .post-author ul {
  padding: 6px 19px 25px;
  border: 1px solid var(--add-acc);
  border-radius: 10px;
  background: var(--sec-bg);
}

#pun .post-author .pa-author {
  color: var(--link-hover);
  font: italic 600 20px/1.45 var(--hd-title-font);
  text-transform: lowercase;
}

#pun .post-author .pa-author a {
  color: inherit;
  font: inherit;
}

#pun .post-author .pa-title {
  width: 180px;
  margin: 0 auto 13px;
  padding: 0;
  color: var(--link);
  font: 400 8px/1.37 var(--hd-title-font);
  text-transform: none;
}

#pun .post-author .pa-avatar img {
  display: block;
  width: 180px;
  height: auto;
  max-width: 180px;
  max-height: none;
  margin: 0 auto;
  border: 1px solid rgba(70, 70, 70, .2);
  border-radius: 5px;
}

#pun .post-author .pa-fld1 {
  max-width: 180px;
  margin: 13px auto 0;
  padding: 0;
  color: var(--link-hover);
  font: italic 500 14px/.9 var(--hd-title-font);
  text-transform: lowercase;
}

#pun .post-author .pa-fld2 {
  width: 180px;
  margin: 6px auto 0;
  padding: 15px 0 0;
  background: var(--hd-divider) top center / 80px 9px no-repeat;
  color: var(--link);
  font: 400 9px/1.37 var(--hd-title-font);
  text-transform: none;
}

#pun .post-author .pa-fld4 {
  margin: 14px -19px -25px;
  padding: 8px 16px 20px;
  border-radius: 0 0 9px 9px;
}

/* кружечок на нижньому краї картки */
#pun .post .post-author::after {
  content: '';
  position: absolute;
  bottom: 48px;
  left: 107px;
  box-sizing: border-box;
  width: 35px;
  height: 35px;
  border: 1px solid var(--add-acc);
  border-radius: 50%;
  background: var(--hd-card-badge) center / 32px 32px no-repeat, var(--sec-bg);
}

/* статистика: підпис зверху, число знизу */
#pun .post-author .addflds {
  position: absolute;
  right: 35px;
  bottom: 10px;
  left: 35px;
  margin: 0;
}

#pun .post-author .addflds > li {
  color: var(--link);
  font: 400 8px/1.45 var(--font-family);
  text-align: center;
  text-transform: lowercase;
}

/* старі іконки вимкнені: підписи mess / rep / frogs іде з нижнього HTML */
#pun .post-author .addflds > li::before,
#pun .post-author .addflds > li::after {
  content: none;
}

#pun .post-author .addflds > .pa-respect a,
#pun .post-author .addflds > .pa-respect a[href*="respect.php"] {
  display: inline;
  position: static;
  color: inherit;
  font: inherit;
}

/* текст */
.post-body {
  width: calc(100% - var(--pwidth));
}

#pun .post-box {
  padding: 54px 0 10px 12px;
}

.punbb .post-content,
.punbb .post-content p {
  color: var(--link);
  font: 400 12px/1.4 var(--font-family);
}

/* цитата, код, спойлер */
#pun .quote-box,
#pun .code-box,
#pun .post-content .spoiler-box {
  margin: 0 0 17px;
  padding: 9px 15px 12px;
  border: 1px solid var(--add-acc);
  border-radius: 5px;
  background: var(--winter-chip);
}

#pun .quote-box cite,
#pun .code-box strong {
  display: inline-block;
  position: static;
  margin: 0 0 6px -3px;
  transform: none;
  border-radius: 54px;
  font: 500 10px/1.2 var(--font-family);
  text-transform: lowercase;
}

#pun .quote-box cite {
  padding: 5px 11px;
  background: var(--btn-bg);
  color: var(--btn-text);
}

#pun .code-box strong,
#pun .code-box strong a {
  padding: 3px 22px;
  border: 1px solid var(--add-acc);
  background: var(--main-acc);
  color: var(--link-hover);
}

#pun .code-box strong a {
  padding: 0;
  border: 0;
}

.post-content .spoiler-box > div::before {
  content: none;
}

#pun .post-content .spoiler-box > div {
  display: inline-block;
  margin-left: -3px;
  padding: 3px 22px !important;
  border: 1px solid var(--add-acc);
  border-radius: 95px;
  background: var(--main-acc) !important;
  color: var(--link-hover);
  font: 500 10px/1.2 var(--font-family);
  cursor: pointer;
}

/* реакції: кружечки під текстом */
.punbb .post-body .reactions-root {
  position: static;
  display: flex;
  justify-content: center;
  padding: 0 0 10px 12px;
}

.punbb .reactions-container,
.punbb .reaction-counters-container {
  gap: 7px;
}

.punbb .reaction-chip {
  min-width: 35px;
  height: 35px;
  border-color: var(--add-acc) !important;
  border-radius: 18px;
  background: var(--sec-bg) !important;
}

.punbb .reaction-picker-button {
  width: 35px;
}

/* репутація: кружечок замість сердечка */
div .post-rating p > a {
  box-sizing: border-box;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--add-acc);
  border-radius: 50%;
  outline: 0;
  background: var(--sec-bg);
  color: var(--link-hover);
  font: 500 11px/33px var(--font-family);
  letter-spacing: -.5px;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}

div .post-rating p > a.noNull {
  background: var(--main-acc);
}

/* наведення і вже поставлений плюс */
div .post-rating p > a:hover,
div .post-rating p > a.noNull:hover,
div .mylike .post-rating p > a,
div .mylike .post-rating p > a.noNull,
div .post-rating.mylike p > a,
div .post-rating.mylike p > a.noNull {
  background: var(--btn-bg);
  color: var(--btn-text);
  filter: none;
}

div.dark-style .post-rating p > a:hover,
.mylike.dark-style .post-rating p > a {
  color: var(--btn-text) !important;
}

.noNull::before {
  margin-left: -7px;
}

/* вікно коментаря до репутації */
.inner.post_reputation h1 {
  padding-top: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: lowercase;
}

#reputationText {
  width: 525px !important;
}

/* кнопки під повідомленням */
#pun .post-links {
  margin-top: 31px;
}

#pun .post-links li:not(:first-of-type) {
  padding-left: 0;
}

#pun .post-links li {
  margin-left: 5px;
}

#pun .post-links .pl-email,
#pun .post-links .pl-website {
  margin: 0 5px 0 0;
}

#pun .post-links a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 21px;
  padding: 0 22px;
  border: 1px solid var(--add-acc);
  border-radius: 95px;
  background: var(--main-acc);
  color: var(--link-hover);
  font: 500 10px/1 var(--font-family);
}

#pun .post-links a:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* кнопки форм */
#pun input.button,
#pun input[type="button"],
#pun input[type="submit"],
#pun button.button,
#pun a.button,
#pun #sub4,
#pun .formsubmit input,
#pun .formsubmit a.button,
#pun .formsubmit .dice-btn {
  border-radius: 95px;
  font-family: var(--font-family);
  font-weight: 500;
}

/* ---------- Футер ---------- */
#pun-about {
  position: relative;
  box-sizing: border-box;
  height: 160px;
  border: 1px solid var(--add-acc);
  background-size: 1100px 160px;
}

#pun-about::before {
  content: 'FRIENDS';
  position: absolute;
  top: 11px;
  left: 506px;
  width: 93px;
  height: 25px;
  background: var(--hd-tape) center / 100% 100% no-repeat;
  color: var(--best-link);
  font: 400 32px/25px var(--hd-tape-font);
  text-align: center;
  text-transform: lowercase;
}

#pun #banners {
  right: auto;
  bottom: 81px;
  left: 83px;
  z-index: 3;
  margin: 0 !important;
  opacity: 1 !important;
}

#pun #banners a {
  flex: none;
  width: 88px;
  height: 31px;
}

#pun #banners img {
  display: block;
  width: 88px;
  height: 31px;
  object-fit: cover;
}

/* ---------- Вікно профілю: фон ---------- */
.reveal-modal {
  background: var(--hd-modal-bg) top left / cover no-repeat, var(--pun-bg);
}

/* ---------- Сторінка профілю ---------- */
#viewprofile-next,
#pun-profile #profile {
  width: 1044px;
}