@import url(style_cs.1795214438.css);

@import url(https://necolas.github.io/normalize.css/latest/normalize.css);

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=PT+Mono&display=swap");
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@100;200;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url('https://fonts.cdnfonts.com/css/tt-travels-next-trl');


@font-face {
  font-family: 'DespairDisplay-Bold';
  src: url('https://forumstatic.ru/files/001b/f2/fa/58867.eot');
  src: url('https://forumstatic.ru/files/001b/f2/fa/58867.eot') format('embedded-opentype'),
         url('https://forumstatic.ru/files/001b/f2/fa/73044.woff2') format('woff2'),
         url('https://forumstatic.ru/files/001b/f2/fa/41137.woff') format('woff'),
         url('https://forumstatic.ru/files/001b/f2/fa/82090.ttf') format('truetype'),
         url('https://forumstatic.ru/files/001b/f2/fa/22218.svg#DespairDisplayBold') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
font-family: 'Actay';
src: url('http://forumstatic.ru/files/0019/6e/89/27726.otf');
font-weight: normal;
font-style: normal;}

@font-face {
  font-family: 'Space';
  src: url('https://forumstatic.ru/files/001b/f2/fa/65017.eot');
  src: url('https://forumstatic.ru/files/001b/f2/fa/65017.eot') format('embedded-opentype'),
         url('https://forumstatic.ru/files/001b/f2/fa/49984.woff2') format('woff2'),
         url('https://forumstatic.ru/files/001b/f2/fa/81194.woff') format('woff'),
         url('https://forumstatic.ru/files/001b/f2/fa/44930.ttf') format('truetype'),
         url('https://forumstatic.ru/files/001b/f2/fa/96128.svg#ProjectSpace') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Manifold';
      src: url('https://forumstatic.ru/files/001b/f2/fa/15130.eot');
      src: url('https://forumstatic.ru/files/001b/f2/fa/15130.eot') format('embedded-opentype'),
           url('https://forumstatic.ru/files/001b/f2/fa/25410.woff2') format('woff2'),
           url('https://forumstatic.ru/files/001b/f2/fa/11275.woff') format('woff'),
           url('https://forumstatic.ru/files/001b/f2/fa/81266.ttf') format('truetype'),
           url('https://forumstatic.ru/files/001b/f2/fa/34950.svg#ManifoldExtendedCFHeavy') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'Akony';
      src: url('https://forumstatic.ru/files/001b/f2/fa/61379.eot');
      src: url('https://forumstatic.ru/files/001b/f2/fa/61379.eot') format('embedded-opentype'),
           url('https://forumstatic.ru/files/001b/f2/fa/34788.woff2') format('woff2'),
           url('https://forumstatic.ru/files/001b/f2/fa/29959.woff') format('woff'),
           url('https://forumstatic.ru/files/001b/f2/fa/50521.ttf') format('truetype'),
           url('https://forumstatic.ru/files/001b/f2/fa/61212.svg#Akony') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'Nitti Normal';
   font-style: normal;
   font-weight: normal;
   src: url('https://forumstatic.ru/files/001b/fa/64/39864.woff') format('woff');
 }
    

@font-face {
  font-family: 'Nitti Bold';
   font-style: normal;
   font-weight: normal;
   src: url('https://forumstatic.ru/files/001b/fa/64/31893.woff') format('woff');
 }


@font-face {
    font-family: "Ghost Dancer";
    src: url("https://forumstatic.ru/files/001a/f1/f5/18743.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "Philosopher";
    src: url("https://forumstatic.ru/files/001a/f1/f5/94044.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/*************************************************************
A - SETUP
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
  @import url(style_cs.1795214438.css);

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/

/* A2.1 */
* {margin: 0; padding: 0}

/* A2.2 */
.punbb * {
  margin: 0 auto 
  }

/* A2.3 */
.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
  }
/* CS3.3 */
/* 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 */
body {
  font-size: 109.01%;
  }

/* A3.2 */
.punbb {
  font: normal 75.00% Tahoma;
  }

/* 3.3 */
.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 1em 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;
  }

.punbb h1 span {display: none;}



/* 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
  }

/* 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 */
#pun {
    width: 1300px;
    margin: 0 auto 40px !important;
    padding: 0 0 30px;
}


/* A5.2 */
.punbb {
    float: none;
    width: auto;
    height: auto;
    margin: 0px 150px;
}

/* A5.3 страница переадресации*/
#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  float: none;
  min-height: 100px;
  }

#pun-redirect {
    border: 0 none !important;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;

    background-color: #111111;
    background-image: url(https://forumstatic.ru/files/001a/f1/f5/64821.png);
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
}
    #pun-redirect *{
      border:0 none;
    }
    #pun-redirect .main-title {
      display:none;
    }
#pun-redirect.punbb .info .container {
    text-align: center;
    display: block;
    margin: 5% auto;
    font-family: 'Arial';
    font-size: 14px;
    padding: 30px 0px;
    height: auto;
    border: 0 !important;
    width: 900px;
    margin-top: 120px;
    color: #e0e0e0;
}
#pun-redirect.punbb .info .container a {
    color: #c4c4c4 !important;
}

/* A5.4 */
.punbb .section, .punbb .main {
  margin-bottom: 1em;
  }

/* A5.5 */
.punbb .category {
  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-style: none none solid none;
  border-width: 0px 0px 0px 0px
  }

/* 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;
  text-align: justify;
  }

/* B1.2 */
.punbb .post-sig dt {
  display: block;
  border-top: none;
  width: 250px;
  margin: 5px 0;
  }

/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 1em;
  line-height: 150%;
  }

/* Ссылки внутри текста сообщений */
.punbb .post-content a {
    color: #bb8d2a;
    font-weight: normal;
    text-decoration: none;
}

.punbb .post-content a:hover {
    color: #a1571d;
}

/* 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;
  }

.punbb .post-content blockquote {
  margin-left: -2px;
}

/* 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 0 1.4em 1.2em;
  padding: 8px;
  }

/* B1.9 название цитаты и кода*/
.punbb .quote-box cite, .punbb .code-box strong.legend {
  font-family: Philosopher;
  text-transform: uppercase;
  display: block;
  padding-left: 10px;
  margin-bottom: 5px;
  font-size: 1.1em;
  font-weight: bold;
  font-style: normal;
  background: #b9b9b9;
  border-radius: 5px;
  }

/* =========================================================
   ОФОРМЛЕНИЕ ЦИТАТ
   фон тела цитаты оставляем прежним
   ========================================================= */

.punbb .post-content .quote-box {
  position: relative;

  margin: 10px 5px 14px 10px;
  padding: 12px 14px 12px 18px;

  /* ФОН НЕ МЕНЯЕМ */

  border: 1px solid #b9a783;
  border-left: 2px solid #b89d62;

  border-radius: 10px;

  box-shadow: none;

  color: #333333;
}


/* =========================================================
   ЗАГОЛОВОК ЦИТАТЫ
   ========================================================= */

.punbb .quote-box cite {
  position: relative;

  display: block;

  margin: 0 0 9px 0;
  padding: 0 0 6px 26px;

  background: transparent;

  border: 0;
  border-bottom: 1px solid rgba(187, 141, 42, 0.65);

  border-radius: 0;

  font-family: "Philosopher", serif;
  font-size: 16px;
  font-weight: normal;
  font-style: italic;

  text-transform: none;

  color: #000000;
}


/* Декоративная искра */

.punbb .quote-box cite::before {
  content: "";

  position: absolute;

  left: 0;
  top: -1px;

  width: 20px;
  height: 20px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1 L8.5 5.8 L13 7.5 L8.5 9.2 L7.5 14 L6.5 9.2 L2 7.5 L6.5 5.8 Z' fill='%23bb8d2a'/%3E%3Cpath d='M12 1.8 L12.4 3.2 L13.8 3.6 L12.4 4 L12 5.4 L11.6 4 L10.2 3.6 L11.6 3.2 Z' fill='%23bb8d2a'/%3E%3Cpath d='M2.5 10 L2.9 11.2 L4.1 11.6 L2.9 12 L2.5 13.2 L2.1 12 L0.9 11.6 L2.1 11.2 Z' fill='%23bb8d2a'/%3E%3C/svg%3E");
}


/* =========================================================
   ТЕКСТ ВНУТРИ ЦИТАТЫ
   ========================================================= */

.punbb .quote-box p {
  margin: 0 !important;
  padding: 0 !important;

  font-family: inherit;

  font-size: inherit;
  line-height: 1.55;

  color: #333333;
}


/* Если внутри несколько абзацев */

.punbb .quote-box p + p {
  margin-top: 7px !important;
}


/* =========================================================
   ВЛОЖЕННАЯ ЦИТАТА
   ========================================================= */

.punbb .quote-box .quote-box {
  margin: 10px 0 4px 8px;

  border-left-color: #9d854f;

  border-radius: 8px;
}

/* =========================================================
   ОФОРМЛЕНИЕ БЛОКА КОДА
   ========================================================= */

.punbb .post-content .code-box {
  position: relative;

  margin: 10px 5px 14px 10px;
  padding: 12px 14px 12px 18px;

  border: 1px solid #b9a783;
  border-left: 2px solid #b89d62;

  border-radius: 10px;

  box-shadow: none;
}


/* =========================================================
   ЗАГОЛОВОК "ВЗЯТЬ КОД"
   ========================================================= */

.punbb .code-box strong.legend {
  position: relative;

  display: block;

  margin: 0 0 9px 0;
  padding: 0 0 6px 26px;

  background: transparent;

  border: 0;
  border-bottom: 1px solid rgba(187, 141, 42, 0.65);

  border-radius: 0;

  font-family: "Philosopher", serif;
  font-size: 16px;
  font-weight: normal;
  font-style: italic;

  text-transform: none;

  color: #bb8d2a;
}


/* =========================================================
   ИСКРА ПЕРЕД ЗАГОЛОВКОМ
   ========================================================= */

.punbb .code-box strong.legend::before {
  content: "";

  position: absolute;

  left: 0;
  top: -2px;

  width: 20px;
  height: 20px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1 L8.5 5.8 L13 7.5 L8.5 9.2 L7.5 14 L6.5 9.2 L2 7.5 L6.5 5.8 Z' fill='%23bb8d2a'/%3E%3Cpath d='M12 1.8 L12.4 3.2 L13.8 3.6 L12.4 4 L12 5.4 L11.6 4 L10.2 3.6 L11.6 3.2 Z' fill='%23bb8d2a'/%3E%3Cpath d='M2.5 10 L2.9 11.2 L4.1 11.6 L2.9 12 L2.5 13.2 L2.1 12 L0.9 11.6 L2.1 11.2 Z' fill='%23bb8d2a'/%3E%3C/svg%3E");
}


/* =========================================================
   САМ КОД
   ========================================================= */

.punbb .code-box pre,
.punbb .code-box code {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;

  color: #2f2f2f;

  white-space: pre-wrap;
  word-break: break-word;
}

/* 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 {
  font-family: "Philosopher", serif;
  font-size: 13px;
  font-weight: normal;
  position: absolute;
  top: -4em;
  left: -32px;
  width: 24em;
  }

/* B3.4 кнопка "ответить" сверху */
.linkst .postlink {
  font-family: "Philosopher", serif;
  font-size: 13px;
  font-weight: normal;
  margin-right: -45px;
  position: absolute;
  top: -4em;
  right: 1em;
  width: 16em;
  text-align: right;
  }

/* B3.5 поисковая строка "Найти в теме" / Подписаться и отслеживать тему*/
.punbb .linksb {
  font-family: "Philosopher", serif;
  font-size: 13px;
  text-align: right;
  padding: 0.4em 1em 0.5em 1em;
  font-size: 1.1em;
  margin-right: -48px;
  }

.linksb #s-block, #sTheme {  display: none;}


/* B3.6 Тему просматривают*/
#topic-users-in .container {
  font-family: "Philosopher", serif;
  margin-top: 10px;
  font-size: 13px;}

/* B3.6 нижняя "Страница"*/
.linksb .pagelink {
  font-family: "Philosopher", serif;
  font-size: 13px;
  float: left;
  width: 24em;
  text-align: left;
  margin-left: -45px;
  }

