/*************************************************************
A - SETUPthead
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
  @import url(style_cs.1753018604.css);
  @import url('https://fonts.googleapis.com/css2?family=PT+Mono&family=Roboto&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400;600;800&family=IBM+Plex+Sans:wght@400;500&family=PT+Mono:wght@400;500&display=swap');

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/


    :root {
      --color-bg:            #2b3232;
      --color-bg-alt:        #393e3e;
      --color-bg-dark:       #1e2125;
      --color-bg-darker:     #23272b;
      --color-block-bg:      #2f3434;
      --color-text:          #cdb89c;
      --color-heading:       #eae0c7;
      --color-secondary:     #95c3a3;
      --color-border:        #424646;
      --gradient-bg:         linear-gradient(to right, #393e3e, #2b3232);
      --color-button-bg:     #2f3434;
      --color-button-text:   #cdb89c;
      --color-button-hover:  #393e3e;
      --color-highlight-bg:  rgba(255,255,255,0.1);
      --shadow-inner:        inset 0 0 5px #1e2222;
      --shadow-outer:        0 2px 8px rgba(0,0,0,0.5);
      
       --transition:.25s ease;
       --cut: 25px;
       
        --corn:7px;   /* длина штриха */
        --stroke:0.5px;  /* толщина */
        
          --corn1:5px;   /* длина штриха */
        --stroke1:0.25px;  /* толщина */
    }

/* A2.1 */
html {margin: 0; padding: 0}

html, body {
    
  margin: 0;
  padding: 0;
  overflow-x: auto;
  width: 100%;
  min-width: 1200px;
}

/* A2.2 */
.punbb * {
  margin: 0;

  }

/* A2.3 */
.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
  }

/* A2.4 */
.punbb img {
  border:none
  }

/* A2.5 */
.punbb .main table {
  table-layout: fixed;
  width: 100%;
  }

/* A2.6 */
.checkfield input[type="checkbox"], .radiofield input[type="radio"] {margin: 0 0.3em;}

/* A2.7 */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 1.8em;
  vertical-align: middle
  }


 /* A3 Text setup
-------------------------------------------------------------*/

/* A3.1 */

#pun {
  width: 1080px;
  margin: 0 auto;
  background-color: var(--color-bg-dark);
  background-image: url(https://forumstatic.ru/files/001c/7c/69/93307.jpg);
  background-repeat: repeat;
  background-position: top center;
  border: 1px solid var(--color-border);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-image: url('https://forumstatic.ru/files/001b/a2/9c/72483.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #2b3232;
  color: #cdb89c;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* A3.2 */
.punbb {
  font: normal 80% 'IBM Plex Sans', verdana, arial, helvetica, sans-serif;
  }

/* 3.3 */
.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 1em 'IBM Plex Sans', verdana, arial, helvetica, sans-serif
  }

/* A3.4 */
.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: normal;
  }

/* A3.5 */
.punbb h1 span, .punbb h2 span, .punbb legend span {
  font-size: 1.1em;
  }

/* A3.6 */
.punbb pre {
  font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace
  }

/* A3.7 */
.punbb address, .punbb em {
  font-style: normal
  }

/* A3.8 */
.punbb .post-content em {
  font-style: italic
  }

/* A3.9 */
.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
  }

/* A3.10 */
.punbb a {
  /*text-decoration: underline*/
  color: var(--color-secondary);
  }

/* A3.11 */
.punbb optgroup {
  font-weight: bold;
  }


/* A4 Float clearing and hidden items
-------------------------------------------------------------*/

/* A4.1 */
#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;
  }

/* A4.2 */
.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
  }


/* A5 Basic page layout and borders
-------------------------------------------------------------*/

/* A5.1 */


/* A5.2 */
.punbb {
  float: left;
  width: 100%;
  height: auto;
  }

/* A5.3 */
#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  float: none;
  }

/* A5.4 */
.punbb .section, .punbb .main {
  margin-bottom: 1em;
  }

/* A5.5 */
.punbb .category, .punbb .post {
  margin-top: 0.4em;
  }

/* A5.6 */
.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {
  margin-top: 0;
  }

/* 5.7 */
#pun-post .topic {
  margin-top: 1em;
  }

/* A5.8 */
.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
  border-width: 1px 1px 1px 1px;
  }

/* A5.9 */
.punbb .container {
  border-style: solid;
  border-width: 1px;
  }

/* A5.10 */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.5em 1em;
  border-style: none solid solid none;
  border-width: 0 1px 1px 0;
  }


/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/

/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/

/* B1.1 */
.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  }

/* B1.2 */
.punbb .post-sig dt {
  display: block;
  border-top: 1px solid #888;
  width: 250px;
  margin: 5px 0;
  }

/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 150%;
  }

/* B1.4 */
.punbb .post-content img {
  vertical-align: text-bottom
  }

/* B1.5 */
.punbb .post-content img.postimg {
  vertical-align: middle;
  }

/* B1.6 */
.punbb .post-content .blockcode, .punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;
  }

/* B1.7 */
.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
  }

/* B1.8 */
.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 0.4em 1.8em 1.4em 1.8em;
  padding: 1em;
  border-style: solid;
  border-width: 1px;
  }

/* B1.9 */
.punbb .quote-box cite, .punbb .code-box strong.legend {
  display: block;
  padding-bottom: 0.7em;
  font-size: 1.1em;
  font-weight: bold;
  font-style: normal;
  margin: 0;
  }

/* B2 Information boxes
-------------------------------------------------------------*/

/* B2.1 */
.punbb .info-box {
  padding: 1.1em 1.7em 1em 1.7em;
  border-style: solid;
  border-width: 1px;
  margin: 0 0 1.1em 0;
  }

/* B2.2 */
.punbb .info-box * {
  padding: 0 0 0.7em 0;
  }

/* B2.3 */
.punbb #pun-main .info-box .legend {
  font-size: 1.1em;
  font-weight: bold;
  }


/* B3 Pagination and posting links
-------------------------------------------------------------*/

/* B3.1 */
.punbb .linkst {
  float: left;
  position: relative;
  width: 100%;
  font-size: 1.1em;
  height: 0;
  }

/* B3.2 */
.multipage {
  margin-top: 3em;
  }

/* B3.3 */
.linkst .pagelink {
  position: absolute;
  top: -4em;
  left: 1em;
  width: 24em;
  }

/* B3.4 */
.linkst .postlink {
  position: absolute;
  top: -4em;
  right: 1em;
  width: 16em;
  text-align: right;
  font-weight: bold;
  }

/* B3.5 */
.punbb .linksb {
  text-align: right;
  padding: 0.4em 1em 0.5em 1em;
  font-size: 1.1em;
  }

/* B3.6 */
.linksb .pagelink {
  float: left;
  width: 24em;
  text-align: left;
  }

