@import url(https://forumstatic.ru/files/001c/52/c6/63066.css?v=2); /*Сброс стилей*/
@import url(style_cs.1784547154.css);

/*******************************************************
Подключение шрифтов
*******************************************************/
@import url('https://forumstatic.ru/files/001b/df/32/99049.css'); /*Font Awesome ver 6.5.1*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap'); /*IBM Plex Sans*/
@import url('https://forumstatic.ru/files/001c/b0/0e/63529.css'); /*Шрифты-украшалки*/

@font-face {
  font-family: 'Constantine';
  src: url('https://forumstatic.ru/files/001c/52/c6/40898.eot'),
    url('https://forumstatic.ru/files/001c/52/c6/38152.woff2') format('woff2'),
    url('https://forumstatic.ru/files/001c/52/c6/39865.woff') format('woff'),
    url('https://forumstatic.ru/files/001c/52/c6/27883.ttf') format('truetype'),
    url('https://forumstatic.ru/files/001c/52/c6/64852.svg') format('svg');
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'mybb';
  src: url('https://forumstatic.ru/res/font/icons.woff2?3') format('woff2'),
       url('https://forumstatic.ru/res/font/icons.woff?3') format('woff'),
       url('https://forumstatic.ru/res/font/icons.ttf') format('truetype'),
       url('https://forumstatic.ru/res/font/icons.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

/******************************************************
Корневые элементы
*******************************************************/
:root {
  /*Шрифты*/
  --font-accent: 'Constantine';
  --font-basic: 'IBM Plex Sans';

  /*Цвета шрифтов и ссылок*/
  --link-light: #52645E;
  --link-light-hover: #4B7E6C;
  --link-dark: #0A0114;
  --link-dark-hover: #451A75;
  --text-basic-light: #485752;
  --text-basic-dark: #0A0114;
  --text-basic-dark70: rgba(10, 1, 20, .7);
  --text-gradient: linear-gradient(180deg, #62A18B 0%, #83BDA8 50%, #4E8F79 100%);
}

/*Названия категорий*/
.category h2 span::before {
      font-size: 8px;
}

.category-1 h2 span::before {
  content: 'The mind is not a book to be opened at will and examined at leisure';
}

.category-2 h2 span::before {
  content: 'For the greater good';
}

.category-3 h2 span::before {
  content: 'I show not your face but your heart s desire';
}

.category-4 h2 span::before {
  content: 'Why don t we go and have a butterbeer in the Three Broomsticks?';
}

.category-5 h2 span::before {
  content: 'Everything from wands to racing brooms!';
}

.category-6 h2 span::before {
  content: 'Things we lose have a way of coming back to us in the end, if not always in the way we expect';
}

/*Светяшки на фоне*/
.blur-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
  transition: all 0.08s linear;
  will-change: transform;
}

/* КРУПНЫЕ и ЯРКИЕ круги */
#blob1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(189, 116, 201, .7), rgba(189, 116, 201, .1));
  top: -200px;
  left: -200px;
}

#blob2 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(155, 145, 122, .6), rgba(155, 145, 122, .1));
  bottom: -300px;
  right: -300px;
}

#blob3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(95, 136, 180, .8), rgba(95, 136, 180, .1));
  top: 30%;
  left: 20%;
}

#blob4 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(83, 100, 94, 0.7), rgba(83, 100, 94, 0.1));
    bottom: 20%;
    right: 15%;
}

/*Шапка*/
.pun-header {
  position: absolute;
  top: -475px;
  width: 100%;
}

.pun-header__container {
  position: relative;
  height: 475px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 auto;
}

.header-bg{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 475px;
  overflow: hidden;
  z-index: -1;
  background-image: url(https://forumstatic.ru/files/001c/9d/fc/18692.webp);
  background-repeat: no-repeat;
  background-position: center top;
  border-radius: 25px 25px 0 0;
  box-shadow: 0px 0px 50px -8px rgba(106, 27, 154, 0.58), 0px 0px 30px 6px black inset;
}

.header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px 2px 0;
  background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.header-content-wrapper {
  Width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}

.header-overlay-left, 
.header-overlay-right {
  position: absolute;
  opacity: 1;
}

.header-main-info {
  padding: 0 0 0 35px;
}

.project-title {
  background: linear-gradient(27deg, #6A2C88 0%, #6FA3DC 50%, #361B66 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 1));
  font-family: var(--font-accent);
  font-size: 32px;
  letter-spacing: 1px;
  font-weight: 400;
  line-height: 1;
}

.project-meta {
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 10px;
  color: rgba(170, 164, 191, .7);
  text-shadow: 1px 1px 0 #000000bf;
  letter-spacing: 0.5px;
}

.news-container,
.header__winner-team,
.header-ams {
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.header-content-wrapper:hover .news-container,
.header-content-wrapper:hover .header__winner-team,
.header-content-wrapper:hover .header-ams {
  opacity: 1;
  pointer-events: auto;
}

.header-overlay-left {
  left: 90px;
  top: 90px;
}

.header-overlay-right {
    top: 144px;
    right: 44px;
    display: flex;
    flex-direction: column;
    gap: 190px;
}

.header__winner-team {
    display: flex;
    align-items: center;
}

.winner-icon {
    border: 1px solid transparent;
    border-radius: 50px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    width: 50px;
    height: 50px;
    display: block;
    box-shadow: -1px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E, 5px 0 5px 0px #0000004d;
}

#cloakcomm.winner-icon__img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    position: absolute;
    top: -9px;
    left: -23px;
}

#wandcomm.winner-icon__img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    position: absolute;
    top: -9px;
    left: -15px;
}

#stonecomm.winner-icon__img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    position: absolute;
    top: -9px;
    left: -15px;
}

.team-name {
        border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    display: flex;
    justify-content: center;
    line-height: 1;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
    position: relative;
    left: -17px;
    z-index: -1;
    padding: 13px 15px 13px 25px;
    text-align: center;
    overflow: hidden;
}

.header-ams {
    display: flex;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.ams-link {
        margin: 0 0 0 5px;
        color: #a882d9b5;
}

.header-nav-bottom {
  display: flex;
  justify-content: center;
  gap: 125px;
  position: relative;
    bottom: -23px;
}

.quick-nav {
    position: relative;
}

.quick-nav__btn-wrap {
    width: 150px;
    position: relative;
    z-index: 2;
}

.btn-snake {
    height: 50px;
    position: absolute;
    z-index: 1;
    pointer-events: none;
        left: 10px;
    bottom: -3px;
}

.quick-nav--quests .btn-snake {
    left: 16px;
    bottom: 3px;
}

.btn-snake img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-nav__toggle {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
  background-clip: padding-box, border-box;
  box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
  color: #AAA4BF;
  width: 150px;
  cursor: pointer;
  isolation: isolate;
  height: 40px;
}

.quick-nav__icon{
    position: absolute;
    z-index:5;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
    text-align: center;
    top: 0;
    left: 0;
    width: 150px;
    padding: 10px 40px;
    pointer-events: none;
}

.btn-glow{

    position:absolute;

    pointer-events:none;

    border-radius:999px;

    filter:blur(20px);

    mix-blend-mode:screen;
}

.glow-1{

    width:240px;
    height:25px;

    left:-80px;
    top:-10px;

    background:
        linear-gradient(
            85deg,
            rgba(189,116,201,.75),
            rgba(74,22,83,.45),
            rgba(189,116,201,.75)
        );

    transform:rotate(-18deg);

    animation:flowOne 8s ease-in-out infinite;
}

.glow-2{

    width:260px;
    height:25px;

    right:-210px;
    bottom:-30px;

    background: linear-gradient(90deg, #ff7df8, #c46cff, #7de5ff, #c46cff, #ff7df8);
    opacity: .3;

    transform:rotate(16deg);

    animation:flowTwo 11s ease-in-out infinite;
}

@keyframes flowOne{

0%{
transform:translate(0px,0px) rotate(-18deg);
}

25%{
transform:translate(35px,-8px) rotate(-13deg);
}

50%{
transform:translate(10px,16px) rotate(-21deg);
}

75%{
transform:translate(-24px,6px) rotate(-15deg);
}

100%{
transform:translate(0,0) rotate(-18deg);
}

}

@keyframes flowTwo{

0%{
transform:translate(0,0) rotate(18deg);
}

30%{
transform:translate(-18px,-12px) rotate(10deg);
}

65%{
transform:translate(26px,14px) rotate(22deg);
}

100%{
transform:translate(0,0) rotate(18deg);
}

}

.quick-nav__toggle:hover .btn-glow{

animation-duration:4s;

opacity:.85;

filter:blur(15px);

}

.quick-nav__toggle:hover .glow-2 {
    opacity: .3;
}

.quick-nav__dropdown {
    position: absolute;
    z-index: 1;
    display: none;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.quick-nav__content {
    display: flex;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
    color: #aaa4bf7d;
    padding: 15px 25px 35px;
    line-height: 1;
    font-size: 12px;
    font-weight: 700;
    flex-direction: column;
    gap: 7px;
    width: 220px;
  z-index: 0;
    position: relative;
}

.quick-nav__dropdown--quests a {
        color: #a882d9b5;
}

.quick-nav__dropdown--quests a:hover {
     color: rgb(164 125 207);
}

.quick-nav__link {
    text-align: center;
    background: #352146;
    padding: 3px;
    border-radius: 4px;
    color: #aaa4bf7d;
    white-space: nowrap;
}

.quick-nav__link:hover {
    color: rgb(137 101 178);
    background: rgb(49 22 81);
}

/*Плашки новостей*/
.news-container {
  position: relative;
  padding: 15px 5px 15px 10px;
  border-radius: 10px;
  background: rgba(55, 35, 90, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 2px 10px rgba(125, 229, 255, 0.08);
  overflow: hidden;
  z-index: 0;
}

.news-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(
    135deg, 
    #2A0E4D 0%, 
    #6A1B9A 53%, 
    #4B0082 89%, 
    #7DE5FF 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.news-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 290px;
    overflow: auto;
    padding: 0 10px 0 8px;
}

.news-item {
    position: relative;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    color: #AAA4BF;
    cursor: pointer;
    display: flex;
}

.news-item__text {
    text-align: center;
    color: #AAA4BF;
    font-weight: 500;
    padding: 8px 10px 8px 0;
}

.news-item__title {
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1;
}

.news-item__link {
    color: #a882d9b5;
}

.news-item__descr {
    font-size: 10px;
    line-height: 1;
    margin: 3px 0 0;
}

.news-item__img {
    position: relative;
    mix-blend-mode: luminosity;
    width: 44px;
    height: 39px;
    top: 0;
    left: -9px;
}

.plash-lottery {
    background: url(https://forumstatic.ru/files/001c/9d/fc/99836.webp) no-repeat center / contain;
}

.plash-puzzle {
    background: url(https://forumstatic.ru/files/001c/9d/fc/84331.webp) no-repeat center / contain;
}

.plash-collection {
    background: url(https://forumstatic.ru/files/001c/9d/fc/68565.webp) no-repeat center / contain;
}

.plash-events {
    background: url(https://forumstatic.ru/files/001c/9d/fc/41056.webp) no-repeat center / contain;
}


/*Индивидуальные плашки*/
/*Оформление команды победителя*/
.winner-comm.post-author ul {
  background: url(https://forumstatic.ru/files/001c/9d/fc/95837.webp);
}

.winner-comm .pa-author a {
  color: #7E5C20;
}

/*Настройки*/
#ui-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

#ui-control-btn {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
        box-shadow: -1px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
}

#ui-panel {
    position: absolute;
    opacity: 1;
    bottom: 35px;
    left: 0;
    color: #AAA4BF;
    pointer-events: none;
    width: 240px;
}

.ui-panel__glass {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    background: rgb(55 35 90 / 67%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.ui-panel__glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.active .ui-panel__glass {
    opacity: 1;
    pointer-events: auto;
}

.ui-section h4 {
    text-align: center;
    font-family: var(--font-accent);
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.ui-section h4.interface {
    margin: 30px 0 10px;
}

.font-selection,
.font-size, 
.line-height {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    margin: 0 0 10px;
}

select#chfontfam {
    background-color: rgb(42 21 67);
    color: #AAA4BF;
    border: 1px solid #6d24af;
} 

#chfont option {
    background-color: rgb(60 36 89);
}

#chfontsize, 
#chlineheight, 
#resetfont {
  display: flex;
  align-items: center;
  gap: 5px;
}

.fsizeplus, 
.fsizeminus, 
.lhminus, 
.lhplus {
  cursor: pointer;
  font-size: 11px;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 6px;
  line-height: 18px;
  font-family: FontAwesome;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(42 21 67);
  border: 1px solid #6d24af;
}

.fsizeplus::after, 
.lhplus::after {
  content: '\2b';
}

.fsizeminus::after, 
.lhminus::after {
  content: '\f068';
}

#resetfont {
    justify-content: center;
    padding: 5px;
    cursor: pointer;
}

.ui-switch{
    width:46px;
    height:24px;

    border-radius:999px;

    background:#4b2d6d;

    position:relative;

    cursor:pointer;

    transition:.25s;
}

.ui-switch::before{

    content:"";

    position:absolute;

    width:18px;
    height:18px;

    left:3px;
    top:3px;

    border-radius:50%;

    background: #8f69bd;

    transition:.25s;
}

.ui-switch.off{

    background: #463857;

}

.ui-switch.off::before{

    transform:translateX(22px);
    background: #6e6976;

}

.ui-setting {
    display: flex;
    justify-content: space-between;
}

/*Подвал*/
#html-footer > .container {
    margin: 40px 0 0;
}

.pun-footer__container {
  position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-bg {
  position: absolute;
    height: 167px;
    overflow: hidden;
    z-index: -1;
    background-image: url(https://forumstatic.ru/files/001c/9d/fc/33172.webp);
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    border-radius: 0 0 25px 25px;
    box-shadow: 0px 0px 50px -8px rgba(106, 27, 154, 0.58), 0px 0px 30px 6px black inset;
}

.footer-bg:after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0 2px 2px;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.footer-container {
  padding: 40px 35px 30px 35px;
    position: relative;
}

.footer-container__wrapper {
    display: flex;
    border-radius: 10px;
    background: rgba(55, 35, 90, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    padding: 25px;
    gap: 35px;
}

.footer-container__wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.footer-section__right {
  flex-basis: 100%;
}

.footer-lable {
  display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -61px;
}


.footer-plash {
        position: relative;
    overflow: hidden;
    z-index: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
    color: #AAA4BF;
    width: 150px;
    cursor: pointer;
    isolation: isolate;
    height: 40px;
}

.footer-section__left .quick-nav__icon {
    top: 4px;
    left: -16px;
}

.footer-section__right .quick-nav__icon {
        top: 4px;
}

.btn-snake__footer {
    height: 50px;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    right: 10px;
    bottom: -3px;
}

.footer-section__right .btn-snake__footer {
        bottom: -8px;
}

.btn-snake__footer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.wanted-container {
  display: flex;
  gap: 5px;
}

.wanted-link {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
  box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
  overflow: hidden;
}

.wanted-img {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    object-fit: cover;
    filter: grayscale(1) contrast(1.15) brightness(.75) drop-shadow(0 0 8px rgba(125, 229, 255, .25)) drop-shadow(0 0 20px rgba(106, 27, 154, .35));
    opacity: .5;
    margin: 1px 1px;
    border-radius: 8px;
}

.partners-container {
  height: 44px;
  overflow: auto;
  display: flex;
  gap: 3px 5px;
  flex-wrap: wrap;
}

.partners-container img {
  opacity: .6;
}

/*Форум с матчастью*/
#forum_f2 .subforums {
  display: none;
}

#pun-viewforum[data-forum-id="3"] .main {
  display: flex;
  flex-direction: column;
}

#pun-viewforum[data-forum-id="3"] .linkst {
  order: 1;
}

#pun-viewforum[data-forum-id="3"] #subforums {
  font-size: 0;
    margin: 30px 40px 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: center;
    order: 3;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
}

#pun-viewforum[data-forum-id="3"] #subforums a {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #AAA4BF;
}

#pun-viewforum[data-forum-id="3"] .forum {
  order: 2;
}

#pun-viewforum[data-forum-id="3"] .modmenu {
  order: 4;
}

#pun-viewforum[data-forum-id="3"] .linksb {
  order: 5;
}