/* B3.7 кнопка "ответить" снизу*/
.linksb .postlink {
  font-family: "Philosopher", serif;
  font-size: 13px;
  margin-right: 0px;
  float: right;
  width: 16em;
  font-weight: normal;
  }

/* B3.8 подписаться и отслеживать */
.subscribelink {
  font-family: "Philosopher", serif;
  font-size: 12px;
  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-size: 1.1em
  }

/* 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;
  background: #D8CABB;
  text-transform: none;  
  color: #33313a;
  text-align: left;
  border-radius: 10px;
  border-color: #b9a783;
  padding-top: 1px;
  padding-left: 10px;
  padding-bottom: 3px;
  }

/* Цвет основного поля ввода сообщения */
#main-reply,
.punbb #main-reply,
.punbb .formal textarea {
  background: #D8CABB !important;
}

/* 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: 50%;
  }

/* C2.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
  }

/* C2.3 */
.punbb .main .tcr {
  flex-wrap: wrap;
  overflow: hidden;
  text-align: center;
  width: 30%;
  }

/* Время и автор последнего сообщения:
   опустить только текст, аватар не трогать */

#pun-viewforum .tcr > a:not(:has(img)),
#pun-viewforum .tcr .byuser {
    position: relative;
    top: 8px;
}

/* 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;
  margin-bottom: -5px;
  position: absolute;

  }

/* C2.10 */
.punbb td .modlist {
  display: none;
  padding-top: 0.3em
  }

/* C2.11 */
.punbb .main td {
  border-style: solid none none solid;
  border-width: 1px 0 0 1px;
  padding: 0.4em 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 {
  }

/* C2.15 */
.punbb div.icon {
  display: block;
  width: 27px;
  height: 27px;
}


/* C2.16 ячейка категории с описанием*/
.punbb td div.tclcon {
    margin-left: 40px;
    font-size: 12px; 
}

/* C3 Topics
-------------------------------------------------------------*/

.post {margin-top: 30px;}

/* 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 {
  background: #BFB3A4;
  width: 103%;
  border-radius: 14px;
  padding: 0.5em 2em;
  display: block;
  margin-left: -40px;
  border: 1px solid #b9a783;
  word-spacing: 6px;
  font-size: 13px;
  }

.punbb .post h3 span a {
  font-family: Philosopher;
  }

/* C3.4 */
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;
  font-family: Philosopher;
  }

.punbb .post .post-author {
  /* запасной серый цвет, если картинка вдруг не загрузится */
  background-color: #BFB3A4;

  /* новая фоновая картинка тёмной части профиля */
  background-image: url("https://forumstatic.ru/files/001a/f1/f5/79782.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;

  border-radius: 19px;
  border: 1px solid #b9a783;

  float: left;
  margin-top: 10px;
  margin-left: -39px;
  width: 230px;
  position: relative;
}

/* ссылки внутри профиля */
.punbb .post .post-author a:link {
  font-weight: bold;
}


/* Нижняя фигурная подложка профиля */
.punbb .post .post-author > ul {
    background: url("https://forumstatic.ru/files/001a/f1/f5/16250.png")
                0 bottom no-repeat;
}

/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 0 1em 0;
  line-height: 140%;
  }

/* C3.7 ник*/
.pa-author {
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  margin-top: 5px;
  word-spacing: 4px;
}

.pa-author a:link {
  font-family: Philosopher;
}

.pa-author a:hover {
  font-family: Philosopher;
}

/* C3.9 статус*/
li.pa-title {
  font-family: "Philosopher", serif;
  font-size: 11px;
  width: 180px;
  padding-bottom: 0.3em;
  font-weight: normal;
  text-align: center;
  color: #e3e3e3;
  }

li.pa-online {
  line-height: 0.8em;
  border-left-style: solid;
  border-left-width: 0.7em;
  margin-top: 0.7em;
  }

li.pl-share a {
  padding-left: 2em;
  }

/* C3.11 выровнять расстояние между профилем и сообщением*/
.punbb .post-body {
  margin-left: 16em;
  border-left-style: solid;
  border-left-width: 1px;
  padding: 0 0 1px 0;
  padding-top: 10px;
  }

/* C3.12 ячейка поста*/
.punbb .post-box {
  width: 100%;
  padding: 1em 2em 1em 1em;
  }

/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em;
  }

/* C3.14 ссылки профиль, лс, имейл, удалить и т.д.*/
.punbb .post-links {
  width: 87%;
  margin-left: 15.5em;
  border-left-style: solid;
  border-left-width: 1px;
  font-family: "Philosopher";
  font-size: 12px;
  }

/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 1em;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  border-top-style: dashed;
  border-top-width: 1px;
  background: transparent;
  text-align: right;
  font-family: "Philosopher";
  font-size: 12px;
  }

/* C3.16 */
.punbb .post-links li {
  display: inline;
  padding-right: 1em;
  color: var(--accent);
  font-family: "Philosopher";
  font-size: 12px;
  }

/* C3.17 */
.pl-email, .pl-website {
  float: left;
  font-family: "Philosopher";
  font-size: 12px;
  }

/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
  }

/* C3.19 аватар */

li.pa-avatar img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 5px;

  border: 1px solid #b89d62;
  outline: 1px solid #b89d62;
  outline-offset: 2px;

  box-sizing: border-box;
}

.pa-avatar {  display: block;   text-align: center;}



/* C3.20 поля профиля */


/* Основное поле профиля */
.pa-fld2 {
    width: 210px;
    margin-top: 8px;
    padding: 0 20px;
    font-size: 12px;
    line-height: 17px;
    text-align: center;
}


/* Имя и возраст */
.pa-fld2 .ank_name {
    width: 185px;
    margin: 0 auto 7px !important;
    padding: 4px 8px;

    background: #15181d;
    border: 1px solid #b9a783;
    border-radius: 8px;

    color: #9c8a55;
    text-align: center;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    font-weight: normal;
}

/* Выравнивание имени относительно возраста */
.pa-fld2 .ank_name a {
    position: relative;
    top: -1px;
}

/* Произвольная информация */
.pa-fld2 .ank_info {
    box-sizing: border-box;
    width: 195px;
    margin: 0 auto 7px !important;
    padding: 3px 6px;

    text-align: center;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    line-height: 16px;
}