/* B3.7 */
.linksb .postlink {
  float: right;
  width: 16em;
  font-weight: bold
  }

/* B3.8 */
.subscribelink {
  clear:both;
  padding-top: 0.3em;
  padding-bottom: 0.5em;
  }


/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/

/* C1 Form layout
-------------------------------------------------------------*/

/* C1.1 */
.punbb .formal .container {
  padding: 1.7em 2.3em 1.1em 2.3em;
  }

/* C1.2 */
.punbb .formsubmit {
  padding: 0 0 0 1.7em;
  margin: 1em 0 0 0;
  }

/* C1.3 */
.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {
  margin: 0 0.6em 0 0
  }

/* C1.4 */
.punbb fieldset {
  border-style: solid;
  border-width: 1px;
  padding: 0 18px 0 18px;
  margin: 0 0 1em 0
  }

/* C1.5 */
.punbb fieldset legend {
  
     padding: 0;
    margin: 0 0 0 11px;
    font: 600 1.1rem / 1 'Tektur', sans-serif;
  }

/* C1.6 */
.punbb fieldset legend span {
  padding: 0 5px;
  margin: 0 0 0 -15px;
  }

/* C1.7 */
.punbb fieldset fieldset {
  border-style: none;
  margin: 0;
  padding: 0 0 8px 0
  }

/* C1.8 */
.punbb .fs-box {
  padding: 1em 0 0.8em 0;
  }

/* C1.9 */
.punbb .fs-box p, .punbb .fs-box fieldset {
  padding: 0 0 0.8em 0
  }

/* C1.10 */
.punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield {
  float: left;
  margin-right: 1em;
  }

/* C1.11 */
.punbb .inline .infofield {
  clear:both
  }

/* C1.12 */
.punbb .datafield br {
  display: none
  }

/* C1.13 */
.punbb .required label, .punbb .datafield span.input {
  font-weight: bold
  }

/* C1.14 */
.punbb .datafield span.input a {
  font-weight: normal;
  }

/* C1.15 */
.punbb .areafield span.input, .punbb p.longinput span.input {
  display: block;
  padding: 0 12em 0 0;
  height: 100%; /* For IE */
  }

/* C1.16 */
.punbb textarea, .punbb .longinput input {
  width: 64%;
  margin: 0;
  }

/* C1.17 */
.punbb .hashelp {
  position: relative;
  }

/* C1.18 */
.punbb .helplinks {
  display: block;
  position: absolute;
  top: 1em;
  right: 0;
  font-weight: normal;
  width: 36%;
  }

/* c1.19 */
.punbb #profile .helplinks {
  top: 1.5em;
  }

/* C1.20 */
.punbb .helplinks span {
  display: block;
  padding-bottom: 0.2em;
  }

/* C1.21 */
#pun-post .formal .info-box li {
  padding-left: 4px;
  list-style-type: square;
  list-style-position: inside;
  line-height: 1.5;
  margin: 0;
  }


/* C2 Table layout
-------------------------------------------------------------*/

/* C2.1 */
.punbb .main .tcl {
  overflow: hidden;
  text-align: left;
  width: 70%;

  }

/* C2.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
  }

/* C2.3 */
.punbb .main .tcr {
  overflow: hidden;
  width: 30%;
  background-color: var(--gradient-bg);
  }

/* C2.4 */
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
  width: 40%
  }

/* C2.5 */
#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
  text-align: left;
  width: 20%;
  }

/* C2.6 */
#pun-debug table .tcl {
  width: 15%;
  white-space:normal;
  }

/* C2.7 */
#pun-debug .tcr {
  width: 90%;
  white-space: normal;
  }

/* C2.8 */
#pun-index .tcl h3 {
  font-size: 1.2em;
  /*font-weight: bold;*/
  }

/* C2.9 */
.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;
  }

/* C2.10 */
.punbb td .modlist {
  display: block;
  padding-top: 0.3em
  }

/* C2.11 */
.punbb .main td {
  padding: 0.8em 1em;
  }

/* C2.12 */
.punbb .main th {
  /*border-style: none none none solid;
  border-width: 0 0 0 1px;*/
  padding: 0.4em 1em 0.4em 1em;
  }

/* C2.13 */
.punbb .main .tcl {
  border-left-style: none;
  border-left-width: 0
  }

/* C2.14
.punbb tbody.hasicon td.tcl {
  padding-left: 3.2em
  }
 */

/* C2.16 */

 /* C3 Topics
-------------------------------------------------------------*/

/* C3.1 */
.punbb .post .container {
  border-style: none solid solid solid;
  border-width: 1px;
  margin-top: -1px;
  padding-bottom: 1px;
  }

/* C3.2 */
.punbb .post h3 {
  border-style: solid solid none solid;
  border-width: 1px;
  }

/* C3.3 */
.punbb .post h3 span {
    padding: 0.5em 1em;
    display: block;
    margin-left: 266px;
  }

/* C3.4 */
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;
  }

/* C3.5 */
.punbb .post .post-author {
    position: relative;
    display: block;
    float: left;
    width: 266px;
    margin-top: -29px;
    margin-left: -22px;
    border: 1px solid var(--color-border);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    background: url(https://forumstatic.ru/files/001c/7c/69/72992.jpg) no-repeat;
    z-index: 15;
    background-color: var(--color-bg-dark);
    box-shadow: 5px 5px 10px #1e2222;
    
  }

/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 1em 1em 1em;
  line-height: 140%;
  }

/* C3.7 */
.pa-author {
    margin-top: 10px;
    font: 500 25px / 1 'Tektur', sans-serif;
    text-align: center;

  }

/* C3.8 */
.pa-author a {
  text-decoration: none
  }

/* C3.9 */
li.pa-title {
    padding-bottom: 0.4em;
    font-size: 14px;
    font-family: "IBM Plex Sans";
    text-align: center;
  }
  
li.pa-avatar.item2 {
    display: flex;
    justify-content: center;
    align-items: center;
}



.pa-avatar {
  position: relative;
  display: inline-block;
}

/* Ваш стиль для кружка статуса */
.pa-avatar::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 9px solid var(--color-bg-dark);
  z-index: 2;
  transition: all 0.3s ease;
}

/* Зеленый для онлайн */
.pa-avatar.online::after {
  background-color: #4CAF50;
}

/* Серый для офлайн */
.pa-avatar.offline::after {
  background-color: #595959;
}


/* Контейнер для подсказки */
.status-tooltip {
  position: absolute;
  bottom: 28px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 100;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  min-width: 120px;
  text-align: center;
}

/* Стрелка подсказки */
.status-tooltip::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 14px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

/* Показ подсказки при наведении */
.pa-avatar:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
}


li.pa-online {
  display: none;
  }
  
.pa-fld2 {
    text-align: center;
    font-family: 'PT Mono';
    font-size: 18px;
    margin-top: 5px;
}

