/*************************************************************
A - SETUP
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
@import url(style_cs.1772555552.css);

@import url('https://fonts.googleapis.com/css2?family=Arsenal:ital,wght@0,400;0,700;1,400;1,700&family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&family=Cormorant+SC:wght@300;400;500;600;700&family=Forum&family=Manrope:wght@200..800&family=Montserrat:wght@400;900&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Prata&family=Viaoda+Libre&display=swap');

@import url('https://kit-pro.fontawesome.com/releases/v6.6.0/css/pro.min.css');

@font-face {
    font-family: 'goat';
    src: url('https://forumstatic.ru/files/001c/a4/1f/26722.otf');
    font-style: normal;
    font-weight: 400;
    size-adjust: 150%;
}

:root {
    --base-bg: url(https://forumstatic.ru/files/001a/b2/a5/78399.jpg);
    --base-bg2: #bababa;
    --text: #0b0c0d;
    --sec-text: #363c42;
    --accent: #59405d;
    --sec-accent: #33435a;
    --navi-link: #3a403e;
    --navi-link-hov: #a45955;
    --tab-acc: #b8544e;
    --main-font: arsenal;
    --acc-font: goat;
    --profile-bg: url(https://forumstatic.ru/files/001a/b2/a5/45681.jpg);
    --footer-bg: url(https://forumstatic.ru/files/001a/b2/a5/45490.jpg);
    --quote: #bdbdbf;
    --bord: #b1b2b2;
    --cat-fon: url(https://forumstatic.ru/files/001a/b2/a5/30129.jpg?v=1);
    --cat-img: url(https://forumstatic.ru/files/001a/b2/a5/48563.jpg);
    --tab-text: #dddddd;
    --cfoot: url(https://forumstatic.ru/files/001c/a4/1f/14973.jpg);
    --undercover: url(https://forumstatic.ru/files/001a/b2/a5/46945.png);
    --btnn: url(https://forumstatic.ru/files/001a/b2/a5/53605.jpg);
    --head: url(https://forumstatic.ru/files/001a/b2/a5/45562.png);
    --blue-bord: #495158;
    --plash-bord: #545961;
    --plash-bg: #1e2229;
    --main-bg: #c1c1c1;
    --pf-new-bg: url(https://forumstatic.ru/files/001a/b2/a5/37506.jpg);
    --quo-bg: url(https://forumstatic.ru/files/001a/b2/a5/73557.jpg);
    --red-bg: url(https://forumstatic.ru/files/001a/b2/a5/91786.jpg);
    --pf-bgr: #bbbbbb;
    --dark-pun: #21252a;
    --drk-pun-m: #1d2126;
    --drk-pf: #1d2126;
    --drk-brd: #2e3237;
    --drk-head: url(https://forumstatic.ru/files/001a/b2/a5/68583.png);
    --dark-sp-im: url(https://forumstatic.ru/files/001a/b2/a5/38147.jpg);
    --drk-navi: url(https://forumstatic.ru/files/001a/b2/a5/38147.jpg);
    --drk-text: #c2bcb6;
    --drk-s-text: #8f9296;
    --drk-accent: #59405d;
    --drk-quote: #21252a;
    --drk-tab-t: #ddd5ce;
    --drk-htm: #21252a;
    --drk-htm-br: #292e34;
    --drk-txt-htm: #ddd5ce;
    --ind-bf: #1d2126;
    --banner-bg: #363f48;
    --banner-border: #545961;
    --banner-gold: #c5a059;
    --casino-green: #2ecc71;
    --casino-red: #e74c3c;
}


/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/

/* A2.1 */
html,
body {
    margin: 0;
    padding: 0
}

/* A2.2 */
.punbb * {
    margin: 0
}

/* A2.3 */
.punbb ul,
.punbb dl,
.punbb li,
.punbb dd,
.punbb dt {
    list-style: none;
}

/* A2.4 */
.punbb img {
    border: none
}

/* A2.5 */
.punbb .main table {
    table-layout: fixed;
    width: 100%;
}

/* A2.6 */
.checkfield input[type="checkbox"],
.radiofield input[type="radio"] {
    margin: 0 0.3em;
}

/* A2.7 */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
    height: 1.8em;
    vertical-align: middle
}


/* A3 Text setup
-------------------------------------------------------------*/

/* A3.1 */
body {
    font-size: 100.01%;
    position: initial !important;
}

/* A3.2 */
.punbb {
    font: normal 70% Verdana;
    color: var(--text);
}

/* Скрываем поле фона карточки и инвентаря по умолчанию, чтобы не мигало */
.pa-fld5,
.fld5,
.pa-fld2,
.fld2 {
    display: none !important;
}

/* 3.3 */
.punbb textarea,
.punbb input,
.punbb select,
.punbb optgroup {
    font: 12px verdana, arial, helvetica, sans-serif;
    background: var(--quote);
    border: none;
    outline: none;
    color: var(--text);
    border-radius: 10px;
}

/* A3.4 */
.punbb h1,
.punbb h2,
.punbb h3,
.punbb h4,
.punbb table,
.punbb th {
    font-size: 1em;
    font-weight: normal;
}

/* A3.5 */
.punbb h1 span,
.punbb legend span {
    font-size: 11px;
}

/* A3.6 */
.punbb pre {
    font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace
}

/* A3.7 */
.punbb address,
.punbb em {
    font-style: normal
}

/* A3.8 */
.punbb .post-content em {
    font-style: italic
}

/* A3.9 */
.punbb .post-content em.bbuline {
    font-style: normal;
    text-decoration: underline;
}

/* A3.10 */
.punbb a {
    text-decoration: underline
}

/* A3.11 */
.punbb optgroup {
    font-weight: bold;
}


/* A4 Float clearing and hidden items
-------------------------------------------------------------*/

/* A4.1 */
#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    line-height: 0.0;
    font-size: 0;
}

/* A4.2 */
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
    font-size: 0;
    height: 0;
    width: 0;
    line-height: 0.0;
    position: absolute;
    left: -9999px;
    overflow: hidden;
}


/* A5 Basic page layout and borders
-------------------------------------------------------------*/

/* A5.1 */
#pun {
    margin: auto;
    width: 1100px;
    margin-top: 360px;
    margin-bottom: 110px;
    background: var(--base-bg2);
    position: relative;
    border-radius: 5px;
}


/* A5.2 */
.punbb {
    float: none;
    width: auto;
    height: auto;
    margin: 0px 30px;
}

/* A5.3 */

#pun-redirect #pun-main {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border: none;
}

#pun-redirect,
#pun-maint {
    margin: 50px 20% 12px 20%;
    width: auto;
    float: none;
    min-height: 100px;
}

#pun-redirect {
    border: 0 none !important;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    background: var(--base-bg) fixed top center/cover;
}

#pun-redirect * {
    border: 0 none;
}

#pun-redirect .main-title {
    display: none;
}

#pun-redirect.punbb .info .container {
    text-align: center;
    display: block;
    margin: 120px auto 0;
    font-size: 14px;
    font-family: var(--main-font);
    padding: 40px;
    width: 900px;
    max-width: 90%;
    box-sizing: border-box;
    height: auto;
    text-transform: lowercase;
    font-weight: 500;
    color: var(--tab-text);
    background-color: rgba(18, 20, 25, 0.65);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#pun-redirect.punbb .info .container a {
    color: var(--accent) !important;
}

#pun-redirect.punbb .info .container a:hover {
    color: var(--tab-text) !important;
}

/* A5.4 */
.punbb .section,
.punbb .main {
    margin-bottom: 1em;
}

/* A5.5 */
.punbb .category,
.punbb .post {
    margin-top: 0.4em;
}

/* A5.6 */
.punbb #pun-category1,
.punbb .toppost,
.punbb .topicpost {
    margin-top: 0px;
}

/* 5.7 */
#pun-post .topic {
    margin-top: 1em;
}

/* A5.8 */
.punbb .section,
.punbb .forum,
.punbb .formal,
.punbb .modmenu,
.punbb .info,
.punbb .category,
.punbb .post {
    border-style: none none none none;
    border-width: 0px 0px 0px 0px;
}

/* A5.9 */
.punbb .container {
    border-style: none;
    border-width: 0px;
}

/* A5.10 */
.punbb .section h2,
#pun-main h1,
#pun-main h2,
#pun-debug h2 {
    font-family: var(--main-font);
    font-size: 10px !important;
    font-style: normal;
    font-weight: 400;
    padding: 0;
    text-align: center;
    width: auto;
    letter-spacing: 0.6px;
    text-transform: lowercase;
    margin: -20px 0px 20px 0px;
}

#pun-main h1 {
    display: none;
}

/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/

/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/

/* B1.1 */
.punbb .post-content {
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: justify;
}

/* B1.2 */
.punbb .post-sig dt {
    display: block;
    text-align: center;
    border-top: 1px dotted #707070;
    width: auto;
    margin: 20px 50px;
}

/* B1.3 */
.punbb .post-content p {
    margin: 0 0 0 0px;
    padding: 0 0 1em 0;
    line-height: 150%;
}

/* B1.4 */
.punbb .post-content img {
    vertical-align: text-bottom
}

/* B1.5 */
.punbb .post-content img.postimg {
    vertical-align: middle;
}

/* B1.6 */
.punbb .post-content .blockcode,
.punbb .post-content blockquote {
    width: 100%;
}

/* B1.7 */
.punbb .post-content .scrollbox {
    width: 100%;
    overflow: auto;
}

/* B1.8 */
.punbb .post-content .quote-box,
.punbb .post-content .code-box {
    margin: 1em 0px 1em 0px;
    padding: 15px 20px 15px 20px;
}

/* B1.9 */
.punbb .quote-box cite,
.punbb .code-box strong.legend {
    font-size: 13px;
    font-family: var(--main-font);
    text-transform: lowercase;
    font-style: normal;
    letter-spacing: 0;
    color: var(--accent);
    font-weight: 700;
}

/* B2 Information boxes
-------------------------------------------------------------*/

/* B2.1 */
.punbb .info-box {
    padding: 1.1em 1.7em 1em 1.7em;
    border-style: solid;
    border-width: 1px;
    margin: 0 0 1.1em 0;
}

/* B2.2 */
.punbb .info-box * {
    padding: 0 0 0.7em 0;
}

/* B2.3 */
.punbb #pun-main .info-box .legend {
    font-size: 1.1em;
    font-weight: bold;
}

/* B3 Pagination and posting links
-------------------------------------------------------------*/

/* B3.1 */
.punbb .linkst {
    font-size: 11px;
    font-weight: 400;
    font-family: var(--main-font);
    text-transform: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 0px 5px !important;
    position: relative;
    padding: 0 0px;
}