/*Маска*/
#mask_dialog .hv-bg .inner {
  background: #CECCC4;
  overflow-x: hidden;
  max-height: fit-content;
}

#mask_dialog .hv-form-block {
  padding: 0 15px 0;
}

#mask_dialog .hv-mask-block .hv-preview-block {
  width: 150px;
  flex: auto;
  max-width: none;
}

/*Попапы*/
.event.fdk-popup-initialized {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  background: #CFCDC5;
  border: 1px solid #969696;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  min-width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.event.fdk-popup-active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px 10px 10px 0;
    padding: 20px 20px 15px 15px;
}

.event-title {
  display: block;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    z-index: 0;
    padding: 30px 0 0;
}

.event-title::before {
    content: '';
    width: 100%;
    height: 30px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    z-index: -1;
}

.event-title p {
    background: #A19D99;
    margin: 0 -5px 0;
    padding: 5px;
    text-align: center;
}

.event-list {
  padding: 15px 25px;
    text-align: justify;
    border-radius: 0 0 10px 10px;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
}

.event-list p:not(:last-child) {
  padding: 0 0 1.6em 0;
}

.event-list a {
  font-weight: 700;
}

.fdk-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fdk-popup-backdrop.show {
    display: block;
    opacity: 1;
}

@keyframes fdk-popup-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fdk-backdrop-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.event.fdk-popup-active {
  animation: fdk-popup-fade-in 0.3s ease;
}

.fdk-popup-backdrop.show {
  animation: fdk-backdrop-fade-in 0.3s ease;
}

.close {
  cursor: pointer;
  position: absolute;
  top: 2px;
  right: 1px;
  line-height: 1;
  color: #666;
  width: 24px;
  height: 24px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  transform: scale(1.1);
  color: var(--link-dark-hover);
}

.close p {
    font-size: 16px;
}

.popup {
    cursor: help;
    display: block;
    text-decoration: underline;
    transition: 0.2s;
    position: relative;
    font-weight: 700;
}

.popup:hover {
  color: var(--link-dark-hover);
  text-decoration: none;
}

/*Личная страница*/
#pun-pages .main {
  padding: 0 19px;
}

#pun-pages .character-container {
  margin: 0 auto;
  padding: 50px 0;
  width: 900px;
}

.character-box {
  background: #A19D99;
    border-radius: 10px 10px 10px 0;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    padding: 25px;
}

.character-header {
  display: flex;
  gap: 20px;
      padding: 30px 20px 20px;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88396.webp) no-repeat top center / cover;
    border-radius: 10px 10px 0 0;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    flex-direction: column;
}

.character-header__img {
  width: 100px;
    height: 100px;
    object-fit: cover;
    filter: grayscale(.6);
    border-radius: 10px;
    box-shadow: 0 0 0 2px #4B0082;
}

.character-header__right {
  width: 100%;
  display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 0 0 15px;
}

.character-header__name {
  background: #a19d99;
    padding: 10px 10px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -25px 0;
}

.character-header__name strong {
  font-family: var(--font-accent);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
}

.character-header__info {
    display: flex;
    gap: 35px;
}

.character-header__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 10px;
  justify-content: center;
}

.character-header__stats-item {
  display: flex;
    flex-direction: column;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    width: 150px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #AAA4BF;
}

.stats-item__title {
  padding: 5px 10px;
    text-transform: uppercase;
    font-size: 7px;
    font-weight: 600;
}

.stats-item__loader {
  margin: 0 0 -1px;
  padding: 2px;
  position: relative;
}

.stats-loader__color {
  background: #371F55;
    height: 16px;
    border-radius: 10px;
    border: 2px solid #1e0c34;
}

.stats-loader__numbers {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 12px;
  transform: translateX(-50%) translateY(-50%);
}

.character-header__quote {
  color: #AAA4BF;
    font-weight: 500;
    font-size: 11px;
    text-shadow: 1px 1px 0 #000;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.character-header__quote p {
  display: inline-block;
    color: #AAA4BF;
    font-family: var(--font-accent);
    font-weight: 400;
    font-size: 30px;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 1));
    line-height: 1;
}

.character-header__quote p:first-child {
  margin: 0 10px 0 0;
}

.character-header__quote p:last-child {
  margin: 0 0 0 10px;
}

.character-achievements {
  background: #C5C1BD;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border: 1px rgba(42, 14, 77, 0.20) solid;
}

.character-achievements #tabs {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.character-achievements button {
  flex: 1;
    padding: 9px 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    position: relative;
}

.character-achievements button:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(342deg, #2A0E4D 0%, #7DE5FF 53%, #6A1B9A 89%, #4B0082 100%);
    pointer-events: none;
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateX(-50%);
}

.character-achievements button.tabactive:before,
.character-achievements button:hover:before {
    width: 100%;
    opacity: 1;
}

.inner-tab-underline {
  display: none;
}

.tab-content {
  display: none;
  overflow: auto;
}

.tab-content.active {
  display: block;
}

.general-container__top {
  display: flex;
  gap: 20px;
  margin: 20px;
  justify-content: center;
}

.gifts-item {
  flex: 1;
}

.gifts-item,
.plaque-collection,
.love-items,
.artefacts-collection {
    background: #b0aca8;
    color: var(--text-basic-dark70);
    border-radius: 10px;
    padding: 7px 15px 6px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
}


.general-container__title,
.achievements-container__title {
  text-align: center;
    line-height: 1;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 0 7px;
    border-bottom: 1px solid rgba(26, 11, 46, 0.30);
    margin: 0 0 10px;
}

.achievements-container__title {
  font-size: 15px;
}

.forum-achievements {
  margin: 20px 0 5px;
}

.gift-item,
.plaque-container__item {
  height: 70px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 5px;
  justify-content: center;
}

.gift-img-container,
.artefact-item {
    width: 55px;
    height: 55px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-images,
.artefact-images {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plaque-collection {
  flex-basis: 250px;
}

.plaque-container__item {
  padding: 0 5px 0 0;
}

.personal-plash__wrap {
  text-transform: uppercase;
  text-align: center;
  color: #6D6D6D;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 230px;
  height: 54px;
  text-shadow: 1px 1px 0 #000;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.personal-plaque {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  z-index: -1;
  border-radius: 10px;
  border: 1px solid #4B0082;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 12px 10px 15px;
  color: #6D6D6D;
  text-shadow: 1px 1px 0 #000;
  font-size: 11px;
  gap: 5px;
}

.plash-title {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 10px;
  margin: 0 0 3px;
}

.plash-subtitle {
  text-transform: lowercase;
  font-weight: 500;
  font-size: 10px;
}

.general-container__bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 20px 20px;
}

.love-items,
.artefacts-collection {
  flex: 1;
}

.loves-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 5px 0 0;
}

.loves-container__wrap {
  height: 60px;
  overflow: auto;
}

.artefacts-container {
    padding: 0 5px 0 0;
}

.artefacts-container__wrap {
  height: 60px;
}

.love-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}

.love-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #4B0082;
}

.love-images {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(.6);
}

.love-descr {
  font-size: 12px;
  line-height: 1;
}

.love-title {
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 5px;
}

.artefacts-container__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.character-twins {
    padding: 14px 20px;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88396.webp) no-repeat bottom center / cover;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.character-twins__title {
        text-transform: lowercase;
    font-weight: 700;
    font-size: 11px;
}

.twin-link {
  color: #AAA4BF;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

#achievements-tab,
#coupons-tab {
  height: 240px;
  margin: 20px;
  padding: 0 10px 0 0;
}

.achievements-container__item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 10px;
}

.achievements-item {
  display: flex;
  gap: 10px;
  flex-basis: 49%;
  opacity: .4;
}

.achievements-item.received {
  opacity: 1;
}

.achievements-item__img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2F2F2F;
  filter: grayscale(1);
}

.received .achievements-item__img {
  filter: grayscale(0);
}

.achievements-item__text {
  flex-basis: 235px;
}

.achievements-item__title {
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 5px;
  position: relative;
  font-size: 13px;
}

.achievements-item__title::after {
  content: '';
  position: absolute;
  background: linear-gradient(270deg, rgba(47, 47, 47, 0) 0%, #2F2F2F 100%);
  width: 100%;
  height: 1px;
  bottom: -2px;
  right: 0;
}

.achievements-item__subtitle {
  color: #6D6D6D;
  font-weight: 500;
  font-size: 10px;
}

.coupons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.coupons-item {
  text-align: center;
    flex: 0 0 calc(50% - 10px);
    background: #b0aca8;
    color: var(--text-basic-dark70);
    border-radius: 10px;
    padding: 7px 15px 6px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
}

.coupons-item__title {
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 5px;
  position: relative;
  font-size: 13px;
}

.coupons-item__title::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, rgba(26, 11, 46, 0.30) 50%, rgba(26, 11, 46, 0) 100%);
  width: 100%;
  height: 1px;
  bottom: -2px;
  right: 0;
}

.coupons-item__subtitle {
  font-weight: 500;
  font-size: 10px;
}

/* Cтрелки © ForumD.ru, Gerda */
.scrollbuttons {
  position: fixed;
  width: 1044px;
  height: 0px;
  top: 55%;
  z-index: 10000;
}

.go-up, .go-down {
  opacity: 0;
  position: absolute;
  z-index: 9999;
  cursor: pointer;
  padding: 0 8px 4px;
  transition: all 0.8s;
  -webkit-transition: all 0.8s;
}

.go-up {
  right: 0;
  top: 0;
}

.go-down {
  right: 9px;
    top: 165px;
}

.go-up.show, 
.go-down.show {
  opacity: 1;
}

/*Сокрытие профиля*/
.post.removeprofile > h3 {
  display: none;
}

.removeprofile.post > .container {
  margin: 0 auto;
}

.removeprofile .post-author, 
.removeprofile .pl-email, 
.removeprofile .pl-website, 
.removeprofile .about-pers, 
.removeprofile .post-sig {
  display: none;
}

.removeprofile .post-body {
  grid-column: 1 / -1;
}

/*Вкладки*/
.custom_tag_tabtext {
  display: none;
}

.custom_tag_tabtext.active {
  display: block;
}

.tabs-container {
  display: flex;
  gap: 30px;
  flex-direction: column;
}

.tabs-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.custom_tag_tabtitle {
  background: rgba(0, 0, 0, .05);
  padding: 10px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #969696;
  cursor: pointer;
  transition: all 0.8s ease;
}

.custom_tag_tabtitle:hover {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .35);
}

.custom_tag_tabtitle.active {
  background: #ADBAA9;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, .35);
}

.custom_tag_tabtitle p {
  padding: 0;
}

/*Декоративное оформление списка топиков*/
.forum tbody {
  display: grid;
  gap: 20px 35px;
  grid-template-columns: repeat(2, 1fr);
}

.forum tr:not(.episode-topic) {
  grid-column: 1 / -1;
  border-radius: 0 15px 0 0;
  display: grid;
  grid-template-columns: 56% 1fr 1fr 24%;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 0 0 20px;
  border-radius: 5px;
  padding: 15px 10px;
  background: rgba(0, 0, 0, .05);
}

.show_recent .forum tr,
.show_replies .forum tr,
.show_unanswered .forum tr,
.show_new .forum tr {
    grid-template-columns: 46% 20% 1fr 24%;
}

.forum .tc2 a {
    color: rgba(10, 1, 20, 0.50);
    font-size: 12px;
    text-transform: lowercase;
}

.forum .tc3 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    opacity: .6;
    line-height: 1;
    font-size: 11px;
    align-self: center;
}

.forum .tc3::after {
    content: '\f075';
    font-family: fontawesome;
    padding-right: 10px;
}