/* Раса */
.pa-fld2 .ank_race {
    box-sizing: border-box;
    width: 155px;
    margin: 0 auto !important;
    padding: 3px 10px;

    background: #15181d;
    border: 1px solid #b9a783;
    border-radius: 8px;

    color: #9c8a55;
    text-align: center;
    font-family: "Philosopher", serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   КНОПКА ОСНОВНОГО ПРОФИЛЯ
   ========================================================= */

.pa-fld1 {
  position: absolute;
  cursor: pointer;

  width: 25px;
  height: 25px;

  left: 220px;
  top: 79px;

  align-items: center;
  display: block;

  background: #BFB3A4;

  border-radius: 50%;
  border: 1px solid #b9a783;
}


/* Скрываем название персонажа */
.pa-fld1 a {
  font-size: 0px;
}


/* Иконка основного профиля */
.pa-fld1 a:before {
  content: url("https://forumstatic.ru/files/0019/6e/89/34890.png");

  font-family: Material Icons Outlined;

  font-size: 16px;
}


/* =========================================================
   ПРИНАДЛЕЖНОСТЬ
   ========================================================= */

.pa-fld3 {
  position: absolute;

  width: 25px;
  height: 25px;

  left: 220px;
  top: 49px;

  margin: 0 !important;
  padding: 0 !important;

  background: #BFB3A4;

  border-radius: 50%;
  border: 1px solid #b9a783;

  overflow: hidden;

  z-index: 10;
}

/* =========================================================
   ГРУППЫ ПОЛЬЗОВАТЕЛЕЙ
   ========================================================= */

/* Империя — золотая изящная корона */

.pa-fld3.group-empire {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath fill='%23bb8d2a' d='M3.7 17.3c.5-3.1.8-5.8.9-8.1 1.6 1.7 3 3.1 4.5 4.4L12.5 4l3.4 9.6c1.5-1.3 2.9-2.7 4.5-4.4.1 2.3.4 5 .9 8.1H3.7z'/%3E%3Cpath fill='%23bb8d2a' d='M4.2 18.2h16.6v2.8H4.2z'/%3E%3Ccircle fill='%23bb8d2a' cx='4.6' cy='8.8' r='1.1'/%3E%3Ccircle fill='%23bb8d2a' cx='12.5' cy='3.8' r='1.1'/%3E%3Ccircle fill='%23bb8d2a' cx='20.4' cy='8.8' r='1.1'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

/* Союз — зелёный геральдический щит */

.pa-fld3.group-union {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath fill='%235b964e' d='M4.3 4.1h16.4v6.2c0 5.5-3.3 9.6-8.2 11.8-4.9-2.2-8.2-6.3-8.2-11.8V4.1z'/%3E%3Cpath fill='%23d2d2d2' d='M7 6.2h11v4.4c0 3.8-2 6.8-5.5 8.7C9 17.4 7 14.4 7 10.6V6.2z'/%3E%3Cpath fill='%235b964e' d='M8.2 7.2h8.6v3.4c0 3.1-1.5 5.5-4.3 7.2-2.8-1.7-4.3-4.1-4.3-7.2V7.2z'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

/* Иноземцы — синяя строгая роза ветров */

.pa-fld3.group-foreigners {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpolygon fill='%235b9ad2' points='12.50,1.70 14.11,8.61 19.00,5.61 15.14,11.35 23.30,12.50 15.14,13.65 19.00,19.39 14.11,16.39 12.50,23.30 10.89,16.39 6.00,19.39 9.86,13.65 1.70,12.50 9.86,11.35 6.00,5.61 10.89,8.61'/%3E%3Ccircle cx='12.5' cy='12.5' r='1.7' fill='%23d2d2d2'/%3E%3Ccircle cx='12.5' cy='12.5' r='0.9' fill='%235b9ad2'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

/* =========================================================
   ПИРАТЫ — КЛАССИЧЕСКИЙ ЧЕРЕП
   ========================================================= */

.pa-fld3.group-pirates {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cpath fill='%23444444' d='M12.5 2.2c-5 0-8.7 3.5-8.7 8.3 0 3.8 2 6.3 4.7 7.6v2.7h8v-2.7c2.7-1.3 4.7-3.8 4.7-7.6 0-4.8-3.7-8.3-8.7-8.3z'/%3E%3Cellipse cx='8.8' cy='10.9' rx='2.15' ry='2.45' fill='%23d2d2d2'/%3E%3Cellipse cx='16.2' cy='10.9' rx='2.15' ry='2.45' fill='%23d2d2d2'/%3E%3Cpath fill='%23d2d2d2' d='M12.5 13.2l1.35 2.45h-2.7z'/%3E%3Crect x='9.1' y='18.2' width='6.8' height='1.4' rx='.4' fill='%23d2d2d2'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

/* =========================================================
   СООБЩЕНИЯ И РЕПУТАЦИЯ С ИКОНКАМИ
   ========================================================= */

.pa-posts,
.pa-respect {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 2px;

  width: 70px;

  margin-left: 28px;
  margin-top: 4px;

  text-align: center;

  font-size: 12px;
  line-height: 16px;
  vertical-align: middle;
}


/* Скрываем слова "Сообщений:" и "Репутация:" */

.pa-posts .fld-name,
.pa-respect .fld-name {
  display: none !important;
}


/* Общий размер иконок */

.pa-posts::before,
.pa-respect::before {
  content: "";

  display: inline-block;

  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


/* Иконка сообщений */

.pa-posts::before {
  background-image: url("https://forumstatic.ru/files/001a/f1/f5/55059.png");
}


/* Иконка репутации */

.pa-respect::before {
  background-image: url("https://forumstatic.ru/files/001a/f1/f5/50442.png");
}


/* =========================================================
   УМЕНЬШАЕМ РАССТОЯНИЕ МЕЖДУ
   СЕРДЕЧКОМ, ПЛЮСОМ И ЧИСЛОМ РЕПУТАЦИИ
   ========================================================= */

.pa-respect {
  gap: 2px;
}


/* Убираем стандартные отступы у ссылки повышения репутации */

.pa-respect a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  order: -1;

  margin: 0 !important;
  padding: 0 !important;

  line-height: 1;

  text-decoration: none !important;
}


/* На случай дополнительных элементов внутри репутации */

.pa-respect span,
.pa-respect strong {
  margin-left: 0 !important;
  margin-right: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =========================================================
   ПЛЮС ДЛЯ ДОБАВЛЕНИЯ РЕПУТАЦИИ
   ========================================================= */

/* Более жирный золотой плюс повышения репутации */

.pa-respect a img {
  content:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M3.8 0h2.4v3.8H10v2.4H6.2V10H3.8V6.2H0V3.8h3.8z' fill='%239c8a55'/%3E%3C/svg%3E") !important;

  width: 7px !important;
  height: 7px !important;

  margin: 0 1px !important;
  padding: 0 !important;

  border: 0 !important;

  background: none !important;
  box-shadow: none !important;

  vertical-align: middle;
}


/* =========================================================
   C3.21 поле ввода
   ========================================================= */

.formal textarea {
  border-radius: 19px;
  padding: 10px;
}


/* =========================================================
   C3.22 зарегистрирован, число сообщений
   ========================================================= */

#pun-messages li.pa-reg,
#pun-messages li.pa-posts {
  display: none;
}

/* =========================================================
   C3.23 СТАТУС ONLINE / OFFLINE
   + ПОДСКАЗКИ ДЛЯ СООБЩЕНИЙ И РЕПУТАЦИИ
   ========================================================= */


/* =========================================================
   СКРЫВАЕМ СТАНДАРТНУЮ НАДПИСЬ "АКТИВЕН ..."
   ========================================================= */

.pa-online {
  display: none !important;
}


/* =========================================================
   НОВЫЙ ЭЛЕМЕНТ СТАТУСА
   ========================================================= */

.user-presence-status {
  position: relative;

  display: block;

  width: 76px;
  height: 18px;

  margin: 7px auto 0 auto !important;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  cursor: default;
}


/* =========================================================
   OFFLINE — СЕРАЯ ЛУНА
   ========================================================= */

.user-presence-status.offline {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='18' viewBox='0 0 76 18'%3E%3Cline x1='2' y1='9' x2='26' y2='9' stroke='%23868686' stroke-width='1'/%3E%3Cline x1='50' y1='9' x2='74' y2='9' stroke='%23868686' stroke-width='1'/%3E%3Cpath d='M41.5 3.2c-3.8 0-6.8 2.7-6.8 5.8s3 5.8 6.8 5.8c-2.2-1-3.8-3.1-3.8-5.8s1.6-4.8 3.8-5.8z' fill='%23787878' stroke='%235f5f5f' stroke-width='0.8'/%3E%3C/svg%3E");
}


/* =========================================================
   ONLINE — ЗОЛОТОЕ СОЛНЦЕ
   ========================================================= */

.user-presence-status.online {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='18' viewBox='0 0 76 18'%3E%3Cline x1='2' y1='9' x2='26' y2='9' stroke='%23b69443' stroke-width='1'/%3E%3Cline x1='50' y1='9' x2='74' y2='9' stroke='%23b69443' stroke-width='1'/%3E%3Ccircle cx='38' cy='9' r='3.2' fill='%23c79b32' stroke='%23856a22' stroke-width='0.8'/%3E%3Cline x1='38' y1='1' x2='38' y2='5' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='38' y1='13' x2='38' y2='17' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='30' y1='9' x2='34' y2='9' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='42' y1='9' x2='46' y2='9' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='32.5' y1='3.5' x2='35.2' y2='6.2' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='40.8' y1='11.8' x2='43.5' y2='14.5' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='43.5' y1='3.5' x2='40.8' y2='6.2' stroke='%23a77f22' stroke-width='1'/%3E%3Cline x1='35.2' y1='11.8' x2='32.5' y2='14.5' stroke='%23a77f22' stroke-width='1'/%3E%3C/svg%3E");

  filter:
    drop-shadow(0 0 3px rgba(199, 155, 50, 0.5));
}


/* =========================================================
   ПОДСКАЗКА ONLINE / OFFLINE
   ========================================================= */

.user-presence-status::after {
  content: attr(data-tooltip);

  position: absolute;

  left: 50%;
  top: calc(100% + 5px);

  transform: translateX(-50%) translateY(3px);

  padding: 4px 7px;

  background: rgba(45, 45, 45, 0.95);

  border: 1px solid #8b8b8b;
  border-radius: 5px;

  color: #eeeeee;

  font-family: Tahoma, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: normal;

  line-height: 1.2;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  z-index: 100;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}


/* Показываем только при наведении на сам статус */

.user-presence-status:hover::after {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   ПОДСКАЗКИ ДЛЯ СООБЩЕНИЙ И РЕПУТАЦИИ
   ========================================================= */

.pa-posts,
.pa-respect {
  position: relative;
}


/* Общий вид подсказок */

.pa-posts::after,
.pa-respect::after {
  position: absolute;

  left: 50%;
  bottom: calc(100% + 6px);

  transform: translateX(-50%) translateY(3px);

  padding: 4px 7px;

  background: rgba(45, 45, 45, 0.95);

  border: 1px solid #8b8b8b;
  border-radius: 5px;

  color: #eeeeee;

  font-family: Tahoma, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: normal;

  line-height: 1.2;

  white-space: nowrap;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  z-index: 100;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}


/* =========================================================
   СООБЩЕНИЯ
   ========================================================= */

.pa-posts::after {
  content: "Количество сообщений";
}

.pa-posts:hover::after {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}


/* =========================================================
   РЕПУТАЦИЯ
   ========================================================= */

.pa-respect::after {
  content: "Репутация";
}

.pa-respect:hover::after {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}
/* C4 Moderator menu
-------------------------------------------------------------*/

/* C4.1 */
.punbb .modmenu .container {
  padding: 0.5em 1em;
  margin-left: -46px;
  margin-right: -47px;
  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 {
  width: 900px;
  padding: 0.8em 1em
  }

/* C5.2 */
.punbb .info .container .backlink {
  width: 900px;
  padding-top: 0.8em;
  }


/* C6 Profile
-------------------------------------------------------------*/

/* C6.1 */
#profile .container {
  padding-left: 18.6em;
  }

/* C6.2 */
#profilenav {
  float: left;
  width: 200px;
  margin-left: -280px;
}

/* 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;
  width: 200px;
  }

/* 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;
border-radius: 10px;
  }



/* 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 {
    margin: 0;
    border: none;

    height: 419px;
    min-height: 419px;

    position: relative;
    overflow: visible;

    pointer-events: none;
}

/* D1.2 */
#pun-title h1 {
  display: block;
}

/* D1.3 */
#pun-title .container {
    height: 419px;
    min-height: 419px;
    border: none;
}

/* D1.4 */
#pun-title h1 span {
  display: none;
}

#pun-title h1 span {
  font-size: 1.5em;
}


/* D2 Page navigation
-------------------------------------------------------------*/

/* D2.1 */
#pun-pagelinks {
  position: absolute;
  top: 55px;
  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;
  }

/* Таблица */

.quo {
    width: 230px;
    height: 110px;
    padding: 4px;
    text-align: justify;
    position: absolute;
    top: 40px;
    margin-left: -10px;
    font-size: 8px;
    overflow-y: hidden;
    font-family: 'Arial';
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d6d6d6;
}

.quo2 {
    width: 350px;
    text-align: center;
    position: absolute;
    top: 40px;
    margin-left: 330px;
    font-size: 8px;
    overflow-y: hidden;
    font-family: 'Arial';
    letter-spacing: 1px;
    height: 12px;
    text-transform: uppercase;
    color: #d6d6d6;
}

.quo3 {
    width: 350px;
    text-align: center;
    position: absolute;
    top: 110px;
    margin-left: 730px;
    font-size: 8px;
    overflow-y: hidden;
    font-family: 'Arial';
    letter-spacing: 1px;
    height: 12px;
    text-transform: uppercase;
    color: #d6d6d6;
}

.quo4 {
    text-align: center;
    position: absolute;
    top: 0px;
    margin-left: 807px;
    margin-top: 0px;
    font-size: 10px;
}

.quo5 {
  display: flex;
  position: absolute;
  margin-left: 740px;
  margin-top: 108px;
  gap: 2px;
}

.quo5 img {
  max-width: 59px;
  max-height: 30px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-left: 3px solid #7e828a;
  border-top: 3px solid #7e828a;
  border-right: 3px solid #7e828a;
  border-bottom: none;
  filter: grayscale(1);
  transition: 0.2s;
}


/* D3 Навигация
-------------------------------------------------------------*/

/* D3.1 */
#pun-navlinks .container {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;

    height: auto;
    margin-left: 0;
    margin-top: 0;

position: relative;
top: -5px;
}

/* D3.2 */
#pun-navlinks .container {
  padding: 0.2em 0em;
  padding-top: 4px;
}

/* D.3 */
#pun-navlinks li {
    display: inline;
    padding: 0px .1em;
}


/* D4 User links
-------------------------------------------------------------*/

/* D4.1 */
#pun-ulinks {
    margin-top: 0;
    margin-bottom: 0;

    border-bottom: none;
    border-radius: 0;

    width: 1100px;
    margin-left: -50px;
    padding-bottom: 10px;
}

/* D4.2 */
#pun-ulinks .container {
  border-top: none;
  padding: 0 1em 0 1em;
  text-align: center;
  font-weight: normal;
  background: transpanent;
  text-transform: uppercase;
  letter-spacing: 0px;
  font-size: 12px;
  font-family: Actay;
  position: relative;
  top: 8px;
  }

/* D4.3 */
#pun-ulinks li, #pun-ulinks li a {
  display: inline;
  border-left-style: solid;
  border-left-width: 1px;
  white-space: nowrap;
  }

/* D4.4 */
#pun-ulinks li a {
  padding: 0 0.3em 0 0.6em;
  }

/* D4.5 */
#pun-ulinks li.item1, #pun-ulinks li.item1 a {
  border-left-style: none;
  border-left-width: 0;
  padding-left: 0;
  }

/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/

/* D5.1 приветствие и улучшенный аккаунт*/
#pun-status, #pun-status .container {
  font-family: "Philosopher", serif;
  font-size: 13px;
  font-weight: normal;
  font-style: italic;
  border-bottom: none;
  margin-left: -23px;
  margin-bottom: 0;
  margin-right: -23px;
  }

/* D5.2 */
#pun-status .container {
  padding: 0.8em 1em 1em 1em;
  }

/* D5.3 */
#pun-status span {
  white-space: nowrap;
  margin-right: 0.5em;
  }

/* D5.4 название форума */
#pun-crumbs1 {
  font-family: "Philosopher", serif;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  margin-top: 0;
  margin-left: -45px;
  }

/* Ссылки в хлебных крошках тем же шрифтом */

#pun-crumbs1 a,
#pun-crumbs2 a {
  font-family: inherit;
}

/* D5.5 */
#pun-crumbs1 p.container {
  border-top: none;
  padding: 1em 1em 0.8em 1em;
  font-size: 1.1em;
  }

/* D5.6 */
#pun-break1 {
  margin: 0 1em;
  border-style: solid none;
  border-width: 1px 0;
  height: 0;
  margin: -2px 1em;
  position: relative;
  z-index: 1;
  }

/* D6 Announcement
-------------------------------------------------------------*/

/* Скрываем стандартный заголовок "Объявление" */
#pun-announcement h2 {
  display: none;
}

/* Контейнер объявления служит независимой опорой для меню */
#pun-announcement .container {
  position: relative;
  padding: 1em;
  overflow: visible;
}

/* 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: 1060px;
  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-top-style: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;
  }

/* D8.5 */
#pun-about p span {
  display:block;
  padding-left: 50%;
  }

/* D8.6 */
#pun-crumbs2 {
  font-family: "Philosopher", serif;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 0;
  margin-left: -44px;
  border-bottom: none;
  }

/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  padding: 0.8em 1em;
  font-size: 13.2px;
  }

/* 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;
  }


html{min-width: 1000px!important;}/*для мобил*/