/* B3.2 */
.multipage {
    margin-top: 1em;
}

/* B3.4 */
.linkst .postlink {
    text-align: right;
}

/* B3.5 */
.punbb .linksb {
    font-size: 11px;
    font-weight: 400;
    font-family: var(--main-font);
    text-transform: none;
}

/* B3.6 */
.linksb .pagelink {
    float: left;
    width: auto;
    text-align: left;
}

/* B3.7 */
.linksb .postlink {
    float: right;
    width: auto;
}

/* B3.8 */
.subscribelink {
    clear: both;
    display: flex;
    float: right;
    background: var(--quote);
    padding: 5px 15px 6px;
    text-transform: lowercase;
    transition: all .4s linear 0s !important;
    border-radius: 4px;
}

/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/

/* C1 Form layout
-------------------------------------------------------------*/

/* C1.1 */
.punbb .formal .container {
    padding: 0em 2.3em 1.1em 2.3em;
    margin-top: 14px;
}

/* C1.2 */
.punbb .formsubmit {
    padding: 0 0 0 1.7em;
    margin: 1em 0 0 0;
}

/* C1.3 */
.punbb .formsubmit input,
.punbb .formsubmit a,
.punbb .formsubmit span {
    margin: 0 0.6em 0 0
}

/* C1.4 */
.punbb fieldset {
    border-style: solid;
    border-width: 1px;
    padding: 0 18px 0 18px;
    margin: 0 0 1em 0
}

/* C1.5 */
.punbb fieldset legend {
    padding: 0;
    margin: 0;
    font-size: 0;
}

/* C1.6 */
.punbb fieldset legend span {
    padding: 0;
    margin: 0;
    font-size: 0;
    font-family: var(--main-font);
    text-transform: uppercase;
}

/* C1.7 */
.punbb fieldset fieldset {
    border-style: none;
    margin: 0;
    padding: 0 0 8px 0
}

/* C1.8 */
.punbb .fs-box {
    padding: 1em 0 0.8em 0;
    margin-top: 10px;
}

/* C1.9 */
.punbb .fs-box p,
.punbb .fs-box fieldset {
    padding: 0 0 0.8em 0
}

/* C1.10 */
.punbb .inline .inputfield,
.punbb .inline .selectfield,
.punbb .inline .passfield {
    float: left;
    margin-right: 1em;
}

/* C1.11 */
.punbb .inline .infofield {
    clear: both
}

/* C1.12 */
.punbb .datafield br {
    display: none
}

/* C1.13 */
.punbb .required label,
.punbb .datafield span.input {
    font-weight: bold;
    font-family: var(--main-font);
    margin-bottom: 0;
    display: inline-flex;
    text-transform: uppercase;
}

/* C1.14 */
.punbb .datafield span.input a {
    font-weight: normal;
}

/* C1.15 */
.punbb .areafield span.input,
.punbb p.longinput span.input {
    display: block;
    padding: 0 12em 0 0;
    height: 100%;
    /* For IE */
}

/* C1.16 */
.punbb textarea,
.punbb .longinput input {
    width: 64%;
    margin: 0;

}


/* C1.17 */
.punbb .hashelp {
    position: relative;
}

/* C1.18 */
.punbb .helplinks {
    display: block;
    position: absolute;
    top: 1em;
    right: 0;
    font-weight: normal;
    width: 36%;
}

/* c1.19 */
.punbb #profile .helplinks {
    top: 1.5em;
}

/* C1.20 */
.punbb .helplinks span {
    display: block;
    padding-bottom: 0.2em;
}

/* C1.21 */
#pun-post .formal .info-box li {
    padding-left: 4px;
    list-style-type: square;
    list-style-position: inside;
    line-height: 1.5;
    margin: 0;
}

/* C2 Table layout
-------------------------------------------------------------*/

/* C2.1 */
.punbb .main .tcl {
    text-align: left;
    width: 45%;
}

/* C2.2 */
#pun-viewforum .tc2,
#pun-viewforum .tc3,
#pun-viewforum .tcmod {
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    font-family: var(--main-font);
    text-transform: lowercase;
    width: 8%;
}

/* C2.3 */
.punbb .main .tcr {
    overflow: hidden;
    text-align: left;
    width: 30%;
}

#pun-viewforum .tcr {
    display: flex;
    align-items: center;
    /* Вертикальное выравнивание */
}

#pun-index .tcr {
    text-transform: none;
    width: 35%;
    position: relative;
    text-align: left;
    font-size: 11px;
    font-weight: 400;
    font-family: var(--main-font);
    letter-spacing: 0;
    align-items: center;
}

/* C2.4 */
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
    background-color: transparent;
    width: 40%;
    text-transform: lowercase;
}

/* C2.5 */
#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
    background-color: transparent;
    text-align: center;
    width: 20%;
}

/* C2.6 */
#pun-debug table .tcl {
    background-color: transparent;
    width: 15%;
    white-space: normal;
}

/* C2.7 */
#pun-debug .tcr {
    background-color: transparent;
    width: 90%;
    white-space: normal;
}

#pun-index .tcl h3 {
    font-family: var(--main-font);
    font-size: 16px;
    text-align: left;
    height: auto;
    margin-top: 0px;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    gap: 20px;
}

#pun-index .tcl {
    width: 70%;
    overflow: visible;
}

/* C2.9 */
.punbb td span.youposted {
    font-weight: bold;
    margin-left: -1em;
    position: absolute;
}

/* C2.10 */
.punbb td .modlist {
    display: block;
    padding-top: 0.3em
}

/* C2.11 */
.punbb .main td {
    border-style: solid none none solid;
    border-width: 1px 0 0 1px;
    padding: 5px;
}

/* C2.12 */
.punbb .main th {
    border-style: none none none solid;
    border-width: 0 0 0 1px;
    padding: 0.4em 1em 0.4em 1em;
    border-style: none none none solid;
    border-width: 0 0 0 1px;
    padding: 0.4em 1em 0.4em 1.5em;
}

/* C2.13 */
.punbb .main .tcl {
    border-left-style: none;
    border-left-width: 0
}

* html .tclcon {
    height: 1px
}

/* C2.14 */
#pun-index td div.tclcon {
    margin: 0 50px 0 20px;
    text-align: justify;
    font-family: var(--main-font);
    font-size: 13px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 0;
    letter-spacing: 0;
    text-transform: lowercase;
}

/* C2.15 */
.punbb div.icon {
    float: left;
    display: block;
}

#pun-messages .main .tc2 {
    text-align: center;
}

/* C3 Topics

-------------------------------------------------------------*/
#pun-title,
#pun-navlinks {
    border-color: #202021;
}

/* CS2.1 */
.punbb .container,
.punbb .post-body {
    border-color: transparent;
}

/* CS2.2 */
.punbb .section,
.punbb .forum,
.punbb .formal,
.punbb .modmenu,
.punbb .info,
.punbb .category,
.punbb .post {
    border-style: none;
    border-width: 0;
}

/* CS2.3 */
.punbb .main h1,
.punbb .main h2,
#pun-debug h2,
.punbb-admin #pun-admain h2 {
    border-color: transparent;

}

/* CS2.4 */
.punbb td,
.punbb fieldset,
#viewprofile ul,
#profilenav ul,
.punbb .post .post-body,
.post-links ul,
.post-links,
.usertable table {
    border-color: transparent;

}

/* CS2.5 */
.punbb th {
    border-color: transparent;

}

/* CS2.6 */

#pun-ulinks li,
#pun-announcement h2 span,
li#onlinelist,
#pun-help .formal .info-box h3.legend span {
    border-color: transparent;

}

#pun-ulinks li a,
#pun-announcement h2,
li#onlinelist div,
#pun-help .formal .info-box h3.legend {
    border-color: transparent;

}

.punbb .divider {
    border-color: transparent;

}

.punbb .formal fieldset .post-box,
.punbb .info-box {
    border: 1px solid transparent;

}

/* C3.1 */
.punbb .post .container {
    border: none;
}

/* C3.2 */
#pun-viewtopic .post h3 {
    position: relative;
    border-right: none !important;
    border-bottom: none !important;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    position: relative;
    top: 23px;
}

.post h3 span strong:before {
    content: "#";
}

/* C3.3 */
.punbb .post h3 span {
    display: flex;
    font: 500 12px var(--main-font);
    height: auto;
    align-items: center;
    justify-content: space-between;
    background: var(--quote);
    margin-left: 270px;
    padding: 5px 15px;
    gap: 50px;
    width: auto;
    text-transform: uppercase;
    border-radius: 4px;
}

/* C3.4 */
.punbb .post h3 strong {
    float: right;
    width: auto;
    text-align: right;
    font-weight: normal;
    order: 2;
}

.punbb .post .post-author {
    float: left;
    width: 240px;
    font-size: 10px;
    margin: -1px 0 0 0;
    font-family: var(--main-font);
    margin-bottom: 10px;
    position: relative;
    z-index: 0;
    background: var(--profile-bg) center/cover;
    border-radius: 6px;
}

/* C3.6 */
.punbb .post .post-author ul,
.punbb .post .post-author p {
    padding: 0 0 10px 0;
    line-height: 160%;
}

/* C3.7 */
.pa-author {
    font-family: var(--acc-font);
    font-size: 14px;
    font-weight: 400 !IMPORTANT;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 27px 0 0px;
    text-align: center;
    position: relative;
    padding: 0;
    z-index: 1;
}

/* C3.8 */
.pa-author a {
    font-weight: 400 !important;
    color: #dfdfdf !important;
    font-size: 14px;
    background: var(--accent);
    padding: 1px 9px 0px;
    border-radius: 4px;
    letter-spacing: .5px;
}

.pa-author a:hover {
    color: var(--quote);
    background: var(--sec-text);
}

/* C3.9 */
li.pa-title {
    font-size: 11px;
    font-weight: 400;
    font-family: var(--main-font);
    letter-spacing: 0;
    text-align: center;
    margin: 10px 3px 0;
    text-transform: lowercase;
    color: #000000;
}

/* C3.11 */
.punbb .post-body {
    margin-left: 260px;
    border-left-style: solid;
    border-left-width: 1px;
    padding: 0 0 1px 0;
}

/* C3.12 */
.punbb .post-box {
    padding: 40px 0px 15px 10px;
    position: inherit;
}

/*C3.13 */
.punbb fieldset .post-box {
    margin-bottom: 0.8em
}

/* C3.14 */
.punbb .post-links {
    margin-left: 19em;
    border-left-style: solid;
    border-left-width: 1px;
}