.forum tr:hover {
  transform: scale(1.03);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.closedatafield {
    position: absolute;
    color: #AAA4BF;
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
    text-shadow: 1px 1px 0px #000;
    background: linear-gradient(170deg, #402554 35%, #8E52BA 50%, #402554 67%);
    padding: 1px 15px;
    border-radius: 15px;
    top: -22px;
    left: 10px;
}

.stickytext {
    position: absolute;
    color: #AAA4BF;
    font-size: 10px;
    font-weight: 500;
    text-transform: lowercase;
    text-shadow: 1px 1px 0px #000;
    background: linear-gradient(173deg, #1B0B30 0%, #542296 50%, #1B0B30 100%);
    padding: 1px 15px;
    border-radius: 15px;
    top: -22px;
    left: 10px;
}

.iclosed.isticky .stickytext {
    left: 90px;
}

.forum .tcl {
  min-width: 0;
  position: relative;
}

.forum div.icon {
  top: 50%;
  left: -30px;
  border-radius: 10px;
  transform: translateY(-5px);
}

.forum div.icon-new {
  background: #58927D;
}

.theme-pages {
  grid-column: 2 / 3;
  margin: 0 0 0 5px;
  font-size: 11px;
}

.new-messages {
  grid-column: 3 / 4;
  font-size: 11px;
  margin: 0 0 0 10px;
}

.info-theme {
  flex-basis: 51%;
  display: grid;
  grid-template-columns: 22% 22% auto;
}

.theme-mark {
  grid-column: 1 / 2;
  text-transform: uppercase;
  font-size: 9px;
  align-self: center;
  line-height: 140%;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
}

.mark-imp {
  grid-row: 1 / 2;
}

.mark-close {
  grid-row: 2 / 3;
}

.theme-stats {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
  font-size: 9px;
  align-self: center;
  line-height: 140%;
}

.last-mess {
  grid-column: 3 / 4;
  display: grid;
  gap: 0 15px;
  grid-template-columns: 30px auto;
}

.last-mess .user-avatar {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  align-self: center;
}

.last-mess a {
  grid-row: 2 / 3;
  font-size: 9px;
  text-transform: uppercase;
  line-height: 110%;
}

.last-mess .avatar-image {
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

.last-mess .byuser {
  grid-row: 1 / 2;
  text-transform: uppercase;
  align-self: end;
  line-height: 110%;
}

.last-mess .byuser-username {
  margin: 0 0 0 -3px;
}

.byuser-username {
  font-size: 10px;
  line-height: 110%;
}

.tclcon .byuser-username {
    opacity: .8;
}

.forum tr.episode-topic {
  margin: 20px 0 10px;
  grid-template-columns: 20% 20% 60%;
  display: grid;
  padding: 10px;
  gap: 15px 0;
}

.forum .episode-topic .tcl {
  grid-column: 1 / -1;
}

.episode-topic .tclcon strong {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}

.forum .episode-topic .tclcon a {
  max-width: 364px;
}

.descr-ep-topic {
  position: relative;
  margin-top: 10px;
}

.episode-topic .episode-img {
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

.episode-topic .episode-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(0.5);
  z-index: -1;
  position: relative;
}

.episode-topic .info-theme {
  grid-template-columns: 35% auto;
  padding: 0 10px 10px;
}

.episode-topic .theme-stats {
  grid-column: 1 / 2;
}

.episode-topic .last-mess {
  grid-column: 2 / 3;
}

.episode-topic .intd {
  padding: 0 0 0 30px;
}

.episode-topic div.icon {
  left: 0;
}

.warning-eps {
  position: absolute;
  right: 0;
  top: 15px;
  border-radius: 5px;
}

.warning-eps p {
  display: flex;
    align-items: center;
    gap: 5px;
    color: #AAA4BF;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    text-shadow: 1px 1px 0px #000;
    background: linear-gradient(170deg, #402554 35%, #8E52BA 50%, #402554 67%);
    padding: 5px 15px;
    border-radius: 15px 0 0 15px;
}

#pun-viewforum .forum .episode-topic .tc2 {
    grid-column: 1 / 2;
    justify-self: end;
    align-self: center;
    display: flex;
}

#pun-viewforum .forum .episode-topic .tc3 {
    grid-column: 2 / 3;
    justify-self: start;
    margin: 0 0 0 20px;
    align-self: center;
    display: flex;
}

.forum .episode-topic .tcr {
    grid-column: 3 / 4;
    justify-self: end;
}

/******************************************************
Спецпосты
*******************************************************/
/*Особые посты*/
/*Посты за АМС*/


/*Реклама*/
.piar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}

/*Достижения*/
.achievements-tab .achievements-container__item {
  padding: 30px;
  gap: 20px;
}

.achievements-container__item .achievements-item {
    background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
    opacity: 1;
    padding: 0 5px 0 0;
}

.post-content .achievements-container__item img.postimg {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin: 0;
}

.achievements-container__item .achievements-item__title {
  font-size: 12px;
}

/*Гостевая*/
.gb-switcher {
    display: flex;
    gap: 20px;
    position: absolute;
    top: -18px;
    right: 40px;
}

.gb-switcher button {
        width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    box-shadow: -1px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
    padding: 5px;
}

.gb-switcher button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guestbook {
    padding: 30px;
    width: calc(100% + 20px);
    margin: 0 -10px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.55) inset;
    color: #AAA4BF;
    text-shadow: 1px 1px 0px #000;
    position: relative;
    z-index: 0;
}

.design-hug .guestbook {
    background: url(https://forumstatic.ru/files/001c/9d/fc/25610.webp?v=1) no-repeat top center;  
}

.design-hug .guestbook::before {
    content: "";
    position: absolute;
    background: url(https://forumstatic.ru/files/001c/9d/fc/93762.gif?v=1) no-repeat;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    background-position: 46% top;
    background-size: 410px 443px;
}

.design-hug .guestbook::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(128deg, rgb(42, 14, 77) 0%, rgb(106, 27, 154) 53%, rgb(75, 0, 130) 84%, rgb(185, 171, 161) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.design-hecate .guestbook {
    background: url(https://forumstatic.ru/files/001c/9d/fc/39513.webp?v=1) no-repeat top center;
}

.design-hecate .guestbook::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.guestbook__container {
  display: grid;
    gap: 35px;
    grid-template-columns: repeat(3, 1fr);
}

.guestbook-top__left {
  display: flex;
    flex-direction: column;
    gap: 55px;
    grid-column: 1 / 2;
}

.design-hecate .guestbook-top__left {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    gap: 30px;
}

.guestbook-left__top {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #3F3F3F;
}

.guestbook-left__top a {
  color: #4B7E6C;
  text-shadow: 1px 1px 0 #000;
}

.guestbook-left__top p {
  text-align: center;
}

.guestbook-left__center {
    padding: 20px;
    text-shadow: 1px 1px 0 #000;
    font-size: 12px;
    border-radius: 10px;
    background: rgba(28, 27.59, 39.97, 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    position: relative;
    z-index: 0;
}

.design-hecate .guestbook-left__center {
        width: 50%;
}

.guestbook-left__center::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(128deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 84%, #B9ABA1 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.design-hecate .guestbook-left__center::after {
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
}

.guestbook__rules {
  height: 200px;
  overflow: auto;
  padding: 0 10px 0 0;
}

.guestbook-left__bottom {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #AAA4BF;
}

.design-hecate .guestbook-left__bottom {
    align-self: center;
}

.guestbook-left__bottom a {
  color: #AAA4BF;
  text-shadow: 1px 1px 0 #000;
}

.guestbook-top__center {
  flex-basis: 320px;
  display: flex;
  flex-direction: column;
}

.guestbook__img {
  width: 320px;
  height: 360px;
  margin: -72px 0 0;
}

.project-box {
  line-height: 1;
  grid-column: 1 / -1;;
}

.design-hecate .project-box {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-self: center;
    padding-bottom: 50px;
}

.project-box p {
  text-align: center;
}

.project-box__title {
    color: #AAA4BF;
    font-size: 32px;
    filter: drop-shadow(1px 1px 0 #000);
    font-family: var(--font-accent);
}

.project-box__meta {
      font-weight: 500;
    color: rgba(169.85, 164, 191, 0.70);
    font-size: 10px;
    text-transform: uppercase;
    margin: 2px 0 0;
}

.guestbook-top__right {
display: flex;
    gap: 25px;
    flex-direction: column;
    grid-column: 3 / 4;
}

.design-hecate .guestbook-top__right {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
}

.guestbook-top__item {
  height: 100px;
  min-width: 300px;
    padding: 0 10px 0 0;
    border-radius: 10px;
    background: rgba(28, 27.59, 39.97, 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    position: relative;
    z-index: 0;
}

.guestbook-top__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(128deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 84%, #B9ABA1 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.design-hecate .guestbook-top__item::after {
        background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
}

.guestbook-top__item a {
        color: #c2b6ec;
}

.guestbook-item__title,
.guestbook-container__bottom .legend {
  text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin: -12px auto 0;
    width: 75%;
    background: linear-gradient(51deg, #1E0C34 0%, #40264C 23%, #1E0C34 50%, #40264C 77%, #1E0C34 100%);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.55) inset;
    border-radius: 15px;
    border: 1px #2A0E4D solid;
    color: #AAA4BF;
    display: flex;
    justify-content: center;
    padding: 4px 20px;
}

.guestbook-item__list {
  height: 69px;
  overflow: auto;
  font-size: 10px;
  font-weight: 500;
  text-shadow: 1px 1px 0 #000;
  padding: 10px 10px 0 15px;
}

.guestbook-container__bottom {
        grid-column: 1 / -1;
}

.guestbook-container__bottom .code-box {
  border-radius: 0;
  background: none;
  border: 0;
}

.guestbook-container__bottom .legend {
    width: fit-content;
    margin: -12px 0 0 20px;
}

.guestbook-container__bottom .legend::before {
  content: 'Шаблон придержания [скопировать]'
}

.guestbook-container__bottom .legend a {
  font-size: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.guestbook-container__bottom .blockcode {
  border-radius: 10px;
    background: rgba(28, 27.59, 39.97, 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    position: relative;
    z-index: 0;
  padding: 25px 20px 0;
  margin: -14px 0 0;
}

.guestbook-container__bottom .blockcode::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(128deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 84%, #B9ABA1 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.design-hecate .guestbook-container__bottom .blockcode::after {
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
}

.design-hecate .dead-characters {
    display: none;
}

/*Новости*/
.news-header {
    border-radius: 10px 10px 10px 0;
    margin: 30px auto;
    padding: 20px 30px 20px 20px;
    display: flex;
    gap: 30px;
}

.news-header::before {
    content: '';
    width: 100%;
    height: 172px;
    position: absolute;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px 10px 10px 0;
    z-index: -1;
    top: 0;
    left: 0;
}

.post-content .news-portrait img.postimg {
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 2px #4B0082;
}

.news-portrait p {
  width: 110px;
  height: 132px;
}

.news-portrait img {
  filter: grayscale(.5);
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
}

.news-header__box {
  display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-title-wrap {
    background: #C5C1BD;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
    padding: 15px 20px;
    text-transform: uppercase;
    font-family: var(--font-accent);
}

.news-title {
  padding: 0 0 5px;
    position: relative;
    margin: 0 0 10px;
}

.news-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(26, 11, 46, 0.30) 50%, rgba(26, 11, 46, 0) 100%);
    pointer-events: none;
}

.news-title p{
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
}

.news-subtitle {
    font-size: 14px;
}

.news-list {
    border-radius: 10px 10px 10px 0;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
}


.news-activists__list {
  padding: 20px;
}

.activists-list__top {
  display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.activists-item,
.posts-item,
.episodes-item {
  flex: 1;
  align-self: stretch;
  background: #B0ACA8;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
  border-radius: 10px;
  border: 1px rgba(42, 14, 77, 0.20) solid;
}

.activists-item__title,
.posts-item__title,
.episodes-item__title {
  line-height: 1;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1.00);
    color: #AAA4BF;
    border-radius: 10px 10px 0 0;
    padding: 8px 10px 7px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
}

.activists-item__title p,
.posts-item__title p,
.episodes-item__title p {
  text-align: center;
}

.activists-container,
.posts-container,
.episodes-container {
  padding: 10px;
}

.activists-img p,
.posts-img p {
  display: flex;
  justify-content: center;
  margin: 0 0 15px;
      gap: 5px;
    flex-wrap: wrap;
}

.activists-img img.postimg,
.posts-img img.postimg {
  border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0;
    filter: grayscale(.8);
    background: #1E0C34;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
}

.activists-name,
.posts-name,
.episodes-party {
  text-transform: lowercase;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-basic-dark70);
}

.episodes-wrap {
  position: relative;
  margin: 0 0 10px;
}

.episodes-wrap p {
  text-transform: uppercase;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.episodes-wrap span {
    padding: 0 10px;
}

.episodes-wrap a {
  font-weight: 700;
    font-size: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 1.00);
    color: rgba(169.85, 164, 191, 0.70);
}

.episodes-wrap img.postimg {
  margin: 0;
  position: absolute;
  width: 230px;
  height: 54px;
  object-fit: cover;
  top: 0;
  left: 0;
  border-radius: 10px;
  border: 1px solid #2F2F2F;
}

.activists-name p,
.posts-name p,
.episodes-party p {
  text-align: center;
}

.activists-quote {
  position: relative;
    padding: 15px 40px;
    margin: 20px 0 0;
    line-height: 1.4;
    font-size: 12px;
    font-weight: 500;
    background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
}

.activists-text::before,
.activists-text::after {
  color: var(--text-basic-dark70);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    position: absolute;
}

.activists-text::before {
  content: '«';
  top: 10px;
  left: 14px;
}

.activists-text::after {
  content: '»';
  bottom: 10px;
  right: 12px;
}

.activists-quote__name p {
  text-align: end;
  font-style: italic;
}

.news-commad-win {
  display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px -8px 20px;
    background: #b0aca8;
    padding: 8px 30px;
}

.news-commad-win p {
  font-family: var(--font-accent);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    text-transform: uppercase;
}

.news-wrap {
  max-width: 660px;
  margin: 0 auto;
}

.welcome-newbies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.newbies-item p {
  text-align: center;
  font-size: 0.8em;
}

.newbies-item img.postimg {
  width: 70px;
    height: 70px;
    object-fit: contain;
    filter: grayscale(.8);
    background: #1E0C34;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
    border-radius: 50%;
}

/*Командные забеги*/
.commandscore {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.commanditem {
  flex-basis: 33.33%;
  border: 1px solid #969696;
  overflow: hidden;
}

.commanditem:first-child {
  border-radius: 0 0 0 10px;
}

.commanditem:last-child {
  border-radius: 0 10px 10px 0;
}

.commanditem .pillar-title {
  background: rgba(0, 0, 0, .1);
  padding: 5px 10px;
  font-size: 0.8em;
}

/*Матчасть*/
.lore-showcase {
    position: relative;
    padding: 30px 52px 0;
    width: 82%;
    margin: 0 auto;
}

.lore-showcase::before {
    content: '';
    background: url(https://forumstatic.ru/files/001c/9d/fc/88396.webp) no-repeat top center / cover;
    width: 100%;
    height: 280px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 10px 10px 10px 0;
}

.lore-showcase.large-before::before {
    height: 725px;
}

.lore-showcase .custom_tag_tabtitle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.8s ease;
    border-radius: 10px 10px 10px 0;
    background: rgba(55, 35, 90, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
    overflow: hidden;
    z-index: 0;
    padding: 4px 15px 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: var(--font-accent);
    font-weight: 700;
    border: 0;
    color: #7F7A91;
    text-shadow: 1px 1px 0 #000;
}

.lore-showcase .custom_tag_tabtitle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(42, 14, 77, 0.50) 0%, rgba(106, 27, 154, 0.50) 53%, rgba(75, 0, 130, 0.50) 84%, rgba(125, 229, 255, 0.50) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.lore-showcase .custom_tag_tabtitle.active {
    border: 1px solid transparent;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
    color: #AAA4BF;
}

.lore-showcase .custom_tag_tabtitle.active::after {
    display: none;
}

.lore-showcase .tabs-content {
    border-radius: 10px 10px 10px 0;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    padding: 50px 0 30px;
    position: relative;
}

.lore-showcase .tabs-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    width: 100%;
    height: 30px;
}

.lore-showcase .tabs-content::after {
    content: '';
    top: -5px;
    left: 50%;
    border: 3px solid #B0ACA8;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
    background: #522A7A;
}

.lore-h1 p {
       font-size: 20px;
    font-family: var(--font-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    padding: 0 35px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 20px; 
}

.lore-showcase > .lore-h1 p {
    text-shadow: 1px 1px 0 #000;
    color: #AAA4BF;
}

.lore-h1__subtitle {
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 30px 8px;
    margin: 50px -23px 30px;
    font-size: 20px;
    font-family: var(--font-accent);
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
}

.lore-h1__subtitle p {
    text-align: center;
}

.lore-showcase__wrapper {
    border-radius: 10px 10px 10px 0;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    padding: 50px 0 30px;
    position: relative;
}

.lore-showcase__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    width: 100%;
    height: 30px;
}

.lore-showcase__wrapper::after {
    content: '';
    top: -5px;
    left: 50%;
    border: 3px solid #B0ACA8;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
    background: #522A7A;
}

.lore-showcase__box {
    margin: 0 30px 0;
    padding: 20px;
    background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
}

.lore-showcase__box img.postimg {
    border-radius: 10px;
    box-shadow: 0 0 0 2px #4B0082;
}

.medium-container {
    max-width: 660px;
    margin: 0 auto 60px;
}

.lore-subtitle {
  font-family: var(--font-accent);
  margin: 3.3em 0 0.75em;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  padding: 0 0 5px;
  border-bottom: 1px solid rgba(24, 29, 28, .3);
  text-transform: uppercase;
}

.pillar-title {
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-size: 1.06em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 2.5em 0 0.5em;
}

.quote-box .pillar-title {
  margin: 0 0 0.5em;
}

p + .custom_tag_questionarybio .pillar-title,
.post-content .custom_tag_wanted .spoiler-box + .pillar-title {
  margin: 24px 0 0.5em;
}

.important-lore {
  margin: 2.1em 0 2.7em;
}

.important-lore + .inline-question {
  margin: 0 0 0.4em;
}

.important-title {
  font-weight: 600;
  margin: 0 0 0.4em;
}

.inline-question {
  font-weight: 700;
  margin: 1.6em 0 0.4em;
}

.warning-line {
  font-style: italic;
  margin: 1.6em 0 0;
}

.subsection-title {
  margin: 1.7em 0 0.66em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.subsection-title + .definition-list {
  margin: 0;
}

.definition-list {
  margin: 1.6em 0 1.6em;
}

.list-subtitle {
  font-weight: 500;
}

.definition-list > p,
.definition-list > p + p {
  padding: 6px 0 24px 16px
}

.step-title {
  margin: 1.6em 0 0.4em;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.step-title-first {
  margin: 2.1em 0 0;
}

.lore-subtitle p,
.pillar-title p,
.important-title p,
.inline-question p,
.subsection-title p,
.list-subtitle p,
.step-title p {
  padding: 0;
}

.personal-page .lore-h1,
.rules-container .lore-h1,
.plot-container .lore-h1,
.gifts-box .lore-h1 {
  margin: 0 0 46px;
}

.spells .lore-h1 {
  margin: 0 0 46px;
}

.materials-search {
  width: 100%;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.search-controls {
  position: relative;
  flex-basis: 100%;
}

.search-controls input {
  padding: 10px;
  border-radius: 2px;
  border: 0;
}

.clear-search {
  position: absolute;
  top: 11px;
  right: 15px;
  color: #2d3232;
  opacity: .5;
  cursor: pointer;
}

.search-options input[type="radio"] {
  margin: 1px 5px 3px 4px;
}

.search-info {
  font-size: 12px;
  text-align: end;
  padding: 10px 0 20px;
}

.materials-grid {
  margin: 0 auto;
}

.material-card {
  margin: 0 0 42px;
}

h3.material-name {
  font-size: 18px;
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(24, 29, 28, .3);
  background: none;
  border-radius: 0;
}

.material-desc {
  text-align: justify;
}

.post-content p + .list-subtitle {
  margin: 1.6em 0 0;
}

/*Калькулятор выпуска*/
.calculator h1 p {
    font-size: 20px;
    font-family: var(--font-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    padding: 0;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    color: #AAA4BF;
    margin: 0 0 20px;
}

 .calculator .form-group {
    margin-bottom: 20px;
  }

  .calculator select,
  .calculator  input {
    width: 100%;
  }

  .calculator .school-info {
    margin-top: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, .05);
    border: 1px solid #969696;
    padding: 15px 25px;
    border-radius: 0 10px 10px;
  }

  .calculator .early-option input {
    width: 10px;
    height: 10px;
    margin: 0 10px 2px 0;
  }

  .calculator .stage {
    margin: 15px 0;
    text-align: left;
    background: rgba(0, 0, 0, .05);
    border: 1px solid #969696;
    padding: 15px 25px;
    border-radius: 0 10px 10px;
  }

 .calculator .stage-title {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 1.06em;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .calculator .stage-dates {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 18px;
  }

 .calculator .stage-desc {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, #969696 0%, rgba(150, 150, 150, 0) 100%);
    border-image-slice: 1;
  }

.calculator .final {
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 0 0 10px 10px;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    margin: 0 -20px -20px;
    text-shadow: 1px 1px 0 #000;
    color: #AAA4BF;
    font-family: var(--font-accent);
}

.calculator .result {
    margin-top: 25px;
  }

/*Подарки*/
.gifts-box .tabs-container {
  display: grid;
  grid-template-columns: 20% 1fr;
  align-items: start;
}

.gifts-box .tabs-header {
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.gifts-box .custom_tag_tabtitle {
  padding: 0;
}

.gifts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
    justify-content: center;
    margin: 0 0 20px;
}

.post-content .gifts-box img.postimg {
  width: 55px;
  height: 55px;
  background: url(https://forumstatic.ru/files/001c/9d/fc/42071.svg) no-repeat center center / contain;
  filter: brightness(0.8);
  margin: 0;
}

.lore-showcase__box .gift-elem span {
    width: 55px;
    height: 55px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
}

.lore-showcase__box .gift-elem img.postimg {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/*Заклинания*/
.spellslist-mobile-btn,
.spellslist-mobile-close {
  display: none;
}

.spellslist-box {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 0 20px;
  position: relative;
  padding: 15px;
}

.spellslist-box::before {
    content: '';
    width: 100%;
    height: 170px;
    position: absolute;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px 10px 10px 0;
    z-index: -1;
    top: 0;
    left: 0;
}

.spellslist-filter {
  border-radius: 10px;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    padding: 50px 0 0 0;
    position: relative;
    align-self: self-start;
}

.spellslist-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
}

.spellslist-filter::after {
    content: '';
    top: -5px;
    left: 50%;
    border: 3px solid #B0ACA8;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
    background: #522A7A;
}

.alphabet-filter {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.alphabet-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
}

.alphabet-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.letter-btn {
  cursor: pointer;
  font-weight: 600;
  color: #495057;
  min-width: 40px;
  text-align: center;
  background: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.8s ease;
}

.letter-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: none;
  border: 0;
}

.letter-btn.active {
  border: 1px solid #2F2F2F;
  border-radius: 10px;
  box-shadow: inset 0 0 3px 2px rgba(0, 0, 0, .5), 0 0 10px 0 #00000059;
  background: #1A1A1A;
  font-weight: 800;
  font-family: var(--font-accent);
  color: #6D6D6D;
  text-shadow: 1px 1px 0 #000;
}

.letter-btn:hover {
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 1px 1px 4px 0 rgba(0, 0, 0, .7);
  color: #495057;
  text-shadow: none;
  border: 1px solid #969696;
  font-family: var(--font-basic);
}

.reset-alphabet-btn {
  padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    background: #512e69;
    transition: all 0.8s ease;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
}

.reset-alphabet-btn:hover {
  background: #1e0c34;
}

  /* Стили для групп букв */
  .letter-group {
    margin-bottom: 30px;
  }

  .search-input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
  }

  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }

  .no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
  }

  /* Стили для сложности */
  .difficulty-stars {
    font-family: 'Segoe UI Symbol', sans-serif;
  }

  .difficulty-basic {
    color: #22C55E;
  }

  .difficulty-advanced {
    color: #2563EB;
  }

  .difficulty-specialized {
    color: #EAB308;
  }

  .difficulty-master {
    color: #DC2626;
  }

  .difficulty-unique {
    color: #7C3AED;
  }

.letter-group-header {
  display: block;
    font-size: 1.46em;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-accent);
    background: #b0aca8;
    padding: 10px 0;
    margin-bottom: 0.5em;
    position: sticky;
    top: 79px;
    z-index: 10;
}

#block-17-1-pagination-top .pagination,
#block-17-1-pagination .pagination {
  display: flex;
  gap: 10px;
  border-top: 1px solid #969696;
  padding: 10px 0 0;
}

.page-current {
  margin: 0 3px;
  background-color: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  line-height: 1;
  border-radius: 5px;
  padding: 4px 7px 3px;
}

.page-btn {
  cursor: pointer;
  text-transform: lowercase;
  transition: all 0.8s ease;
}

.page-btn:hover {
  color: var(--link-dark-hover);
}

.pagination-info {
  font-size: 11px;
  margin: 0 0 20px;
  border-bottom: 1px solid #969696;
  padding: 0 0 10px;
}

.spellslist-items {
  align-self: self-start;
}

.spell-card__header {
  background: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  border-radius: 10px;
  display: flex;
  position: relative;
  align-items: center;
  padding: 0 9px 0 0;
}

.post h3.spell-card__title {
  background: none;
  border: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.spell-card__type {
  display: flex;
  gap: 5px;
}

.spell-type-icon {
  border-radius: 10px;
    padding: 3px;
    width: 35px;
    height: 35px;
    object-fit: contain;
    border: 2px solid transparent;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
}

.spell-card__content {
  margin: 10px 0 30px;
}

.spell-card__meta-line {
  margin: 0 0 0 auto;
}

.filter-group {
  text-transform: lowercase;
    border-radius: 10px;
    font-size: 15px;
    margin: 0 15px 20px;
    padding: 11px 15px;
    font-weight: 500;
    line-height: 1;
    background: rgba(0, 0, 0, 0.10);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
}



.filter-group-title {
    margin: 0 0 10px;
}

.punbb input.search-input {
  width: 100%;
  font-size: 14px;
}

.search-options {
  font-size: 12px;
  display: flex;
  gap: 30px;
  padding: 20px 0 0;
}

.filter-checkbox {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox:not(:last-child) {
    margin: 0 0 5px;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
    top: 50%;
    left: 0;
    height: 15px;
    width: 15px;
    transition: all 0.2s;
    transform: translateY(-50%);
    border-radius: 5px;
    background: #1e0c34;
    background-clip: padding-box, border-box;
    border: 1px solid #6A1B9A;
}

.filter-checkbox:hover input~.checkmark {
  border-color: #17332A;
}

.filter-checkbox input:checked~.checkmark {
  background-color: #452459;
}

.filter-checkbox input:checked~.checkmark:after {
  display: block;
}

.filter-checkbox .checkmark:after {
  left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #aaa4bf;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.reset-button {
    padding: 6px 12px;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-size: 12px;
    background: #512e69;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.8s ease;
    width: 100%;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
}

.reset-button:hover {
  background: #1e0c34;
}

.spell-card__note {
  margin: 15px 0 0;
}

.spell-card__classifications,
.spell-card__professions {
  display: flex;
  gap: 10px;
  margin: 0 0 5px;
  flex-wrap: wrap;
}

.spell-card__badge,
.spell-card__profession-tag {
  padding: 0 10px 3px;
  border-radius: 10px;
  border: 1px solid #969696;
  font-weight: 500;
  text-transform: lowercase;
  font-size: 13px;
  line-height: 1;
}

.spell-card__badge[data-category="bypass"] {
  background: rgba(86, 80, 52, .5);
}

.spell-card__badge[data-category="utility"] {
  background: rgba(77, 90, 84, .5);
}

.spell-card__badge[data-category="ritual"] {
  background: rgba(115, 104, 122, .5);
}

.spell-card__badge[data-category="combat"] {
  background: rgba(106, 69, 69, .5);
}

.spell-card__badge[data-category="defense"] {
  background: rgba(86, 117, 104, .5);
}

.spell-card__badge[data-category="concealment"] {
  background: rgba(97, 114, 111, .5);
}

.spell-card__badge[data-category="mental"] {
  background: rgba(106, 99, 115, .5);
}

.spell-card__badge[data-category="warding"] {
  background: rgba(80, 117, 91, .5);
}

.spell-card__badge[data-category="detection"] {
  background: rgba(127, 117, 92, .5);
}

.spell-card__badge[data-category="dark-magic"] {
  background: rgba(74, 64, 74, .5);
}

.spell-card__profession-tag[data-profession="auror"] {
  background: rgba(65, 90, 100, .5);
}

.spell-card__profession-tag[data-profession="hit-wizard"] {
  background: rgba(95, 75, 70, .5);
}

.spell-card__profession-tag[data-profession="healer"] {
  background: rgba(75, 100, 85, .5);
}

.spell-card__profession-tag[data-profession="magizoologist"] {
  background: rgba(80, 95, 70, .5);
}

.spell-card__profession-tag[data-profession="artifactologist"] {
  background: rgba(100, 85, 65, .5);
}

.spell-card__profession-tag[data-profession="liquidation"] {
  background: rgba(90, 70, 75, .5);
}

.spell-card__profession-tag[data-profession="herbologist"] {
  background: rgba(75, 95, 70, .5);
}

.spell-card__profession-tag[data-profession="potioneer"] {
  background: rgba(85, 70, 95, .5);
}

.spell-card__profession-tag[data-profession="professor"] {
  background: rgba(95, 90, 70, .5);
}

.spell-card__profession-tag[data-profession="all"] {
  background: rgba(100, 100, 100, .5);
}

/*Оформление эпизода*/
.ep-quotes {
  display: flex;
  justify-content: end;
  margin: 0 0 35px;
}

.post-content .ep-quotes p {
  width: 50%;
  font-style: italic;
  text-align: end;
}

.ep-title {
  font-family: var(--font-accent);
  font-size: 20px;
}

.ep-title p {
  text-align: center;
  padding: 0 0 5px 0;
}

.ep-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ep-date,
.ep-location {
  display: flex;
  align-items: center;
}

.ep-date::before {
  content: '\f111';
  display: inline-block;
  margin-right: 10px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 700;
  font-size: 7px;
  line-height: 1.8;
}

.ep-date::after {
  content: '\f111';
  display: inline-block;
  margin: 0 10px 0;
  font-family: 'Font Awesome 5 Free';
  font-weight: 700;
  font-size: 7px;
  line-height: 1.8;
}

.ep-location::after {
  content: '\f111';
  display: inline-block;
  margin-left: 10px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 700;
  font-size: 7px;
  line-height: 1.8;
}

.ep-participant {
  flex-basis: 100%;
  text-align: center;
  font-size: 12px;
}

.post-content .ep-info p {
  padding: 0;
  display: inline-block;
}

.ep-descr {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.post-box .ep-descr {
  margin: 30px 0;
}

.ep-descr::before {
  content: '';
  border-top: 3px solid #6B6B68;
  border-bottom: 1px solid #6B6B68;
  height: 5px;
  width: 70%;
}

.ep-descr::after {
  content: '';
  border-bottom: 3px solid #6B6B68;
  border-top: 1px solid #6B6B68;
  height: 5px;
  margin-bottom: 20px;
  width: 70%;
}

.post-content .ep-descr p {
  width: 70%;
  border-right: 0;
  border-left: 0;
  padding: 14px 0 14px 0;
}

.lore-descr {
      border-radius: 10px 10px 10px 0;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    padding: 30px 0;
        margin: 0 0 40px;
}

.lore-descr p {
    margin: 0 30px 0;
    padding: 20px;
    background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
}

/*Занятые внешности*/
.busy-appearances {
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    border-radius: 25px 25px 25px 0;
    padding: 0 0 30px;
}

.busy-appearances__head-block {
  background: url(https://forumstatic.ru/files/001c/9d/fc/33172.webp) no-repeat top center;
    padding: 23px 10px;
    text-transform: uppercase;
    border-radius: 25px 25px 0 0;
    box-shadow: 0px 0px 50px -8px rgba(106, 27, 154, 0.58), 0px 0px 30px 6px black inset;
    overflow: hidden;
    z-index: 0;
    position: relative;
}

.busy-appearances__head-block::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0 2px 2px;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.busy-appearances__title p {
  padding: 0;
    font-size: 30px;
    font-family: var(--font-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #787193;
    text-shadow: 1px 1px 0 #000;
}

.busy-appearances__subtitle p {
  display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 12px;
    color: #787193;
    text-shadow: 1px 1px 0 #000;
    font-weight: 600;
}

.busy-appearances__subtitle p a {
    color: #AAA4BF;
}

.busy-appearances__subhead-block {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 42px 20px 24px;
}

.busy-appearances__h4 {
  text-transform: uppercase;
    font-size: 12px;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    padding: 18px 40px;
    border-radius: 10px;
    color: #787193;
    text-shadow: 1px 1px 0 #000;
    font-weight: 600;
    position: relative;
    z-index: 0;
}

.busy-appearances__h4::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0 2px 2px;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.female-appearance__h4 {
  justify-content: flex-end;
    background: url(https://forumstatic.ru/files/001c/9d/fc/78227.webp) no-repeat center / cover;
}

.male-appearance__h4 {
  background: url(https://forumstatic.ru/files/001c/9d/fc/57231.webp) no-repeat center / cover;
}

.female-appearance__h4 p,
.male-appearance__h4 p {
  padding: 0;
}

.busy-appearances__list-title p {
  text-align: center;
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  margin: 15px -8px 20px;
    background: #b0aca8;
    padding: 8px 10px;
}

.busy-appearances__list {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 20px 0;
}

.busy-appearances__item {
  flex: 1;
  padding: 15px;
}

.busy-appearances__item-left p {
  text-align: end;
}

/*Нужные*/
.custom_tag_wanted,
.custom_tag_wantedappearance {
  max-width: 660px;
  margin: 0 auto;
  padding: 30px 20px 0;
  color: var(--text-basic-dark70);
}

.custom_tag_wanted + .code-box {
  margin: 40px 0 0;
}

.custom_tag_actionamsblock {
  margin: 0 auto;
  padding: 30px 20px 0;
  color: var(--text-basic-dark70);
}

.custom_tag_wanted::before,
.custom_tag_wantedappearance::before,
.custom_tag_actionamsblock::before {
    content: '';
    width: 100%;
    height: 220px;
    position: absolute;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px 10px 10px 0;
    z-index: -1;
    top: 0;
    left: 0;
}

.custom_tag_wanted .quote-main,
.custom_tag_wantedappearance .quote-main,
.custom_tag_actionamsblock .quote-main {
  padding: 0 0 20px;
}

.custom_tag_wantedtitle {
  background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    padding: 16px 15px 12px;
    position: relative;
}

.custom_tag_wantedtitle::before {
    content: '';
    top: -5px;
    left: 50%;
    border: 3px solid #B0ACA8;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
    background: #522A7A;
}

.custom_tag_wantedtitle p {
  color: #AAA4BF;
    font-size: 14px;
    text-shadow: 1px 1px 0px #000;
    line-height: 1.25;
    text-align: center;
}

.wantedname {
  margin: 30px -8px 20px;
    background: #a19d99;
    padding: 8px 10px;
}

.wantedname p {
  padding: 0;
    text-align: center;
    font-family: var(--font-accent);
    font-size: 20px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 700;
    color: #1A0B2E;
}

.custom_tag_wantedwho {
    margin: 15px -8px 20px;
    background: #b0aca8;
    padding: 8px 20px;
}

.custom_tag_wantedwho p {
  text-align: center;
    padding: 0 0 5px;
    line-height: 1.4;
}

.custom_tag_wanted .custom_tag_questionarybio {
    margin: 40px 20px;
}

.post-content .custom_tag_wanted .spoiler-box {
    margin: 20px 20px 0;
}

.custom_tag_wantedappearance .custom_tag_questionarybio {
    margin: 40px 20px;
}

.action-ams {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 30px 10px;
}

.action-ams__item {
  flex: 0 0 calc(50% - 10px);
    background: #D4CFCB;
    padding: 20px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
}

.action-ams__title {
  font-family: var(--font-accent);
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.5em 0 0.5em;
}

.action-ams__title p {
  text-align: center;
}

/*Лотерея*/
.lottery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.lottery-item {
    align-self: end;
}

/*Прочее*/
.tapestry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-content: center;
}

/*НПЦ*/
.npc-container {
  background-position: top center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: contain, 100% min(100%, 460px), auto;
  background-clip: padding-box, padding-box, border-box;
      padding: 50px 0 0;
    border-radius: 10px 10px 0 0;
}

.npc-container + .code-box {
    margin: 50px 0 0;
}

.code-box + .npc-container {
    margin: 50px 0 0;
}

.npc-container.npc-all .quote-main,
.npc-container.npc-gm .quote-main {
    border-radius: 0 0 10px 0;
}

.npc-container.npc-personal {
    padding: 0;
}

.npc-container.npc-gm {
  background-image: url(https://forumstatic.ru/files/001c/b0/0e/71933.png);
}

.npc-container.npc-all {
  background-image: url(https://forumstatic.ru/files/001c/b0/0e/97757.png);
}

.npc-header {
  display: flex;
  gap: 20px;
}

.npc-avatars {
  flex-basis: 250px;
}

.npc-avatars p {
  text-align: center;
}

.npc-avatars img.postimg {
  box-shadow: 0 0 0 1px #000000, 0 0 0 2px #5F5F5A;
  border-radius: 2px;
  width: 250px;
  height: 125px;
  object-fit: cover;
}

.npc-info {
  padding: 10px 0 0;
}

.npc-name {
  font-family: var(--font-accent);
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
}

.npc-brif {
  font-size: 12px;
  margin: 0 0 20px;
}

.npc-container .custom_tag_questionarybio {
  margin: 20px 0 20px;
}

.npc-container .custom_tag_questionarytwin {
  margin: 0 0 20px;
}

/*Анкета*/
.custom_tag_questionary {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  padding: 15px;
  
}

.quote-box + .custom_tag_questionary {
  margin: 30px 0 0;
}

.custom_tag_questionaryhead {
 background: url(https://forumstatic.ru/files/001c/9d/fc/88396.webp) center top / cover;
    padding: 50px 10px 20px;
    display: flex;
    justify-content: center;
    border-radius: 10px 10px 10px 0;
}

.custom_tag_questionaryhead p {
  padding: 0;
    text-align: center;
    color: rgba(170, 164, 191, .7);
    text-shadow: 1px 1px 0px #000;
}

.custom_tag_questionaryhead img.postimg {
      margin: 0 5px 10px;
    box-shadow: 0 0 0 1px #000000, 0 0 0 2px #72697b;
    border-radius: 2px;
    width: 250px;
    height: 125px;
    object-fit: cover;
}

.custom_tag_questionaryname {
  padding: 14px 10px 2px;
}

.custom_tag_questionaryname p {
  padding: 0;
  text-align: center;
  font-family: var(--font-accent);
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 700;
}

.custom_tag_questionaryname abbr {
  border-bottom: 1px dashed #4f827085;
  cursor: help;
}

.custom_tag_questionaryspoiler .spoiler-box {
  position: relative;
  padding: 0;
  background: none;
  margin: 0 0 40px;
  border: 0;
  margin: 20px 0 20px;
      box-shadow: none;
}

.custom_tag_questionaryspoiler .spoiler-box > div {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(24, 29, 28, .3);
  padding: 0 0 3px;
  text-transform: uppercase;
  background: none;
  margin: 0;
}

.custom_tag_questionaryspoiler .spoiler-box > div::before,
.custom_tag_questionaryspoiler .spoiler-box > div.visible::before {
  display: none;
}

.post-content .custom_tag_questionaryspoiler .spoiler-box > blockquote {
  display: block;
  padding: 10px 0 0;
  max-height: 70px;
  clip-path: inset(0 0 0 -10px);
  border-left: 1px solid rgba(24, 29, 28, .3);
}

.post-content .custom_tag_questionaryspoiler .spoiler-box > blockquote.visible {
  max-height: 100%;
  clip-path: none;
}

.custom_tag_questionaryspoiler .spoiler-box > blockquote::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgb(207 204 197 / 0%) 0%, rgb(176 172 168) 100%);
  pointer-events: none;
}

.spoiler-box .custom_tag_questionaryspoiler .spoiler-box > blockquote::after {
  background: linear-gradient(to bottom, rgb(207 204 197 / 0%) 0%, rgb(196 194 187) 100%);
}

.custom_tag_questionaryspoiler .spoiler-box > blockquote.visible::after {
  display: none;
}

.custom_tag_questionaryitem {
  padding: 0 0 0 30px;
  position: relative;
}

.custom_tag_questionaryitem::before {
      content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: -6px;
    top: 8px;
    background: #72697b;
    border-radius: 50%;
    border: 3px solid #b0aca8;
    box-shadow: 0 0 0 1px #969696;
    z-index: 1;
}

.custom_tag_questionaryitem:not(:last-child) {
  margin: 0 0 26px;
}

.custom_tag_questionaryitem p {
  padding: 0;
}

.custom_tag_questionaryitem strong {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.custom_tag_questionaryadd {
  font-weight: 300;
}

.custom_tag_questionarysubtitle {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(24, 29, 28, .3);
  padding: 0 0 3px;
  text-transform: uppercase;
}

.custom_tag_questionarysubtitle p {
  padding: 0;
}

.questionarytabs {
  gap: 10px;
    margin: 20px 20px 0;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px 10px 10px 0;
}

.questionarytabs + p {
    margin: 20px;
}

.questionarytabs + .spoiler-box {
  margin: 60px 0 0;
}

.questionarytabs .tabs-header {
  background: none;
    position: relative;
    padding: 0;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
}

.questionarytabs .custom_tag_tabtitle {
  background: none;
    box-shadow: none;
    font-family: var(--font-accent);
    font-weight: 700;
    padding: 15px 10px 10px;
    border: 0;
    text-transform: uppercase;
    position: relative;
    color: #2E4155;
}

.questionarytabs .custom_tag_tabtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(26, 11, 46, 0) 0%, rgba(26, 11, 46, 0.30) 50%, rgba(26, 11, 46, 0) 100%);
  pointer-events: none;
}

.questionarytabs .custom_tag_tabtitle p {
  line-height: 1.4;
}

.questionarytabs .tabs-content {
  padding: 0 20px 24px;
  display: block;
}

.custom_tag_questionarybio {
  margin: 40px 0;
    position: relative;
    background: #D4CFCB;
    padding: 20px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
}

.custom_tag_questionarybio::before {
  content: '';
    border-top: 3px solid #6B6B68;
    border-bottom: 1px solid #6B6B68;
    height: 5px;
    position: absolute;
    top: -20px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.custom_tag_questionarybio::after {
  content: '';
  border-bottom: 3px solid #6B6B68;
  border-top: 1px solid #6B6B68;
  height: 5px;
  position: absolute;
    bottom: -20px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}

.questionarytabs + .quote-main {
    margin: 40px 0;
}

.custom_tag_questionarytwin {
  margin: 16px 0 0;
}

.questionarytabs + .custom_tag_questionarytwin {
  margin: 72px 0 0;
}

/*Хронология*/
.custom_tag_chronology {
  border-radius: 10px 10px 10px 0;
    background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
    padding: 0 0 20px;
}

.custom_tag_chronologytitle {
  display: flex;
    justify-content: center;
    align-items: center;
    color: #AAA4BF;
    text-shadow: 1px 1px 0px #000;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    padding: 16px 15px 5px;
    margin: 0 0 20px;
}

.custom_tag_chronologytitle p {
  font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.custom_tag_chronology .tabs-container {
 background: #D4CFCB;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    margin: 30px 20px 0;
}

.custom_tag_chronology .tabs-header {
  display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    flex-wrap: nowrap;
    gap: 0
}

.custom_tag_chronology .custom_tag_tabtitle {
  flex-basis: 33.3%;
    padding: 9px 10px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    background: none;
    border: 0;
    border-radius: 0;
    position: relative;
}

.custom_tag_chronology .custom_tag_tabtitle:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(342deg, #2A0E4D 0%, #7DE5FF 53%, #6A1B9A 89%, #4B0082 100%);
    pointer-events: none;
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateX(-50%);
}

.custom_tag_chronology .custom_tag_tabtitle.active {
       box-shadow: none; 
}

.custom_tag_chronology .custom_tag_tabtitle.active:before,
.custom_tag_chronology .custom_tag_tabtitle:hover:before{
  width: 100%;
    opacity: 1;
}

.custom_tag_chronology .tabs-content {
  padding: 0 30px 20px 15px;
}

.custom_tag_chronology .custom_tag_tabtext {
  height: 400px;
  overflow: auto;
  padding: 0 20px;
}

.custom_tag_chryear {
  padding: 0 0 0 125px;
    font-weight: 500;
    color: #1e0c34;
    margin: 0 0 10px;
}

.custom_tag_chritem {
  display: flex;
  gap: 15px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.custom_tag_chritem::before {
  content: '';
  width: 1px;
  height: 100%;
  background: #2F2F2F;
  position: absolute;
  top: 0;
  left: 142px;
  z-index: -1;
}

.custom_tag_chritem:not(:last-child) {
  padding: 10px 0 20px;
}

.custom_tag_chrdate {
  font-weight: 500;
    font-size: 13px;
    padding: 3px 10px 5px;
    width: 120px;
    border-radius: 20px;
    line-height: 1;
    align-self: flex-start;
}

.custom_tag_chrdate p {
  text-align: center;
}

.custom_tag_chrstatus {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #2F2F2F;
  background: #1A1A1A;
  margin: 4px 0 0;
}

.custom_tag_chrstatus[data-class="process"] {
  border: 3px solid var(--link-light);
  border-style: dotted;
}

.custom_tag_chrstatus[data-class="event"] {
  background: #292e2d;
}

.custom_tag_chrstatus[data-class="end"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom_tag_chrstatus[data-class="end"]::before {
  content: '\f00c';
  font-family: fontawesome;
  font-weight: 400;
  color: var(--link-light);
  font-size: 9px;
}

.custom_tag_chrstatus[data-class="plot"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom_tag_chrstatus[data-class="plot"]::before {
  content: '\f7a2';
  font-family: fontawesome;
  font-weight: 400;
  color: var(--link-light);
  font-size: 15px;
  margin: 2px 0 0;
}

.custom_tag_chrdescr {
  font-size: 14px;
    font-weight: 500;
    line-height: 1;
    margin: 4px 0 0;
    flex: 1;
}

.custom_tag_chronoeppers {
  font-weight: 400;
  font-style: italic;
  font-size: 10px;
  margin: 5px 0 10px;
  color: #6D6D6D;
}

.custom_tag_chronoeppers a {
  color: #6D6D6D;
}

.custom_tag_chronoepdescr {
  background: rgba(0, 0, 0, .1);
    padding: 10px;
    color: var(--text-basic-dark70);
    font-size: 12px;
    border-radius: 10px 10px 10px 0;
}

.worldchronology .tabs-header {
  display: none;
}

.worldchronology .custom_tag_chronology .tabs-content {
  padding: 30px 30px 20px 15px;
}

/*Банк*/
.banktabs .custom_tag_tabtext {
    padding: 0 30px;
}

.custom_tag_banksubtitle {
  text-transform: uppercase;
  font-family: var(--font-accent);
  font-size: 16px;
  line-height: 1.4;
}

.custom_tag_banksubtitle p {
  text-align: center;
  display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.custom_tag_banksubtitle p::before, 
.custom_tag_banksubtitle p::after {
    content: "";
    flex: 1;
    height: 1px;
}

.custom_tag_banksubtitle p::before {
    background: linear-gradient(90deg, rgba(26, 11, 46, 0) 0%, rgba(26, 11, 46, 0.30) 100%);
}

.custom_tag_banksubtitle p::after {
    background: linear-gradient(90deg, rgba(26, 11, 46, 0.30) 0%, rgba(26, 11, 46, 0) 100%);
}

.custom_tag_banklist {
  padding: 20px;
    background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
    margin: 15px 0;
}

.custom_tag_banklist:last-child {
  margin: 15px 0 0;
}

.custom_tag_bankitem {
  padding: 15px 0 0;
}

.custom_tag_bankitem:not(:last-child) {
  border-bottom: 1px solid #969696;  
  padding: 15px 0 15px;
}

/*Список персонажей*/
.editcharacter-container {
  height: 470px;
  overflow: auto;
}

.addcharacterform {
  display: flex;
  justify-content: flex-end;
  padding: 0 35px;
}

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 99999;
}

.addcharacter-container {
  width: 630px;
  height: 460px;
  overflow: auto;
  padding-right: 10px;
  box-sizing: border-box;
}

.close:hover,
.close:focus {
  color: var(--text);
  transition: color 0.8s ease;
}

.modal-content {
  background: #cfccc5;
  width: 680px;
  height: 508px;
  box-sizing: border-box;
  position: absolute;
  padding: 20px 30px 30px 20px;
  top: 40px;
  left: 430px;
}

.addcharacter-container h2 {
  margin: 10px 0;
  text-align: center;
  font-family: var(--font-accent);
  font-size: 16px;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content form label {
  margin-top: 10px;
}

.modal-content form input, 
.modal-content form select {
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
}

.school-field-group {
  margin-bottom: 15px;
}

.school-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.school-input-group select,
.school-input-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.school-input-group input {
  margin-top: 5px;
}

.btn-block {
  display: flex;
  justify-content: flex-end;
}

.btnsave-block {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

#openModalButton, 
#addActivityButton, 
#addWorkButton, 
#addAbilityButton, 
button[type=submit], 
#resetFiltersButton {
  transition: all .8s ease;
  padding: 5px 22px 5px 22px;
  outline: none;
  background: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  border-radius: 10px;
  line-height: 1.4;
  font-weight: 500;
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
}

#openModalButton:hover, 
#addActivityButton:hover, 
#addWorkButton:hover, 
#addAbilityButton:hover, 
button[type=submit]:hover {
  background-color: rgba(0, 0, 0, .2);
  box-shadow: inset 1px 1px 4px 0 rgba(0, 0, 0, .7);
} 

.container-filter-pers {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 0 20px;
  padding: 0 52px 0 0;
}

#filters {
  border-radius: 10px;
  background: url(https://forumstatic.ru/files/001c/9d/fc/88916.webp?v=1);
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
  padding: 50px 0 0 0;
  position: relative;
  align-self: self-start;
}

#filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background:
    linear-gradient(#1E0C34, #1E0C34) padding-box,
    linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
  background-clip: padding-box, border-box;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
}

#filters::after {
  content: '';
  top: -5px;
  left: 50%;
  border: 3px solid #B0ACA8;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  position: absolute;
  transform: translateX(-50%);
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
  background: #522A7A;
}

#filters label {
  color: var(--text-basic-dark70);
    font-weight: 500;
    text-transform: lowercase;
    padding: 0 15px;
    display: block;
}

.filter-input:not(#nameFilter) {
  margin: 0 15px 20px;
    width: calc(100% - 30px);
}

#filters input.filter-input {
      width: calc(100% - 30px);
    font-size: 14px;
    margin: 0 15px 0;
}

.filter-header {
  display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 15px 0 0;
}

.range-slider-container {
        padding: 0 15px 0;
}

.filter-gradyear {
  margin: 0 15px 20px;
    padding: 15px 0;
}

.reset-range-btn {
  color: #8C706A;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-range-btn:hover {
  transform: rotate(180deg);
}

.filter-birthyear {
    margin: 15px;
    padding: 15px 0;
}

.filter-birthyear label {
  margin: 0;
}

.birthYear-input, 
.graduationYear-input {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}

.birthYear-input .filter-input,
.graduationYear-input .filter-input {
  padding: 5px;
}

.slider-track {
  position: relative;
  height: 12px;
}

.slider-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: calc(100% - 20px);
  height: 5px;
  background: linear-gradient(90deg, #4A7A6B 0%, #cfccc5 50%, #A65A4A 100%);
  border-radius: 5px;
  border: 1px solid #2F2F2F;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.slider-track .range-slider {
  position: absolute;
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  z-index: 1;
  border: 1px solid #2F2F2F;
  border-radius: 10px;
  pointer-events: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #58927D;
  cursor: pointer;
  pointer-events: auto;
  margin-top: -6px;
  border: 2px solid #cfccc5;
  box-shadow: inset 0 0 3px 2px rgba(0, 0, 0, .5), 0 0 10px 0 #000;
  z-index: 2;
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #58927D;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid #cfccc5;
  box-shadow: inset 0 0 3px 2px rgba(0, 0, 0, .5), 0 0 10px 0 #000;
}

#birthYearSliderMax,
#gradYearSliderMax {
  border: 0;
}

#birthYearSliderMax::-webkit-slider-thumb,
#gradYearSliderMax::-webkit-slider-thumb {
  background: #A65A4A
}

.range-slider::-moz-range-track {
  width: 100%;
  height: 5px;
  border-radius: 5px;
}

.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
}

select.filter-input {
  background-image: url(https://forumstatic.ru/files/001c/9d/fc/98427.svg);
  background-repeat: no-repeat;
}

.filter-input:focus {
  background: #cfccc5;
  color: var(--text-basic-dark);
  outline: none;
}

#resetFiltersButton {
      padding: 6px 12px;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-size: 12px;
    background: #512e69;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.8s ease;
    width: 100%;
    color: #AAA4BF;
    text-shadow: 1px 1px 0 #000;
}

#resetFiltersButton:hover {
    background: #1e0c34;
}

#circleFilter {
  margin: 5px 0 0;
  width: 100%;
  color: #6D6D6D;
  border: 1px solid #2F2F2F;
  background-image: url(https://forumstatic.ru/files/001c/9d/fc/98427.svg);
  background-repeat: no-repeat;
}

#circleFilterContainer {
  margin: 0 0 20px;
}

#circleFilter option {
  color: var(--text-basic-dark);
}

#character-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.character-card {
  margin: 10px 0;
  padding: 0 15px;
  transition: all 0.8s ease;
}

.character-info-container {
  position: relative;
}

.character-info {
  display: grid;
  grid-template-columns: 86% 1fr 1fr;
  gap: 10px;
}

.caharter-info__h3 {
  font-size: 14px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  border-radius: 0 10px 10px 0;
  text-transform: lowercase;
  font-weight: 500;
  line-height: 1;
}

.blood_status,
.character-info span {
  font-size: 13px;
  background: rgba(0, 0, 0, .05);
  border: 1px solid #969696;
  border-radius: 10px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-family: var(--font-accent);
}

.character__general_info {
  grid-column: 1 / -1;
}

.admin-buttons {
  position: absolute;
  top: 3px;
  right: 100px;
  display: flex;
  gap: 10px;
}

.delete-btn, 
.edit-btn {
  background: none;
  border: none;
}

.delete-btn i, 
.edit-btn i {
  font-size: 11px;
  cursor: pointer;
  transition: color 0.8s ease;
}

.delete-btn i:hover,
.edit-btn i:hover {
  color: var(--link-dark-hover);
}

.fa-x::before {
  content: "\58";
}

.fa-pencil::before {
  content: "\f303";
}

.spoiler-header {
  margin: 15px 0 0;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  text-transform: lowercase;
}

.spoiler-block {
  display: none;
}

.spoiler-visible .spoiler-block {
  display: flex;
  margin: 20px 0;
  flex-direction: column;
  gap: 20px;
}

.character-card.spoiler-visible {
  transition: all 0.8s ease;
}

.school,
.abilities h3,
.workplace h3 {
  text-transform: uppercase;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
}

.abilities h3,
.workplace h3 {
  border-bottom: 1px solid #969696;
  padding: 0 0 4px;
}

.school-activity,
.abilities div,
.workplace div {
  padding: 5px 0 0 20px;
}

.school-activity div {
  position: relative;
  font-family: var(--font-basic);
  font-weight: 400;
  text-transform: lowercase;
  font-size: 14px;
  padding: 0 0 0 30px;
}

.school-activity div:before {
  content: '\f148';
  font-family: 'FontAwesome';
  margin-right: 10px;
  position: absolute;
  transform: rotate(90deg);
  left: 10px;
  top: 3px;
  font-size: 10px;
}

/*Личная страница*/
.reveal-modal-bg { 
  position: fixed; 
  height: 100%;
  width: 100%;
  background: #000;
  background: rgba(0,0,0,.8);
  z-index: 9999;
  display: none;
  top: 0;
  left: 0; 
}

.reveal-modal {
  display:none;
  visibility: visible;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  z-index: 101;
}
	
.reveal-modal .close-reveal-modal {
  font-size: 24px;
  line-height: .5;
  position: absolute;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  top: 8px;
  right: 8px;
  color: var(--link-dark-hover);
  transition: color 0.8s ease;
}

.reveal-modal .close-reveal-modal:hover {
  color: var(--text);  
  transition: color 0.8s ease;
}

#character {
  width: 750px;
  top: 30px !important;
  z-index: 99999;
}

.character-container {
  position: relative;
}

/*Стикеры*/
.hvStickerPackModalContainer .hvStickerPackModal {
  background: #cfccc5;
}

/*Быстровыгул*/
#navlogout {
    display: flex;
    align-items: center;
    gap: 20px;
}

#nota-ql-navbtn {
  cursor: pointer;
  border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    width: 30px;
    height: 30px;
    box-shadow: -1px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
font-size: 0;
    display: flex;
justify-content: center;
    align-items: center;
}

#nota-ql-navbtn span {
  font-size: 0;
}

#nota-ql-navbtn::before {
content: '';
background: url(https://forumstatic.ru/files/001c/9d/fc/32714.svg) no-repeat center / cover;
width: 18px;
    height: 18px;
}

.nota-ql.open .nota-ql-pane {
  border-radius: 10px;
    right: 20px;
    top: 39px;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
    color: #AAA4BF;
}

.nota-ql-pane h4 {
  font-family: var(--font-accent);
  font-weight: 700;
  color: #aaa4bf;
  text-shadow: 1px 1px 0 #000;
  text-align: center;
}

.nota-ql .nota-ql-pane .list {
 font-size: 12px;
    text-align: center;
    background: #2f1d45;
    padding: 3px;
    border-radius: 4px;
    color: #aaa4bf7d;
}

.nota-ql .nota-ql-pane .namezone {
  color: #aaa4bf;
  font-size: 13px;
}

.nota-ql .nota-ql-pane .btn.danger {
  border: 1px solid transparent;
    color: #aaa4bf;
    font-weight: 600;
    border-radius: 50%;
    background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.55) inset, 0px 0px 0px 2px #2A0E4D, 0px 0px 0px 1px #38195E;
}

.nota-ql .nota-ql-pane input[type="text"], 
.nota-ql .nota-ql-pane input[type="password"] {
  width: 50%;
}

.nota-ql .nota-ql-pane .btn.primary {
      background: #3f2f53;
    color: #978db4;
}

.nota-ql .nota-ql-pane .btn.ghost {
  color: #6D6D6D;
}

.nota-ql .nota-ql-pane .btn.ghost:hover {
  color: #8e84aa;
    border-color: #7b6894;
}

/*Фильтр НПЦ*/
.npclist {
  position: relative;
}

.hvClearFilters {
  position: absolute;
  cursor: pointer;
  top: -39px;
  right: 0;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 10px;
  background: #B7A7A3;
  text-transform: uppercase;
  color: #8C706A;
  font-weight: 700;
  transition: all 0.8s ease;
}

.hvClearFilters:hover {
  box-shadow: inset 1px 1px 4px 0 rgba(0, 0, 0, .7);
}

.npclist_fd {
  list-style: none;
}

ul.npclist_fd {
  display: flex;
  gap: 10px;
  align-items: center;
}


.npclist_title {
  flex-basis: 16%;
  margin: 0 30px 0 0;
}

.filter-option {
  padding: 3px 10px 5px;
  border-radius: 10px;
  border: 1px solid #969696;
  font-weight: 500;
  text-transform: lowercase;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-option[data-filter-value="gm"] {
  background: #BCBCC2;
}

.filter-option[data-filter-value="all"] {
  background: #A2B6BB;
}

.filter-option:hover {
  background: rgba(86, 117, 104, .3);
}

.filter-option.active {
  background: rgba(80, 117, 91, .6);
}

/* Панель фильтров */
.filter-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-section-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}

.filter-section-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option-count {
  color: #666;
  font-size: 0.85em;
}

.filter-option.active .filter-option-count {
  color: #e8f5e9;
}

.active-filters {
  margin: 15px 0;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 8px;
  font-size: 0.9em;
  color: #1565c0;
}

.filter-results-count {
  margin-bottom: 15px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 5px;
  font-weight: bold;
}

.filter-empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Теги NPC */
.npc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.npc-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
}

.npc-tag.type { background: #e3f2fd; color: #1565c0; }
.npc-tag.blood { background: #ffebee; color: #c62828; }
.npc-tag.loyalty { background: #e8f5e9; color: #2e7d32; }

/* Extra additions
-------------------------------------------------------------*/

#poll-special table.poll1 {
  width: auto;
}

#poll-special td.tar {
  text-align: right !important;
}

div.pa-respect span {
  font-size: 0.9em; 
  vertical-align: top;
}

.post-content .highlight-text {
  background-color: #ff0; 
  color: #000;
}

.post-content hr {
  opacity: 0.5; 
  filter: alpha(opacity=50); 
  margin-bottom: 0.8em;
}

.post-content ul {
  padding: 0 0 1em 2.3em;
}

.post-content ul li {
  list-style: inherit; 
  margin-bottom: 0.3em;
}

.post-content ul li ul {
  padding-bottom: 0;
}

.post-content ul li > p {
  padding-bottom: 0.3em;
}

.post-content ul li > p:last-of-type {
  padding-bottom: 0;
}

#color-area, 
#table-area, 
#keyboard-area {
  width: auto;
}

#keyboard-area {
  text-align: center; 
  padding-bottom: 4px;
}

#imageup-area {
  width: 170px;
}

#imageattach-area {
  width: 770px; 
  height: 200px; 
  padding: 0px !important;
}

#table-area div {
  margin-top: 1em; 
  text-align: center;
}

#table-layout {
  margin-right: 0.5em;
}