/* смена цвета */
/* @hagalnaud 13.03.2023 color accent
goat.rusff.me */

/* позиционирование */
.slider-container {
  width: 160px;
  text-align: center;
  margin: 20px auto;
  position: absolute;
  margin-left: 300px!important;
  margin-top: 6px!important;
  background: none;
  border: none;
  border-radius: none;
}

/* внешний вид */
.slider {
  -webkit-appearance: none;
  width: 400px;
  height: 7px;
  border-radius: 5px;
  background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet, red);
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: var(--accent);
  cursor: pointer;
}


/* Баннеры */

.banners {
  width: 1074px;
  height: 170px;
  margin-left: -10px;
  margin-bottom: -230px;
  background-color: none;
  background-image: none;
}

.banners img {
  filter: grayscale(100%) opacity(60%);
  border-radius: 10px;
}
.banners img:hover {
  filter: none;
  transition: all .5s ease-in-out 0s;
    }


/* Фоновая картинка строк подфорумов и тем */

#pun-index .category tbody tr,
.punbb .forum tbody tr {
  background:
    linear-gradient(
  rgba(224, 212, 193, 0.65),
  rgba(224, 212, 193, 0.65)
    ),
    url("https://forumstatic.ru/files/001a/f1/f5/53695.jpg")
    center / 100% 100%
    no-repeat !important;

  background-color: transparent !important;

  background-origin: border-box !important;
  background-clip: border-box !important;
}


/* Ячейки прозрачные, чтобы был виден общий фон строки */

#pun-index .category tbody tr td,
.punbb .forum tbody tr td {
  background: transparent !important;
}


/* =========================================================
   СПИСОК ПЕРСОНАЖЕЙ ПО СТРАНАМ
   ========================================================= */


/* Вся таблица */

.country-list {
  width: calc(100% - 18em) !important;
  max-width: none !important;

  margin: 20px 0 !important;

  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}


/* Исправляем старое глобальное margin: 0 auto
   внутри нашей таблицы */

.punbb .country-list * {
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}


/* =========================================================
   КАРТОЧКА СТРАНЫ
   ========================================================= */

.country-card {
  width: auto !important;
  min-width: 0;

  padding: 16px 18px;

  border-radius: 14px;
  border: 1px solid rgba(100, 100, 100, 0.15);

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   НАЗВАНИЕ СТРАНЫ
   ========================================================= */

.country-title {
  position: relative;

  padding-bottom: 14px;
  margin-bottom: 11px !important;

  text-align: center;

  font-family: "Philosopher", serif;
  font-size: 17px;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
}


/* Золотая линия */

.country-title::after {
  content: "";

  position: absolute;

  left: 15%;
  right: 15%;
  bottom: 4px;

  height: 1px;

  background: #b89d62;
}


/* Ромбик точно посередине линии */

.country-title::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 7px;
  height: 7px;

  border: 1px solid #b89d62;

  transform: translateX(-50%) rotate(45deg);

  z-index: 2;
}


/* =========================================================
   ПЕРСОНАЖИ
   ========================================================= */

.country-characters {
  display: grid;

  grid-template-columns: 1fr;

  gap: 6px;

  font-size: 12px;
  line-height: 1.5;
}


/* Один персонаж */

.country-character {
  min-width: 0;
}


/* Маленький символ перед именем */

.country-character::before {
  content: "\2727";

  display: inline-block;

  margin-right: 5px;

  color: #8f835f;

  font-size: 10px;
  vertical-align: 1px;
}


/* Ссылка на анкету */

.country-character a {
  color: #2b2828 !important;
  text-decoration: none !important;

  white-space: normal;
  overflow-wrap: anywhere;
}


/* =========================================================
   ЦВЕТА СТРАН
   ========================================================= */


/* ИМПЕРИЯ */

.country-card.empire {
  background: #dbe2ea;
}

.country-card.empire .country-title {
  color: #314a67;
}

.country-card.empire .country-title::before {
  background: #dbe2ea;
}


/* КОРОЛЕВСТВО */

.country-card.kingdom {
  background: #eadbdb;
}

.country-card.kingdom .country-title {
  color: #7a423e;
}

.country-card.kingdom .country-title::before {
  background: #eadbdb;
}


/* ЭЛЬФИЙСКОЕ КОРОЛЕВСТВО */

.country-card.elven {
  background: #dce3d8;
}

.country-card.elven .country-title {
  color: #3f5a43;
}

.country-card.elven .country-title::before {
  background: #dce3d8;
}


/* ЮЖНЫЕ ЗЕМЛИ */

.country-card.south {
  background: #e8dfd0;
}

.country-card.south .country-title {
  color: #7a5a2d;
}

.country-card.south .country-title::before {
  background: #e8dfd0;
}

/* ПИРАТЫ */

.country-card.pirates {
  background: #d7d4df;
}

.country-card.pirates .country-title {
  color: #514b68;
}

.country-card.pirates .country-title::before {
  background: #d7d4df;
}


/* ИНОЗЕМЦЫ */

.country-card.foreigners {
  background: #d8e1e1;
}

.country-card.foreigners .country-title {
  color: #476060;
}

.country-card.foreigners .country-title::before {
  background: #d8e1e1;
}

/* =========================================================
   ГОСТЕВАЯ
   ========================================================= */

.guestbook {
  width: calc(100% - 18em) !important;
  max-width: none !important;

  margin: 20px 0 !important;
  padding: 22px;

  box-sizing: border-box;

background: #BFB3A4;
border: 1px solid #b9a783;
  border-radius: 18px;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);

  color: #2b2828;

  font-family: inherit;
}


/* Убираем старое глобальное margin: 0 auto
   только внутри гостевой */

.punbb .guestbook *,
.punbb .guestbook *::before,
.punbb .guestbook *::after {
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}


/* =========================================================
   ШАПКА
   ========================================================= */

.guestbook-head {
  position: relative;

  text-align: center;

  padding: 6px 10px 18px;
  margin-bottom: 18px !important;
}


/* Главный заголовок */

.guestbook-name {
  font-family: "Philosopher", serif;

  font-size: 24px;
  font-weight: bold;
  font-style: italic;

  text-transform: uppercase;

  letter-spacing: 1px;
  word-spacing: 5px;

  color: #bb8d2a;
}


/* Подзаголовок */

.guestbook-subtitle {
  margin-top: 4px !important;

  font-family: "Philosopher", serif;

  font-size: 11px;
  font-style: italic;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  color: #777;
}


/* Золотая линия */

.guestbook-head::after {
  content: "";

  position: absolute;

  left: 20%;
  right: 20%;
  bottom: 3px;

  height: 1px;

  background: #bb8d2a;
}


/* Ромбик по центру линии */

.guestbook-head::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 7px;
  height: 7px;

 background: #BFB3A4;
border: 1px solid #bb8d2a;

  transform: translateX(-50%) rotate(45deg);

  z-index: 2;
}


/* =========================================================
   ПРИВЕТСТВИЕ
   ========================================================= */

.guestbook-intro {
  max-width: 90%;

  margin: 0 auto 20px !important;

  font-family: inherit;
  font-size: 12px;

  line-height: 1.65;

  text-align: justify;

  color: #383838;
}


/* =========================================================
   БЫСТРЫЕ ССЫЛКИ
   ========================================================= */

.guestbook-links {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 8px;

  margin-bottom: 18px !important;
}


.guestbook-link {
  display: block;

  padding: 8px 10px;

  text-align: center;

background: #D8CABB;
border: 1px solid #b9a783;
color: #bb8d2a !important;
  border-radius: 8px;

  font-family: "Philosopher", serif;

  font-size: 12px;
  font-weight: bold;

  text-transform: uppercase;

  letter-spacing: 0.4px;

  color: var(--accent) !important;

  text-decoration: none !important;

  transition: 0.3s;
}


.guestbook-link:hover {
background: #E5D8C6;
border-color: #bb8d2a;

  color: #2b2828 !important;
}


/* =========================================================
   ДВА ИНФОРМАЦИОННЫХ БЛОКА
   ========================================================= */

.guestbook-info {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 14px;

  margin-bottom: 18px !important;
}


.guestbook-card {
  min-width: 0;

  padding: 15px 17px;

 background: rgba(232, 221, 205, 0.65);
border: 1px solid #b9a783;
  border-radius: 12px;
}


/* Заголовок карточки */

.guestbook-card-title {
  position: relative;

  padding-bottom: 10px;
  margin-bottom: 10px !important;

  text-align: center;

  font-family: "Philosopher", serif;

  font-size: 15px;
  font-weight: bold;
  font-style: italic;

  text-transform: uppercase;

  color: #48392e;
}


/* Линия под заголовком карточки */

.guestbook-card-title::after {
  content: "";

  position: absolute;

  left: 20%;
  right: 20%;
  bottom: 2px;

  height: 1px;

  background: #bb8d2a;
}


/* Обычный текст карточки */

.guestbook-card-text {
  font-family: inherit;

  font-size: 11px;
  line-height: 1.6;

  text-align: justify;

  color: #404040;
}


/* =========================================================
   НИЖНЯЯ СТРОКА
   ========================================================= */

.guestbook-footer {
  padding-top: 12px;

  border-top: 1px solid rgba(187, 141, 42, 0.55);
  text-align: center;

  font-family: inherit;

  font-size: 11px;
  font-style: italic;

  color: #666;
}


.guestbook-footer a {
  font-family: "Philosopher", serif;

  color: #bb8d2a !important;

  text-decoration: none !important;
}

/* =========================================================
   ИНТЕРАКТИВНАЯ КАРТА
   МИНИ / СРЕДНЯЯ / БОЛЬШАЯ
   ========================================================= */


/* =========================================================
   ОБЩИЙ БЛОК
   ========================================================= */

.map-zoom {
  width: calc(100% - 18em) !important;
  max-width: none !important;

  margin: 20px 0 !important;

  box-sizing: border-box;
}


/* Убираем автоматические отступы форума внутри карты */

.punbb .map-zoom *,
.punbb .map-zoom *::before,
.punbb .map-zoom *::after {
  margin-left: 0;
  margin-right: 0;

  box-sizing: border-box;
}


/* =========================================================
   СКРЫТЫЕ ПЕРЕКЛЮЧАТЕЛИ
   ========================================================= */

.map-zoom > input[type="radio"] {
  display: none;
}


/* =========================================================
   КНОПКИ МАСШТАБА
   ========================================================= */

.map-zoom-controls {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 6px;

  margin-bottom: 8px !important;
}


.map-zoom-controls label {
  display: inline-block;

  padding: 5px 11px;

  background: #d5d5d5;

  border: 1px solid #999999;
  border-radius: 5px;

  font-family: "Philosopher", serif;
  font-size: 11px;
  font-style: italic;

  color: #333333;

  cursor: pointer;

  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}


/* Наведение */

.map-zoom-controls label:hover {
  background: #e5e5e5;
}


/* Активная кнопка */

#map-zoom-100:checked
~ .map-zoom-controls
label[for="map-zoom-100"],

#map-zoom-150:checked
~ .map-zoom-controls
label[for="map-zoom-150"],

#map-zoom-200:checked
~ .map-zoom-controls
label[for="map-zoom-200"] {

  background: #b89d62;

  border-color: #8f784a;

  color: #ffffff;
}


/* =========================================================
   ОКНО КАРТЫ
   ========================================================= */

.world-map-viewport {
  position: relative;

  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  max-height: none !important;

  /*
     На "мини" никаких полос прокрутки.
  */

  overflow: visible;

  border-radius: 12px;

  box-sizing: border-box;
}


/* На средней и большой появляется горизонтальная прокрутка */

#map-zoom-150:checked ~ .world-map-viewport,
#map-zoom-200:checked ~ .world-map-viewport {
  overflow-x: auto;
  overflow-y: visible;
}


/* =========================================================
   САМА КАРТА
   ========================================================= */

.map-zoom .world-map {
  position: relative;

  display: block;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box;

  transition: width 0.25s ease;
}


/* =========================================================
   ИЗОБРАЖЕНИЕ КАРТЫ
   ========================================================= */

.map-zoom .world-map > img {
  display: block;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border-radius: 12px;
}


/* =========================================================
   МАСШТАБЫ
   ========================================================= */


