/* СТРУКТУРА. Поле «Свой стиль &#8594; Структура».
   Первой строкой должен остаться импорт цветов. */
@import url(style_cs.1790597889.css);
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: Asther;
  src: url("https://forumstatic.ru/files/001c/ca/e1/69527.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body { margin: 0; padding: 0; }
body {
  color: #3c3c3c;
  color: var(--c-ink);
  font: 400 14px/1.45 Manrope, "Segoe UI", sans-serif;
  background-color: #1a060b;
  background-image: var(--u-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.punbb, .punbb input, .punbb select, .punbb textarea, .punbb button {
  font-family: Manrope, "Segoe UI", sans-serif;
}
.punbb img { border: 0; max-width: 100%; }
.punbb a { color: var(--c-link); text-decoration: none; }
.punbb a:hover { color: var(--c-wine); }
.punbb p, .punbb ul, .punbb ol, .punbb h1, .punbb h2, .punbb h3, .punbb fieldset, .punbb blockquote { margin: 0; }
.punbb ul, .punbb li, .punbb dl, .punbb dd, .punbb dt { padding: 0; list-style: none; }
.punbb .container:after,
.punbb .post-box:after,
.punbb .post-links ul:after,
.punbb .linksb:after,
.punbb .linkst:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
}
.punbb input, .punbb textarea, .punbb select {
  background: var(--c-input);
  color: var(--c-ink);
  border: 1px solid var(--c-row-line);
  border-radius: 6px;
  padding: 6px 10px;
}

/* Колонка форума. На rusff серая плашка — это #pun-index, а не #pun. */
#pun {
  width: auto;
  max-width: none;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.punbb {
  position: relative;
  width: 1113px;
  max-width: calc(100% - 16px);
  margin: 56px auto 48px;
  background: #c4c2c2;
  background: var(--c-sheet);
  border: 1px solid #ababab;
  border-color: var(--c-sheet-border);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  color: #3c3c3c;
  color: var(--c-ink);
}
#pun-title { display: none; }

/* Меню над колонкой */
#pun-navlinks {
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  margin: 0;
  background: transparent;
  border: none;
  z-index: 5;
}
#pun-navlinks h2,
#pun-ulinks h2,
#pun-status h2,
#pun-stats h2,
.punbb .crumbs h2 { position: absolute; left: -9999px; }
#pun-navlinks .container,
#pun-navlinks ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  list-style: none;
}
#pun-navlinks li { float: none; display: block; margin: 0; background: none; border: none; }
#pun-navlinks a,
#pun-navlinks a span {
  color: #dadada !important;
  color: var(--c-nav) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  height: auto;
  width: auto;
}
#pun-navlinks a:hover,
#pun-navlinks a:hover span { color: var(--c-nav-hover); }