#font-area, #size-area {
  right: unset !important;
}

#font-area span, 
#font-area img, 
#size-area span, 
#size-area img {
  display: block; 
  position: relative; 
  top:0; 
  left:0;
}

#font-area span, 
#font-area img {
  height: 15px;
}

#size-area span, 
#size-area img {
  height: 24px;
}

#font-area span, 
#size-area span {
  padding: 1px 0;
}

#addition-area div {
  height: 24px; 
  vertical-align: middle;
}

#font-area img {
  width: 100%; 
  margin-top: -15px;
}

#size-area img {
  width: 100%; 
  margin-top: -24px;
}

#keyboard-span {
  text-align: center; 
  padding-bottom: 10px; 
  width:auto;
}

#imageup-area input {
  font-size: 0.8em;
}

#imageup-area p {
  padding: 0; 
  margin: 0;
}

#imageup-title {
  margin-bottom: 10px !important;
}

#imageup-submit {
  margin-top: 10px !important;
}

#pun-messages #post-form div.container {
  padding-left: 2.3em;
}

#similar-topics {
  margin-top: 1em;
}

#similar-topics div.container {
  padding-top: 1.1em;
}

#similar-topics td {
  border: 0; 
  padding: 0;
}

#similar-topics td.st-tcl {
  width: 60%;
}