/* C3.15 */
.punbb .post-links ul {
    padding: 0px 0px 10px;
    height: 2.5em;
    line-height: 2em;
    margin-left: -17.3em;
    text-align: right;
    font-size: 13px;
    font-family: var(--main-font);
    font-weight: 400;
    text-transform: lowercase;
    border-bottom-style: dashed;
    border-color: var(--bord);
    border-bottom-width: 1px;
    background: transparent;
}

/* C3.16 */
.punbb .post-links li {
    display: inline;
    padding-left: 1em;
}

/* C3.17 */
.pl-email,
.pl-website {
    float: left;
}

/* C3.18 */
.punbb .clearer {
    clear: both;
    height: 0;
    font-size: 0;
}

/* C4 Moderator menu
-------------------------------------------------------------*/

/* C4.1 */
.punbb .modmenu .container {
    padding: 10px 0 0;
    text-align: right;
    font-size: 13px;
    font-weight: 400;
    font-family: var(--main-font);
    text-transform: lowercase;
}

/* C4.2 */
.punbb .modmenu strong,
.punbb .modmenu a {
    height: 1.8em;
    line-height: 1.8em;
}

/* C4.3 */
.punbb .modmenu .container strong {
    float: left;
}

/* C4.4 */
.punbb .modmenu input {
    margin-left: 1em;
}


/* C5 Message boxes
-------------------------------------------------------------*/

/* C5.1 */
.punbb .info .container {
    padding: 0.8em 1em
}

/* C5.2 */
.punbb .info .container .backlink {
    padding-top: 0.8em;
}


/* C6 Profile
-------------------------------------------------------------*/

/* C6.1 */
#profile .container {
    padding-left: 18.6em;
}

/* C6.2 */
#profilenav {
    float: left;
    width: 14em;
    margin-left: -16.3em;
    display: inline;
}

/* C6.3 */
#profilenav li {
    padding-bottom: 0.8em;
    font-weight: bold;
}

/* C6.4 */
#viewprofile ul,
#profilenav ul {}

/* C6.5 */
#viewprofile h2,
#profilenav h2 {
    background: transparent;
    border: none;
    padding: 0 0 0 0;
    margin: 0 14px 0em 14px;
}

/* C6.6 */
#viewprofile h2 span,
#profilenav h2 span {
    padding: 0 5px;
    position: relative;
}

/* C6.7 */
#viewprofile li,
#setmods dl {
    padding: 0 0 0 16em;
    margin-bottom: 0.2em;
}

/* C6.8 */
#viewprofile li span {
    float: left;
    width: 14em;
    margin-left: -16em;
    padding: 0.5em 1em;
    font-weight: bold;
}

/*C6.9 */
#setmods dt {
    float: left;
    width: 14em;
    margin-left: -16em;
    padding: 0.8em 1em;
    font-weight: bold;
    display: inline;
}

/* C6.10 */
#viewprofile li strong,
#viewprofile li div,
#setmods dd {
    display: block;
    padding: 0.5em 1em;
    font-weight: normal;
}

/* C6.11 */
.punbb img.avatardemo {
    float: right;
    margin: 0 0 0.8em 1.8em
}

/* C7 User list
-------------------------------------------------------------*/

/* C7.1 */
#pun-userlist .formal,
#pun-userlist .formal .container {
    border-bottom: none;
    margin-bottom: 0;
}

/* C7.2 */
#pun-userlist .usertable .container {
    padding: 0 2.3em 2.3em 2.3em;
    border-top: none;
}

/* C7.3 */
#pun-userlist .usertable table {
    border-style: solid;
    border-width: 1px;
}

/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/

/* D1 Logo and description
-------------------------------------------------------------*/

/* D1.1 */
#pun-title {
    margin: 0;
    border-style: none none none none;
    border-width: 0px 0px 0 0px;
}

/* D1.2 */
#pun-title h1 {
    display: block;
}

/* D1.3 */
#pun-title .container {
    border-style: none none none none;
}


/* D1.4 */
#pun-title h1 span {
    display: none;
}

#pun-title h1 span {
    font-size: 1.5em;
}

/* D2 Page navigation
-------------------------------------------------------------*/

/* D2.1 */
#pun-pagelinks {
    position: absolute;
    top: 55px;
    left: 0;
    margin: 0;
    border: none;
    padding: 0;
    width: 100%;
}

/* D2.2 */
#pun-pagelinks .container {
    background: transparent;
    border: none;
    padding: 0
}

/* D2.3 */
#pun-pagelinks .container li {
    display: inline
}

/* D2.4 */
#pun-pagelinks li a,
#pun-pagelinks a:link,
#pun-pagelinks a:hover {
    height: 2em;
    line-height: 2em;
    padding: 0;
    font-size: 1.2em;
    margin-left: -9999px;
    display: block;
    float: left;
    width: 100%;
}

/* D2.5 */
#pun-pagelinks a:active,
#pun-pagelinks a:focus {
    position: relative;
    margin: 0;
}

#pun-pagelinks li a span {
    display: block;
    margin: 0 1em
}

/* D3 Forum navigation
-------------------------------------------------------------*/
/* D3.1 */
#pun-navlinks {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 39px;
    text-transform: uppercase;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: -337px;
}

#pun-navlinks .container {
    padding: 0px;
}

#pun-navlinks li {
    display: inline;
    margin: 0;
}

/* D4 User links
-------------------------------------------------------------*/

/* D4.1 */
#pun-ulinks {}

/* D4.2 */
#pun-ulinks .container {
    padding-inline-start: 0px;
    margin-top: 48px;
    width: 100%;
    display: flex;
    margin-left: -30px;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    height: 23px;
    position: relative;
}

/* D4.3 */
#pun-ulinks li,
#pun-ulinks li a {
    display: inline-block;
}

/* D4.4 */
#pun-ulinks li a {
    padding: 0px 6px;
}

/* D4.5 */
#pun-ulinks li.item1,
#pun-ulinks li.item1 a {
    border-left-style: none;
    border-left-width: 0;
    padding-left: 0;
}

/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/

/* D5.1 */
#pun-status,
#pun-status .container {
    border-bottom: none;
    margin-bottom: 0;
}

/* D5.2 */
#pun-status .container {
    font-size: 12px;
    font-family: var(--main-font);
    font-weight: 400;
    letter-spacing: 0;
    justify-content: flex-start;
    text-transform: none;
    gap: 3px;
    width: 100%;
}


/* D5.3 */
#pun-status span {
    white-space: nowrap;
    margin-right: 0.5em;
}

/* D5.4 */
#pun-crumbs1 {
    font-weight: 400;
}

/* D5.5 */
#pun-crumbs1 p.container {
    height: auto;
    font-family: var(--main-font);
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    WIDTH: auto;
    margin-top: 7px;
}

#pun-crumbs1 p.container a,
#pun-crumbs2 p.container a {
    font-weight: 400;
    transition: 1s;
}

#pun-crumbs1 p.container a:hover,
#pun-crumbs2 p.container a:hover {
    transition: 1s;
    font-weight: 400;
}

/* D5.6 */
#pun-break1 {
    margin: 0 1em;
    border-style: solid none;
    border-width: 1px 0;
    height: 0;
    margin: 0px 0 0 0 !important;
    position: relative;
    z-index: 1;
}

/* D6 Announcement
-------------------------------------------------------------*/

/* D6.1 */
#pun-announcement h2 {
    padding: 0;
    margin: 0 1em -3.5em 1em;
    border-style: none none solid none;
    border-width: 0 0 1px 0;
    position: relative;
    font-weight: bold;
}

/* D6.2 */
#pun-announcement h2 span {
    display: block;
    padding: 1em 0 0.8em 0;
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

/* D6.3 */
#pun-announcement {
    padding: 0;
    text-align: center;
    background: var(--btnn) center / cover;
    background-position: 440px 420px;
    position: relative;
    left: 0;
    width: 100%;
    top: 28px;
    height: 53px;
    display: block;
    border-radius: 5px 5px 0 0;
    z-index: 1;
    padding-top: 14px;
    margin-top: -35px;
}

/* D7 Statistics
-------------------------------------------------------------*/
#pun-stats .container {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0px;
    padding: 15px 20px;
    font-family: var(--main-font);
    position: relative;
    background: var(--quote);
    border-radius: 6px;
}

/* D7.2 */
#pun-stats li.item1,
#pun-stats li.item2 {
    float: left;
    clear: both;
    line-height: 150%;
}

/* D7.3 */
#pun-stats li.item3,
#pun-stats li.item4 {
    text-align: right;
    line-height: 150%;
}

/* D7.4 */
li#onlinelist {
    margin-top: 1em;
    border-top-style: solid;
    border-top-width: 1px;
    float: left;
    width: 100%;
    line-height: 130%;
}

/* D7.5 */
li#onlinelist div {
    border-top-style: solid;
    border-top-width: 1px;
    padding: 0.7em 0 0 0;
}

/* D8 Quick Jump - About - Bottom Breadcrumbs
-------------------------------------------------------------*/

/* D8.1 */
#pun-qjump {
    margin: 0;
    border: none;
    width: 50%;
    position: relative;
    float: left;
}

/* D8.2 */
#pun-qjump .container {
    border: none;
    background: transparent;
    padding: 0.8em 1em;
}

/* D8.3 */
#pun-about {
    margin-top: 0;
    margin-bottom: 0;
}

/* D8.4 */
#pun-about .container {
    border-top-style: none;
    text-align: center;
    line-height: 150%;
}

/* D8.5 */
#pun-about p span {
    display: block;
    padding-left: 50%;
    margin-top: 100px;
    font-size: 9px;
    font-weight: 400;
    font-family: var(--main-font);
    text-transform: uppercase;
    z-index: 8;
    position: relative;
    color: var(--tab-text);
}


#pun-about p span a {
    color: var(--tab-text);
}

/* D8.6 */
#pun-crumbs2 {
    font-weight: 400;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: none;
}

/* D8.7 */
#pun-crumbs2 .container {
    font-family: var(--main-font);
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
    height: auto;
}

/* D8.8 */
#pun-break4 {
    margin: -2px 1em;
    border-style: none;
    border-width: 0px 0;
    position: relative;
    height: 0;
    z-index: 1;
}

/* D9 Help file
-------------------------------------------------------------*/

/* D9.1 */
#pun-help .formal .info-box h3.legend {
    border-bottom-style: none;
    border-bottom-width: 0px;
    padding-bottom: 0;
    margin-bottom: 0.8em;
}

/* D9.2 */

#pun-help .formal .info-box h3.legend span {
    padding-bottom: 0.6em;
    display: block;
    border-bottom-style: none;
    border-bottom-width: 0px;
    font-size: 1.1em;
}