.pa-fld1 {
    width: 230px;
    background-color: var(--color-bg-darker);
    border-radius: 12px;
    font-size: 13px;
    border: 5px solid var(--color-bg-darker);
    margin: 10px auto 0 auto;
    padding: 15px;
    box-sizing: border-box;
    text-align: justify;
    word-break: break-word;
    color: var(--color-text);
    box-shadow: 0 0 0 5px var(--color-bg-darker);
}


/* Делаем элементы списка строчными */
.pa-posts, 
.pa-respect, li.pa-positive {
    display: inline-block;
    vertical-align: middle;
    margin-left: 18px;
    margin-top: 15px;
    font-family: 'IBM Plex Sans';
    font-size: 18px;
    color: var(--color-text);
}

li.pa-respect {
    color: var(--color-bg-dark);
}

li.pa-respect span
 {
    color: var(--color-text);
}


/* Стили для замены текста на изображения (ваш предыдущий код) */
.pa-posts .fld-name,
.pa-respect .fld-name,
li.pa-positive .fld-name{

    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    overflow: hidden;

}

.pa-posts .fld-name::after,
.pa-respect .fld-name::after,
li.pa-positive .fld-name::after{
    content: "";  /* Важно! Без этого ::after не появится */
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;  /* Или inline-block */
}

.pa-posts .fld-name::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232f3434"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>');
}

.pa-respect .fld-name::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232f3434"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
}

li.pa-positive .fld-name::after {
    background-image: url(https://forumstatic.ru/files/001c/7c/69/67184.png);
}


.pa-posts .fld-name a,
.pa-respect .fld-name a,
li.pa-positive .fld-name a{
    display: none;
}

.pa-posts .fld-name,
.pa-respect .fld-name,
li.pa-positive .fld-name{
    color: transparent;
    font-size: 0;
}

/* Скрываем лишние элементы */
.pa-respect a[rel="nofollow"] {
  display: none !important;
}

.mini_awards_label
 {
    display: none;
}


/* C3.11 */
.punbb .post-body {
  margin-left: 19em;
  border-left-style: solid;
  border-left-width: 1px;
  padding: 0 0 1px 0;
  }

/* C3.12 */
.punbb .post-box {
  padding: 1em;
  }

/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em
  }

/* C3.14 */
.punbb .post-links {
  margin-left: 19em;
  border-left-style: solid;
  border-left-width: 1px;
  }

/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 0;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  border-top-style: dashed;
  border-top-width: 1px;
  background: transparent;
  text-align: right;
  }

/* C3.16 */
.punbb .post-links li {
  display: inline;
  padding-left: 1em;
  }

/* C3.17 */
.pl-email, .pl-website {
  float: left;
  }

/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
  }


/* C4 Moderator menu
-------------------------------------------------------------*/

/* C4.1 */
.punbb .modmenu .container {
  padding: 0.5em 1em;
  text-align: right;
  }

/* C4.2 */
.punbb .modmenu strong, .punbb .modmenu a {
  height: 1.8em;
  line-height: 1.8em;
  }

/* C4.3 */
.punbb .modmenu .container strong {
  float: left;
  }

/* C4.4 */
.punbb .modmenu input {
  margin-left: 1em;
  }


/* C5 Message boxes
-------------------------------------------------------------*/

/* C5.1 */
.punbb .info .container {
  padding: 0.8em 1em
  }

/* C5.2 */
.punbb .info .container .backlink {
  padding-top: 0.8em;
  }


/* C6 Profile
-------------------------------------------------------------*/



/* C6.2 */
#profilenav {
  float: left;
  width: 14em;
  margin-left: -16.3em;
  display: inline;
  }

/* C6.3 */
#profilenav li {
  padding-bottom: 0.8em;
  font-weight: bold;
  }

/* C6.4 */
#viewprofile ul, #profilenav ul {
  border-style: solid;
  border-width: 1px;
  padding: 1.5em 18px 0.8em 18px;
  margin: 0 0 1em 0;
  }

/* C6.5 */
#viewprofile h2, #profilenav h2 {
  background: transparent;
  border: none;
  padding: 0 0 0 0;
  margin: 0 14px -0.6em 14px;
  }

/* C6.6 */
#viewprofile h2 span, #profilenav h2 span {
  padding: 0 5px;
  position: relative;
  }

/* C6.7 */
#viewprofile li, #setmods dl {
  padding: 0 0 0 16em;
  margin-bottom: 0.2em;
  }

/* C6.8 */
#viewprofile li span {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.5em 1em;
  font-weight: bold;
  }

/*C6.9 */
#setmods dt {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.8em 1em;
  font-weight: bold;
  display: inline;
  }

/* C6.10 */
#viewprofile li strong, #viewprofile li div, #setmods dd {
  display: block;
  padding: 0.5em 1em;
  font-weight: normal;
  }

/* C6.11 */
.punbb img.avatardemo {
  float: right;
  margin: 0 0 0.8em 1.8em
  }


/* C7 User list
-------------------------------------------------------------*/

/* C7.1 */
#pun-userlist .formal, #pun-userlist .formal .container {
  border-bottom: none;
  margin-bottom: 0;
  }

/* C7.2 */
#pun-userlist .usertable .container {
  padding: 0 2.3em 2.3em 2.3em;
  border-top: none;
  }

/* C7.3 */
#pun-userlist .usertable table {
  border-style: solid;
  border-width: 1px;
  }


/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/

/* D1 Logo and description
-------------------------------------------------------------*/

/* D1.1 */
#pun-title {
  display: none !important;
  }



/* D2 Page navigation
-------------------------------------------------------------*/

/* D2.1 */
#pun-pagelinks {
  position: absolute;
  top: -15px;
  left: 0;
  margin: 0;
  border: none;
  padding: 0;
  width: 100%;
  }

/* D2.2 */
#pun-pagelinks .container {
  background: transparent;
  border: none;
  padding: 0}

/* D2.3 */
#pun-pagelinks .container li {
  display: inline
  }

/* D2.4 */
#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover {
  height: 2em;
  line-height: 2em;
  padding: 0;
  font-size: 1.2em;
  margin-left: -9999px;
  display: block;
  float:left;
  width: 100%;
  }

/* D2.5 */
#pun-pagelinks a:active, #pun-pagelinks a:focus {
  position:relative;
  margin: 0;
  }

#pun-pagelinks li a span {
  display:block;
  margin: 0 1em
  }

/* D3 Forum navigation
-------------------------------------------------------------*/