#similar-topics td.st-tc2 {
  width: 25%; 
  padding-right: 1em; 
  text-align: right;
}

#similar-topics td.st-tcr {
  width: 15%; 
  padding-right: 1em; 
  text-align: right;
}

li.pa-ua {
  margin-top: 0.7em; 
  display: flex; 
  justify-content: center;
}

.punbb .post.new-ajax > * {
  border-width: 3px;
}

.punbb .post.new-ajax {
  display: none;
}

#pun-index .isub .tcl {
  padding-left: 3em !important;
}

#pun-main #subforums {
  padding: 1em 0 1em 1em; 
  margin-bottom: 5px;
}

.notify-parent {
  position: relative;
}

.notify-bubble {
  background: lightblue;
  border-radius: 3px;
  color: black;
  font: bolder 12px/1.2 Tahoma;
  margin: 0;
  min-width: 14px;
  padding: 0 1px;
  position: absolute;
  text-align: center;
}

.notify-bubble:after {
  border-color: lightblue transparent;
  border-style: solid;
  border-width: 3px 3px 0;
  content: "";
  display: block;
  left: 5px;
  position: absolute;
  width: 0;
}

#pun-statistic .tc3 {
  width: 15%;
}

#pun-statistic .tc-username {
  width: unset;
  text-align: left;
}