/* Шапка: две плашки и круг */
#html-header { height: auto; position: static; background: none; }
#ps-head { position: relative; }
.ps-mast {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 119px;
  margin: 10px 18px 0;
  padding: 0 10px;
  background: var(--c-frame);
  border: 1px solid var(--c-frame-line);
  border-radius: 1px;
}
.ps-banner {
  position: relative;
  height: 101px;
  overflow: hidden;
  background-color: #120406;
}
.ps-banner-left {
  background-image: var(--u-banner-left);
  background-position: center 55%;
  background-size: cover;
}
.ps-banner-right {
  background-image: var(--u-banner-right);
  background-position: center;
  background-size: cover;
}
.ps-banner > img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.ps-banner-left { z-index: 1; margin-right: -108px; border-radius: 8px 0 0 8px; }
.ps-banner-left img { object-position: center 55%; }
.ps-banner-right { z-index: 2; margin-left: -28px; border-radius: 0 8px 8px 0; }
.ps-banner-copy {
  position: absolute;
  inset: 0 96px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px 8px 16px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 88%);
}
.ps-banner-copy p {
  margin: 0;
  font-family: Asther, "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  color: #ff2626;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
}
.ps-banner-copy small {
  color: var(--c-banner-sub);
  font-size: 10px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
}
.moon-tab {
  position: absolute;
  top: 10px;
  right: -24px;
  z-index: 4;
  width: 24px;
  height: 101px;
  padding: 0;
  border: none;
  border-radius: 0 4px 4px 0;
  background: var(--c-tab) var(--u-cat) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.moon-tab img { width: 18px; height: 17px; display: block; }
.ps-orb-row {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-chev {
  width: 14px;
  color: #f4f4f4;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  text-decoration: none;
}
.ps-player { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ps-disc {
  display: inline-block;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(#8d1c24 calc(var(--p, 0) * 360deg), var(--c-orb-ring) 0);
}
.ps-orb {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--c-orb-ring);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  background: #111;
}
.ps-orb img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.ps-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}
.ps-play.is-pause {
  width: 10px;
  height: 14px;
  border: none;
  transform: translate(-50%, -50%);
  background: linear-gradient(#fff, #fff) left center / 3px 100% no-repeat,
    linear-gradient(#fff, #fff) right center / 3px 100% no-repeat;
}
.ps-track { display: none !important; }

/* Вторая строка меню */
#pun-ulinks {
  display: block !important;
  margin: 16px 20px 4px;
  background: transparent !important;
  border: none !important;
}
#pun-ulinks h2 { display: none !important; }
#pun-ulinks .container,
#pun-ulinks ul {
  display: flex !important;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 !important;
  padding: 4px 4px 8px !important;
  list-style: none;
  background: transparent !important;
  border: none !important;
  height: auto !important;
}
#pun-ulinks li,
#pun-ulinks li.is-split-l,
#pun-ulinks li.is-split-r {
  float: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
#pun-ulinks a {
  color: #686666 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
}
#pun-ulinks a:hover { color: #8d1c24 !important; }

#pun-stats { margin: 4px 28px 12px; background: transparent; border: none; }
#pun-stats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#pun-stats li { color: #666; font-size: 11px; }
.ps-jump {
  position: absolute;
  left: calc(100% + 13px);
  z-index: 6;
  width: 20px;
  height: 12px;
}
.ps-jump img { display: none; }
.ps-jump::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 1px auto 0;
  border-right: 2px solid #d9d6d6;
  border-bottom: 2px solid #d9d6d6;
}
.ps-jump-up { top: 46%; }
.ps-jump-up::before { transform: rotate(-135deg); }
.ps-jump-down { top: calc(46% + 31px); }
.ps-jump-down::before { transform: rotate(45deg); }
#html-footer #ps-jump,
#html-footer .ps-jump { display: none !important; }

/* Серые слои: внешняя рамка и внутренняя, как на макете */
#pun-main {
  margin: 8px 18px 16px;
  padding: 10px 8px 14px;
  background: #e2dddd;
  background: var(--c-frame);
  border: 1px solid #fff;
  border-color: var(--c-frame-line);
  border-radius: 1px;
}
#pun-main .board-in {
  padding: 10px 8px 12px;
  background: #dfdddd;
  border: 1px solid #fff;
  border-color: var(--c-frame-line);
  border-radius: 1px;
}
#pun-main .forum,
#pun-index .category .container {
  border-color: #fff;
  border-color: var(--c-frame-line);
  background: #cfcdcc;
  background: var(--c-row);
}
#pun-index #pun-main h1,
#pun-index #pun-main > h1,
#pun-break1,
#pun-break2,
#pun-break3,
#pun-break4,
.divider { display: none !important; }

#pun-crumbs1,
#pun-crumbs2 {
  display: block !important;
  margin: 8px 18px 2px;
  background: transparent;
  border: none;
}
#pun-crumbs1 .container,
#pun-crumbs2 .container {
  padding: 2px 4px 6px;
  background: transparent;
  border: none;
  color: var(--c-mute);
  font-size: 13px;
  line-height: 1.4;
}
#pun-crumbs1 a,
#pun-crumbs2 a { color: var(--c-wine); text-decoration: none; }
#pun-crumbs1 a:hover,
#pun-crumbs2 a:hover { color: #5c1014; }
.punbb .crumbs strong { font-size: 0; }
.punbb .crumbs strong a { font-size: 13px; }
#pun-crumbs2 { margin: 4px 18px 12px; }