/* D3.1 */
 /* Горизонтальная навигация в шапке */
  #pun-navlinks {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: linear-gradient(to right, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 9px 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: visible;
  }
  #pun-navlinks ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    border-style: none;
  }
  #pun-navlinks li {
    margin: 0;
  }
  #pun-navlinks a {
    color: var(--color-text);
    text-decoration: none;
    font-family: 'PT Mono', monospace;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
  }
  #pun-navlinks li.isactive > a {
    background: rgba(255,255,255,0.05);
  }
  #pun-navlinks a:hover {
    background: rgba(255,255,255,0.1);
  }

/* D4 User links
-------------------------------------------------------------*/

/* D4.1 */

#pun-ulinks {
    margin: -510px 0 510px -21px;/* Центрируем блок на странице */
    position: relative;
    padding: 0 10px; /* Отступы по бокам для фона вкладок */
    
    box-sizing: border-box; /* Важно, чтобы padding не увеличивал общую ширину 1020px */
    overflow: hidden; 
}


/* D4.2 */


/* D4.3 */

#pun-ulinks .container {
    padding: 0;
    margin: 0;
    display: block;
    position: relative;
    top: 1px; /* Смещаем ul немного вниз, чтобы вкладки "наезжали" на border-bottom родителя */
    border-width: 0 0 2px 0;
}

#pun-ulinks .container ul {
    /* Эти свойства устанавливает JavaScript: */
    /* display: flex; */
    /* flex-wrap: nowrap; */
    /* margin: 0 -10px;  - ЭТОТ ОТСТУП ОСТАЕТСЯ, ОН КОМПЕНСИРУЕТ PADDING РОДИТЕЛЯ */
    /* width: auto; */

    padding: 0;
    margin: 0 -10px; /* Возвращаем этот margin, чтобы ul растягивался на всю ширину родителя */
    list-style: none;
    box-sizing: border-box;
    position: relative; /* Для правильного z-index контекста */
}

#pun-ulinks .container li {
    /* Эти свойства устанавливает JavaScript: */
    /* flex: 1 0 auto; */
    /* box-sizing: border-box; */
    /* min-width: 100px; */

    list-style: none;
    margin: 0; /* Убедимся, что нет лишних отступов на li */
    padding: 0;
    position: relative;
    z-index: 1; /* Базовый z-index для всех вкладок. ЭТО ВАЖНО, чтобы z-index работал */
    /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: УДАЛИЛИ overflow: hidden; отсюда, чтобы не обрезалось содержимое */
    /* overflow: hidden; */ 
}

/* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: z-index для нахлеста - Правая вкладка теперь выше левой */
/* Чем правее вкладка, тем выше ее z-index */
#pun-ulinks .container li:nth-child(1) { z-index: 1; } /* Самая левая - самый низкий z-index */
#pun-ulinks .container li:nth-child(2) { z-index: 2; }
#pun-ulinks .container li:nth-child(3) { z-index: 3; }
#pun-ulinks .container li:nth-child(4) { z-index: 4; }
#pun-ulinks .container li:nth-child(5) { z-index: 5; }
#pun-ulinks .container li:nth-child(6) { z-index: 6; }
#pun-ulinks .container li:nth-child(7) { z-index: 7; }
#pun-ulinks .container li:nth-child(8) { z-index: 8; }
#pun-ulinks .container li:nth-child(9) { z-index: 9; }/* Самая правая - самый высокий z-index */
/* Добавьте больше, если у вас больше вкладок, продолжая последовательность (z-index: 6, 7 и т.д.) */

/* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Возвращаем нахлест с помощью margin-left на A, а не на LI */
#pun-ulinks .container li:not(:first-child) a {
    margin-left: -15px; /* Отрицательный отступ для эффекта нахлеста. Регулируйте значение! */
}

/* Удаленный стиль:
#pun-ulinks .container li:not(:last-child) {
    margin-right: -15px;
}
*/

/* НОВОЕ ПРАВИЛО: Гарантируем, что первая кнопка не обрезается */
#pun-ulinks .container li:first-child a {
    margin-left: 0 !important; /* Убедимся, что у первой ссылки нет отрицательного левого отступа */
    /* Padding-left уже установлен в 15px общим правилом ниже, этого должно быть достаточно */
}


/* Стилизация самой ссылки-вкладки для ретро-эффекта и закругленных краев */
#pun-ulinks .container li a {
    display: flex; /* Используем flex для выравнивания текста внутри a */
    align-items: center; /* Выравнивание текста по вертикали (по центру) */
    justify-content: flex-start; /* Выравнивание текста по левому краю */
    position: relative; /* Для позиционирования псевдоэлементов и z-index */
    padding: 8px 10px 8px 10px; /* Увеличил правый padding, чтобы текст не прижимался к краю. Левый 15px по умолчанию */
    font-family: 'PT Mono', sans-serif;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap; /* Предотвращает перенос текста */
    box-sizing: border-box;
    cursor: pointer;
    height: 100%; /* Важно, чтобы ссылка заполняла всю высоту li */

    background-color: transparent; /* Фон будет у псевдоэлемента */
    color: var(--color-text); /* Цвет текста */

    border: none; /* Все границы и тени будут на псевдоэлементе */
    box-shadow: none;
}

/* Создаем форму с закругленными краями и объем с помощью псевдоэлемента ::before */
#pun-ulinks .container li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ИЗМЕНЕНИЕ ЗДЕСЬ: Закругляем только верхний правый угол (top-left top-right bottom-right bottom-left) */
    border-radius: 6px 6px 0 0; 
    
    background-color: var(--color-bg-dark); /* Основной цвет вкладки */
    
    /* Обводка, имитирующая объем - на псевдоэлементе */
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: none; /* Нижняя граница не нужна */

    /* Внутренняя тень для объема - на псевдоэлементе */
    box-shadow: inset 1px 1px 0px 0px rgba(255, 255, 255, 0.15), /* Светлая тень сверху-слева */
                inset -1px -1px 0px 0px rgba(0, 0, 0, 0.3); /* Темная тень снизу-справа */
    
    transition: background-color 0.1s ease-out, box-shadow 0.1s ease-out;
    z-index: -1; /* Помещаем псевдоэлемент под текст ссылки */
}

/* Стиль при наведении (hover) */
#pun-ulinks .container li a:hover::before {
    background-color: var(--color-bg-alt); /* Чуть темнее при наведении */
    /* Инвертируем тени для эффекта "нажатия" или "активности" */
    box-shadow: inset 1px 1px 0px 0px rgba(0, 0, 0, 0.3), /* Темная тень сверху-слева */
                inset -1px -1px 0px 0px rgba(255, 255, 255, 0.15); /* Светлая тень снизу-справа */
}

#pun-ulinks .container li a.active {
    z-index: 99; /* Активная вкладка должна быть выше всех остальных */
}