#pun-statistic .tc-title {
  width: 25%;
  text-align: left;
}

#pun-statistic .tc-registered {
  width: 20%;
}

#pun-statistic .tc-topic {
  width: 50%;
}

#video-host-list {
  margin-top: .3em; 
  line-height: 1.8em;
}

#video-area-msg, 
#image-source-list, 
#image-area-actions, 
#spoiler-sels {
  line-height: 2em;
}

p[class="checkfield"] img, 
div[class="checkfield"] img, 
fieldset[class="radiofield"] img {
  height: auto; 
  max-height: 50px;
}

.pa-fld1 img, 
.pa-fld2 img, 
.pa-fld3 img, 
.pa-fld4 img, 
.pa-fld5 img, 
.pa-fld6 img, 
.pa-fld7 img, 
.pa-fld8 img, 
.pa-fld9 img, 
.pa-fld10 img, 
.pa-fld11 img, 
.pa-fld12 img, 
.pa-fld13 img, 
.pa-fld14 img, 
.pa-fld15 img, 
.pa-fld16 img, 
.pa-fld17 img, 
.pa-fld18 img, 
.pa-fld19 img, 
.pa-fld20 img {
  vertical-align: text-top;
}

#image-area-tcon-computer {
  margin: 0 0 1em;
}