/* D9.3 */
#pun-help .formal p,
#pun-help .formal dd {
    margin-bottom: 1em
}

/* D9.4 */
#pun-help .formal ul,
#pun-help .formal dl {
    padding: 0 0 0 1em
}

/* D9.5 */
#pun-help .formal li {
    padding: 0;
    line-height: 130%
}

/* D9.6 */
#pun-help .formal li * {
    vertical-align: text-top
}

/* D9.7 */
#pun-help .formal dt span {
    font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace
}

/* D9.8 */
#pun-help .formal .parsedmsg,
#pun-help .formal .parsedmsg .incode {
    padding-bottom: 0;
}

.punbb th {
    font-size: 0 !important;
}

#pun-index .category .tc2,
#pun-index .category .tc3,
#f-subforums .tc2,
#f-subforums .tc3 {
    display: none !important;
}

html * {
    box-sizing: border-box;
}

.pa-ip {
    font-size: 9px;
    margin-top: 5px;
}

#pun-index .category h2,
#pun-stats h2 {
    width: auto;
    height: 46px;
    -webkit-text-size-adjust: 100%;
    display: flex;
    padding: 0 !IMPORTANT;
    background: transparent;
    justify-content: center;
    gap: 10px;
    text-transform: none !important;
    align-items: flex-start;
    overflow: hidden;
    margin: 0;
}

#pun-index .category h2 span,
#pun-stats h2 span {
    font-family: var(--acc-font);
    margin-top: 0;
    -webkit-text-size-adjust: 100%;
    font-size: 23px !important;
    position: relative;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    gap: 20px;
    letter-spacing: 1px;
    background: var(--accent);
    color: #000;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

/* --- НАЧАЛО БЛОКА ДЛЯ КАРТИНКИ КАТЕГОРИИ --- */

/* Контейнер категории, добавляем ему обертку для картинки */
#pun-index .category .container {
    position: relative;
    margin: 0 -9px 0 -9px;
}

/* Код, добавляющий саму картинку слева */
#pun-index .category .container::before {
    border-radius: 5px 0 0 5px;
    content: '';
    height: 100%;
    position: absolute;
    width: 76px;
    background: var(--cat-img) right;
}

#pun-index .category table tr {
    border-radius: 5px;
    -webkit-appearance: none;
    display: flex;
    padding: 20px 20px 20px 0;
    gap: 0 30px;
    position: relative;
    align-items: center;
    background: var(--quote);
    margin: 0px 0px 0px 77px;
}

/* --- КОНЕЦ БЛОКА --- */

#pun-viewforum .tcr {
    position: relative;
    display: flex;
    gap: 0 10px;
    align-items: center;
}

.postlink.long {
    width: auto !important;
}

.pagelink,
.new-poll a,
.new-topic a,
.postlink span a {
    background: var(--quote);
    padding: 3px 15px 4px;
    text-transform: lowercase;
    transition: all .4s linear 0s !important;
    border-radius: 5px;
}

.forum tr {
    margin: 10px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--quote);
    text-transform: lowercase;
    padding: 0 10px;
    height: auto;
    border-radius: 6px;
}

.forum thead {
    display: none;
}

.topic a.sharelink {
    float: right;
    margin-left: 1em;
    display: none;
}


.reactions-root {
    display: none;
}

#profile .container fieldset legend span {
    padding: 0;
    margin: 0;
    font-size: 10px;
    font-family: var(--main-font);
    text-transform: uppercase;
}

#pun-main h2 span {
    font-size: 0px;
}

#html-header {
    color: var(--tab-text);
}

.punbb .main .tc2,
.punbb .main .tc3,
.punbb .main .tcmod {
    width: 8%;
}

.html-box {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;}

.anons-box {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

#tooltip {
    position: absolute;
    background: var(--accent);
    z-index: 999;
    max-width: 200px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 0px 1px rgba(0, 0, 0, .05) inset;
    font-family: var(--main-font);
    font-size: 11px;
    display: none;
    color: #efeee4;
    text-align: center;
    padding: 6px 22px;
    font-weight: 400;
}

#pun-index .tc2,
#pun-index .tc3,
#pun-index .tcmod {
    display: none;
}

.sered {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.punbb .post-content .quote-box,
.spoiler-box {
    padding: 15px 20px;
    box-shadow: inset 0px 0px 8px -2px #7d766c59;
}

#pun-admain .adlabel {
    width: 18em !important;
}

#pun-index .tcl h3 a {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 19px;
    font-family: 'Akrobat', sans-serif;
    color: #59405d;
}

#plng {
    font-size: 10px !important;
    font-weight: 400 !important;
    margin-top: 0px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out 0s;
    text-transform: uppercase;
    white-space: nowrap;
    gap: 5px;
    font-family: var(--main-font);
    border-radius: 0;
    background: var(--bord);
    padding: 6px 20px;
    border-radius: 5px;
}

#pun-searchposts .post .post-author {
    margin: -26px 0px 0px 0px;
}

.post-content .spoiler-box>div:before {
    color: var(--accent);
    content: '\f070';
    font-family: "Font Awesome 6 Pro";
    font-size: 13px;
    position: absolute;
    display: inline-block;
    left: 15px;
    /* <-- ИЗМЕНЕНИЕ */
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    line-height: 24px;

}

.spoiler-box {
    padding: 0 !important;
}

#form-buttons td {
    background-image: none !important;
    position: relative;
    width: 26px;
    height: 26px;
    margin: 5px 0px 5px 0px;
    padding: 0;
    box-sizing: border-box;
}

#pun-index .category table tr td {
    padding: 0;
}

.pa-posts .fld-name,
.pa-respect .fld-name,
.pa-fld2 .fld-name,
.fld-name,
.pa-fld6 .fld-name {
    font-size: 0px
}

.pa-posts .fld-name:before,
.pa-respect .fld-name:before,
.pa-fld2 .fld-name:before,
.fld-name:before,
.pa-fld6 .fld-name:before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Pro';
    font-size: 10px;
    color: var(--accent);
    margin-right: 5px;
    font-weight: 600;
}

.pa-respect .fld-name:before {
    content: '\f004';
}

.pa-fld2 .fld-name:before {
    content: '\f145';
}

.fld-name:before {
    content: '\f521';
    font-family: 'Font Awesome 6 Pro';
}

.pa-fld6 .fld-name:before {
    content: '\f56b';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 600;
}

.pa-respect span a {
    padding: 1px;
    width: 12px;
    height: 12px;
    position: absolute;
    margin-top: 0px;
    margin-left: -16px;
}

.pa-posts span a {
    padding: 1px;
    width: 12px;
    height: 12px;
    position: absolute;
    margin-top: 0px;
    margin-left: -12px;
}

.punbb .post-content .scrollbox {
    width: 100%;
    overflow: auto;
    height: 4.5em !important;
}

.punbb .post-content blockquote p {
    padding: 5px 0 5px 0;
}

.post-content .spoiler-box>blockquote.visible {
    padding: 10px 20px;
}

.post-content .spoiler-box>div.visible:before {
    content: '\f06e';
}

#font-area {
    display: flex;
    height: 213px;
    overflow-y: hidden;
    text-align: left;
    width: 930px;
    flex-wrap: wrap;
    flex-direction: column;
}

select#mod-options {
    font-family: var(--main-font);
    font-size: 12px;
    text-transform: lowercase;
    padding: 0px 15px;
    margin: 0;
}

.pa-respect img {
    display: none;
}

#pun-profile #viewprofile ul {
    width: 100%;
    border: 1px solid var(--bord);
    margin: 0;
    padding: 0;
}

#viewprofile #profile-left {
    text-transform: lowercase;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    background: var(--quote) top right/cover;
    font-size: 12px;
    font-family: var(--main-font);
    padding: 20px !IMPORTANT;
    color: #383636 !important;
    border-right: 1px solid var(--bord);
}

#profile-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    width: auto !important;
    border-radius: 0;
    padding: 20px !important;
    box-sizing: border-box;
}

#darkbd #viewprofile #profile-left {
    text-transform: lowercase;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    background: var(--drk-quote);
    font-size: 12px;
    font-family: var(--main-font);
    padding: 20px !IMPORTANT;
    color: var(--drk-text);
    border-right: 1px solid transparent;
}

#darkbd #viewprofile #profile-left li strong,
#darkbd #viewprofile #profile-left li strong a {
    color: var(--drk-text);
}

#darkbd #pun-profile #viewprofile ul {
    width: 100%;
    border: 1px solid transparent;
    margin: 0;
    padding: 0;
}

#viewprofile #profile-left li strong,
#viewprofile #profile-left li strong a {
    color: var(--text);
}

#profile-right li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: auto;
    text-align: center;
    padding: 10px 10px !important;
    font-size: 11px;
    background: #00000008;
    border: 1px solid #0000000a;
    gap: 6px;
    font-family: var(--main-font);
}

#pun #profile-right li span {
    float: none;
    margin: 0;
    width: auto;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    padding: 0 !important;
}

#profile-right li strong {
    padding: 0 !important;
    text-transform: none;
}

.post-content hr {
    opacity: 0.5;
    border: 1px solid var(--accent) !important;
    margin-bottom: 0.8em;
}

#pun-index .datetime,
#pun-index .byuser {
    font-size: 11px;
    font-weight: 400;
    color: var(--sec-text);
    text-transform: lowercase;
}

#pun::before {
    content: '';
    position: absolute;
    background: var(--undercover);
    width: 1176px;
    height: 824px;
    top: -296px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.pa-fld1 {
    width: 240px;
    height: 150px;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
    mask: linear-gradient(0deg, rgba(217, 217, 217, 0) 0%, #ddd8d3 100%);
    -webkit-mask: linear-gradient(0deg, rgba(217, 217, 217, 0) 0%, #ddd8d3 100%);
    overflow: hidden;
    filter: grayscale(.4);
    border-radius: 5px 5px 0 0;
}

.dark .proffl {
    background: transparent;
    margin: -4px 15px;
    padding: 5px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid #c1bdbd4f;
    box-shadow: 0px 0px 10px #6565652e;
}

.proffl {
    background: transparent;
    margin: -4px 15px;
    padding: 5px;
    border-radius: 6px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid #c1bdbd4f;
    box-shadow: 0px 0px 10px #6565652e;
}


.pa-fld2 {
    margin: 5px 0;
}

.pa-fld1 img {
    vertical-align: top !important;
}

.allps {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 9px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: -10px;
}

#pun-about {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
}

#pun-about p.container {
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center !important;
    display: block !important;
}

#pun-about p span {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    color: #fff !important;
    opacity: 1 !important;
}

#pun-about a {
    color: #fff !important;
    text-decoration: none !important;
}