#pun-ulinks .container li a.active::before {
    background-color: var(--color-bg); /* Цвет активной вкладки - как фон основного содержимого */
    border-bottom: 1px solid var(--color-bg); /* Граница снизу, совпадающая с фоном, чтобы выглядело как часть блока */
    /* Инвертируем тени, чтобы выглядело "вдавленным" */
    box-shadow: inset 1px 1px 0px 0px rgba(0, 0, 0, 0.3), /* Темная тень сверху-слева */
                inset -1px -1px 0px 0px rgba(255, 255, 255, 0.15); /* Светлая тень снизу-справа */
    
    /* ИЗМЕНЕНИЕ ЗДЕСЬ: Для активной кнопки также закругляем только верхний правый угол */
    border-radius: 6px 0 0 0; /* top-left, top-right, bottom-right, bottom-left */
}

/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/

/* D5.1 */
 /* Статус пользователя с адаптированным стилем */
  #pun-status.section {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
  }

  }
  #pun-status h2 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--color-heading);
    flex-shrink: 0;
  }
  #pun-status .container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    border-style: none;
    
  }
  
  #pun-status .status-right {
    margin-left: auto;
  }

  /* Разделитель */
  #pun-break1.divider hr {
    width: 100%;
    margin: 12px 0;
    border: none;
    border-top: 1px solid var(--color-border);
  }

  /* Хлебные крошки (предыдущий стиль) */
  #pun-crumbs1.section .container.crumbs, #pun-crumbs2.section .container.crumbs {
    width: 100%;
    margin: 0 4px;
    display: flex;
    align-items: center;
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: var(--color-text);
    gap: 5px;
    border-style: none;
  }
  #pun-crumbs1.section .container.crumbs strong,  #pun-crumbs2.section .container.crumbs strong {
    color: var(--color-heading);
  }

/* D6 Announcement
-------------------------------------------------------------*/

/* D6.1 */
#pun-announcement h2 {
  padding: 0;
  margin: 0 1em -3.5em 1em;
  border-style: none none solid none;
  border-width: 0 0 1px 0;
  position: relative;
  font-weight: bold;
  }

/* D6.2 */
#pun-announcement h2 span {
  display: block;
  padding: 1em 0 0.8em 0;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  }

/* D6.3 */
#pun-announcement .container {
  padding: 4.3em 1em 1em 1em;
  }

/* D7 Statistics
-------------------------------------------------------------*/

/* D7.1 */
#pun-stats .container {
  padding: 0.8em 1em
  }

/* D7.2 */
#pun-stats li.item1, #pun-stats li.item2 {
  float: left;
  clear: both;
  line-height: 150%;
  }

/* D7.3 */
#pun-stats li.item3, #pun-stats li.item4 {
  text-align: right;
  line-height: 150%;
  }

/* D7.4 */
li#onlinelist {
  margin-top: 1em;
  border-top-style: solid;
  border-top-width: 1px;
  float: left;
  width: 100%;
  line-height: 130%;
  }

/* D7.5 */
li#onlinelist div {
  border-top-style: solid;
  border-top-width: 1px;
  padding: 0.7em 0 0 0;
  }

/* D8 Quick Jump - About - Bottom Breadcrumbs
-------------------------------------------------------------*/

/* D8.1 */
#pun-qjump {
  margin: 0;
  border: none;
  width: 50%;
  position: relative;
  float: left;
  }

/* D8.2 */
#pun-qjump .container {
  border: none;
  background: transparent;
  padding: 0.8em 1em;
  }

/* D8.3 */
#pun-about {
  margin-top: 0;
  }

/* D8.4 */
#pun-about .container {
  border: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;
  }

/* D8.5 */
#pun-about p span {
    display: block;
    text-align: center;
    overflow-y: auto;
  }

/* D8.6 */
#pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: none;
  }

/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  padding: 0.8em 1em;
  font-size: 1.1em;
  }

/* D8.8 */
#pun-break4 {
  margin: -2px 1em;
  /*border-style: solid none;
  border-width: 1px 0;*/
  position: relative;
  height: 0;
  z-index: 1;
  }

/* D8.9 */
div.punbb-admin #pun-about .container {
  border-top-style: solid;
  border-top-width: 1px;
  }


/* D9 Help file
-------------------------------------------------------------*/

/* D9.1 */
#pun-help .formal .info-box h3.legend {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: 0;
  margin-bottom: 0.8em;
  }

/* D9.2 */
#pun-help .formal .info-box h3.legend span {
  padding-bottom: 0.6em;
  display: block;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  font-size: 1.1em;
  }

/* D9.3 */
#pun-help .formal p, #pun-help .formal dd {
  margin-bottom: 1em
  }

/* D9.4 */
#pun-help .formal ul, #pun-help .formal dl {
  padding: 0 0 0 1em
  }

/* D9.5 */
#pun-help .formal li {
  padding: 0;
  line-height: 130%
  }

/* D9.6 */
#pun-help .formal li * {
  vertical-align: text-top
  }

/* D9.7 */
#pun-help .formal dt span {
  font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace
  }

/* D9.8 */
#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode {
  padding-bottom: 0;
  }
  
  
  /*Шапка*/
  
   /* --- Кнопки --- */
  button {
    font-family: 'PT Mono', monospace;
    padding: 2px 10px;
    font: 500 .75rem / 1 'PT Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--gradient-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    transition: background var(--transition), border var(--transition);
    margin: 5px;
  }

  button:hover {
    background:var(--color-bg-alt);
    border-color:var(--color-secondary);
  }

  button:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 12px #7a7f7f;
  }

  /* --- Блоки --- */
  .banner {
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
    font-size: 18px;
    color: var(--color-heading);
    border: 1px dashed var(--color-border);
    border-radius: 6px 2px 6px 2px;
  }

/* Стили для выпадающих списков */
.dropdown-pun_index {
  position: relative; /* Важно для позиционирования выпадающего меню */
  display: inline-block; /* Чтобы кнопки располагались в ряд */
}

.dropdown-menu {
 position: absolute;
  top: 100%; /* Располагаем под кнопкой */
  left: 0;
  background-color: var(--color-bg); /* Цвет фона меню */
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 160px; /* Минимальная ширина меню */
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 100; /* Чтобы меню было поверх других элементов */
  
  /* НОВОЕ для анимации: */
  max-height: 0; /* Изначально 0, чтобы скрыть содержимое */
  overflow: hidden; /* Скрываем содержимое, которое выходит за max-height */
  opacity: 0; /* Изначально прозрачное */
  transform-origin: top center; /* Точка трансформации для эффекта "раскручивания" */
  transform: scaleY(0.8); /* Начинаем чуть уменьшенным по Y */
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out; /* Плавные переходы */
  
  flex-direction: column; /* Элементы списка идут в столбик */
  padding: 0px 0; /* ИЗМЕНЕНО: padding 0, чтобы не влиял на max-height в скрытом состоянии */
  /* padding 5px 0 будет добавлен при активном состоянии */
}