#pun-status,
#pun-about,
#pun-announcement,
#pun-qjump {
  display: block;
  margin: 0 18px;
  background: transparent;
  border: none;
}
#pun-status .container,
#pun-about .container,
#pun-announcement .container,
#pun-qjump .container {
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: var(--c-mute);
  font-size: 13px;
}
#pun-about { margin: 4px 18px 14px; text-align: right; }
#pun-about a { color: var(--c-mute); }
#pun-announcement h2 {
  margin: 0 0 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
}

/* Категории */
.punbb .category { margin: 0 8px 16px; border: none; background: transparent; }
.punbb .category h2 {
  position: relative;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 8px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px 4px 0 0;
  background: #a71217 var(--u-cat) center / cover no-repeat;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  left: auto;
}
.punbb .category h2 span,
#pun-main .category h2 span {
  font-family: Asther, "Cormorant Garamond", Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  color: #edeaeb !important;
  background: none !important;
  -webkit-text-fill-color: #edeaeb !important;
  text-shadow: 0.4px 0 0 #edeaeb;
  padding: 0;
  margin: 0;
}
.punbb .category h2::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--u-star) center / contain no-repeat;
  transition: transform 1.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.punbb .category.is-shut h2::after { transform: rotate(180deg); }
.punbb .category .container {
  overflow: hidden;
  max-height: 2400px;
  border: 1px solid var(--c-frame-line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: var(--c-row);
  transition: max-height 1.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.punbb .category.is-shut .container { max-height: 0; border-width: 0; }
.catleft, .catright, .cat-quote { display: none; }

/* Подфорумы: без колонок «тем» и «сообщений» */
#pun-index thead,
#pun-index td.tc2,
#pun-index td.tc3 { display: none; }
#pun-index .main table,
#pun-index .container table {
  width: 100%;
  table-layout: fixed;
  background: transparent;
}
#pun-index tbody tr { border-bottom: 1px dotted var(--c-row-line); }
#pun-index tbody tr:last-child { border-bottom: none; }
#pun-index tbody tr:hover td { background: rgba(255, 255, 255, 0.35); }
#pun-index td {
  background: transparent;
  vertical-align: middle;
  padding: 16px 18px;
  border: none;
}
#pun-index td.tcl { width: 51%; text-align: left; }
#pun-index td.tcr {
  position: relative;
  width: 49%;
  box-sizing: border-box;
  padding: 14px 18px 14px 72px;
  text-align: left;
  vertical-align: middle;
}
#pun-index td.tcr a { color: var(--c-wine); font-weight: 700; }
#pun-index td.tcr .byuser,
#pun-index td.tcr .byuser a,
#pun-index td.tcr span {
  color: var(--c-mute);
  font-size: 12px;
  font-weight: 400;
}
#pun-index td.tcr > a.lastpost-link {
  display: block;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pun-index td.tcr br { display: none; }
#pun-index td.tcr .lastpost {
  display: block;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pun-index td.tcr .byuser,
#pun-index td.tcr .datetime { display: inline; white-space: nowrap; }
#pun-index .user-avatar {
  position: absolute;
  left: 16px;
  top: 50%;
  float: none;
  width: 42px;
  height: 42px;
  margin: 0;
  transform: translateY(-50%);
}
#pun-index .user-avatar .avatar-image,
#pun-index .user-avatar img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  border: none;
}
#pun-index td.tcl,
#pun-viewforum td.tcl {
  position: relative;
  padding-left: 48px !important;
}
#pun-index .intd,
#pun-viewforum .intd { position: static; }
#pun-index div.icon,
#pun-index div.inew,
#pun-viewforum div.icon,
#pun-viewforum div.inew {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: 0;
  border: none;
  font-size: 0;
  opacity: 1;
  transform: translateY(-50%);
  background: var(--u-spark-old) center / 16px 15px no-repeat;
}
#pun-index div.icon,
#pun-index div.inew {
  top: 17px;
  transform: none;
}
#pun-index div.inew,
#pun-viewforum div.inew { background-image: var(--u-spark-new); }
#pun-index .tcl h3 {
  margin: 0 0 4px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