/* МИНИ */

#map-zoom-100:checked
~ .world-map-viewport
.world-map {
  width: 100% !important;
}


/* СРЕДНЯЯ */

#map-zoom-150:checked
~ .world-map-viewport
.world-map {
  width: 150% !important;
}


/* БОЛЬШАЯ */

#map-zoom-200:checked
~ .world-map-viewport
.world-map {
  width: 200% !important;
}


/* =========================================================
   ОБЩАЯ ОСНОВА МЕТОК
   ========================================================= */

.map-point {
  position: absolute;

  aspect-ratio: 1 / 1;

  transform: translate(-50%, -50%);

  z-index: 10;
}


/* Все три вида значков одинакового размера */

.map-point.capital,
.map-point.city,
.map-point.landmark {
  width: 1.1%;
}


/* Метка поверх остальных при наведении */

.map-point:hover {
  z-index: 100;
}


/* =========================================================
   ОСНОВА СИМВОЛА
   ========================================================= */

.map-symbol {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  padding: 0 !important;
  margin: 0 !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;

  cursor: pointer;

  transform: scale(1);

  transition: transform 0.15s ease;
}


/* Небольшое увеличение при наведении */

.map-point:hover .map-symbol {
  transform: scale(1.1);
}


/* =========================================================
   СТОЛИЦА
   БОРДОВЫЙ ФЛАЖОК БЕЗ ОБВОДКИ
   ========================================================= */


/* Древко */

.map-point.capital .map-symbol {
  background:
    linear-gradient(
      #7b2636,
      #7b2636
    )
    18% 50% / 10% 100%
    no-repeat !important;
}


/* Полотно */

.map-point.capital .map-symbol::before {
  content: "";

  position: absolute;

  left: 24%;
  top: 7%;

  width: 76%;
  height: 55%;

  background: #7b2636;

  clip-path: polygon(
    0% 0%,
    100% 0%,
    82% 50%,
    100% 100%,
    0% 100%
  );
}


.map-point.capital .map-symbol::after {
  content: none;
}


/* =========================================================
   ГОРОД
   СИНИЙ КРУГ С ЧЁРНОЙ ОБВОДКОЙ
   ========================================================= */

.map-point.city .map-symbol::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 78%;
  height: 78%;

  transform: translate(-50%, -50%);

  background: #0e7da6;

  border: 1px solid #151515;
  border-radius: 50%;
}


/* =========================================================
   ЗНАЧИМОЕ МЕСТО
   ЗЕЛЁНЫЙ РОМБ С ЧЁРНОЙ ОБВОДКОЙ
   ========================================================= */

.map-point.landmark .map-symbol::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 68%;
  height: 68%;

  transform:
    translate(-50%, -50%)
    rotate(45deg);

  background: #39a94b;

  border: 1px solid #151515;
}


/* =========================================================
   ИНФОРМАЦИОННОЕ ОКНО
   ========================================================= */

.map-popup {
  display: none;

  position: absolute;

  left: 50%;

  top: calc(100% + 8px);

  transform: translateX(-50%);

  width: 240px;

  background: rgba(220, 220, 220, 0.98);

  border: 1px solid #b89d62;
  border-radius: 10px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.22);

  color: #333333;

  z-index: 200;
}


/* Показываем окно */

.map-point:hover .map-popup {
  display: block;
}


/* =========================================================
   НЕВИДИМЫЙ МОСТИК
   ========================================================= */

.map-popup::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  top: -10px;

  height: 10px;
}


/* =========================================================
   ЗАГОЛОВОК ОКНА
   ========================================================= */

.map-popup-title {
  padding: 11px 12px 8px;

  border-bottom:
    1px solid rgba(184, 157, 98, 0.55);

  font-family: "Philosopher", serif;

  font-size: 15px;
  font-weight: bold;
  font-style: italic;

  line-height: 1.3;

  text-align: center;

  color: var(--accent);
}


/* =========================================================
   ПРОКРУЧИВАЕМЫЙ ТЕКСТ
   ========================================================= */

.map-popup-scroll {
  max-height: 180px;

  padding: 10px 13px 13px;

  overflow-y: auto;
  overflow-x: hidden;

  font-family: inherit;

  font-size: 11px;
  line-height: 1.55;

  text-align: left;

  color: #383838;
}


/* Абзацы */

.map-popup-scroll p {
  margin: 0 0 8px 0 !important;
}


.map-popup-scroll p:last-child {
  margin-bottom: 0 !important;
}


/* =========================================================
   ССЫЛКИ
   ========================================================= */

.map-popup a,
.map-popup a:link,
.map-popup a:visited {
  font-family: inherit;

  color: var(--accent) !important;

  text-decoration: none !important;
}


.map-popup a:hover {
  text-decoration: underline !important;
}

/* =========================================================
   АНКЕТА ПЕРСОНАЖА
   ========================================================= */

.pm-ank,
.pm-ank * {
  box-sizing: border-box;
}


/* =========================================================
   ОСНОВНОЙ БЛОК АНКЕТЫ
   ========================================================= */

.pm-ank {
  width: 720px;
  max-width: 96%;

  margin: 20px auto !important;
  padding: 26px 28px 30px;

  background: #BFB3A4;

  border: 1px solid #b9a783;
  border-radius: 12px;

  color: #333333;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   ИМЯ И ПРОЗВИЩЕ
   ========================================================= */

.pm-ank-head {
  margin: 0 0 24px 0 !important;

  text-align: center;
}

.pm-ank-name {
  margin: 0 !important;

  font-family: "Philosopher", Georgia, serif;
  font-size: 25px;
  line-height: 1.2;

  color: #2f2f2f;
}

.pm-ank-alias {
  margin: 5px 0 0 0 !important;

  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;

  color: #666666;
}


/* =========================================================
   ДЕКОРАТИВНЫЙ РАЗДЕЛИТЕЛЬ ПОД ИМЕНЕМ
   ========================================================= */

.pm-ank-head::after {
  content: "";

  display: block;

  width: 180px;
  height: 15px;

  margin: 12px auto 0 !important;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='15' viewBox='0 0 180 15'%3E%3Cline x1='0' y1='7.5' x2='76' y2='7.5' stroke='%23bb8d2a' stroke-width='1'/%3E%3Cline x1='104' y1='7.5' x2='180' y2='7.5' stroke='%23bb8d2a' stroke-width='1'/%3E%3Cpath d='M90 1 L91.3 6.2 L97 7.5 L91.3 8.8 L90 14 L88.7 8.8 L83 7.5 L88.7 6.2 Z' fill='%23bb8d2a'/%3E%3C/svg%3E");
}


/* =========================================================
   ВЕРХНЯЯ ЧАСТЬ:
   ПОРТРЕТ + ОСНОВНЫЕ ДАННЫЕ
   ========================================================= */

.pm-ank-top {
  display: flex;

  align-items: flex-start;

  gap: 30px;

  margin: 0 0 26px 0 !important;
}


/* =========================================================
   ПОРТРЕТ
   Рекомендуемый размер изображения: 220 &#215; 300 px

   Рамка полностью СНАРУЖИ изображения.
   Ничего не накладывается поверх портрета.
   ========================================================= */

.pm-ank-portrait {
  position: relative;

  flex: 0 0 220px;

  width: 220px;
  height: 300px;

  margin: 5px !important;
  padding: 0 !important;

  background: transparent;

  border: 0 !important;
  border-radius: 5px;

  overflow: visible;

  box-shadow:
    0 0 0 1px #b89d62,
    0 0 0 4px #c9c9c9,
    0 0 0 5px #b89d62;
}


/* Если RusFF оборачивает изображение в ссылку */

.pm-ank-portrait a {
  display: block !important;

  width: 220px !important;
  height: 300px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}


/* Если RusFF создаёт вокруг изображения абзац */

.pm-ank-portrait p {
  display: block !important;

  width: 220px !important;
  height: 300px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}


/* Убираем возможные переносы */

.pm-ank-portrait br {
  display: none !important;
}


/* Сама картинка */

.pm-ank-portrait img {
  display: block !important;

  width: 220px !important;
  height: 300px !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 4px;

  object-fit: cover;

  vertical-align: top !important;
}


/* =========================================================
   ОСНОВНЫЕ ДАННЫЕ
   ========================================================= */

.pm-ank-info {
  flex: 1;

  min-width: 0;

  margin: 0 !important;
}


/* Одна строка информации */

.pm-ank-row {
  display: grid;

  grid-template-columns: 125px 1fr;

  gap: 12px;

  margin: 0 !important;
  padding: 10px 0;

  border-bottom: 1px solid rgba(187, 141, 42, 0.45);
}

.pm-ank-row:first-child {
  border-top: 1px solid rgba(187, 141, 42, 0.45);
}


/* Название параметра */

.pm-ank-label {
  margin: 0 !important;

  font-family: "Philosopher", Georgia, serif;
  font-size: 11px;

  text-transform: uppercase;

  color: #555555;
}


/* Значение */

.pm-ank-value {
  margin: 0 !important;

  font-size: 13px;

  color: #2f2f2f;
}


/* =========================================================
   ЦИТАТА
   ========================================================= */

.pm-ank-quote {
  margin: 4px 0 28px 0 !important;
  padding: 13px 30px;

 border-top: 1px solid rgba(187, 141, 42, 0.55);
border-bottom: 1px solid rgba(187, 141, 42, 0.55);

  text-align: center;

  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;

  color: #4a4a4a;
}


/* =========================================================
   ОСНОВНЫЕ РАЗДЕЛЫ
   ========================================================= */

.pm-ank-section {
  margin: 0 0 28px 0 !important;
}


/* Заголовок раздела */

.pm-ank-title {
  position: relative;

  margin: 0 0 12px 0 !important;
  padding: 0 0 7px 25px;

  border-bottom: 1px solid rgba(187, 141, 42, 0.65);

  font-family: "Philosopher", Georgia, serif;
  font-size: 15px;

  text-transform: uppercase;

  color: #3f3f3f;
}


/* =========================================================
   ИСКРА ПЕРЕД ЗАГОЛОВКОМ
   ========================================================= */

.pm-ank-title::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 18px;
  height: 18px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1 L8.5 5.8 L13 7.5 L8.5 9.2 L7.5 14 L6.5 9.2 L2 7.5 L6.5 5.8 Z' fill='%23bb8d2a'/%3E%3Cpath d='M12 1.8 L12.4 3.2 L13.8 3.6 L12.4 4 L12 5.4 L11.6 4 L10.2 3.6 L11.6 3.2 Z' fill='%23bb8d2a'/%3E%3Cpath d='M2.5 10 L2.9 11.2 L4.1 11.6 L2.9 12 L2.5 13.2 L2.1 12 L0.9 11.6 L2.1 11.2 Z' fill='%23bb8d2a'/%3E%3C/svg%3E");
}


/* =========================================================
   ТЕКСТ РАЗДЕЛОВ
   ========================================================= */

.pm-ank-text {
  margin: 0 !important;

  line-height: 1.65;

  text-align: justify;

  color: #333333;
}

.pm-ank-text p {
  margin: 0 0 10px 0 !important;
}

.pm-ank-text p:last-child {
  margin-bottom: 0 !important;
}


/* =========================================================
   СПОЙЛЕР В РАЗДЕЛЕ "СВЯЗЬ"
   ========================================================= */

.pm-ank-text .spoiler,
.pm-ank-text .spoiler-box {
  max-width: 100%;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media screen and (max-width: 720px) {

  .pm-ank {
    width: 96%;

    padding: 20px;
  }


  .pm-ank-top {
    display: block;
  }


  .pm-ank-portrait {
    margin: 5px auto 25px auto !important;
  }


  .pm-ank-info {
    width: 100%;
  }


  .pm-ank-row {
    grid-template-columns: 115px 1fr;
  }


  .pm-ank-quote {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* =========================================================
   ШАПКА: НАЗВАНИЕ ФОРУМА + ПОСТОЯННАЯ НАВИГАЦИЯ
   ========================================================= */

/*
   ВАЖНО:
   .header-menu отвечает только за прежнюю опорную точку названия.
   Его положение не меняем при настройке меню.
*/
.header-menu {
  position: relative;
  top: -135px;

  width: 200px;
  height: 26px;

  margin: 4px auto 0 !important;
  padding: 0;

  text-align: center;
  z-index: 100;
}


/*
   Невидимый элемент сохраняет высоту бывшей кнопки "Навигация",
   если он всё ещё есть в HTML объявления.
*/
.header-menu-spacer {
  width: 155px;
  height: 26px;

  margin: 0 auto !important;
  padding: 0;
}


/* Проверка перекрытия навигационных ссылок */

#pun-title {
    pointer-events: none !important;
}

#pun-navlinks {
    position: relative;
    z-index: 1000;
}


/* Исправление ссылок "Активные темы", "Ответы" и т.д. */

#pun-ulinks {
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}