.dropdown-menu.active {
  /* НОВОЕ для анимации: */
  max-height: 200px; /* Достаточно большое значение, чтобы показать весь контент */
  opacity: 1; /* Делаем видимым */
  transform: scaleY(1); /* Возвращаем к нормальному размеру */
  padding: 5px 0; /* Возвращаем padding при открытии */
}

.dropdown-menu a {
  color: var(--color-text); /* Цвет текста ссылок */
  padding: 8px 15px;
  text-decoration: none;
  display: block; /* Ссылки занимают всю ширину */
  white-space: nowrap; /* Не переносить текст ссылок */
}

.dropdown-menu a:hover {
 
  background: linear-gradient(to right, var(--color-bg-alt), var(--color-bg));
  color: var(--color-heading);
}

/* Коррекция для .quick-links, чтобы они не переносились из-за dropdown-pun_index */
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* ИЗМЕНЕНО: на wrap, чтобы allow wrapping if needed, but not force it */
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: visible; /* ИЗМЕНЕНО: на visible, чтобы выпадающие списки не обрезались */
    width: 100%;
}
  

  .main-content {
    display: flex;
    gap: 20px;
  }

  .left-panel, .right-panel {
    width: 200px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    background: var(--color-bg-darker);
    padding: 15px;
    box-shadow: inset 0 0 5px #1f2424;
  }

  .forum-body {
    flex: 1;
    background: rgba(255,255,255,0.02);
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
  }

  /* --- Иконки line art --- */
  .icon {
    width: 20px;
    height: 20px;
    stroke: #ccc;
    fill: none;
    stroke-width: 2;
    opacity: 0.6;
    vertical-align: middle;
    margin-right: 6px;
    transition: stroke 0.3s;
  }

  .container div:hover .icon,
  button:hover .icon {
    stroke: var(--color-heading);
    opacity: 1;
  }

  /* --- Плеер --- */
  .player {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 15px;
    box-shadow: inset 0 0 8px #1f2424;
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    user-select: none;
  }

  .player .title {
    font-weight: bold;
    margin-bottom: 8px;
  }

  .player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .player-button {
    width: 32px;
    height: 32px;
    background: var(--color-block-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    box-shadow: inset 0 0 5px #1e2222;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .player-button:hover {
    box-shadow: 0 0 10px 2px #aeb5b7;
    background-color: var(--color-button-hover);
  }

  .player-button:active {
    transform: scale(0.9);
    box-shadow: inset 0 0 12px #7a7f7f;
  }

  .timeline {
    flex: 1;
    height: 6px;
    background: var(--color-button-hover);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 5px #1e2222;
  }

  .timeline-filled {
    height: 100%;
    background: var(--color-text);
    border-radius: 3px 0 0 3px;
    width: 40%; /* пример заполнения */
    transition: width 0.3s ease;
  }

  /* --- Плейлист кнопка --- */
  .playlist-button {
    font-family: 'PT Mono', monospace;
    background: var(--color-block-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 6px 12px;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: inset 0 0 5px #1e2222;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
  }

  .playlist-button:hover {
    box-shadow: 0 0 10px 2px #aeb5b7;
    background-color: var(--color-button-hover);
  }

  .playlist-button:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 12px #7a7f7f;
  }


  /* --- Виджет состояния системы --- */
  .system-status {
    margin-top: 15px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    padding: 12px 15px;
    box-shadow: inset 0 0 8px #1f2424;
    color: var(--color-secondary);
    font-family: 'PT Mono', monospace;
    font-size: 13px;
    user-select: none;
  }

  .system-status .status-title {
    font-weight: bold;
    margin-bottom: 6px;
  }

  .status-item {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
  }
  
  .header-image {
    width: 1080px;
    height: auto;
    position: relative;
    z-index: 1;
	margin-left: -21px;
  }
  
  .background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	 background-color: var(--color-bg);
     background-size: 1080px auto;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
  }
  
  /* Стрелка для раскрытия */
	.nav-collapse-trigger {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0;
    z-index: 1001;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 35px;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
}

.nav-collapse-trigger.active {
    opacity: 1;
    pointer-events: all;
    animation: bounce 1.5s infinite;

}



.scroll-btnTop {
    position: fixed;
   right: 20px;
    bottom: 70px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0; /* Изначально скрыта */
    pointer-events: none; /* Не кликабельна, когда скрыта */
    transition: opacity 0.3s ease, transform 0.1s ease; /* ИЗМЕНЕНО: добавлено 'transform 0.1s ease' */
    font-size: 35px;
    line-height: 1;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
    padding-bottom: 0px;
    display: flex; /* Для центрирования символа */
    justify-content: center; /* Добавлено для центрирования */
    align-items: center; /* Добавлено для центрирования */
}

.scroll-btnTop.active { /* Теперь JS будет добавлять этот класс для анимации */
    opacity: 1;
    pointer-events: all;
    animation: bounce-y 1.5s infinite; /* ИЗМЕНЕНО: теперь используется 'bounce-y' */
}


/*Кнопка вниз*/
.scroll-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0; /* Изначально скрыта */
    pointer-events: none; /* Не кликабельна, когда скрыта */
    transition: opacity 0.3s ease, transform 0.1s ease; /* ИЗМЕНЕНО: добавлено 'transform 0.1s ease' */
    font-size: 35px;
    line-height: 1;
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(176, 183, 185, 0.8);
    padding-bottom: 0px;
    display: flex; /* Для центрирования символа */
    justify-content: center; /* Добавлено для центрирования */
    align-items: center; /* Добавлено для центрирования */
}

.scroll-btn.active { /* Теперь JS будет добавлять этот класс для анимации */
    opacity: 1;
    pointer-events: all;
    animation: bounce-y 1.5s infinite; /* ИЗМЕНЕНО: теперь используется 'bounce-y' */
}


@keyframes bounce {
    0%, 100% { transform: translate(-50%, -5px); }
    50% { transform: translate(-50%, 5px); }
}


@keyframes bounce-y {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
}

.sticky-pun_index {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient-bg), var(--gradient-bg);
}


/* Стили для анимации приветствия*/
.banner {
    position: relative;
    height: 25px;
    margin: 20px 0;
    text-align: center;
    overflow: visible;
}

.banner-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    width: 100%;
    font-size: 18px;
}

.typing-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 100%;
}