.nav_button {
    font: 500 10px var(--main-font);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .4s linear 0s;
    color: var(--tab-text);
    background: var(--sec-accent);
    font-family: var(--main-font);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: .3px;
}

.nav_button.i_active {
    color: #c3b9a7;
}

.nav_block {
    display: none;
    background: var(--plash-bg);
    top: calc(100% + 15px);
    border-radius: 6px;
    font: 400 var(--main-font) 10px;
    position: absolute;
    z-index: 999;
    width: 310px;
    border: 1px solid var(--plash-bord);
}

.nav_block .link {
    text-transform: uppercase;
    display: flex;
    padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.nav_block .link a {
    color: #faf6f1 !important;
    padding: 3px 6px;
    transition: all .4s linear 0s;
    border-radius: 3px;
    background: linear-gradient(to right, var(--sec-accent) 0%, var(--accent) 50%, var(--sec-accent) 100%);
    background-size: 200%;
    background-position-x: 0%;
    font-family: var(--main-font);
    flex: auto;
    display: flex;
    justify-content: center;
}

.nav_block .link a:hover {
    background-position-x: 100%;
}

#html-header a:hover {
    color: var(--bord);
}

#html-header a {
    color: var(--tab-text);
}

.shinden-post {
    position: absolute;
    top: -260px;
    left: 621px;
    width: 465px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 11px;
    z-index: 1;
}

.shinden-post text {
    height: 30px;
    overflow-y: auto;
    text-align: justify;
    padding-right: 7px;
    font-size: 12px;
    font-family: var(--main-font);
    line-height: 15px;
}

.shinden-post name {
    width: 137px;
    margin-right: 10px;
    background: var(--accent);
    border-radius: 5px;
    padding: 2px 6px;
    text-transform: uppercase;
    font-family: var(--main-font);
    font-size: 15px;
    color: var(--base-bg2);
    position: relative;
    text-align: center;
}

/* Контейнер для меню */
.shinden-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.shinden-button {
    background: var(--accent);
    border-radius: 5px;
    padding: 2px 6px;
    text-transform: uppercase;
    font-family: var(--main-font);
    font-size: 15px;
    color: var(--base-bg2);
    text-align: center;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(18, 20, 25, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
    z-index: 10;
    border-radius: 5px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.dropdown-content a {
    color: #dee1e1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-family: var(--main-font);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    font-size: 14px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent);
    color: var(--base-bg2);
}

.dropdown-content.show {
    display: block;
}

.shinden-activs {
    z-index: 1;
    left: 786px;
    width: 300px;
    text-transform: uppercase;
    color: var(--base-bg2);
    position: absolute;
    top: -141px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.shinden-activs span,
.shinden-fl span {
    text-transform: uppercase;
    font-family: var(--main-font);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.shinden-fl {
    left: 21px;
    width: 200px;
    font: 400 10px var(--main-font);
    text-transform: uppercase;
    color: var(--base-bg2);
    position: absolute;
    top: -76px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    z-index: 1;
}

.Add {
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 10px;
    font-family: var(--main-font);
    letter-spacing: 0;
    color: var(--text);
    font-weight: 300;
    font-style: normal;
}

.tms,
.mssg {
    font-size: 0;
}

.tms:before {
    position: relative;
    display: inline-block;
    content: '';
    width: 12px;
    height: 12px;
    vertical-align: middle;

    -webkit-mask-image: url('https://forumstatic.ru/files/001a/b2/a5/11672.svg');
    mask-image: url('https://forumstatic.ru/files/001a/b2/a5/11672.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: #59405d;
}

.mssg:before {
    position: relative;
    display: block;
    font-weight: 600;
    content: '\f075';
    font-size: 11px;
    font-family: 'Font Awesome 6 Pro';
    color: #59405d;
}

.Tems_And_messages {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pforum-links {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.pforum-links a {
    letter-spacing: .2px;
    background: #374049;
    color: #ebe6db !important;
    text-transform: uppercase;
    padding: 2px 10px 2px;
    font-size: 11px;
    border-radius: 3px;
    margin: 4px 4px 0 0;
}

.pforum-links a:hover {
    background: var(--sec-text);
    color: var(--tab-text) !important;
}

#pun .answer-box,
#pun .code-box,
#pun .hide-box {
    padding: 15px 20px !important;
    position: relative;
    box-shadow: inset 0px 0px 8px -2px #7d766c59;
}

.answer-box:before {
    content: "\f10e";
    display: flex;
    position: absolute;
    width: 18px;
    height: 18px;
    justify-content: center;
    align-items: center;
    top: 16px;
    left: -6px;
    background: var(--bord);
    border-radius: 5px;
    font-family: 'Font Awesome 6 Pro';
    font-weight: 600;
    font-size: 9px;
    color: var(--sec-text);
}

.punbb .code-box strong.legend {
    display: block;
    margin-bottom: 5px;
}

.rsp_wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    flex-direction: row-reverse;
}

.punbb .post-rating a:hover:before,
.punbb .post-vote a:hover:before {
    color: var(--text);
}

.punbb .post-rating a:hover:before {
    color: var(--text) !important;
}

.punbb .post-rating a {
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    color: var(--text) !important;
    gap: 5px;
    height: 20px;
}

.punbb .post-rating a:before {
    content: "\f004";
    font: 12px 'Font Awesome 6 Pro';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all .4s linear 0s;
    color: var(--accent);
}

.punbb .post-rating p {
    line-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 0 10px;
    margin: 0 !important;
    background: var(--quote);
    align-self: stretch;
    border-radius: 5px;
    color: var(--text);
    font-family: var(--main-font);
    font-size: 10px;
}

.punbb .post-rating {
    height: auto;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.fa-angle-double-left:before,
.fa-angles-left:before,
.fa-angle-double-right:before,
.fa-angles-right:before {
    background: var(--bord);
    height: 26px;
    display: flex;
    width: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.pa-online,
.pa-last-visit {
    display: none !important;
}

.pa-fld3 {
    display: flex;
    justify-content: center;
    margin-bottom: -20px;
    margin-top: 5px;
}

.go-up span {
    display: block;
    background: var(--red-bg) center/cover;
    mask: url(https://forumstatic.ru/files/001a/b2/a5/34417.svg) no-repeat center left;
    -webkit-mask: url(https://forumstatic.ru/files/001a/b2/a5/34417.svg) no-repeat center left;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    width: 30px;
    height: 30px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.go-up span:hover,
.go-down span:hover {
    transform: scale(1.1);
}

.go-up {
    bottom: 210px;
}

.go-down {
    bottom: 170px;
}

.go-down:hover,
.go-up:hover {
    opacity: 1;
}

.go-up,
.go-down {
    width: 50px;
    height: 50px;
    text-align: center;
    display: none;
    position: fixed;
    margin-left: 1092px;
    z-index: 9999;
    cursor: pointer;
    opacity: 1;
    margin-bottom: 140px;
}

.go-down span {
    display: block;
    background: var(--red-bg) center/cover;
    mask: url(https://forumstatic.ru/files/001a/b2/a5/68881.svg) no-repeat center left;
    -webkit-mask: url(https://forumstatic.ru/files/001a/b2/a5/68881.svg) no-repeat center left;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    width: 30px;
    height: 30px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#profile-right #pa-fld2 {
    width: 100%;
}

/* Стиль иконки нового сообщения ТОЛЬКО на главной */
#pun-index tr.inew div.icon {
    display: flex;
    justify-content: center;
    left: -18px;
    align-items: center;
    position: absolute;
    margin-top: 3px;
    background: var(--accent);
    height: 24px;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px #5c3a3c9e;
    border: 1px solid #b3a89e;
}

#pun-index tr.inew div.icon::before {
    content: '';
    background: #fff8f2;
    mask: url(https://forumstatic.ru/files/001c/a4/1f/56770.svg) no-repeat center left;
    -webkit-mask: url(https://forumstatic.ru/files/001c/a4/1f/56770.svg) no-repeat center left;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

/* Стиль иконки нового сообщения ТОЛЬКО внутри форума */
#pun-viewforum tr.inew div.icon {
    content: '';
    background: #fff8f2;
    mask: url(https://forumstatic.ru/files/001c/a4/1f/56770.svg) no-repeat center left;
    -webkit-mask: url(https://forumstatic.ru/files/001c/a4/1f/56770.svg) no-repeat center left;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

#pun-viewforum tr.inew div.icon::before {
    background: #f0f0f0;
    left: -25px;
}

#theme-toggle {
    border: none;
    width: 21px;
    height: 21px;
    border-radius: 20px;
    background: var(--darkest-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

#darkbd #pun {
    background: var(--dark-pun);
}

#darkbd #pun-index .category h2 span,
#darkbd #pun-stats h2 span {
    color: var(--drk-accent);
}

#darkbd #pun-stats .container {
    background: var(--drk-quote);
}

#darkbd .Add {
    color: var(--drk-text);
}

#darkbd #pun-index .datetime,
#darkbd #pun-index .byuser {
    color: var(--drk-s-text);
}

#darkbd .punbb {
    color: var(--drk-text);
}

#darkbd .forum tr {
    background: var(--drk-quote);
}

#darkbd .punbb .post h3 span {
    background: var(--drk-quote);
}

#darkbd .post-content .spoiler-box>div {
    background: var(--profile-bg) center/cover !important;
    background: var(--cat-fon) center/cover !IMPORTANT;
    color: var(--tab-text) !important;
    border: 1px solid #7e7767;
    box-shadow: inset 0px 0px 8px -2px #7d766c59;
}

#darkbd .punbb .post .post-author {
    background: var(--drk-quote);
}

#darkbd .lz-ic {
    background: var(--dark-pun);
}

#darkbd .answer-box:before {
    background: var(--dark-pun);
    color: var(--drk-s-text);
}

#darkbd .subscribelink {
    background: var(--drk-quote);
}

#darkbd #plng {
    background: var(--drk-quote);
}

#darkbd #form-buttons td::before {
    background: var(--drk-quote);
}

#darkbd .fa-angle-double-left:before,
#darkbd .fa-angles-left:before,
#darkbd .fa-angle-double-right:before,
#darkbd .fa-angles-right:before {
    background: var(--drk-quote);
}

#darkbd .punbb textarea,
#darkbd .punbb input,
#darkbd .punbb select,
#darkbd .punbb optgroup {
    background: var(--drk-quote);
    color: var(--drk-text);
}

#darkbd .punbb .post-rating p,
#darkbd .punbb .post-vote {
    background: var(--drk-pf);
    color: var(--drk-text);
}

#darkbd .punbb .post-rating a {
    color: var(--drk-text) !important;
}