#pun-index .tcl h3 a { color: var(--c-wine); }
#pun-index .forumdesc,
#pun-index .tcl .forumdesc p {
  margin: 0;
  color: var(--c-mute);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
}
#pun-viewforum #pun-main h1,
#pun-viewtopic #pun-main h1,
#pun-main h1 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 8px 8px 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #a71217;
  background-image: var(--u-cat);
  background-size: cover;
  background-position: center;
  color: #edeaeb !important;
  -webkit-text-fill-color: #edeaeb;
  font-family: Asther, "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  box-shadow: none;
}
#pun-main h1 span {
  color: #edeaeb !important;
  -webkit-text-fill-color: #edeaeb !important;
  background: none !important;
  font-family: inherit;
  font-size: inherit;
}
#pun-viewforum .forum > h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 25px;
  margin: 0 8px 8px;
  padding: 3px 14px;
  border: none;
  border-radius: 2px;
  background: #9d9696;
  color: #f4f4f4;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#pun-viewforum #pun-main h1 {
  min-height: 34px;
  margin: 8px 8px 10px;
  padding: 4px 14px;
  font-size: 20px;
}
#pun-viewforum .linksb .pagelink,
#pun-viewforum .linksb .postlink { display: none !important; }
#pun-viewtopic .topic > h2 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin: 14px 8px 8px;
  padding: 6px 18px 6px 40px;
  border: none;
  border-radius: 2px;
  background: #9d9696;
  color: #f4f4f4;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#pun-viewtopic .topic > h2::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--u-star) center / contain no-repeat;
}
#pun-viewforum .tclcon > .acchide,
#pun-viewforum td.tcl .acchide,
#pun-viewforum .tclcon .sticky,
#pun-viewforum .tclcon .closed,
#pun-viewforum .tclcon .moved,
#pun-viewforum .tclcon .stickytext,
#pun-viewforum .tclcon .closedtext {
  display: none !important;
}
#pun-viewforum .tcl h3 { margin: 0; text-transform: none; }
#pun-viewforum .tcl h3 a { color: var(--c-wine); font-weight: 700; text-decoration: none; }
#pun-viewforum tr.iclosed div.icon,
#pun-viewforum div.icon.iclosed {
  background-color: #5c5856;
  background-image: none;
  -webkit-mask: var(--u-spark-old) center / 16px 15px no-repeat;
  mask: var(--u-spark-old) center / 16px 15px no-repeat;
}
#pun-viewforum tr.isticky:not(.iclosed) div.icon,
#pun-viewforum div.icon.isticky {
  background-color: #8d1c24;
  background-image: none;
  -webkit-mask: var(--u-spark-new) center / 16px 15px no-repeat;
  mask: var(--u-spark-new) center / 16px 15px no-repeat;
}
#pun-viewforum .forum .container,
.punbb .forum .container {
  margin: 0 8px 12px;
  background: #cfcdcc;
  background: var(--c-row);
  border: 1px solid #fff;
  border-color: var(--c-frame-line);
  border-radius: 4px;
  overflow: hidden;
}
#pun-viewforum thead th,
.punbb .forum thead th {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
#pun-viewforum td,
.punbb .forum td {
  padding: 16px 18px;
  border: none;
  border-bottom: 1px dotted #bdbdbd;
  background: transparent;
  vertical-align: middle;
}
#pun-viewforum td[colspan],
.punbb .forum td[colspan] {
  text-align: center;
  color: #666;
  padding: 28px 16px;
}
.punbb .linkst,
.punbb .linksb {
  margin: 4px 16px 8px;
  padding: 0;
  color: #666;
  background: transparent;
  border: none;
}
.punbb .pagelink,
.punbb .pagelink a,
.punbb .pagelink strong {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

/* Сообщение и профиль */
.punbb .post { margin: 12px 8px; background: transparent; border: none; }
.punbb .post .container {
  display: grid;
  grid-template-columns: 241px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  align-items: start;
  background: #dbd8d8;
  background: var(--c-post);
  border: none;
  border-radius: 0;
  overflow: hidden;
  padding: 8px 10px 12px;
}
.punbb .post .container > .clearer { display: none; }
.punbb .post .container > :not(.post-author) {
  grid-column: 2;
  min-width: 0;
}
.punbb .post .post-box {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin: 0;
}
.punbb .post-rating { text-align: right; padding: 6px 4px 0; }
.punbb .post-rating a,
.punbb .post-vote a { color: var(--c-wine); font-weight: 700; text-decoration: none; }
.punbb .post h3 { margin: 8px 8px 0; border: none; background: transparent; }
.punbb .post h3 span {
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 5px 10px;
  background: #d4d1d1;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  border-radius: 2px;
}
.punbb .post h3 .permalink { float: left; color: #777; }
.punbb .post h3 .sharelink,
.punbb .post h3 strong { color: #777; font-weight: 600; }
#pun-viewtopic .topic > h2 { display: flex; }
.punbb .post-sig dt {
  display: block;
  width: 220px;
  margin: 10px 0 6px;
  border-top: 1px solid #8a8686;
}
.punbb .post .post-author {
  grid-column: 1;
  grid-row: 1 / -1;
  float: none;
  width: 241px;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #f2f2f2;
  border-radius: 6px;
  background: #e7e4e4;
  background: var(--c-profile);
  text-align: center;
}
.punbb .post .post-author::before {
  content: "";
  display: block;
  height: 41px;
  background-color: #e7e4e4;
  background-image: var(--u-star), var(--u-pf-head);
  background-repeat: no-repeat, no-repeat;
  background-position: center 14px, center top;
  background-size: 27px 27px, 100% 27px;
}
.punbb .post .post-author::after {
  content: "";
  display: block;
  height: 50px;
  margin: 0;
  background-color: #e7e4e4;
  background-image: var(--u-star), var(--u-pf-red);
  background-repeat: no-repeat, no-repeat;
  background-position: center 0, center bottom;
  background-size: 27px 27px, 100% 36px;
}
.punbb .post .post-author ul {
  list-style: none;
  margin: 0;
  padding: 6px 12px 16px;
}
.punbb .post .post-body { margin: 0; min-width: 0; flex: 1 1 auto; }
.punbb .post .post-author ul::before { content: none; display: none; }
.punbb .post .post-author li,
li.pa-author,
li.pa-title,
.pa-author {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1px 0;
  position: static;
  background: none;
  text-align: center;
  color: #6d6d6d;
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
}
.punbb .post .post-author .acchide { display: none; }
.pa-author a,
li.pa-author a {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  background: none !important;
  color: #8a8a8a !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}
li.pa-author { margin: 8px 0 6px; }
li.pa-title {
  margin: 6px 0 8px;
  color: #9a9a9a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
li.pa-posts,
li.pa-respect,
li.pa-positive,
li.pa-reg,
li.pa-invites,
li.pa-online,
li.pa-time-visit,
li.pa-last-visit,
li.pa-from,
li.pa-age,
li.pa-sex,
li.pa-ip,
li.pa-gifts { display: none; }
li.pa-title::before { content: none; display: none; }
.punbb .post .post-author li.pa-fld1,
.punbb .post .post-author li.pa-fld2 {
  position: relative;
  overflow: visible;
  margin: 8px 0 0;
  padding: 0;
  text-align: center;
}
.pf-plaque {
  position: relative;
  min-height: 36px;
  margin-top: 26px;
  padding: 6px 8px 6px 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2426 var(--u-plaque) center / cover no-repeat;
  color: #f6f6f6;
}
.pf-plaque p {
  margin: 0;
  color: #f6f6f6;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}
.pf-mark {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 48px;
  height: 68px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}
li.pa-avatar { margin: 4px 0 6px; padding: 0; background: none; }
li.pa-avatar img {
  display: block;
  width: 191px;
  height: 189px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center 45%;
  border: none;
  border-radius: 5px;
}
html.dark .punbb .post .post-author {
  border-color: #4a4543;
}
html.dark .punbb .post .post-author::before,
html.dark .punbb .post .post-author::after {
  background-color: var(--c-profile);
}
.punbb .post .post-body {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  padding: 0;
  background: transparent;
  min-height: 0;
}
.punbb .post-content table {
  width: 100% !important;
  max-width: 100%;
  margin: 8px 0;
  border: none !important;
  border-collapse: collapse;
  clear: none;
  float: none;
}
.punbb .post-content th,
.punbb .post-content td {
  border: none !important;
  background: transparent;
  vertical-align: top;
}
.punbb .post-links {
  grid-column: 2;
  grid-row: 2;
  float: none !important;
  clear: none;
  width: auto;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #d8d4d4;
  box-sizing: border-box;
}
.punbb .post-links ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  line-height: 1.4;
}
.punbb .post-links li {
  display: inline-flex;
  float: none;
  margin: 0;
  padding: 0;
}
.punbb .post-links .pl-tail { margin-left: auto; }
.punbb .post-links .acchide { display: none !important; }
.punbb .post-links a {
  color: #6d6864;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
}
.punbb .post-links a:hover { color: #8d1c24; }
.punbb .linkst,
.punbb .linksb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 10px 16px 16px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
.punbb .linkst .pagelink,
.punbb .linksb .pagelink { float: none; order: 1; margin: 0; text-align: left; }
.punbb .linkst .postlink,
.punbb .linksb .postlink,
.punbb .postlink {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  order: 2;
  float: none;
  clear: none;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  white-space: nowrap;
}
.punbb .subscribelink,
.ps-sub {
  float: none;
  clear: none;
  width: auto;
  margin: 0 0 0 8px;
  padding: 0;
  white-space: nowrap;
}
.punbb .pagelink {
  color: #6a6662;
  font-size: 14px;
  text-transform: lowercase;
}
.punbb .pagelink a,
.punbb .pagelink strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  margin: 0 5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: transparent;
  color: #6a6662;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
}
.punbb .pagelink strong {
  background: #e4dfdb;
  color: #3a3634;
}
.punbb .pagelink a:hover {
  background: #efeae6;
  color: #3a3634;
}
.punbb .postlink a,
.ps-sub a {
  color: #2c2826;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  text-decoration: none;
}
.punbb .postlink a:hover,
.ps-sub a:hover { color: #8d1c24; }
.ps-feed {
  margin: 8px 16px 0;
  text-align: right;
  text-transform: lowercase;
  font-size: 13px;
}
.ps-feed a { color: #6e2c2c; text-decoration: none; }
.ps-viewers {
  margin: 14px 16px 6px;
  color: #222;
  font-size: 14px;
  text-transform: lowercase;
}
.ps-viewers strong { font-weight: 800; }
.ps-viewers a { color: #6a3030; font-weight: 650; text-decoration: none; }
.punbb .modmenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
}
.punbb .modmenu select {
  border: 1px solid #cfc9c6;
  border-radius: 12px;
  background: #d9d5d2;
  color: #444;
  font-size: 14px;
  padding: 8px 14px;
}
.punbb .post-content { color: var(--c-ink); font-size: 14px; line-height: 1.55; }
.punbb .post-content .quote-box,
.punbb .post-content blockquote {
  background: var(--c-quote);
  border: none;
  border-radius: 4px;
  color: var(--c-ink);
}

/* Низ */
#pun-stats .container,
#pun-ulinks .container,
.punbb .linksb, .punbb .linkst {
  color: var(--c-mute);
  background: transparent;
}
#html-footer { height: auto; min-height: 28px; background: none; }

/* Формы: ответ, поиск, вход, настройки */
.punbb .formal .container { padding: 16px 18px; }
.punbb fieldset {
  border: 1px solid var(--c-row-line);
  border-radius: 6px;
  padding: 12px 16px 4px;
  margin: 0 0 12px;
}
.punbb fieldset fieldset { border: none; margin: 0; padding: 0 0 8px; }
.punbb fieldset legend { padding: 0 6px; font-weight: 700; }
.punbb .formsubmit { margin: 12px 0 0; padding: 0; }
.punbb .formsubmit input,
.punbb .formsubmit a { margin: 0 8px 0 0; }
.punbb textarea,
.punbb .longinput input { width: 100%; max-width: 100%; box-sizing: border-box; }

/* Быстрый ответ: светлая версия формы с кнопками по образцу */
#post-form { margin: 8px 16px 18px; }
#post-form > h2 { display: none; }
#post-form form.container { padding: 0; background: transparent; border: none; }
#post-form fieldset {
  position: relative;
  margin: 18px 0 0;
  padding: 0 16px 36px;
  border: 1px solid #c9c5c3;
  border-radius: 12px;
  background: #e4e1df;
}
#post-form legend {
  display: table;
  margin: -1px auto 14px;
  padding: 0;
  text-align: center;
}
#post-form legend span {
  display: inline-block;
  padding: 7px 18px 8px;
  border: 1px solid #c9c5c3;
  border-radius: 0 0 12px 12px;
  background: #d8d4d2;
  color: #3f3c3a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#post-form #form-buttons { margin: 2px 0 12px; text-align: center; }
#post-form #form-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
}
#togglePreview,
#post-form .ps-live {
  position: static !important;
  top: auto !important;
  right: auto !important;
  float: none !important;
  clear: none !important;
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  height: auto;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#togglePreview input,
#post-form .ps-live input,
#post-form .ps-live {
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #cfcbc9;
  border-radius: 8px;
  background: #f4f2f1;
  color: #6d6864;
  font-size: 11px;
  font-weight: 600;
  line-height: 34px;
  cursor: pointer;
}
#plng,
#post-form .ps-chars {
  position: absolute !important;
  right: 18px !important;
  bottom: 10px !important;
  left: auto !important;
  top: auto !important;
  float: none !important;
  display: block;
  width: auto !important;
  margin: 0 !important;
  padding: 0;
  text-align: right;
  color: #a39e9a !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  z-index: 3;
  pointer-events: none;
}
#post-form #form-buttons table {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0;
  border-collapse: separate;
  border-spacing: 6px 6px;
}
#post-form #form-buttons td {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 1px solid #cfcbc9 !important;
  border-radius: 8px;
  background-color: #f4f2f1 !important;
  box-sizing: border-box;
  line-height: 0;
  cursor: pointer;
}
#post-form #form-buttons td:hover { background-color: #fff !important; border-color: #b7b2b0 !important; }
#post-form #form-buttons td img { width: 28px !important; height: 28px !important; }
#post-form textarea {
  display: block;
  width: 100%;
  min-height: 240px;
  margin: 0;
  padding: 16px 18px;
  box-sizing: border-box;
  border: 1px solid #c9c5c3;
  border-radius: 18px;
  background: #eceae8;
  color: #3c3c3c;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
#post-form .formsubmit { margin: 14px 0 0; text-align: center; }
#post-form .formsubmit input {
  margin: 0 6px;
  border: 1px solid #c9c5c3;
  border-radius: 8px;
  background: #f4f2f1;
  color: #3f3c3a;
  padding: 8px 16px;
  cursor: pointer;
}
#post-form .formsubmit input:hover { background: #fff; }