#image-area-tcon-computer td {
  border: none !important; 
  padding: 0 10px 0 0;
}

#imageupload-left {
  width: 140px;
}

#imageupload-right {
  padding-left: 9px !important; 
  background: transparent !important; 
  max-width: 380px;
}

#image-area-actions {
  text-align: right;
}

* html #imageQueue {
  height: expression( this.scrollHeight > 65 ? "66px" :"auto" );
} /* sets max-height for IE */

* html #uploaded-images {
  height: expression( this.scrollHeight > 143 ? "144px" :"auto" );
}

#imageQueue {
  max-height: 72px; 
  overflow-y: auto; 
  margin-bottom: 10px;
  padding: 0 10px 0 0;
}

#uploaded-images {
  max-height: 144px; 
  overflow-y: auto;
}

#upload-button-container, 
#image-width, 
#image-thumb-width, 
#image-insert-format, 
#insert-all-images-container {
  margin-top: 10px;
}

#insert-image-tip {
  margin-top: 10px;
}

#upload-button-container img {
  cursor: pointer; 
  width: 120px; 
  height: 30px;
}

#image_upload_input {
  position: absolute; 
  z-index: -1; 
  left: -9999px;
}

#selected-image-width, 
#selected-thumb-width {
  width: 6em;
}

#upload-button-container input[type=button] {
  font-weight: bold;
}

#image-width, 
#image-thumb-width, 
#image-insert-format strong {
  font-size: .9em;
}

.uploadQueueItem.error {
  border-color:rgba(255,0,0,0.25); 
  background-color:rgba(255,0,0,0.08);
}

.tipsy {
  padding: 5px; 
  font-size: 11px; 
  font-family: tahoma,helvetica,verdana,arial; 
  position: absolute; 
  z-index: 100000;
}

.tipsy-inner {
  padding: 5px 8px 4px; 
  background-color: black; 
  color: white; 
  max-width: 200px; 
  text-align: center; 
  border-radius: 3px; 
  -moz-border-radius: 3px; 
  -webkit-border-radius: 3px;
}

.tipsy-arrow {
  position: absolute; 
  width: 0; 
  height: 0; 
  border: solid 5px; 
  border-color: transparent transparent black transparent;
}

.tipsy-n .tipsy-arrow {
  top: 0; 
  left: 50%; 
  margin-left: -5px; 
  border-top: 0;
}

.tipsy-nw .tipsy-arrow {
  top: 0; 
  left: 11px !important; 
  border-top: 0;
}

.tipsy-ne .tipsy-arrow {
  top: 0; 
  left: auto !important; 
  right: 11px; 
  border-top: 0;
}

.tipsy-s .tipsy-arrow {
  bottom: 0; 
  left: 50%; 
  margin-left: -5px; 
  border-color: black transparent transparent transparent; 
  border-bottom: 0;
}

.tipsy-sw .tipsy-arrow {
  bottom: 0; 
  left: 11px !important; 
  border-color: black transparent transparent transparent; 
  border-bottom: 0;
}

.tipsy-se .tipsy-arrow {
  bottom: 0; 
  left: auto !important; 
  right: 11px; 
  border-color: black transparent transparent transparent; 
  border-bottom: 0;
}

.tipsy-e .tipsy-arrow {
  top: 50%; 
  margin-top: -5px; 
  left: auto !important;
  right: 0; 
  border-color: transparent transparent transparent black; 
  border-right: 0;
}

.tipsy-w .tipsy-arrow {
  top: 50%; 
  margin-top: -5px; 
  left: 0 !important; 
  border-color: transparent black transparent transparent; 
  border-left: 0;
}

.jGrowl {
  z-index: 9999; 
  color: #fff; 
  font-size: 12px; 
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 
  position: fixed;
}

.jGrowl.top-left {
  left: 0; 
  top: 0;
}

.jGrowl.top-right {
  right: 0; 
  top:0;
}

.jGrowl.bottom-left {
  left: 0; 
  bottom: 0;
}

.jGrowl.bottom-right {
  right: 0; 
  bottom: 0;
}

.jGrowl.center {
  top: 0; 
  width: 50%; 
  left: 25%;
}

.jGrowl.center .jGrowl-closer,
.jGrowl.center .jGrowl-notification {
  margin-left: auto; 
  margin-right: auto;
}

.jGrowl-notification {
  background-color: #000; 
  opacity: .9; 
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); 
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); 
  zoom: 1; 
  width: 250px; 
  padding: 10px; 
  margin: 10px; 
  text-align: left; 
  display: none; 
  border-radius: 5px; 
  min-height: 40px;
}

.jGrowl-notification .ui-state-highlight,
.jGrowl-notification .ui-widget-content .ui-state-highlight,
.jGrowl-notification .ui-widget-header .ui-state-highlight {
  border: 1px solid #000; 
  background: #000; 
  color: #fff;
}

.jGrowl-notification .jGrowl-header {
  font-weight: 700; 
  font-size: .85em;
}

.jGrowl-notification .jGrowl-close {
  background-color: transparent; 
  color: inherit; 
  border: none; 
  z-index: 99; 
  float: right; 
  font-weight: 700; 
  font-size: 1em; 
  cursor: pointer;
}

.jGrowl-closer {
  background-color: #000; 
  opacity: .9; 
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); 
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=(0.9*100)); 
  zoom: 1; 
  width: 250px; 
  padding: 10px; 
  margin: 10px; 
  display: none; 
  border-radius: 5px; 
  padding-top: 4px; 
  padding-bottom: 4px; 
  cursor: pointer; 
  font-size: .9em; 
  font-weight: 700; 
  text-align: center;
}

.jGrowl-closer .ui-state-highlight,
.jGrowl-closer .ui-widget-content .ui-state-highlight,
.jGrowl-closer .ui-widget-header .ui-state-highlight {
  border: 1px solid #000; 
  background: #000; 
  color: #fff;
}

@media print {
  .jGrowl {
    display: none;
  }
}

.pun-modal {
  position: fixed; 
  width: 100%; 
  height: 100%; 
  top: 0; 
  left: 0; 
  bottom: 0; 
  z-index: 100000;
}

.pun-modal .modal-bg {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,.5); 
  cursor: pointer; 
  z-index: 110000;
}

.pun-modal h2,
.pun-modal h1 {
  max-width: 700px; 
  margin: 0!important;
}

.pun-modal .container {
  padding: .6em 1em; 
  max-height: 40em; 
  overflow: auto;
}

.noscroll {
  overflow: hidden!important;
}

.social {
  background-image: url('/i/social.1.png'); 
  background-repeat: no-repeat; 
  float: left; 
  display: block; 
  margin: 3px 5px; 
  width: 16px; 
  height: 16px;
}

.social-facebook {
  background-position: 0 0;
}

.social-google {
  background-position: -26px 0;
}

.social-mailru {
  background-position: -52px 0;
}

.social-odnoklassniki {
  background-position: -78px 0;
}

.social-twitter {
  background-position: -104px 0;
}

.social-vkontakte {
  background-position: -130px 0;
}

.social-yandex {
  background-position: -156px 0;
}

.social-youtube {
  background-position: -182px 0;
}

.social-instagram {
  background-position: -312px 0;
}

.social-linkedin {
  background-position: -338px 0;
}

.social-reddit {
  background-position: -442px 0;
}

.social-share {
  background-position: -468px 0;
}

.social-tumblr {
  background-position: -546px 0;
}

.post-share-tip {
  width: 164px; 
  height: 124px;
}

.post-share-legend {
  background: rgba(255,255,255,0.2); 
  text-align: center;
}

.post-share-tip span {
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 
  color: #fff; 
  font-size: 13px; 
  line-height: 27px;
}

.post-share-icons {
  padding: 10px;
}

.post-share-tip a {
  margin: 5px 10px;
}

.punbb .flag-i {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
  position: relative;
  display: inline-block;
  width: 1.33333333em;
  line-height: 1em;
  margin-right: 1em;
}

.punbb .pa-author .flag-i {
  margin-right: 0.5em;
}

.punbb .flag-i:before {
  content: '\00a0';
}

i[class^="icons-"]:before
i[class*=" icons-"]:before, 
.i[class*=" icons-"]:before, 
.i[class^="icons-"] {
  font-family: "mybb";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 900px) {
    #pun-navlinks .container {
        justify-content: space-evenly;
                padding: 0 20px;
    }
    
    #pun-navlinks a {
    font-family: Fontawesome;
  }

  #pun-navlinks span,
  #navextra1 a {
    font-size: 0;
  }

  #navindex a:before {
    content: '\f015'; 
    font-size: 18px;
  }

  #navuserlist a:before {
    content: '\f0c0'; 
    font-size: 18px;
  }

  #navsearch a:before {
    content: '\f002'; 
    font-size: 18px;
  }

  #navprofile a:before {
    content: '\f2bb'; 
    font-size: 18px;
  }

  #navpm a:before {
    content: '\f0e0'; 
    font-size: 18px;
  }

  #navadmin a:before {
    content: '\f085'; 
    font-size: 18px;
  }

  #navlogout a:before {
    content: '\f2f5'; 
    font-size: 18px;
  }

  #navlogin a:before {
    content: '\f090'; 
    font-size: 18px;
  }

  #navregister a:before {
    content: '\f234'; 
    font-size: 18px;
  }

  .pr-li a:before {
    content: '\f0f3'; 
    font-size: 18px;
  }
  
  #navextra1 a::before {
    content: '\f6e8'; 
    font-size: 18px;
  }
    
    .forum .tcr {
        grid-column: 1 / -1;
    }
    
    .forum .tcl {
  grid-column: 1 / 3;
}

#pun-viewforum .forum .tc2 {
    grid-column: 3 / 4;
}

#pun-viewforum .forum .tc3 {
    grid-column: 4 / 5;
}

.show_recent .forum tr, 
.show_replies .forum tr, 
.show_unanswered .forum tr,
.show_new .forum tr {
    grid-template-columns: 26% 20% 1fr 24%;
}

.design-hug .guestbook::before {
    display: none;
}

.guestbook__container {
    grid-template-columns: repeat(4, 1fr);
}

.guestbook-top__left {
    grid-column: 1 / 3;
}

.guestbook-top__right {
    grid-column: 4 / 5;
}

.design-hecate .project-box {
    grid-column: 1 / -1;
    padding-bottom: 0;
}