.typing-effect {
    display: inline-block;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(40, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}



  /* --- Анимация fade-in --- */
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  #visualizer {
    flex: 1;
    height: 30px;
    margin: 0 10px;
    background: var(--gradient-bg);

    
	}

    .player-container {
        width: 100%; /* Занимает всю ширину правой панели */
        max-width: 200px; /* Максимальная ширина */
        padding: 10px;
        background: var(--gradient-bg);
        border: 1px solid var(--color-border);
        border-radius: 6px 2px 6px 2px;
        position: relative;
        box-sizing: border-box;
    }

     .track-artwork {
        width: 100%;
        padding-top: 100%; /* Создаем квадратный контейнер */
        position: relative;
        margin-bottom: 10px;
    }

    .artwork-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 1px solid var(--color-border);
    }

    .track-title {
        color: var(--color-heading);
        font-size: 12px;
        margin: 8px 0;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .time-display {
        display: flex;
        justify-content: space-between;
        color: var(--color-text);
        font-size: 11px;
        margin: 8px 0;
    }

     .player-controls {
        position: relative; /* Добавляем для правильного позиционирования */
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .icon-btn {
        background: none;
        border: none;
        color: var(--color-text);
        font-size: 14px;
        cursor: pointer;
        padding: 2px;
        line-height: 1;
    }

    .progress-container {
        flex: 1;
        height: 2px;
        background: var(--color-border);
        cursor: pointer;
        position: relative;
    }


    .progress-bar {
        height: 100%;
        background: var(--color-text);
        width: 0%;
        transition: width 0.1s linear;
    }

    .tracks-list {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        right: 0;
        width: 100%; /* Теперь ширина как у плеера */
        max-height: 200px;
        overflow-y: auto;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        list-style: none;
        padding: 5px;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        box-sizing: border-box; /* Важно для правильного расчёта ширины */
    }

     .tracks-list.visible {
        display: block;
    }

    .track-item {
        padding: 8px !important;
        font-size: 12px;
        color: var(--color-text);
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-item:hover {
        background: linear-gradient(to right, var(--color-bg-alt), var(--color-bg));
    }
    
    
      
/* Основной контейнер форума */
#pun-main {
      
    font-family: 'IBM Plex Sans', sans-serif; /* Примерный шрифт, можно изменить */
   
}

/* Заголовок "Форум" */
#pun-main h1 {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 20px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    justify-content: center;
}

#pun-main h1 span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-heading); /* Золотистый акцентный цвет */
    padding-bottom: 5px;
    display: inline-block; /* Чтобы граница была только под текстом */
}

/* ---------- категория ---------- */
.category{
    position:relative;          /* нужно для ::after */
    width:100%;
    margin-bottom:30px;
    background:var(--color-block-bg);
    border-radius:2px;
    /*box-shadow:0 4px 15px rgba(0,0,0,.5);*/
   overflow:visible;
    font-family:'IBM Plex Sans',sans-serif;
    
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut));
    
}

.category::after{
  content:"";
  position:absolute; 
  inset:0;
  box-shadow:0 4px 15px rgba(0,0,0,.5);
    z-index:-1;
  pointer-events:none;        /* чтобы не мешать кликам */
}

/* ---------- заголовок ---------- */
.category h2{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    padding:10px 18px;
    font: 500 1.2rem / 1 'Tektur', sans-serif;
    text-transform:uppercase;
    letter-spacing:.05em;
    color:var(--color-heading);
    background:var(--gradient-bg);
    box-shadow:inset 0 0 5px #1e2222;
    position:relative;overflow:hidden;
    
}
    
.category h2 span{flex: 0 0 auto;
    font-family: 'PT Mono', monospace;
    
}
/* glitch layers */
.category h2 span::before,.category h2 span::after{
    content:attr(data-text);
    position:absolute;
    width:100%;
    height:100%;
    overflow:hidden;}
.category h2 span::before{left:19px;text-shadow:-2px 0 var(--color-secondary);clip-path:polygon(0 0,100% 0,100% 45%,0 45%);} 
.category h2 span::after{left:19px;text-shadow:2px 0 #ff5d5d;clip-path:polygon(0 55%,100% 55%,100% 100%,0 100%);} 
@keyframes glitch{0%{clip-path:polygon(0 2%,100% 2%,100% 8%,0 8%);}20%{clip-path:polygon(0 15%,100% 15%,100% 25%,0 25%);}40%{clip-path:polygon(0 30%,100% 30%,100% 38%,0 38%);}60%{clip-path:polygon(0 55%,100% 55%,100% 65%,0 65%);}80%{clip-path:polygon(0 72%,100% 72%,100% 80%,0 80%);}100%{clip-path:polygon(0 88%,100% 88%,100% 95%,0 95%);}}
.category h2 span::before{animation:glitch 3s infinite steps(6)}
.category h2 span::after{animation:glitch 2.5s infinite steps(6)}

.catleft,.catright{flex:1;height:2px;background:var(--color-secondary);box-shadow:0 0 6px var(--color-secondary);position:relative;}
.catleft::after,.catright::after{content:"";position:absolute;top:0;width:14px;height:100%;background:inherit;}
.catleft::after{right:-14px;transform:skewX(-3deg);} .catright::after{left:-14px;transform:skewX(-3deg);} 

.category h2::after{content:"STATUS: [ONLINE]";margin-left:auto;padding:3px 6px;font:600 .55rem/1 'PT Mono',monospace;color:var(--color-secondary);border:1px solid rgba(149,195,163,.3);animation:blink 2s infinite alternate;} 
@keyframes blink{0%{opacity:1;text-shadow:0 0 5px rgba(149,195,163,.8);}100%{opacity:.4;text-shadow:none;}}

/* ---------- таблица ---------- */
.category table{
    width:100%;
    border-collapse:collapse;
    font-family:'IBM Plex Sans',sans-serif;
    
} 
.category thead
{
    font-size: 0.8em;
    color: #a0a0a0;
    
}
.category .tc2,.category .tc3{
    display:none;
    
}
.category tbody tr{
    position:relative;transition:background .12s;
    
} 

/*
.category tbody tr:hover{background:rgba(66,70,70,.08);} */

.category tbody tr:hover{background:var(--color-bg-darker);}
tbody.hasicon tr:hover { background: var(--color-bg-darker);}

.category tbody tr::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    /*height:1px;*/
    background:rgba(66,70,70,.25);} 
    
.category tbody tr:last-child::after{display:none;}
.category tbody td{padding:10px 20px;color:var(--color-text);vertical-align:top;} .category tbody td.tcl{background:rgba(52,57,57,.08);} 

.category tbody td.tcl {
padding-left: 3.2em;
    
}

.category tbody td.tcl .intd{display:flex;gap:12px;align-items:flex-start;}
.category tbody td.tcl .tclcon h3{margin:0 0 4px;font:600 1rem/1 'Tektur',sans-serif;color:var(--color-heading);} .category tbody td.tcl .tclcon h3 a{color:inherit;text-decoration:none;} .category tbody td.tcl .tclcon h3 a:hover{color:var(--color-secondary);} 