.shinden-header {
    background: var(--head);
    width: 1100px;
    height: 497px;
    top: -360px;
    position: absolute;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.shinden-btn {
    background: var(--sec-text);
    border-radius: 4px;
    cursor: pointer;
    position: fixed;
    top: 8px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    border: 1px solid var(--blue-bord);
    box-shadow: 0px 0px 30px #171a1e;
}

.shinden-cont {
    max-height: 0;
    opacity: 0;
    padding: 0 15px;
    background: var(--sec-text);
    border: 1px solid var(--blue-bord);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: auto;
    position: fixed;
    top: 47px;
    left: 10px;
    max-width: 300px;
    box-shadow: 0px 0px 20px #1b2024;
}

.shinden-cont.active {
    max-height: 200px;
    opacity: 1;
    padding: 15px;
    z-index: 999;
}

.shinden-btn span::before {
    content: '';
    height: 21px;
    width: 21px;
    background: var(--tab-text);
    mask: url(https://forumstatic.ru/files/001a/b2/a5/75798.png) no-repeat center left;
    -webkit-mask: url(https://forumstatic.ru/files/001a/b2/a5/75798.png) no-repeat center left;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    display: block;
}

#chfont {
    position: fixed;
    top: 10px;
    right: 10px;
    text-align: center;
    line-height: 22px;
    -moz-opacity: .8;
    opacity: .8;
    z-index: 999999;
}

#chfont:hover {
    opacity: 1;
    -moz-opacity: 1;
}

#chfontbut {
    width: 26px;
    height: 26px;
    background: url(https://i.gyazo.com/364c0e92a2be83cb87d9000ce2869eaf.png) center no-repeat;
    background-color: #d2c1b7;
    float: left;
    border: solid 2px #70625a;
    margin-right: 2px;
    cursor: pointer;
    position: relative;
}

#chfontbut::after {
    display: none;
    position: absolute;
    content: 'x';
    top: 0;
    right: 0;
    color: #920000;
    line-height: 7px;
    font-size: 12px;
}

#chfont.active #chfontbut::after {
    display: block;
}

#chfont select {
    display: none;
    background-color: #d2c1b7;
    color: #150e0c;
    margin-bottom: 2px;
    cursor: pointer;
}

#chfontsize {
    display: flex;
    flex-shrink: 0;
    height: 20px;
    gap: 4px;
}

#chfont.active select,
#chfont.active #chfontsize {
    display: block;
}

.fsizeplus,
.fsizeminus {
    background: var(--accent);
    color: var(--tab-text);
    cursor: pointer;
    border: 1px solid var(--navi-link-hov);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 13px;
}

.fsizeplus::after {
    content: '+';
}

.fsizeminus::after {
    content: '-';
}

.fsize {
    background: var(--bord);
    color: var(--dark-pun);
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--main-font);
    font-weight: 600;
    border-radius: 4px;
}

.font-nav {
    display: flex;
    gap: 10px;
}

select#chfontfam {
    padding: 0;
    border-radius: 3px !important;
    background: var(--bord);
    width: 118px;
    height: 20px;
}

.design-swap {
    display: flex;
    justify-content: center;
    /* <-- ВОТ ЭТА СТРОКА ЦЕНТРИРУЕТ КНОПКУ */
    gap: 8px 20px;
    margin: 16px 0 0;
    flex-wrap: wrap;
    background: #2e343a;
    border-radius: 5px;
    border: var(--blue-bord) 1px solid;
    box-shadow: 0px 0px 20px #00000014;
    padding: 9px 15px;
    font-family: var(--main-font);
}

.ds-wap {
    font-size: 12px;
    width: 100%;
    text-transform: uppercase;
    background: var(--sec-text);
    color: var(--tab-text);
    border-radius: 3px;
    padding: 3px 10px;
}


#pun-main {
    background: var(--main-bg);
    border-radius: 5px;
    padding: 20px;
    color: var(--text);
    margin-top: 12px;
    box-shadow: 0px 0px 10px #00000012;
    z-index: 2;
    position: relative;
}

.html-box a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--main-font), sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.html-box a p.one {
    font-weight: 600;
    font-size: 11px;
}

.html-box a:hover {
    color: #ffffff !important;
    background: rgba(89, 64, 93, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    /* Заменяем translateY на translate3d для аппаратного ускорения и сглаживания шрифтов */
    transform: translate3d(0, -2px, 0);
}

.html-box a data {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #a45955;
    color: #ffffff;
    font-family: var(--main-font), sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0px;
    padding: 2px 4px 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.html-box a:hover data {
    background: #b6615d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

#pun-index .category tr.inew {
    background: var(--pf-new-bg) bottom no-repeat var(--pf-bgr);
    border: 1px solid var(--bord);
}

#pun-crumbs2,
#pun-crumbs1 {
    margin: 10px 0;
}

.post-content .spoiler-box>div {
    text-transform: none;
    text-align: center;
    font-family: var(--main-font);
    background: var(--quo-bg) bottom no-repeat, var(--quote) !important;
    margin-bottom: 0;
    font-size: 13px;
    letter-spacing: 0;
    padding: 7px 20px 7px 40px;
    align-items: center;
    position: relative;
    border-radius: 6px;
    color: var(--text) !important;
    font-weight: 500;
    border: 1px solid var(--bord);
}

#darkbd .shinden-header {
    background: var(--drk-head);
}


#darkbd #pun-main {
    background: var(--drk-pun-m);
}


#darkbd .punbb .post-links ul {
    border-bottom-style: dashed;
    border-color: #2d32381a;
    border-bottom-width: 1px;
}


#darkbd #pun-index .category table tr {
    background: var(--drk-quote);
}


#darkbd #pun-index .category tr.inew {
    background: var(--base-bg) center/cover;
    border: 1px solid #353a40;
}

.dark .shinden-btn {
    background: #c5bcb3;
    border: 1px solid #b4ac9f;
    box-shadow: 0px 0px 30px #afa698;
}

.dark .shinden-cont {
    box-shadow: 0px 0px 20px #b9b2a7;
    background: #c5bcb3;
    border: 1px solid var(--blue-bord);
}


.dark .design-swap {
    background: #c5bcb3;
    border: var(--blue-bord) 1px solid;
}

.dark .ds-wap {
    background: var(--accent);
    color: var(--base-bg2);
}

.fa-sun:before,
.fa-moon:before {
    color: var(--drk-text);
}

.dark .fa-sun:before,
.dark .fa-moon:before {
    color: var(--navi-link);
}


.dark #pun-about p.container {
    background: var(--cfoot) top/cover;
    border: 1px solid #b4ac9f;
}

.dark .pforum-links a {
    background: var(--accent);
    color: var(--base-bg2) !important;
}

.dark .pforum-links a:hover {
    background: var(--plash-bg);
}

.dark .shinden-post name a,
.nav_button {
    color: var(--base-bg2) !important;
}

.dark .shinden-post name a:hover {
    color: var(--bord) !important;
}


.dark .shinden-fl,
.dark .shinden-activs {
    color: var(--text);
}

.dark .shinden-ams span {
    color: #44645b;
}


.dark .shinden-activs activs a,
.dark .shinden-fl activs a {
    color: var(--base-bg2) !important;
}

.dark .nav_button span {
    background: var(--accent);
}

.dark .html-box a {
    color: #f1ede8 !important;
    background: #925f5d;
    border: 1px solid #7b4e4c;
}

.dark .html-box a data {
    background: #7b4e4c;
    color: #f1ede8;
}

.dark .html-box a:hover {
    background: var(--sec-text);
    box-shadow: 0px 0px 10px #7e694d6e;
}

.dark .html-box a:hover data {
    background: var(--accent);
}

.dark #pun-main {
    box-shadow: 0px 0px 10px #00000005;
}

#darkbd #pun-index .category tr.inew {
    background: var(--base-bg) center/cover;
    border: 1px solid var(--drk-brd);
}

/* --- START: New Modern Footer (3-Column Layout) --- */
/* 1. Скрываем старые блоки */

/* 2. Стили для нового футера */
.shinden-footer {
    background: #1e232a var(--footer-bg) center -15px / cover no-repeat;
    color: #dee1e1;
    font-family: 'Akrobat', sans-serif;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
    border-radius: 5px;
    box-sizing: border-box;
    width: 1100px;
    margin: 0 auto -80px -30px;
    clear: both;
    border: 1px solid #252b34;
}

/* 3. Темное наложение */
.shinden-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgb(30 35 42 / 99%), rgba(30, 35, 42, 0.75));
    border-radius: 5px;
    transition: background 0.5s ease;
}

.shinden-footer:hover::before {
    background: linear-gradient(to top, rgba(30, 35, 42, 0.85), rgba(30, 35, 42, 0.65));
}

/* 4. Позиционирование всех дочерних элементов футера */
.shinden-footer>* {
    /* Применяем ко всем прямым потомкам */
    position: relative;
    z-index: 2;
}

/* 5. Стили для блока копирайта (слева) */
.shinden-footer-credits {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 18px;
}

/* 6. Стили для навигационных ссылок (центр) */
.shinden-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 18px;
    opacity: 0.8;
}

.shinden-footer-links a {
    color: #dee1e1 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.shinden-footer-links a:hover {
    opacity: 1;
}

/* 7. Анимация подчеркивания для ссылок */
.shinden-footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #a45955;
    transition: width 0.3s ease-in-out;
}

.shinden-footer-links a:hover::after {
    width: 100%;
}

/* 8. Стили для кнопки "Наверх" (справа) */
.shinden-footer .back-to-top {
    color: #dee1e1 !important;
    font-size: 18px;
    opacity: 0.8;
    transition: color 0.3s, transform 0.3s, opacity 0.3s;
    text-decoration: none !important;
    margin-top: 18px;
}

.shinden-footer .back-to-top:hover {
    color: #a45955;
    transform: translateY(-3px);
    opacity: 1;
}

/* --- END: New Modern Footer --- */

/*Светящаяся обводка*/
.post-author::before {
    content: '';
    box-shadow: var(--user-glow-shadow, none) !important;
    transition: box-shadow 0.5s ease-out;
    animation: blink-shadow 2s infinite;
    width: 240px;
    height: 100%;
    position: absolute;
    border-radius: 6px;
    pointer-events: none !important;
}

@keyframes blink-shadow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.dark .nav_block {
    background: #c7c0b6;
    border: 1px solid #b4ac9f;
}

/* Максимально агрессивное скрытие поля наград и его содержимого
   для предотвращения "мелькания" до обработки скриптом */