.design-hecate .guestbook-top__left {
    grid-row: 2 / 3;
    grid-column: 1 / 4;
}

.design-hecate .guestbook-left__center {
    width: 100%;
}

.design-hecate .guestbook-top__right {
    grid-column: 4 / 5;
    flex-direction: column;
}

.news-portrait p {
    max-width: 50px;
}

#form-buttons {
    flex-direction: column-reverse;
}

#form-buttons tr {
        gap: 30px;
        justify-content: center;
}

#char-counter {
    width: 100%;
}

#char-mode {
    width: 100%;
    margin-left: 0;
}
}

@media (max-width:750px){
    .activists-item, 
    .posts-item, 
    .episodes-item {
            flex: 1 1 auto;
    }
    
    .episodes-wrap span {
        max-width: 230px;
    }
    
    .episodes-wrap img.postimg {
        left: 50%;
        transform: translateX(-50%);
    }

#pun-ulinks{
    position: absolute;
        top: -460px;
        right: 12px;
        z-index: 9999;
        padding: 0;
        background: none;
}

/* кнопка */

.mobile-menu-btn{
    display: block;
        border: 1px solid transparent;
        border-radius: 10px;
        background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
        background-clip: padding-box, border-box;
        box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
        color: #AAA4BF;
        padding: 5px 10px;
        cursor: pointer;
}

/* меню */

#pun-ulinks .container {
   position: absolute;
        top: 48px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 220px;
        padding: 15px;
        border-radius: 10px;
        background: rgb(55 35 90 / 67%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(125, 229, 255, 0.08);
        opacity: 0;
        visibility: hidden;
        z-index: 0;
        transition: opacity .3s ease;
}

#pun-ulinks .container:after {
        content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* открыто */

#pun-ulinks.open .container{

    opacity:1;
    visibility:visible;

    transform:none;
}

#pun-ulinks li{
    list-style:none;
}

#pun-ulinks li a {
        text-align: center;
    background: #352146;
    padding: 3px;
    border-radius: 4px;
    color: #aaa4bf7d;
    white-space: nowrap;
    display: block;
    font-size: 12px;
    font-weight: 700;
}

#pun-ulinks li a:hover {
    color: rgb(137 101 178);
    background: rgb(49 22 81);
}

#pun-navlinks {
    padding: 16px 0 14px;
}

.forum tr.episode-topic {
    grid-column: 1 / -1;
}

.post-sig {
    display: none;
}

    .post-author {
        grid-column: 1 / -1;
    margin: 0;
    }

#pun-post .post-author::before {
    height: 60px;
}
    
    .pa-avatar {
        grid-column: 1 / 2;
    grid-row: 4 / 3;
        margin: 20px;
    }
    
    .pa-avatar img {
        max-width: 100%;
    max-height: 100%;
    }
    
    .personal-info {
        padding: 10px 19px;
    }
    
    .pers-title {
        padding: 0;
    margin: 0;
    }
    
    .post-author .pers-quote {
        display: none;
    }
    
    .pa-stats {
        grid-column: 2 / 3;
    align-self: center;
    margin: 0 15px 0 0;
    grid-row: 3 / 4;
    }
    
    .pa-ip {
        padding: 0 10px 10px;
    }
    
    .pa-fld2 {
        display: none;
    }
    
    .pers-title::after {
        display: none;
    }
    
    .post-body {
        grid-column: 1 / -1;
    }
    
    .post > .container {
        gap: 10px;
    }
    
    .post h3 {
        margin: 0 0 20px 0;
    }
    
    .guestbook-top__left,
    .design-hecate .guestbook-top__left {
        grid-column: 1 / -1;
        gap: 25px;
    }
    
    .guestbook-top__right,
    .design-hecate .guestbook-top__right {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    justify-content: center;
    }
    
    .dead-characters {
        display: none;
    }
    
    .design-hug .guestbook,
    .design-hecate .guestbook {
        background-size: cover;
    }
    
    .busy-appearances__title p {
        font-size: 20px;
    }
    
    .busy-appearances__subtitle p {
        font-size: 10px;
    }
    
    .busy-appearances__subhead-block {
        display: none;
    }
    
    .busy-appearances__list-title.list-title__first {
        margin: 40px 0 0;
    }
    
    .busy-appearances__list {
        margin: 0 20px 0;
    flex-direction: column;
    align-items: center;
    }
    
    .busy-appearances__item-left p {
        text-align: left;
    }
    
    .tabs-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tabs-header, .tabs-content,
    .custom_tag_chronology .tabs-header,
    .custom_tag_chronology .tabs-content {
        display: contents; 
    }

    .custom_tag_tabtitle {
        width: 100%;
        margin: 0;
        text-align: center;
        background: rgba(20, 25, 30, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px;
        cursor: pointer;
    }

    .custom_tag_tabtext {
        display: none;
    }

    .custom_tag_tabtext.active {
        display: block;
    }
    
    .lore-showcase {
        margin: 0;
    width: 100%;
    padding: 0;
    }
    
    .lore-showcase::before {
        display: none;
    }
    
    .lore-showcase .tabs-content {
        border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
    }
    
    .lore-showcase .tabs-content::before,
    .lore-showcase .tabs-content::after {
        display: none;
    }
    
    .lore-showcase .custom_tag_tabtitle {
        border: 0;
    background: none;
    box-shadow: none;
    color: var(--text-basic-dark);
    text-shadow: none;
    font-size: 20px;
    justify-content: flex-start;
    padding: 0 0 5px;
    }
    
    .lore-showcase .custom_tag_tabtitle::before {
        content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(26, 11, 46, 0.30) 50%, rgba(26, 11, 46, 0) 100%);
    pointer-events: none;
    }
    
    .lore-showcase .custom_tag_tabtitle.active {
        border: 0;
        background: none;
        box-shadow: none;
        color: var(--text-basic-dark);
    }
    
    .lore-showcase .custom_tag_tabtitle::after {
        display: none;
    }
    
    .lore-showcase .custom_tag_tabtext .lore-h1 {
        display: none;
    }
    
    .lore-showcase__box {
        margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    }
    
    .calculator h1 p {
        color: var(--text-basic-dark);
    text-shadow: none;
    }
    
    .post-content .lore-showcase .lore-h1 p {
        color: var(--text-basic-dark);
        text-shadow: none;
    }
    
    .lore-showcase__wrapper {
    background: #D4CFCB;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    padding: 50px 30px 30px;
    }
    
    .lore-h1__subtitle {
        background: #b0aca8;
    margin: 50px -37px 30px;
    }
    
    .calculator .final {
        margin: 0 -30px -30px;
    border-radius: 0 0 10px 0;
    }
    
    .custom_tag_banksubtitle:first-child {
        margin: 30px 0 0;
    }
    
    .custom_tag_banklist,
    .custom_tag_banklist:last-child {
        margin: 30px 0;
    }
    
    .custom_tag_banklist {
        background: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    }
    
    .spellslist-mobile-btn {
    display: block;
        width: 100%;
        color: #AAA4BF;
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        cursor: pointer;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        border-radius: 10px;
        background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
        background-clip: padding-box, border-box;
        box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
  }
  
  .spellslist-mobile-btn:hover, .spellslist-mobile-btn.active {
    background: linear-gradient(#512e69, #512e69) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
  }

  /* Попап фильтров (Выезжающая шторка) */
  .spellslist-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* На весь экран */
    z-index: 999999;
    overflow-y: auto;
    padding: 20px 20px 80px; /* Отступ снизу, чтобы было удобно скроллить */
    box-sizing: border-box;
    display: flex; 
    transform: translateY(100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный выезд */
    border: none;
    border-radius: 0;
    flex-direction: column;
  }
  
  .spellslist-filter::before,
  .spellslist-filter::after {
      display: none;
  }

  /* Класс, который показывает шторку */
  .spellslist-filter.open {
    transform: translateY(0);
  }

  /* Кнопка "Закрыть" внутри шторки */
  .spellslist-mobile-close {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 25px;
        position: sticky;
        top: 0;
        z-index: 10;
        cursor: pointer;
        border: 1px solid transparent;
        border-radius: 10px;
        background: linear-gradient(#1E0C34, #1E0C34) padding-box, linear-gradient(135deg, #2A0E4D 0%, #6A1B9A 53%, #4B0082 89%, #7DE5FF 100%) border-box;
        background-clip: padding-box, border-box;
        box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, .55), 0 0 10px 0 #000;
        color: #AAA4BF;
  }

  /* Выравнивание в 1 колонку */
  .spellslist-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }

  /* Свайп для алфавита */
  .alphabet-filter {
      border: 1px rgba(42, 14, 77, 0.20) solid;
    background: #A19D99;
    border-radius: 10px;
  }
  
  .alphabet-letters {
     padding: 15px 15px 0;    
  }
  
  .letter-group-header {
          top: 60px;
  }
  
  .spellslist-box::before {
      display: none;
  }
  .alphabet-letters::-webkit-scrollbar { display: none; }
  .letter-btn { flex: 0 0 auto; }

  .search-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 0 0;
  }

  .alphabet-header { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0;}
  .reset-alphabet-btn { width: 100%; text-align: center; box-sizing: border-box; border-radius: 0 0 10px 10px; }
  .reset-button {border-radius: 10px;}
  
 .section.online-list thead {
    height: 30px;
    position: relative;
  }
  
  .section.online-list thead::before {
      content: '';
    top: -5px;
    left: 50%;
    border: 3px solid #B0ACA8;
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    position: absolute;
    transform: translateX(-50%);
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.60);
        background: #522A7A;
  }
  
  .section.online-list thead tr {
      position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  
  .section.online-list tr {
       grid-template-columns: 1fr;
       background: #B0ACA8;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20) inset;
    border-radius: 10px;
    border: 1px rgba(42, 14, 77, 0.20) solid;
    color: var(--text-basic-dark70);
    margin: 0 0 15px;
  }
  
  .section.online-list tbody {
      background: none;
    box-shadow: none;
    border-radius: 0;
    border: 0;
  }
  
  .section.online-list tbody tr:last-child {
      margin: 0;
  }
  
  #resetFiltersButton {
      border-radius: 10px;
  }
  
  #profile-signature {
      display: none;
  }
  

}

@media (max-width: 700px) {
    .tclcon h3::before, 
    .tclcon h3::after,
    .statscon .item1, 
    .statscon .item2, 
    .statscon .item3, 
    .statscon .item4 {
        display: none;
    }
    
    .statscon .container {
        padding-right: 0;
    }
    
    .footer-section__left {
        display: none;
    }
    
    .show_recent .forum .tcl, 
    .show_replies .forum .tcl, 
    .show_unanswered .forum .tcl,
    .show_new .forum .tcl {
        grid-column: 1 / -1;
    }
    
    .show_recent .forum .tc2, 
    .show_replies .forum .tc2, 
    .show_unanswered .forum .tc2,
    .show_new .forum .tc2 {
        grid-column: 1 / 4;
    }
    
    .action-ams {
        margin: 30px 15px 10px;
    }
    
    .action-ams__item {
        flex: 0 0 100%;
    }
    
    .spell-card__header {
        display: grid;
    grid-template-columns: auto 1fr;
    }
    
    .spell-card__type {
        grid-column: 1 / 2;
    grid-row: 1 / 3;
    align-self: center;
    }
    
    .post h3.spell-card__title {
        grid-column: 2 / 3;
    }
    
    .spell-card__meta-line {
        grid-column: 2 / 3;
    margin: 0 0 0 20px;
    }
}

@media (max-width: 680px) {
    
    .guestbook-top__item {
        width: 100%;
    }
    
    #profilenav {
        grid-column: 1 / -1;
        margin: 30px 0 40px;
    }
    
    #profilenav ul {
            flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }
    
    .header-bg {
        background-position: 58% top;
    }
    
    .header-overlay-left,
    .header-overlay-right,
    #pun-viewforum .forum .tc2, 
    #pun-viewforum .forum .tc3 {
        display: none;
    }
    
    .forum-description {
            width: 100%;
            padding: 0;
    }
    
    .category .tc3:before {
    content: '\f075';
    font-family: fontawesome;
        padding-right: 10px;
}

.category .tc2:before {
    content: '\f0e0';
    font-family: fontawesome;
    padding-right: 10px;
}
    
    .category .tcr {
        grid-column: 1 / -1;
      grid-row: 3;
      padding: 20px 0 20px;
    }
    
        #viewprofile tbody > tr {
            flex-direction: column;
    }
}

@media (max-width: 520px) {
    .quick-nav__dropdown.quick-nav__dropdown--quests {
        right: 0;
        left: 0;
    }
    
    .pa-fld5 {
        display: none !important;
    }
    
    .custom_tag_chrdate {
            padding: 3px 30px 5px;
        width: 100%;
    }
    
    .custom_tag_chrdate p {
        text-align: left;
    }
    
    .custom_tag_chritem {
        position: relative;
    flex-direction: column;
    gap: 5px;
    }
    
    .custom_tag_chritem::before {
        display: none;
    }
    
    .custom_tag_chrstatus {
            position: absolute;
    top: 8px;
    }
    
    
    
}

@media (max-width: 480px) {
    #pun-index .category .tc2, 
    #pun-index .category .tc3 {
        display: none;
    }
    
    .tclcon h3 {
        justify-content: flex-start;
    }
    
    .main,
    #pun-stats,
    #pun-crumbs1, 
    #pun-crumbs2 {
    padding: 0 15px;
}

.footer-container {
    padding: 40px 15px 30px 15px;
}

.news-header::before {
        height: 232px;
}

.news-header__box {
        gap: 20px;
}

.news-portrait {
    display: none;
}
    
    
}

@media (max-width: 430px) {
    .header-nav-bottom {
        gap: 10px;
    }
    
    .pa-posts .fld-name,
    .pa-fld3 .fld-name,
    .pa-respect .fld-name,
    .pa-fld4 .fld-name {
        font-size: 0;
    }
    
    .pa-posts .fld-name::before {
                content: '\f27a';
        font-size: 14px;
        font-family: 'Font Awesome 6 Free';
        padding-right: 10px;
        font-weight: 700;
    }
    
    .pa-fld3 .fld-name::before {
        content: '\f5ad';
        font-size: 14px;
        font-family: fontawesome;
        padding-right: 10px;
    }
    
    .pa-respect .fld-name::before {
        content: '\f004';
        font-size: 14px;
        font-family: 'Font Awesome 6 Free';
        padding-right: 10px;
        font-weight: 700;
    }
    
    .pa-fld4 .fld-name::before {
        content: '\f51e';
        font-size: 14px;
        font-family: fontawesome;
        padding-right: 10px;
    }
    
    .calculator .stage-dates {
        flex-direction: column;
    }
    
}

@media (max-width: 360px) {
    #pun-viewforum .forum .episode-topic .tc2,
    #pun-viewforum .forum .episode-topic .tc3 {
        display: none;
    }
    
    .forum .episode-topic .tcr {
        grid-column: 1 / -1;
        justify-self: start;
    }
    
    
}