/* =========================================================
   ИСПРАВЛЕНИЕ ШАПКИ И РАМКИ ФОРУМА
   НЕ ЗАТРАГИВАЕТ АДМИНКУ
   ========================================================= */

/* Основной контейнер форума */
#pun:not(:has(#pun-admain)) {
    position: relative;
    isolation: isolate;
    background-image: none !important;
    display: flow-root;
}

/* =========================================================
   ВЕРХНЯЯ И НИЖНЯЯ ЧАСТИ РАМКИ
   ========================================================= */

#pun:not(:has(#pun-admain))::before {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    top: 419px;
    bottom: 0;

    z-index: -1;
    pointer-events: none;

    background-image:
        url("https://forumstatic.ru/files/001a/f1/f5/78397.png"),
        url("https://forumstatic.ru/files/001a/f1/f5/29370.png");

    background-repeat:
        no-repeat,
        no-repeat;

    background-position:
        center bottom,
        center -45px;

    background-size:
        1300px auto,
        1300px auto;
}

/* =========================================================
   ПОВТОРЯЮЩАЯСЯ СЕРЕДИНА РАМКИ
   ОГРАНИЧЕНА СВЕРХУ И СНИЗУ
   ========================================================= */

#pun:not(:has(#pun-admain))::after {
    content: "";
    display: block;
    visibility: visible;
    clear: none;

    position: absolute;

    left: 0;
    right: 0;

    top: 437px;
    bottom: 18px;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;
    overflow: visible;

    background-image:
        url("https://forumstatic.ru/files/001a/f1/f5/52218.png");

    background-repeat: repeat-y;
    background-position: center top;
    background-size: 1300px auto;

    z-index: -2;
    pointer-events: none;
}

/* =========================================================
   УБИРАЕМ СТАРУЮ ПОДЛОЖКУ ШАПКИ
   ========================================================= */

#pun-title::before {
    content: none !important;
    display: none !important;
}



/* =========================================
   ИСПРАВЛЕНИЕ РАМКИ ТОЛЬКО В АДМИНКЕ
   ========================================= */

#pun:has(#pun-admain) {
    position: relative;
    isolation: isolate;
    background-image: none !important;
    display: flow-root;
}

/* Верхняя и нижняя части рамки */
#pun:has(#pun-admain)::before {
    content: "";
    display: block;
    visibility: visible;

    position: absolute;
    left: 0;
    right: 0;
    top: 419px;
    bottom: 0;

    background-image:
        url("https://forumstatic.ru/files/001a/f1/f5/78397.png"),
        url("https://forumstatic.ru/files/001a/f1/f5/29370.png");

    background-repeat:
        no-repeat,
        no-repeat;

    background-position:
        center bottom,
        center -45px;

    background-size:
        1300px auto,
        1300px auto;

    z-index: 1;
    pointer-events: none;
}

/* Повторяющаяся середина рамки */
#pun:has(#pun-admain)::after {
    content: "";
    display: block;
    visibility: visible;
    clear: none;

    position: absolute;
    left: 0;
    right: 0;
    top: 437px;
    bottom: 18px;

    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;

    background-image:
        url("https://forumstatic.ru/files/001a/f1/f5/52218.png");

    background-repeat: repeat-y;
    background-position: center top;
    background-size: 1300px auto;

    z-index: 0;
    pointer-events: none;
}

/* Содержимое админки выше декоративных слоёв */
#pun:has(#pun-admain) > * {
    position: relative;
    z-index: 2;
}


/* СИЯНИЕ БЕЛО-ГОЛУБОЙ ЛУНЫ */

#pun-title::after {
    content: "";
    position: absolute;

    /* Положение над маленькой луной */
    left: calc(50% + 172px);
    top: -32px;

    /* Размер области свечения */
    width: 240px;
    height: 240px;

    transform: translateX(-50%);
    border-radius: 50%;

    /* Холодное серебристо-голубое сияние */
  
background: radial-gradient(
    circle at center,
    rgba(190, 210, 230, 0.08) 0px,
    rgba(185, 205, 230, 0.18) 25px,
    rgba(175, 200, 230, 0.35) 35px,
    rgba(160, 185, 215, 0.25) 48px,
    rgba(150, 175, 205, 0.12) 65px,
    transparent 85px
);


    filter: blur(6px);

    pointer-events: none;
    z-index: 2;

    animation: tirosMoonGlow 10s ease-in-out infinite;
}


/* ПЛАВНОЕ МЕРЦАНИЕ БЕЛО-ГОЛУБОЙ ЛУНЫ */

@keyframes tirosMoonGlow {
    0%, 100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}



/* ==========================================
   ТИРОС — МЕРЦАНИЕ ДВУХ ЗВЁЗД
   ========================================== */

/* Общий блеск: тонкие золотистые лучи */
.tiros-header-widgets::before,
.tiros-header-widgets::after {
    content: "";
    position: absolute;

    width: 30px;
    height: 30px;

    background: #f4ddb0;

    clip-path: polygon(
        50% 0%,
        52% 45%,
        100% 50%,
        52% 55%,
        50% 100%,
        48% 55%,
        0% 50%,
        48% 45%
    );

    transform: translate(-50%, -50%) scale(0.5);
    transform-origin: center;

    opacity: 0;
    pointer-events: none;

    animation: tirosStarTwinkle 7s ease-in-out infinite;
}

/* ПЕРВАЯ — большая звезда слева */
.tiros-header-widgets::before {
    left: 49px;
    top: -77px;
}

/* ВТОРАЯ — маленькая звезда выше */
.tiros-header-widgets::after {
    left: 110px;
    top: -110px;

    width: 18px;
    height: 18px;

    animation-delay: -3.5s;
}

/* Короткая вспышка острых лучей */
@keyframes tirosStarTwinkle {
    0%, 35%, 65%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    45% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }

    55% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Для пользователей с отключённой анимацией */
@media (prefers-reduced-motion: reduce) {
    .tiros-header-widgets::before,
    .tiros-header-widgets::after {
        animation: none;
    }
}



/* ==========================================
   ТИРОС — ОБЪЯВЛЕНИЯ И ПОСТОПИСЦЫ
   ========================================== */

/* Общая область двух блоков */
.tiros-header-widgets {
    position: absolute;

    /* Положение обоих блоков */
    top: -360px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);

    width: 1120pxpx;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    z-index: 110;
    pointer-events: none;
}

/* Одинаковые блоки */
.tiros-header-panel {
    box-sizing: border-box;

    width: 280px;
    height: 240px;
    flex: 0 0 280px;

    background: #181b20;

    border: 1px solid #9c8a55;
    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(206, 180, 126, 0.10);

    overflow: hidden;
    pointer-events: auto;
}

/* Заголовки */
.tiros-header-panel-title {
    box-sizing: border-box;

    height: 38px;
    padding: 9px 12px;

    background: #15181d;
    border-bottom: none;
position: relative;

    color: #d5bc88;

    font-family: "Philosopher", Georgia, serif;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;

    text-align: center;
}


.tiros-header-panel-title::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);

    width: 14px;
    height: 18px;
    padding: 0;

    background: #b89a5c;

    clip-path: polygon(
        50% 0%,
        55% 44%,
        100% 50%,
        55% 56%,
        50% 100%,
        45% 56%,
        0% 50%,
        45% 44%
    );

    z-index: 2;
}


.tiros-header-panel-title::before {
    content: "";
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: -5px;

    height: 1px;
    border: none;

    background: linear-gradient(
        to right,
        #9c8a55 0%,
        #9c8a55 calc(50% - 12px),
        transparent calc(50% - 12px),
        transparent calc(50% + 12px),
        #9c8a55 calc(50% + 12px),
        #9c8a55 100%
    );
}


/* Внутренняя область */
.tiros-header-panel-content {
    box-sizing: border-box;

    height: calc(100% - 38px);
    padding: 12px;

    color: #c9c4bb;
    overflow: hidden;
}


/* Объявления — сдвиг влево */
.tiros-header-widgets > .tiros-header-panel:first-child {
    transform: translateX(-300px);
}

/* Постописцы — сдвиг вправо */
.tiros-header-widgets > .tiros-header-panel:last-child {
    transform: translateX(300px);
}


/* ==========================================
   ТИРОС — НОВОСТИ В ОБЪЯВЛЕНИЯХ
   ========================================== */

/* Прокрутка только в блоке объявлений */
.tiros-header-widgets
.tiros-header-panel:first-child
.tiros-header-panel-content {
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #9c8a55 #181b20;
}

/* Полоса прокрутки */
.tiros-header-panel-content::-webkit-scrollbar {
    width: 5px;
}

.tiros-header-panel-content::-webkit-scrollbar-track {
    background: #181b20;
}

.tiros-header-panel-content::-webkit-scrollbar-thumb {
    background: #9c8a55;
    border-radius: 5px;
}

/* Отдельная новость */
.tiros-news-item {
    padding: 0 0 10px;
    margin: 0 0 10px;

    border-bottom: 1px solid rgba(156,138,85,0.35);
}

/* У последней новости без нижней линии */
.tiros-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Дата */
.tiros-news-date {
    font-family: Tahoma, sans-serif;
    font-size: 10px;
    color: #9c8a55;
    margin-bottom: 4px;
}

/* Кликабельный заголовок */
.tiros-header-panel .tiros-news-link,
.tiros-header-panel .tiros-news-link:link,
.tiros-header-panel .tiros-news-link:visited {
    display: block;

    font-family: "Georgia", serif;
    font-size: 14px;
    line-height: 1.3;

    color: #d5bc88 !important;
    text-decoration: none !important;

    margin-bottom: 5px;
}

/* Заголовок при наведении */
.tiros-header-panel .tiros-news-link:hover {
    color: #f0d49a !important;
    text-decoration: underline !important;
}

/* Краткое описание */
.tiros-news-description {
    font-family: Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.45;

    color: #c9c4bb;
    overflow-wrap: anywhere;
}


/* ==========================================
   ТИРОС — ЧЕТЫРЕ АКТИВНЫХ ПОСТОПИСЦА
   ========================================== */

/* Общая область портретов */
.tiros-active-players {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    height: auto;

    margin-top: 14px;

    align-items: start;
    justify-items: center;
}


/* Кликабельный портрет */
.tiros-header-panel .tiros-active-player {
    display: block;
    box-sizing: border-box;

    width: 100%;
    height: 86px;

    padding: 3px;

    background: #25282d;
    border: 1px solid #9c8a55;
    border-radius: 3px;

    box-shadow: 0 2px 5px rgba(0,0,0,0.35);

    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Изображение внутри рамки */
.tiros-active-player img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    border: none;
    border-radius: 1px;

   filter: grayscale(65%) brightness(80%);
transition: filter 0.35s ease;
}

.tiros-active-player:hover img,
.tiros-active-player:focus-visible img {
    filter: grayscale(0%);
}

/* Подсветка рамки при наведении */
.tiros-header-panel .tiros-active-player:hover,
.tiros-header-panel .tiros-active-player:focus-visible {
    border-color: #e2c58c;

    box-shadow:
        0 0 7px rgba(226,197,140,0.35);
}


/* Затемняющий градиент поверх портретов */
.tiros-header-panel .tiros-active-player {
    position: relative;
    overflow: hidden;
}