.btn-frm{margin-top:6px;display:flex;flex-wrap:wrap;gap:5px;} .sik{padding:2px 10px;font:500 .75rem/1 'PT Mono',monospace;text-transform:uppercase;letter-spacing:.04em;background:var(--gradient-bg);color:var(--color-text);border:1px solid var(--color-border);border-radius:6px 2px;box-shadow:inset 0 0 5px #1e2222;transition:background var(--transition),border var(--transition);} .sik:hover{background:var(--color-bg-alt);border-color:var(--color-secondary);} 

.tcr{text-align:right;color:var(--color-heading);line-height:1.4;} 
.user-avatar{display:inline-block;width:18px;height:18px;margin-right:5px;overflow:hidden;opacity:.8;transition:opacity .2s;vertical-align:bottom;} 
.user-avatar:hover{opacity:1;} 
.avatar-image{width:100%;height:100%;background-size:cover;background-position:center;} .isonline{position:absolute;right:0;bottom:0;width:4px;height:4px;background:var(--color-secondary);box-shadow:0 0 2px rgba(149,195,163,.6);} .lastpost-link{color:var(--color-text);text-decoration:none;} .lastpost-link:hover{color:var(--color-secondary);} .lastpost{display:block;font-size:.75rem;color:#a0a0a0;} .datetime{color:#b0b0b0;}

.category tbody td.tcl .tclcon
{
    padding: 0 0 0 15px;
}

.category tbody td,
.category thead th, .punbb tbody.hasicon td, .punbb tbody.hasicon th   /* thead скрыт, но оставил на будущее */
{
  position: relative;        /* база для псевдо-элемента */
}

/* собственно уголки */
.category tbody td::before,
.category thead th::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom left,
    linear-gradient(var(--color-secondary) 0 0) bottom left;

  /* размеры восьми штрихов: горизонталь &#9656; вертикаль */
  background-size:
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn),
    var(--corn) var(--stroke), var(--stroke) var(--corn);

  background-repeat: no-repeat;
}

.punbb tbody.hasicon td::before, .punbb tbody.hasicon th::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   left,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) top   right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom right,
    linear-gradient(var(--color-secondary) 0 0) bottom left,
    linear-gradient(var(--color-secondary) 0 0) bottom left;

  /* размеры восьми штрихов: горизонталь &#9656; вертикаль */
  background-size:
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1),
    var(--corn1) var(--stroke1), var(--stroke1) var(--corn1);

  background-repeat: no-repeat;
}



@media(max-width:768px)
{.category tbody tr::after{display:none;} 
.category tbody td{display:block;width:100%!important;text-align:left!important;} 
.category .tcr{margin-top:6px;}}

/* icons unchanged */
#pun-index div.icon,#pun-index tr.inew div.icon
{position:absolute;float:left;height:30px;width:30px;margin:-4px 0 0 -35px;opacity:.7;background-size:contain;background-repeat:no-repeat;} 
#pun-index div.icon {
    background-image:url(https://forumstatic.ru/files/001c/7c/69/85445.png);
    
} 

#pun-index tr.inew div.icon {
    background-image:url(https://forumstatic.ru/files/001c/7c/69/52601.png);
    
}

@keyframes glow1{
  0%,100%{filter:drop-shadow(0 0 1px #eae0c7);}
  50%    {filter:drop-shadow(0 0 4px #eae0c7);}
}
#pun-index tr.inew div.icon {animation:glow1 1.6s infinite;}

a.lastpost-link, .byuser {
    font-family: 'PT Mono';
}
.byuser {
    COLOR: VAR(--color-secondary);
}


.bubble
 {
    background: red;
    border: 0 none;
    border-radius: 3px;
    color: white;
    display: inline-block;
    font: bolder 8px / 1.6 Tahoma;
    margin: 4px 0 0 -40px !important;
    min-width: 14px;
    padding: 0 1px;
    position: absolute;
    right: 16px !important;
    text-align: center;
    top: -6px !important;
    z-index: 9999;
}


.wrapper {
  position: relative;
  z-index: 1;
  background-color: #1e2125;
}


.nav-support {
    
    position: fixed;
    top: -43%;
    width: 500px;
    height: 90%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1001;
}

.nav-left {
  left: calc(50% - 1000px); /* 510 = 1020/2; 60 — ширина изображения */
  background-image: url("https://forumstatic.ru/files/001c/7c/69/49642.png");
}

.nav-right {
  right: calc(50% - 1000px);
  background-image: url("https://forumstatic.ru/files/001c/7c/69/20564.png");
}


canvas {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      z-index: -100;
    }

    
    .modmenu p.container
 {
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0px 0px 6px 2px;
 
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;

}

.forum .container {
    align-items: center;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 0px 0px;
 
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

#pun-stats.section {
    display: flex;
    width: 100%;
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    padding: 6px 15px;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

#pun-stats h2 {
    display: flex;
   /* align-content: flex-start;*/
    border: none;
    padding: 5px 10px 0px 0px;
    color: var(--color-secondary);
}

#pun-stats .container {
    padding: 0.8em 1em;
    border-left-width: 1px;
    border-top: none;
    border-bottom: none;
    border-right: none;
}

#profile .container 
 {
    padding-left: 18.6em;
}

#viewprofile .container, #profile10, #profile .container {
    background-color: var(--color-block-bg);
    color: var(--color-text);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px 2px 6px 2px;
    margin: 5px 0;
    box-shadow: inset 0 0 5px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.footer {
    
    height: 33px;
    text-align: center;
    overflow-y: auto;
}

#banners a img { opacity:0.3; -moz-opacity:0.3; filter:alpha(opacity=40); }
#banners a:hover img { opacity:1.0; -moz-opacity:1.0; filter:alpha(opacity=100); }

#html-footer .container {
    border: none;
}

.punbb tbody.hasicon td.tcl div.icon{background:url('https://forumstatic.ru/files/001c/7c/69/98622.svg') center/contain no-repeat;} 
.punbb tbody.hasicon td.tcl div.icon.icon-new {background:url('https://forumstatic.ru/files/001c/7c/69/53432.svg') center/contain no-repeat; color:#ff5d5d;}


@keyframes glow{
  0%,100%{filter:drop-shadow(0 0 1px #95c3a3);}
  50%    {filter:drop-shadow(0 0 4px #95c3a3);}
}
.punbb tbody.hasicon td.tcl div.icon.icon-new {animation:glow 1.6s infinite;}

.punbb tbody.hasicon td.tcl .intd .tclcon{
  flex:1 1 0;               /* занимает оставшееся, можно сжимать */
  min-width:0;              /* &#11013; ключевая строчка */
}

.punbb tbody.hasicon td.tcl .intd{
  display:flex;
  gap:12px;
  align-items:flex-start;   /* или center, как нравится */
}

thead {
    font-size: 0.8em;
}

#pun-viewtopic .post h3 {
 
    position: relative;
    width: 100%;
    height: 30px;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 2px 2px 6px 2px;
    box-shadow: 0 5px 10px #1e2222;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}