.post-author .pa-fld4,
.post-author .pa-fld4 img,
.fld4,
.fld4 img {
    display: none !important;
    visibility: hidden !important;
    /* Дополнительная мера */
    width: 0 !important;
    /* Сделать невидимым и не занимающим место */
    height: 0 !important;
    overflow: hidden !important;
    /* Скрыть любое содержимое, если оно вылезает */
    padding: 0 !important;
    /* Убрать отступы */
    margin: 0 !important;
    /* Убрать поля */
}

/* --- КАЗИНО ПАРЯЩИЙ ДРАКОН --- */
.grand-casino-widget {
    width: 100%;
    max-width: 562px;
    height: 84px;
    margin: 10px auto;
    background: var(--banner-bg);
    border: 1px solid var(--banner-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Arsenal', sans-serif;
    color: #ddd;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

.grand-casino-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://forumstatic.ru/files/001a/b2/a5/81625.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.casino-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.casino-branding {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.casino-title {
    font-family: 'Cormorant SC', serif;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.1;
    color: #fff;
}

.status-badge {
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 14px 1fr 14px;
    align-items: center;
    gap: 0;
    border: 1px solid #444;
    min-width: 105px;
    justify-content: center;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: relative;
    justify-self: start;
    margin-left: 7px;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1px solid currentColor;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    margin-left: 12px;
}

.st-open .status-dot,
.st-open .status-text {
    color: var(--casino-green);
}

.st-open .status-dot {
    background: var(--casino-green);
}

.st-closed .status-dot,
.st-closed .status-text {
    color: var(--casino-red);
}

.st-closed .status-dot {
    background: var(--casino-red);
}

.casino-timer {
    text-align: center;
    z-index: 1;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: -32px;
}

.timer-label {
    font-size: 8px;
    color: var(--banner-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3px;
    font-weight: 700;
}

.timer-display {
    display: flex;
    gap: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38px;
}

.time-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: 'Montserrat', sans-serif;
}

.time-suffix {
    font-size: 7px;
    color: var(--banner-gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 1px;
}

.casino-watermark {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 80px;
    opacity: 0.05;
    color: var(--banner-gold);
    pointer-events: none;
}

#pun-about p.container {
    position: relative !important;
    margin: 10px auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 1 !important;
    text-align: center !important;
    display: block !important;
    opacity: 0.6;
}

#pun-about {
    padding-bottom: 20px !important;
}

#coins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coin {
    position: absolute;
    background: radial-gradient(circle, #ffd700 0%, #c5a059 100%);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotateX(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(110px) rotateX(720deg);
        opacity: 0;
    }
}

@media (max-width: 520px) {
    .grand-casino-widget {
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .casino-left-group {
        flex-direction: column;
        gap: 10px;
    }

    .casino-timer {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }
}

/* --- ОБНОВЛЕННЫЙ АРСЕНАЛ И БАЛАНС (ТОЛЬКО ЦИФРЫ) --- */
.shinden-inv-v5 {
    width: 100%;
    margin: 15px 0 !important;
    padding: 20px;
    background: var(--quo-bg) bottom no-repeat, var(--quote);
    border: 1px solid var(--bord);
    border-radius: 12px;
    box-sizing: border-box;
    font-family: var(--main-font);
    text-align: left;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.inv-v5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.inv-v5-title {
    font-family: var(--acc-font);
    font-size: 24px;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.inv-v5-balance-block {
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 8px;
    border-right: 4px solid var(--accent);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    cursor: default;
}

.bal-value {
    font-size: 22px;
    font-family: var(--acc-font);
    color: var(--accent);
    font-weight: 700;
}

.inv-v5-cat-block {
    margin-bottom: 25px;
}

.inv-v5-cat-block:last-child {
    margin-bottom: 0;
}

.inv-v5-cat-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    line-height: 1;
}

.inv-v5-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inv-v5-slot {
    width: 66px;
    height: 66px;
    background: #fff;
    border: 1px solid var(--bord);
    border-radius: 8px;
    position: relative;
    cursor: help;
    z-index: 1;
    transition: 0.2s ease-out;
}

.inv-v5-slot:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000 !important;
}

.inv-v5-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.inv-v5-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.inv-v5-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    border: 2px solid #fff;
    z-index: 2;
}

.inv-v5-pop {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background: #fff;
    border: 1px solid var(--accent);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: 0.2s;
    pointer-events: none;
}

.inv-v5-slot:hover .inv-v5-pop {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.v5-pop-name {
    font-family: var(--acc-font);
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: 700;
}

.v5-pop-desc {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
}

.v5-pop-desc b {
    color: var(--accent);
}

.shinden-inv-v5-loading {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin: 15px 0;
}

/*Стиль для баланса*/

/* Счётчик символов
-------------------------------------------------------*/

#symbol-counter {
    padding: 0 20px;
    height: 20px;
    width: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-transform: lowercase;
    font-size: 10px;
    font-family: arial;
    font-weight: 400;
    background: #bababc;
    color: var(--white);
    box-sizing: border-box;
    border-radius: 5px;
}

.punbb .post-vote {
    display: none !important;
}

/* ============================================================
   ДВУХКОЛОНОЧНЫЙ МАКЕТ (СИММЕТРИЧНЫЕ ОТСТУПЫ)
   ============================================================ */

/* 1. Глобальный контейнер: карточки в ряду одной высоты */
#pun-category1 tbody,
#pun-category2 tbody {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding-left: 77px !important;
    align-items: stretch !important;
    background: none !important;
}

/* 2. Сама карточка форума */
#pun-category1 tbody tr,
#pun-category2 tbody tr {
    flex: 0 0 calc(50% - 8px) !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    background: var(--quote) !important;
    border-radius: 5px !important;
    position: relative !important;
    height: auto !important;
}

/* Тёмная тема */
#darkbd #pun-category1 tbody tr,
#darkbd #pun-category2 tbody tr,
.dark #pun-category1 tbody tr,
.dark #pun-category2 tbody tr {
    background: var(--drk-quote) !important;
}

/* 3. ЗАГОЛОВОК (h3) */
#pun-category1 tr h3,
#pun-category2 tr h3 {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
}

#pun-category1 tr h3 a,
#pun-category2 tr h3 a {
    font-size: 19px !important;
    font-family: 'Akrobat', sans-serif !important;
}

/* 4. ОПИСАНИЕ: Добавлен отступ снизу до полосы (10px) */
#pun-category1 tr td.tcl,
#pun-category1 tr .intd,
#pun-category1 tr .tclcon,
#pun-category2 tr td.tcl,
#pun-category2 tr .intd,
#pun-category2 tr .tclcon {
    margin: 0 !important;
    padding: 0 0 6px 0 !important;
    /* ОТСТУП НАД ПОЛОСОЙ */
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 0 !important;
    background: none !important;
    border: none !important;
}

/* 5. УВЕДОМЛЕНИЯ О НОВЫХ СООБЩЕНИЯХ */
#pun-category1 tr.inew,
#pun-category2 tr.inew {
    background: var(--pf-new-bg) bottom no-repeat var(--pf-bgr) !important;
    border: 1px solid var(--bord) !important;
}

/* 6. БЛОК ПОСЛЕДНЕГО СООБЩЕНИЯ (TCR): Отступ сверху от полосы (10px) */
#pun-category1 tr td.tcr,
#pun-category2 tr td.tcr {
    width: 100% !important;
    margin-top: auto !important;
    padding: 10px 0 0 0 !important;
    /* ОТСТУП ПОД ПОЛОСОЙ */
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: block !important;
}

/* Иконка уведомления */
#pun-category1 tr.inew div.icon,
#pun-category2 tr.inew div.icon {
    display: flex !important;
    justify-content: center !important;
    left: -12px !important;
    align-items: center !important;
    position: absolute !important;
    margin-top: -5px !important;
    background: var(--accent) !important;
    height: 24px !important;
    width: 24px !important;
    border-radius: 4px !important;
    z-index: 5 !important;
}

/* 7. СКРЫВАЕМ ЛИШНЕЕ */
#pun-category1 thead,
#pun-category1 .tc2,
#pun-category1 .tc3,
#pun-category2 thead,
#pun-category2 .tc2,
#pun-category2 .tc3 {
    display: none !important;
}




/* --- КНОНПКА (открытие визитки) --- */
.char-link-btn {
    width: 100%;
    height: 36px;
    position: relative;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    color: var(--tab-text);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 9px;
    margin: 15px 0 0 0;
    border: none;
    box-sizing: border-box;
    z-index: 1;
}

.char-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cat-fon) center / cover;
    z-index: 0;
    filter: brightness(0.8);
}

.char-link-text {
    line-height: 12px;
    color: #ebebeb;
    font-weight: 600;
    font-size: 14px;
    z-index: 9;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.82);
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    position: relative;
}

.char-link-text::before,
.char-link-text::after {
    content: none !important;
    display: none !important;
}


.char-link-btn img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: 0.3s;
    filter: brightness(0.8);
}

/* --- МОДАЛКА --- */
.ar-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99990;
    backdrop-filter: blur(5px);
}