.tiros-active-player::after {
    content: "";
    position: absolute;
    inset: 3px;

    background: linear-gradient(
        to bottom,
        rgba(35, 38, 43, 0.08) 0%,
        rgba(30, 32, 37, 0.30) 45%,
        rgba(10, 11, 15, 0.72) 100%
    );

    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* При наведении убираем затемнение */
.tiros-active-player:hover::after,
.tiros-active-player:focus-visible::after {
    opacity: 0;
}


/* ==========================================
   ТИРОС — ЦИТАТА НЕДЕЛИ
   ========================================== */

.tiros-quote-week {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(156,138,85,0.35);

    text-align: center;
}

/* Заголовок */
.tiros-quote-week-title {
    margin-bottom: 4px;

    font-family: "Georgia", serif;
    font-size: 13px;
    color: #d5bc88;

    letter-spacing: 0.5px;
}


/* Текст цитаты — без ссылки */

/* Текст цитаты с прокруткой */
.tiros-quote-week-text {
    display: block;

    max-height: 45px;
    overflow-y: auto;
    overflow-x: hidden;

    font-family: Tahoma;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;

    color: #c9c4bb;
    text-align: center;

    scrollbar-width: thin;
    scrollbar-color: #9c8a55 #181b20;
}

/* Тонкая полоса прокрутки */
.tiros-quote-week-text::-webkit-scrollbar {
    width: 4px;
}

.tiros-quote-week-text::-webkit-scrollbar-thumb {
    background: #9c8a55;
    border-radius: 4px;
}



/* Имя автора внутри заголовка */
.tiros-header-panel .tiros-quote-week-title .tiros-quote-week-author,
.tiros-header-panel .tiros-quote-week-title .tiros-quote-week-author:link,
.tiros-header-panel .tiros-quote-week-title .tiros-quote-week-author:visited {
    display: inline;
    margin: 0;

    font-family: inherit;
    font-size: inherit;
    font-weight: normal;

    color: #e2c58c !important;
    text-decoration: none !important;
}

.tiros-header-panel .tiros-quote-week-title .tiros-quote-week-author:hover {
    color: #f0d49a !important;
    text-decoration: underline !important;
}

/* ==========================================
   ТИРОС — ИСПРАВЛЕНИЕ ЦИТАТЫ НЕДЕЛИ
   ========================================== */

/* Правая панель: распределяем место */
.tiros-header-panel:last-child
.tiros-header-panel-content {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    overflow: hidden;
}

/* Портреты остаются сверху */
.tiros-active-players {
    flex-shrink: 0;
    margin-top: 4px;
}

/* Область цитаты занимает оставшееся место */
.tiros-quote-week {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 7px;
    padding-top: 6px;
}

/* Заголовок не прокручивается */
.tiros-quote-week-title {
    flex-shrink: 0;
}

/* Прокручивается только текст цитаты */
.tiros-quote-week-text {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}


/* ==========================================
   ТИРОС — ВЫПАДАЮЩАЯ НАВИГАЦИЯ
   ДЛЯ ГОСТЕЙ И ИГРОКОВ
   ========================================== */

/* Общая область двух кнопок */
.tiros-header-menus {
    position: absolute;

    top: -402px;
    left: 50%;
    transform: translateX(-50%);

    width: 1120px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    z-index: 130;
    pointer-events: none;
}

/* Два отдельных меню */
.tiros-dropdown {
    position: relative;
    box-sizing: border-box;

    width: 280px;
    flex: 0 0 280px;

    pointer-events: auto;
}

/* Левое меню — для гостей */
.tiros-dropdown:first-child {
    transform: translateX(-160px);
}

/* Правое меню — для игроков */
.tiros-dropdown:last-child {
    transform: translateX(160px);
}


/* ==========================================
   ГЛАВНЫЕ КНОПКИ
   ========================================== */

.tiros-dropdown-button {
    display: block;
    position: relative;
    box-sizing: border-box;

    width: 100%;
    padding: 8px 26px;

    background: #15181d;
    border: 1px solid #9c8a55;
    border-radius: 8px;

    color: #d5bc88;

    font-family: "Philosopher", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;

    letter-spacing: 0.5px;
    text-align: center;

    cursor: pointer;
    list-style: none;

    transition: background 0.2s, color 0.2s;
}

/* Убираем стандартную стрелку браузера */
.tiros-dropdown-button::-webkit-details-marker {
    display: none;
}

/* Собственная стрелочка справа */
.tiros-dropdown-button::after {
    content: "\25BE";

    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    color: #9c8a55;
    font-size: 12px;
    font-style: normal;
}


/* Подсветка только при наведении */
.tiros-dropdown-button:hover {
    background: #252b30;
    color: #f0d49a;
}

/* Открытая кнопка сохраняет обычный цвет */
.tiros-dropdown[open] .tiros-dropdown-button:not(:hover) {
    background: #15181d;
    color: #d5bc88;
}



/* ==========================================
   ВЫПАДАЮЩИЙ СПИСОК
   ========================================== */

.tiros-dropdown-list {
    position: absolute;

    top: calc(100% + 5px);
    left: 0;
    right: 0;

    box-sizing: border-box;

    padding: 9px;
    max-height: 240px;

    overflow-y: auto;
    overflow-x: hidden;

    background: #181b20;
    border: 1px solid #9c8a55;
    border-radius: 8px;

    box-shadow: 0 6px 16px rgba(0,0,0,0.40);

    scrollbar-width: thin;
    scrollbar-color: #9c8a55 #181b20;
}


/* ==========================================
   ССЫЛКИ ВНУТРИ МЕНЮ
   ========================================== */

.tiros-dropdown-list a,
.tiros-dropdown-list a:link,
.tiros-dropdown-list a:visited {
    display: block;
    box-sizing: border-box;

    padding: 7px 10px;
    margin: 0 0 6px;

    background: #15181d;
    border: 1px solid #9c8a55;
    border-radius: 5px;

    color: #d5bc88 !important;

    font-family: "Philosopher", serif;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;

    text-align: center;
    text-decoration: none !important;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}

/* Последняя кнопка */
.tiros-dropdown-list a:last-child {
    margin-bottom: 0;
}

/* Наведение на ссылки */
.tiros-dropdown-list a:hover {
    background: #252b30;
    border-color: #c6a76c;

    color: #f0d49a !important;
    text-decoration: none !important;
}

/* Выделение при управлении клавиатурой */
.tiros-dropdown-button:focus-visible,
.tiros-dropdown-list a:focus-visible {
    outline: 2px solid #d5bc88;
    outline-offset: 2px;
}


/* ==========================================
   ТИРОС — ПОДПИСИ ПОД БОКОВЫМИ БЛОКАМИ
   ========================================== */

/* Общая область подписей */
.tiros-header-bottom {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    pointer-events: none;
}

/* Одинаковая ширина и оформление */
.tiros-header-bottom-item {
    box-sizing: border-box;
    width: 280px;
    flex: 0 0 280px;

    padding: 6px 10px;

    background: rgba(21, 24, 29, 0.72);
    border: 1px solid rgba(156, 138, 85, 0.75);
    border-radius: 8px;

    font-family: "Philosopher", serif;
    font-size: 13px;
    font-style: italic;
    font-weight: normal;
    line-height: 1.4;

    color: #d5bc88;
    text-align: center;

    text-shadow: 0 1px 3px rgba(0,0,0,0.65);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Подпись под объявлениями */
.tiros-header-bottom-item:first-child {
    transform: translateX(-300px);
}

/* Подпись под постописцами */
.tiros-header-bottom-item:last-child {
    transform: translateX(300px);
}

/* Кликабельные имена администраторов */
.tiros-header-bottom-item a,
.tiros-header-bottom-item a:link,
.tiros-header-bottom-item a:visited {
    color: #d5bc88 !important;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;

    text-decoration: none !important;
    pointer-events: auto;
}

/* Наведение на имя */
.tiros-header-bottom-item a:hover {
    color: #f0d49a !important;
    text-decoration: underline !important;
}

/* Разделитель между администраторами */
.tiros-admin-separator {
    color: #9c8a55;
    margin: 0 3px;
}


/* Цвет надписи "Выделить код" */
.punbb .code-box strong.legend,
.punbb .code-box strong.legend a,
.punbb .code-box strong.legend span,
.punbb .code-box .Txtselect {
  color: #bb8d2a !important;
}


/* =========================================================
   АТЛАС РАС ТИРОСА
   ========================================================= */

.race-atlas,
.race-atlas * {
  box-sizing: border-box;
}

.race-atlas {
  --race-gold: #bb8d2a;
  --race-border: #b9a783;
  --race-bg: #BFB3A4;
  --race-light: #D8CABB;

width: 100%;
max-width: 780px;
min-width: 0;
margin: 15px 0 !important;
  padding: 18px;

  background: var(--race-bg);
  border: 1px solid var(--race-border);
  border-radius: 14px;

  font: 13px/1.6 Tahoma, Arial, sans-serif;
  color: #332d28;
}

/* Служебные переключатели */

.race-atlas > .race-switch {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Пять портретов */

.race-atlas .race-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-bottom: 18px;
}

.race-atlas .race-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: pointer;
width: 100%;
min-width: 0;
margin: 0 !important;

  background: var(--race-light);
  border: 1px solid var(--race-border);
  border-radius: 9px;

  transition: border-color .3s, box-shadow .3s;
}

.race-atlas .race-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .35s, filter .35s;
}

.race-atlas .race-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(
    transparent,
    rgba(23, 18, 15, .82)
  );
  pointer-events: none;
}

.race-atlas .race-card span {
  position: absolute;
  z-index: 2;

  bottom: 8px;
  left: 50%;
  right: auto;

  transform: translateX(-50%);

  width: max-content;
  max-width: calc(100% - 10px);
  padding: 3px 9px;

  background: rgba(225, 211, 193, 0.65);
border: 1px solid #bb8d2a;
  border-radius: 4px;

  font: normal 17px "Philosopher", Georgia, serif;
  color: #493829;
  text-align: center;
  text-shadow: none;

  white-space: nowrap;
}

.race-atlas .race-card:hover {
  border-color: var(--race-gold);
  box-shadow: 0 0 8px rgba(187,141,42,.3);
}

.race-atlas .race-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.12);
}


/* Выделение выбранной расы */

#tr-animals:checked ~ .race-menu .card-animals,
#tr-humans:checked ~ .race-menu .card-humans,
#tr-elves:checked ~ .race-menu .card-elves,
#tr-ganns:checked ~ .race-menu .card-ganns,
#tr-cursed:checked ~ .race-menu .card-cursed {
  border-color: var(--race-gold);
  box-shadow: 0 0 0 2px var(--race-gold);
}

/* Области нажатия на портрет */

.race-atlas .race-open,
.race-atlas .race-close {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}

.race-atlas .race-open {
  z-index: 1;
}

/* По умолчанию закрывающая область скрыта */

.race-atlas .race-close {
  display: none;
  z-index: 3;
}

/* У выбранной расы повторное нажатие закрывает описание */

#tr-animals:checked ~ .race-menu .card-animals .race-close,
#tr-humans:checked ~ .race-menu .card-humans .race-close,
#tr-elves:checked ~ .race-menu .card-elves .race-close,
#tr-ganns:checked ~ .race-menu .card-ganns .race-close,
#tr-cursed:checked ~ .race-menu .card-cursed .race-close {
  display: block;
}


/* Область с описаниями */

.race-atlas .race-welcome,
.race-atlas .race-page {
  display: none;
}

#tr-start:checked ~ .race-pages .race-welcome,
#tr-animals:checked ~ .race-pages .page-animals,
#tr-humans:checked ~ .race-pages .page-humans,
#tr-elves:checked ~ .race-pages .page-elves,
#tr-ganns:checked ~ .race-pages .page-ganns,
#tr-cursed:checked ~ .race-pages .page-cursed {
  display: block;
}

.race-atlas .race-welcome,
.race-atlas .race-page {
  padding: 22px;
  background: rgba(232,221,205,.65);
  border: 1px solid var(--race-border);
  border-radius: 10px;
}

.race-atlas .race-welcome {
  text-align: center;
  font-style: italic;
}

.race-atlas .race-page h2 {
  margin: 0 0 18px !important;
  padding: 0 0 10px !important;

  font: normal 25px "Philosopher", Georgia, serif;
  color: #443629;
  text-align: center;

  border-bottom: 1px solid var(--race-gold);
}