html.dark #post-form fieldset { background: #3a3634; border-color: #5a5552; }
html.dark #post-form legend span { background: #4a4644; border-color: #5a5552; color: #e6e0da; }
html.dark #post-form #form-buttons td { background-color: #2e2b2a !important; border-color: #5a5552 !important; }
html.dark #post-form textarea { background: #2e2b2a; border-color: #5a5552; color: #e4ded8; }
html.dark #post-form .ps-chars { color: #9c968f; }
html.dark #post-form .ps-live { background: #2e2b2a; border-color: #5a5552; color: #c8c2bc; }
.punbb .helplinks { display: block; margin-top: 6px; font-size: 12px; }
.punbb .info-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-frame-line);
  border-radius: 6px;
  background: var(--c-frame);
}
.punbb .main .tcl { width: 46%; text-align: left; }
.punbb .main .tc2,
.punbb .main .tc3,
.punbb .main .tcmod { width: 12%; text-align: center; }
.punbb .main .tcr { width: 30%; text-align: left; }
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl { width: 40%; }
#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 { width: 22%; text-align: left; }
.punbb td .modlist { display: block; padding-top: 4px; font-size: 12px; }
.punbb td span.youposted { font-weight: 700; }

/* Профиль */
#profile .container { padding: 8px 16px 16px 230px; }
#profilenav {
  float: left;
  width: 190px;
  margin-left: -210px;
}
#profilenav li { padding: 0 0 8px; font-weight: 700; }
#viewprofile ul,
#profilenav ul {
  margin: 0 0 12px;
  padding: 16px 14px 8px;
  border: 1px solid var(--c-frame-line);
  border-radius: 6px;
  background: var(--c-row);
}
#viewprofile h2,
#profilenav h2 {
  margin: 0 10px -8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
}
#viewprofile li,
#setmods dl {
  padding: 0 0 6px 200px;
  margin: 0 0 4px;
}
#viewprofile li span,
#setmods dt {
  float: left;
  width: 180px;
  margin-left: -200px;
  padding: 8px 10px;
  font-weight: 700;
}
#viewprofile li strong,
#viewprofile li div,
#setmods dd {
  display: block;
  padding: 8px 10px;
  background: var(--c-frame);
  font-weight: 400;
}