.ar-initial-loader-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    background: var(--base-bg2);
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bord);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--acc-font);
    font-size: 18px;
    color: var(--accent);
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.ar-initial-loader-modal::before {
    content: '\f110';
    font-family: "Font Awesome 6 Pro";
    margin-right: 10px;
    animation: fa-spin 1s infinite linear;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ar-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-width: 95%;
    height: 550px;
    background: var(--base-bg2);
    z-index: 99999;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--bord);
    font-family: var(--main-font);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.ar-modal-flex {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- ЛЕВАЯ КОЛОНКА --- */
.ar-left {
    width: 280px;
    flex-shrink: 0;
    background: var(--cat-fon) center/cover;
    border-right: 1px solid var(--bord);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.ar-left::-webkit-scrollbar {
    width: 0;
}

.ar-left img.m-ava {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--base-bg2);
    margin: 5px auto 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.ar-left .m-name {
    font-family: var(--acc-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 1px 1px 0px var(--base-bg2), -1px -1px 0px var(--base-bg2), 1px -1px 0px var(--base-bg2), -1px 1px 0px var(--base-bg2);
    position: relative;
    z-index: 2;
}

.bio-item {
    box-sizing: border-box;
    background: var(--quote);
    border-radius: 6px;
    padding: 6px 5px;
    text-align: center;
    border: 1px solid var(--bord);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bio-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--sec-text);
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.bio-val {
    font-size: 11px;
    color: var(--text);
    font-weight: 600;
    display: block;
}

.bio-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bio-group-row .bio-item {
    flex: 0 0 calc(50% - 4px);
}

.bio-group-row .bio-item.single-item-full-width {
    flex: 0 0 100%;
}

.char-actions {
    margin-top: 15px;
}

.char-anketa-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: #fff !important;
    font-family: var(--main-font);
    font-size: 10px;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.char-anketa-btn:hover {
    background: var(--sec-text);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.char-anketa-btn::before {
    content: '\f0f6';
    font-family: "Font Awesome 6 Pro";
    margin-right: 5px;
    color: inherit;
}

/* --- ПРАВАЯ ЧАСТЬ --- */
.ar-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-image: url(https://forumstatic.ru/files/001c/a4/1f/50190.jpg);
    overflow: hidden;
}

.ar-tabs-nav {
    display: flex;
    background: var(--base-bg2);
    border-bottom: 1px solid var(--bord);
    height: 45px;
    flex-shrink: 0;
    overflow-x: auto;
}

.ar-tabs-nav::-webkit-scrollbar {
    width: 0;
}

.ar-tab-link {
    flex: 1;
    min-width: fit-content;
    text-align: center;
    line-height: 45px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: var(--sec-text);
    transition: 0.3s;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 15px;
    white-space: nowrap;
}

.ar-tab-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ar-tab-link.active {
    background: var(--accent);
    color: #fff;
}

.ar-content-area {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}

.ar-content-area img {
    max-width: 100%;
    height: auto;
}

.ar-tab-item {
    display: none;
    animation: fadeIn 0.3s;
}

.ar-tab-item.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ar-close {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 100000;
    transition: 0.3s;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.ar-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.ar-content-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--acc-font);
    font-size: 24px;
    color: var(--accent);
    display: none;
}

/* --- Стили для хронологии сюжетов --- */
.plot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.plot-item {
    background: var(--base-bg2);
    border: 1px solid var(--bord);
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
}

.plot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.plot-status-text {
    margin-right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: var(--accent);
    color: #fff;
    width: fit-content;
}

.plot-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.plot-link {
    display: block;
    color: inherit;
    text-decoration: none;
    flex-grow: 1;
    transition: 0.2s;
}

.plot-link:hover {
    text-decoration: underline;
    color: var(--sec-text);
}

/* --- ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ НАГРАД --- */
.awards-list-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    margin-bottom: 15px;
}

.awards-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.awards-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.awards-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.awards-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--sec-text);
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.award-item {
    width: 100%;
    height: auto;
    background: var(--base-bg2);
    border: 1px solid var(--bord);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    z-index: 1;
    padding: 5px;
    box-sizing: border-box;
}

.award-item:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-color: var(--bord);
    z-index: 1;
}

.award-image {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.award-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    outline: 1px solid #59405d;
    border: 1px solid #59405d;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    transition: filter 0.2s ease;
}

.award-item:hover .award-image img {
    filter: grayscale(100%);
}

.award-name-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-top: 5px;
    line-height: 1.2;
    word-break: break-word;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.award-item:hover .award-name-text {
    color: var(--accent);
}

.award-item.selected-award {
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: var(--quote);
    z-index: 2;
}

.award-item.selected-award .award-name-text {
    color: var(--accent);
    font-weight: 700;
}

#darkbd .award-item.selected-award {
    border-color: var(--drk-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    background: var(--drk-quote);
}

#darkbd .award-item.selected-award .award-name-text {
    color: var(--drk-accent);
}

.awards-description-box {
    flex-shrink: 0;
    padding: 15px;
    background: var(--quote);
    border: 1px solid var(--bord);
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.awards-description-box .default-message {
    color: var(--sec-text);
    font-style: italic;
    margin: 0;
    text-align: center;
    width: 100%;
}

.awards-description-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.award-description-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    text-align: center;
    width: 100%;
}

/* --- DARK MODE --- */
#darkbd .ar-modal-flex {
    background: var(--drk-pun-m);
    border-color: var(--drk-brd);
}

#darkbd .ar-left {
    border-right-color: var(--drk-brd);
}

#darkbd .bio-item {
    background: var(--drk-quote);
    border-color: var(--drk-brd);
}

#darkbd .bio-label {
    color: var(--drk-s-text);
}

#darkbd .bio-val {
    color: var(--drk-text);
}

#darkbd .m-name {
    text-shadow: 2px 2px 0px var(--drk-pun-m);
}

#darkbd .ar-right {
    background: var(--drk-quote);
}

#darkbd .ar-tabs-nav {
    background: var(--drk-pun-m);
    border-bottom-color: var(--drk-brd);
}

#darkbd .ar-tab-link {
    color: var(--drk-text);
    border-right-color: var(--drk-brd);
}

#darkbd .ar-tab-link.active {
    background: var(--drk-accent);
    color: #fff;
}

#darkbd .ar-content-area {
    color: var(--drk-text);
}

#darkbd .plot-item {
    background: var(--drk-pun-m);
    border-color: var(--drk-brd);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#darkbd .plot-item:hover {
    border-color: var(--drk-accent);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

#darkbd .plot-title {
    color: var(--drk-accent);
}

#darkbd .plot-link:hover {
    color: var(--drk-s-text);
}

#darkbd .award-item {
    background: var(--drk-pun-m);
    border-color: var(--drk-brd);
}

#darkbd .award-item:hover {
    border-color: var(--drk-brd);
}

#darkbd .award-name-text {
    color: var(--drk-text);
}

#darkbd .award-item:hover .award-name-text {
    color: var(--drk-accent);
}

#darkbd .awards-description-box {
    background: var(--drk-quote);
    border-color: var(--drk-brd);
}

#darkbd .awards-description-box .default-message {
    color: var(--drk-s-text);
}

#darkbd .award-description-title {
    color: var(--drk-accent);
}

#darkbd .award-description-text {
    color: var(--drk-text);
}

/*Инвентарь и арсенал*/
.sh-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.sh-modal {
    background: #fff;
    width: 500px;
    max-width: 95%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    position: relative !important;
}

.sh-modal-header {
    background: #59405d;
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.sh-modal-close {
    cursor: pointer;
    padding: 5px;
}

.sh-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: #fdfdfd;
    min-height: 400px;
}

.sh-item-row {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
}

.sh-item-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: contain;
}

.sh-item-name {
    flex: 1;
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

.sh-item-qty {
    font-size: 11px;
    color: #888;
    font-weight: normal;
}

.sh-ctrl {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sh-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}

.sh-input {
    width: 35px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 3px;
    font-size: 12px;
}

.sh-modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.sh-main-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
}

.sh-main-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sh-hist-box {
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
}

.sh-hist-row {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #333;
}

.sh-hist-date {
    color: #888;
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: 600;
}

.sh-hist-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 4px;
}

.sh-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.sh-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #999;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.sh-tab.active {
    color: #59405d;
    border-bottom: 3px solid #59405d;
    background: rgba(89, 64, 93, 0.03);
}

.inv-manage-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.sh-privacy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 5px;
}

.sh-privacy-toggle:hover {
    opacity: 1;
}

.sh-privacy-toggle input {
    display: none;
}

.sh-privacy-slider {
    position: relative;
    width: 32px;
    height: 16px;
    background: rgba(150, 150, 150, 0.4);
    border-radius: 10px;
    transition: 0.3s;
}

.sh-privacy-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.sh-privacy-toggle input:checked+.sh-privacy-slider {
    background: #c0392b;
}

.sh-privacy-toggle input:checked+.sh-privacy-slider::before {
    transform: translateX(16px);
    background: #fff;
}

.eco-stats-v5-wrapper,
.eco-inv-v5-wrapper,
.eco-chrono-v5-wrapper {
    width: 100%;
    margin: 15px 0 !important;
    padding: 20px;
    background: var(--quo-bg) bottom no-repeat, var(--quote);
    border: 1px solid var(--bord);
    border-radius: 12px;
    font-family: var(--main-font);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.03);
    user-select: none;
}

.stats-v5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.stats-v5-title {
    font-family: var(--acc-font);
    font-size: 24px;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stats-v5-exp-block {
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 8px;
    border-right: 4px solid #27ae60;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

.exp-value {
    font-size: 20px;
    font-family: var(--acc-font);
    color: #27ae60;
    font-weight: 700;
}

.stats-v5-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.stats-v5-wheel-cont {
    flex: 0 0 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 5px;
}

.stats-v5-extra-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    height: 280px;
    overflow: hidden;
}

.spec-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex: none;
}

.spec-tab {
    flex: 1;
    padding: 8px 5px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.spec-tab.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.spec-content-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: none;
    align-content: start;
}

.spec-content-box.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.spec-content-box::-webkit-scrollbar {
    width: 4px;
}

.spec-content-box::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.extra-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.extra-item:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.extra-name {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #555;
}

.stats-v5-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.stat-wheel-svg {
    overflow: visible;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.stat-wheel-axis {
    stroke: rgba(0, 0, 0, 0.3);
    stroke-width: 1.2;
}

.stat-wheel-grid {
    fill: none;
    stroke: rgba(0, 0, 0, 0.15);
    stroke-width: 1;
}

.stat-wheel-poly {
    fill: var(--accent);
    fill-opacity: 0.15;
}

.stat-edge {
    stroke-width: 2.5;
    stroke-linecap: round;
}

.stat-point {
    fill: #fff;
    stroke: var(--accent);
    stroke-width: 2;
    transition: all 0.2s;
    pointer-events: all;
    transform-origin: center;
}

.stat-point.active {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 3;
    filter: drop-shadow(0 0 12px var(--accent));
    r: 10 !important;
}

.stat-point.over-point {
    fill: #ffcc00;
    stroke: #fff;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px #ffcc00);
    animation: statPulse 2s infinite ease-in-out;
}

@keyframes statPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.stat-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.stat-item.active,
.stat-item:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stat-name {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
}

.stat-val {
    font-family: var(--acc-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.stats-v5-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

.stat-total-badge {
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-total-label {
    font-family: var(--acc-font);
    font-size: 13px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-total-value {
    font-family: var(--acc-font);
    font-size: 26px;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}

/* --- Хронология (Timeline) --- */
.eco-chrono-v5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.chrono-v5-title {
    font-family: var(--acc-font);
    font-size: 24px;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.chrono-list {
    position: relative;
    padding-left: 30px;
}

.chrono-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(0, 0, 0, 0.1));
}

.chrono-item {
    position: relative;
    margin-bottom: 25px;
}

.chrono-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
}

.chrono-item:has(.chrono-content:hover) .chrono-dot {
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--accent);
    z-index: 3;
}

.chrono-content {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.chrono-content:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.chrono-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none !important;
    margin-bottom: 5px;
}

.chrono-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.chrono-date {
    display: block;
    font-size: 10px;
    color: #aaa;
    margin-top: 10px;
    font-weight: 700;
    text-align: right;
}

.chrono-add-btn-wrap {
    text-align: center;
    margin-top: 20px;
}