.race-atlas .race-page p {
  margin: 0 0 12px !important;
  padding: 0 !important;
  line-height: 1.7;
}

/* Раскрывающиеся подрасы */

.race-atlas .race-subrace {
  margin-top: 10px;
  background: var(--race-light);
  border: 1px solid var(--race-border);
  border-radius: 8px;
  overflow: hidden;
}

.race-atlas .race-subrace summary {
  display: block;
  position: relative;
  cursor: pointer;

  padding: 11px 36px 11px 15px;
  font: normal 17px "Philosopher", Georgia, serif;
  color: #443629;

  list-style: none;
}

.race-atlas .race-subrace summary::-webkit-details-marker {
  display: none;
}

.race-atlas .race-subrace summary::after {
  content: "";
  position: absolute;

  right: 17px;
  top: 50%;

  width: 8px;
  height: 8px;

  border-right: 2px solid var(--race-gold);
  border-bottom: 2px solid var(--race-gold);

  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s ease;
}

.race-atlas .race-subrace[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.race-atlas .race-subrace[open] summary {
  border-bottom: 1px solid var(--race-border);
}

.race-atlas .race-subrace-body {
  padding: 15px;
}

/* Узкие экраны */

@media (max-width: 650px) {
  .race-atlas .race-menu {
    grid-template-columns: repeat(5, 125px);
    overflow-x: auto;
    padding: 3px;
  }

  .race-atlas .race-page {
    padding: 15px;
  }
}




/* =========================================================
   ТИРОС — ДОСКА ПОРУЧЕНИЙ
   ========================================================= */

.tq-board,
.tq-board * {
  box-sizing: border-box;
}


/* =========================================================
   ОСНОВА И ДЕРЕВЯННАЯ РАМА
   ========================================================= */

.tq-board {
  --tq-wood: url("https://forumstatic.ru/files/001a/f1/f5/33549.jpg");

  width: 100%;
  max-width: 780px;

  margin: 20px 0 !important;
  padding: 30px 23px 28px;

  position: relative;

  background-color: #443021;

  background-image:
    linear-gradient(
      rgba(20,12,8,.16),
      rgba(20,12,8,.26)
    ),
    var(--tq-wood),
    linear-gradient(
      105deg,
      #38251b,
      #735038 50%,
      #39271b
    );

  background-size: cover;
  background-position: center;

 border: 5px solid #382719;
border-radius: 8px;

box-shadow:
  inset 0 0 0 2px #755438,
  inset 0 0 22px rgba(0,0,0,0.35),
  0 4px 10px rgba(0,0,0,0.22);

  font: 12px/1.6 Tahoma, Arial, sans-serif;
  color: #403025;
}


/* =========================================================
   ЗАГОЛОВОК ДОСКИ
   ========================================================= */

.tq-title {
  margin: 0 0 23px !important;

  font: normal 27px "Philosopher", Georgia, serif;

  text-align: center;

  color: #eddbb8;

  text-shadow:
    0 2px 4px #21140c;
}


/* =========================================================
   РАСПОЛОЖЕНИЕ ОБЪЯВЛЕНИЙ
   ========================================================= */

.tq-list {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px 18px;

  align-items: start;
}


/* =========================================================
   ЛИСТЫ СТАРОГО ПЕРГАМЕНТА
   ========================================================= */

.tq-paper {
  --tq-rotate: -1deg;

  position: relative;

  min-width: 0;
  margin: 0 !important;

/* Натуральная бесшовная текстура пергамента */
background: #dfcfb0
  url("https://forumstatic.ru/files/001a/f1/f5/39360.jpg")
  repeat left top;

background-size: 512px 512px;

  /* Слегка потрёпанные края бумаги */

  clip-path: polygon(
    2% 0%,
    10% 1.2%,
    28% 0.3%,
    46% 1.4%,
    64% 0.2%,
    83% 1.1%,
    98% 0.6%,

    100% 4%,
    99.2% 16%,
    100% 31%,
    98.8% 46%,
    100% 62%,
    99.1% 79%,
    100% 95%,

    97% 100%,
    84% 99.1%,
    66% 100%,
    48% 98.9%,
    30% 100%,
    12% 99.2%,
    2% 100%,

    0% 96%,
    1.1% 79%,
    0% 63%,
    1.4% 45%,
    0% 27%,
    1.2% 12%
  );
}



/* =========================================================
   РАЗНОЕ ПОЛОЖЕНИЕ ЛИСТОВ
   ========================================================= */

.tq-paper:nth-child(even) {
  --tq-rotate: 1.1deg;
}


/* =========================================================
   МЕТАЛЛИЧЕСКИЙ ГВОЗДЬ НА ПЕРГАМЕНТЕ
   ========================================================= */

.tq-paper::before {
  content: "";

  position: absolute;
  z-index: 3;

  top: 8px;
  left: 50%;

  width: 9px;
  height: 9px;

  transform: translateX(-50%);

  border-radius: 50%;
  border: 1px solid #352d24;

  background: radial-gradient(
    circle at 35% 30%,
    #8b8172 0%,
    #5b5348 45%,
    #292620 90%
  );

  box-shadow:
    0 1px 2px rgba(0,0,0,0.45);
}


/* =========================================================
   НАЖИМАЕМАЯ ЧАСТЬ ОБЪЯВЛЕНИЯ
   ========================================================= */

.tq-paper summary {
  display: block;

  position: relative;
  z-index: 2;

  min-height: 174px;
  padding: 29px 15px 16px;

  cursor: pointer;
  list-style: none;
  text-align: center;
}

.tq-paper summary::-webkit-details-marker {
  display: none;
}


/* =========================================================
   НАЗВАНИЕ ЗАДАНИЯ
   ========================================================= */

.tq-name {
  display: block;

  font: italic 21px "Philosopher", Georgia, serif;

  color: #493123;
}


/* =========================================================
   КАТЕГОРИЯ ЗАДАНИЯ
   ========================================================= */

.tq-category {
  display: block;

  margin-top: 7px;

  font: italic 12px Georgia, serif;

  color: #71543b;
}


/* =========================================================
   ДЕКОРАТИВНАЯ ЛИНИЯ
   ========================================================= */

.tq-divider {
  display: block;

  width: 65%;
  height: 1px;

  margin: 13px auto !important;

  background: #b89d62;
}


/* =========================================================
   СТАТУС ЗАДАНИЯ
   ========================================================= */

.tq-status {
  display: block;

  color: #7b582d;

  font-weight: bold;
  font-size: 11px;
}

.tq-status-busy {
  color: #925841;
}


/* =========================================================
   СТРЕЛОЧКА РАСКРЫТИЯ
   ========================================================= */

.tq-paper summary::after {
  content: "";

  display: block;

  width: 9px;
  height: 9px;

  margin: 13px auto 0;

  border-right: 2px solid #bb8d2a;
  border-bottom: 2px solid #bb8d2a;

  transform: rotate(45deg);

  transition: transform .25s ease;
}


/* =========================================================
   РАСКРЫТОЕ ОБЪЯВЛЕНИЕ
   ========================================================= */

.tq-paper[open] {
  grid-column: 1 / -1;

  transform: rotate(0);
}

.tq-paper[open] summary {
  min-height: 0;

  border-bottom:
    1px solid rgba(117,79,41,.35);
}

.tq-paper[open] summary::after {
  transform: rotate(225deg);
}


/* Последнее объявление занимает всю ширину,
   только если количество объявлений нечётное */

.tq-paper:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* =========================================================
   ТЕКСТ ВНУТРИ РАСКРЫТОГО ЛИСТА
   ========================================================= */

.tq-content {
  position: relative;
  z-index: 2;

  padding: 17px 23px 22px;

  text-align: left;
}

.tq-board .tq-content p {
  margin: 0 0 12px !important;
  padding: 0 !important;

  line-height: 1.7;
}


/* =========================================================
   МЕСТО, НАГРАДА И ЗАКАЗЧИК
   ========================================================= */

.tq-info {
  margin: 14px 0;

  font-size: 11px;
  line-height: 1.9;

  color: #654b35;
}

/* =========================================================
   КНОПКА ПЕРЕХОДА К ЗАДАНИЮ
   ========================================================= */
.tq-board .tq-link {
  display: table;
  margin: 15px auto 0;
  padding: 7px 19px;

  background: linear-gradient(
    180deg,
    #E2D5C2 0%,
    #CBBB9F 100%
  );

  border: 1px solid #b9a783;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 2px 4px rgba(75,52,34,0.15);

  font: normal 15px "Philosopher", Georgia, serif;

  color: #4D3C2C !important;
  text-decoration: none !important;
  text-shadow: none;

  transition: all 0.25s ease;
}

/* ПРИ НАВЕДЕНИИ */

.tq-board .tq-link:hover {
  background: linear-gradient(
    180deg,
    #EBDDC9 0%,
    #D5C2A5 100%
  );

  border-color: #bb8d2a;
  color: #6A4B25 !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 3px 6px rgba(75,52,34,0.20);
}



/* =========================================================
   АДАПТАЦИЯ ДЛЯ УЗКИХ ЭКРАНОВ
   ========================================================= */

@media (max-width: 600px) {

  .tq-list {
    grid-template-columns: 1fr;
  }

  .tq-paper[open],
  .tq-paper:last-child:nth-child(odd) {
    grid-column: 1;
  }

}


/* =========================================================
   ТИРОС — ШАБЛОН ИГРОВЫХ ТЕМ
   ========================================================= */

.tiros-episode,
.tiros-episode * {
  box-sizing: border-box;
}

.tiros-episode {
  --te-border: #b9a783;
  --te-gold: #bb8d2a;
  --te-light: #D8CABB;

display: block;
width: 640px;
max-width: 100%;
min-width: 0;

margin: 15px 0 15px 95px !important;
  padding: 22px 24px;

  background: rgba(232, 221, 205, 0.78);
  border: 1px solid var(--te-border);
  border-radius: 8px;

  box-shadow:
    inset 0 0 0 4px rgba(185, 167, 131, 0.14),
    0 2px 6px rgba(45, 30, 20, 0.08);

  color: #493829;
  font: 13px/1.7 Tahoma, Arial, sans-serif;
  text-align: center;
}

/* Название эпизода */

.tiros-episode .te-title {
  margin: 0 !important;
  padding: 0 !important;

  font: normal 26px/1.3 "Philosopher", Georgia, serif;
  color: #493829;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Золотой разделитель со звездой */

.tiros-episode .te-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 68%;
  margin: 10px auto 22px !important;

  color: var(--te-gold);
  font-size: 13px;
  line-height: 1;
}

.tiros-episode .te-divider::before,
.tiros-episode .te-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--te-gold);
  opacity: 0.65;
}

/* Изображение эпизода — 500 x 200 */

.tiros-episode .te-image {
  position: relative;

  width: 500px;
  max-width: 100%;
  aspect-ratio: 5 / 2;

  margin: 0 auto 22px !important;

  background: var(--te-light);
  border: 1px solid var(--te-border);
  border-radius: 2px;

  box-shadow:
    0 0 0 3px var(--te-light),
    0 0 0 4px var(--te-border);

  overflow: hidden;
}

/* Автоматическая подгонка картинки */

.punbb .post-content .tiros-episode .te-image img {
  position: absolute;
  inset: 0;
  display: block;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover;
  object-position: center;
}

/* Дата и место действия */

.tiros-episode .te-date {
  margin: 0 0 8px !important;

  font: italic 12px/1.6 Georgia, serif;
  color: #715A43;
  text-align: center;
}

/* Участники */

.tiros-episode .te-players {
  margin: 0 !important;

  font: normal 17px/1.5 "Philosopher", Georgia, serif;
  color: #493829;
  text-align: center;
}

/* Разделитель перед описанием */

.tiros-episode .te-description {
  margin: 18px 0 0 !important;
  padding: 16px 10px 0;

  border-top: 1px solid var(--te-border);

  font: 13px/1.8 Tahoma, Arial, sans-serif;
  color: #493829;
  text-align: center;
}

/* На узких экранах */

@media (max-width: 650px) {
  .tiros-episode {
    padding: 18px 14px;
  }

  .tiros-episode .te-title {
    font-size: 23px;
  }
}