@media (max-width: 1160px) {
  #pun, .punbb { width: auto; margin-left: 8px; margin-right: 8px; }
  .ps-jump { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .punbb .category h2::after,
  .punbb .category .container { transition: none; }
}

/* Ночная тема: текст светлый, иначе на тёмных плашках его не видно */
html.dark,
body.dark { color: #d9d3cc; }
html.dark .punbb,
html.dark .punbb td,
html.dark .punbb p,
html.dark .punbb li,
html.dark .punbb h3,
html.dark .punbb .tclcon,
html.dark .punbb .forumdesc,
html.dark #pun-stats li,
html.dark .ps-viewers {
  color: #d9d3cc;
}
html.dark .punbb a { color: #f0c8c8; }
html.dark .punbb a:hover { color: #fff; }
html.dark #pun-navlinks a,
html.dark #pun-navlinks a span { color: #e6e0da !important; }
html.dark #pun-navlinks a:hover,
html.dark #pun-navlinks a:hover span { color: #fff !important; }
html.dark #pun-ulinks a { color: #c8c2bc !important; }
html.dark #pun-ulinks a:hover { color: #fff !important; }
html.dark #pun-index .tcl h3 a,
html.dark #pun-index tbody tr:hover td { background: rgba(255, 255, 255, 0.06); }
html.dark #pun-index td.tcr a { color: #f0c8c8; }
html.dark #pun-index .forumdesc,
html.dark #pun-index td.tcr span,
html.dark #pun-index td.tcr .byuser,
html.dark .punbb .pagelink,
html.dark .punbb .post h3 span,
html.dark .punbb .post h3 .permalink,
html.dark .punbb .post h3 .sharelink,
html.dark .punbb .post h3 strong { color: #b7b0a8; }
html.dark .punbb .post h3 span { background: #3a3634; }
html.dark .punbb .post-links a,
html.dark .punbb .postlink a,
html.dark .ps-sub a,
html.dark .ps-viewers,
html.dark .ps-viewers a,
html.dark .ps-feed a { color: #e7e2dc; }
html.dark .pa-author a,
html.dark li.pa-author a { color: #d9d3cc !important; }
html.dark .punbb .post .post-author li { color: #c8c2bc; }
html.dark li.pa-title { color: #f0c8c8; }
html.dark .punbb .post-content,
html.dark .punbb .post-content p { color: #e4ded8; }
html.dark .punbb input,
html.dark .punbb textarea,
html.dark .punbb select,
html.dark .punbb .modmenu select {
  background: #2e2b2a;
  color: #e4ded8;
  border-color: #5a5552;
}
html.dark .punbb .pagelink a,
html.dark .punbb .pagelink strong {
  background: transparent;
  color: #d9d3cc;
}
html.dark .punbb .pagelink strong {
  background: #3a3634;
  color: #d9d3cc;
}

/* Ночь: не перекрашиваем, а гасим яркость примерно на 30% */
html.dark body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
html.dark .punbb,
html.dark #pun-main,
html.dark #pun-main .board-in,
html.dark #pun-index .category .container,
html.dark #pun-main .forum {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html.dark #pun-main,
html.dark #pun-main .board-in {
  background: transparent !important;
}
