@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700;800&display=swap&subset=cyrillic');

@font-face {
    font-family: 'Minecraft Default';
    src: local('Minecraft Default'),
         local('MinecraftDefault-Regular'),
         url('fonts/minecraft-default/MinecraftDefault-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Default';
    src: local('Minecraft Default Bold'),
         local('MinecraftDefault-Bold'),
         url('fonts/minecraft-default/MinecraftDefault-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Default';
    src: local('Minecraft Default Italic'),
         local('MinecraftDefault-Italic'),
         url('fonts/minecraft-default/MinecraftDefault-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Default';
    src: local('Minecraft Default Bold Italic'),
         local('MinecraftDefault-BoldItalic'),
         url('fonts/minecraft-default/MinecraftDefault-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Minecraft Rus NEW';
    src: local('Minecraft Rus NEW'),
         url('fonts/minecraft-rus-new/minecraft-rus-new.otf') format('opentype');
    font-display: swap;
}

/*
 *  [ HTML & BODY ]
 */

:root {
    --wk-font-body: 'Minecraft Default', 'Minecraft Rus NEW', 'Noto Sans', sans-serif;
    --wk-font-size-body: 18px;
    --wk-font-size-ui: 17px;
    --wk-font-size-caption: 16px;
    --wk-line-height-body: 1.62;
}

html,
body {
    background: var(--wk-surface-alt);
    min-height: 100%;
    font-family: var(--wk-font-body);
    font-size: var(--wk-font-size-body);
    line-height: var(--wk-line-height-body);
    font-weight: 500;
}

button,
input,
textarea,
select,
.ui.button,
.ui.header,
.ui.menu,
.ui.menu .item,
.ui.input input,
.ui.form input,
.ui.form textarea,
.ui.form select,
.ui.message,
.ui.table,
.ui.card,
.ui.segment,
.ui.label,
.ui.dropdown,
.ui.list,
.ui.breadcrumb,
.ui.pagination.menu .item {
    font-family: var(--wk-font-body);
    font-size: var(--wk-font-size-ui);
    line-height: 1.5;
    font-weight: 500;
}

p,
.description,
.meta,
small,
.ui.card .description,
.ui.feed > .event > .content .summary,
.ui.feed > .event > .content .extra,
.ui.comments .comment .text,
.ui.message,
.ui.list .list > .item,
.ui.list > .item,
.ui.table,
.ui.segment,
.ui.form .field > label,
.ui.checkbox label,
.ui.label,
.ui.breadcrumb,
.ui.menu .item,
.ui.dropdown .menu > .item,
.ui.pagination.menu .item {
    font-size: var(--wk-font-size-ui);
    line-height: 1.55;
    font-weight: 500;
}

.ui.mini.statistics .statistic > .label,
.ui.tiny.statistics .statistic > .label,
.ui.statistic > .label,
.ui.cards > .card .meta,
.ui.card .meta,
.ui.comment .metadata,
.ui.comments .comment .metadata,
.ui.feed > .event > .content .date,
.ui.feed > .event > .content .meta,
.ui.text.small,
small {
    font-size: var(--wk-font-size-caption);
    line-height: 1.5;
    font-weight: 550;
}

body.pushable>.pusher {
    background: var(--wk-surface-alt);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#wrapper {
    margin-bottom: 1rem;
    flex: 1 0 auto;
    width: 100%;
}

body.pushable > .pusher > #footer {
    flex-shrink: 0;
}

/*
   *  [ CUSTOM PAGES / LANDINGS ]
   *
   *  Для кастомных страниц контейнер контента становится fluid (см. navbar.tpl),
   *  поэтому системные сообщения снова ограничиваем по ширине, а футер прижимаем вниз.
   */

body.wk-custom-page #wrapper {
    margin-bottom: 0;
}

body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom {
    margin-bottom: 0 !important;
}

body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .ui.message,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .announcement,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #update-message,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #ie-message {
    width: min(1240px, calc(100% - 2rem));
    margin: 1rem auto 1.15rem !important;
    padding: 1rem 1.15rem !important;
    border-radius: 22px !important;
    overflow: hidden;
    border: 1px solid var(--wk-border-strong) !important;
    box-shadow: 0 18px 40px rgba(120, 80, 30, 0.1) !important;
    position: relative;
    z-index: 8;
}

body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .ui.message + .wk-home,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .announcement + .wk-home,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #update-message + .wk-home,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #ie-message + .wk-home,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .ui.message + .wk-download,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > .announcement + .wk-download,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #update-message + .wk-download,
body.wk-custom-page #wrapper > .ui.container.wk-content-container--custom > #ie-message + .wk-download {
    margin-top: 0;
}

body.wk-custom-page #footer.ui.inverted.vertical.footer.segment {
    margin-top: 0;
}

/*
   *  [ NAVIGATION BAR ]
   */

.ui.secondary.menu {
    background: var(--wk-surface);
    padding: 4px 10px;
    margin: 0;
    align-items: center;
    box-shadow: 0 1px 3px rgba(120, 90, 40, 0.1);
}

.ui.secondary.menu .item {
    align-self: center;
}

#navbar .right.menu {
    align-items: center;
}

.ui.secondary.menu .item.active {
    color: var(--wk-accent-hover);
    font-weight: 700;
}

.ui.secondary.menu .toc.item {
    display: none;
}

.ui.secondary.menu .toc.item i {
    margin: 0;
}

#navbar .item i {
    margin-right: 5px;
}

/* Иконки-кнопки в шапке делаем квадратными вместо вытянутых */
#navbar .ui.small.icon.button,
#navbar .ui.button.icon {
    width: 2.55em;
    height: 2.55em;
    min-width: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

#navbar .ui.small.icon.button > i,
#navbar .ui.button.icon > i {
    margin: 0;
    line-height: 1;
    font-size: 1.05rem;
}

.wk-logo {
    display: inline-flex;
    align-items: center;
    padding: .35em .8em !important;
    margin-right: .75em !important;
    font-size: 1.12em !important;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--wk-accent) !important;
    white-space: nowrap;
}

.wk-logo:hover {
    color: var(--wk-accent-hover) !important;
}

#navbar .wk-logo .wk-logo-img {
    display: block;
    height: 50px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
}

body.dark #navbar .wk-logo .wk-logo-img {
    border-radius: 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.ui.secondary.menu .ui.medium.image.label {
    display: inline-flex !important;
    align-items: center;
    gap: .45em;
    padding: .3em .7em .3em .35em;
    margin: 0;
    border-radius: 999px;
    min-height: 0;
    line-height: 1.2;
}

.ui.secondary.menu .ui.medium.image.label img {
    width: 2.1rem !important;
    height: 2.1rem !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

.ui.secondary.inverted.menu .popup .list a.item {
    color: rgba(0, 0, 0, .87) !important;
}

@media only screen and (max-width: 768px) {

    .ui.secondary.menu .menu,
    .ui.secondary.menu .item {
        display: none;
    }

    .ui.secondary.menu .toc.item {
        display: block;
    }
}

.ui.secondary.menu .ui.popup {
    min-width: 200px;
}

.ui.secondary.menu .ui.popup a:not([href]) {
    cursor: default !important;
}

.ui.vertical.inverted.sidebar.menu.left .item .header span.icon {
    float: right;
}

/*
   *  [ HEADER ]
   */

.ui.masthead {
    background: linear-gradient(105deg, #8a3a08 0%, #c76a10 40%, #e8970d 70%, #f2b314 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 16px;
    padding: 2.25rem 0;
    border-radius: 0;
    color: #fff;
}

.ui.masthead h1 {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: .5px;
    text-shadow: 0 2px 12px rgba(60, 30, 0, .35);
}

.ui.masthead .ui.grid {
    margin: 0;
}

.ui.masthead .ui.grid .row {
    padding: 0;
}

.ui.masthead .connect-server {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    width: fit-content;
    padding: .8rem 1.4rem;
    margin-left: auto;
    border-radius: .4rem;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .ui.masthead .ui.grid .ui.row .column>* {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.ui.masthead .connect-server .ui.header {
    margin: 0;
    color: #fff;
}

/*
   *  -[ SEGMENT ]-
   */

.ui.segment {
    background: #fff;
    border-radius: .28571429rem;
    border: none;
    -webkit-box-shadow: 0 1px 3px 0 #d8ceba, 0 0 0 1px #e6dcc4;
    box-shadow: 0 1px 3px 0 #d8ceba, 0 0 0 1px #e6dcc4;
}

.ui.segment .ui.list .list>.item .header,
.ui.segment .ui.list>.item .header {
    display: inline-block;
}

.ui.secondary.segment.segment.segment.segment.segment:not(.inverted) {
    border-top: none;
}

/*
   *  [ NEWS POST ]
   */

#news-post .badge,
#news-post .ui.label {
    position: absolute;
    margin: 0;
    padding: .75em 1em;
    width: auto;
    top: 0;
    right: 0;
    text-transform: uppercase;
    border-radius: 0 .21428571rem 0 .28571429rem;
}

/*
   *  [ FORUM NODE ]
   */

#forum-node #last-post {
    width: 250px;
}

#forum-node #last-post .avatar {
    margin: 2px 10px 0 0;
}

/*
   *  [ FORUM PAGE ]
   */

#sticky-threads tbody tr td:last-child:not(:first-child),
#normal-threads tbody tr td:last-child:not(:first-child) {
    text-align: right;
}

#sticky-threads tbody tr td:last-child .ui.image.header .image,
#normal-threads tbody tr td:last-child .ui.image.header .image {
    float: right;
    margin-left: 1rem;
    margin-top: .24rem;
}

#sticky-threads .badge,
#sticky-threads .ui.label,
#normal-threads .badge,
#normal-threads .ui.label {
    position: relative;
    top: -1.2px;
    padding: .3rem .5rem;
    font-size: .7rem;
    margin: 0;
    margin-bottom: .1rem;
    margin-right: .2rem;
}

/*
   *  [ TOPIC PAGE ]
   */

#topic-post #post-sidebar .ui.small.image,
#topic-reply #reply-sidebar .ui.small.image {
    width: 120px;
}

#topic-post #post-sidebar h3,
#topic-reply #reply-sidebar h3 {
    margin: 1rem 0;
}

@media (max-width: 768px) {

    #topic-post #post-sidebar .ui.list,
    #topic-reply #reply-sidebar .ui.list {
        display: none;
    }
}

#topic-post #post-meta [class*="res right floated"] {
    margin-top: -5px;
}

@media (max-width: 576px) {
    #topic-post #post-meta {
        text-align: center;
    }

    #topic-post #post-meta [class*="res right floated"] {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-right: solid 1px rgba(0, 0, 0, .1);
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #topic-post #post-sidebar:before,
    #topic-reply #reply-sidebar:before {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid rgba(0, 0, 0, .2);
        position: absolute;
        top: 75px;
        right: 0;
    }

    #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid #fff;
        position: absolute;
        top: 75px;
        right: -1px;
    }
}

@media only screen and (max-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-bottom: solid 1px rgba(0, 0, 0, .1);
    }
}

.ui.comments {
    max-width: none;
}

.ui.grid.segment.leaderboard_table {
    margin-top: 0;
}

.leaderboard_table .ui.list {
    margin-left: -10px;
}

.leaderboard_table .ui.list li a {
    display: block;
    height: 100%;
    width: 100%;
}

.leaderboard_table .middle.aligned.content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;;
    white-space: nowrap;
}

.leaderboard_table ol li:before {
    display: none;
}

#reactions {
    margin-top: 1rem;
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
    font-size: 12px;
}

#topic-post #post-content {
    display: flex;
    flex-direction: column;
}

#topic-post #post-content {
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
}

#post-content #reactions {
    margin-top: auto;
}

.reaction-button, .reaction-button-selected {
    margin-left: 5px;
    margin-right: 5px;
}

.reaction-button {
    opacity: 50%;
}

.reaction-button:hover, .reaction-button-selected {
    opacity: 100%;
    cursor: pointer;
}

#modal-reactions .ui.menu {
    overflow-x: auto;
}

/** Reaction modal tab buttons display non-native emojis as 2.5em wide by default */
.ui.menu .item > img:not(.ui) {
    width: 1em;
}

#topic-post #post-meta {
    margin-right: 1.3em;
}

#topic-post #post-sidebar .groups {
    text-align: center;
}

.inline.fields.labels {
    flex-wrap: wrap;
}

.ui.form .inline.fields.labels .field {
    padding-bottom: 1em;
}

.blockquote {
    border-left: 2px solid #e0a83c;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
}

/*
   *  [ ACCOUNT MESSAGES ]
   */

#view-message #message .header {
    font-size: 1.15rem;
    margin-top: 0.01rem;
}

#view-message #message .meta {
    line-height: 0.95rem;
}

@media (max-width: 768px) {
    #messages table thead tr th:first-child {
        width: 100%;
    }

    #messages table thead tr th:not(:first-child),
    #messages table tbody tr td:not(:first-child) {
        display: none;
    }
}

/*
   *  -[ 404 ERROR ]-
   */

#error-403 .ui.container,
#error-404 .ui.container,
#maintenance .ui.container {
    position: relative;
    min-height: 100vh;
}

#error-403 .ui.segment,
#error-404 .ui.segment,
#maintenance .ui.segment {
    position: absolute;
    transform: translate(-50%, -70%);
    top: 50%;
    left: 50%;
    width: 500px;
    text-align: center;
}

/*
   *  [ PROFILE PAGE ]
   */

#profile-header {
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#profile-header .ui.header {
    margin: 8px 0;
}

#profile-header .ui.label {
    margin: 0;
}

#profile-header .actions {
    position: absolute;
    right: 1rem;
}

#profile a.ui.circular.image.avatar img {
    max-height: 35px;
}

/* Fix avatar images in labels being a few px from touching the top */
.ui.image.label img {
    vertical-align: top !important;
}

/*
   *  [ FORUM SEARCH ]
   */

#forum-search-result h3.ui.header {
    margin-top: 0;
    margin-bottom: 1rem;
}

/*
   *  [ SERVER PAGE ]
   */

[id*="server"] #server-players a:not(:last-child) {
    margin-right: .3rem;
}

/*
   *  [ WIDGETS ]
   */

[id*="widget"] .item .content {
    width: calc(100% - 40px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .content * {
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description {
    width: calc(100% - 120px) !important;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description * {
    overflow: hidden;
}

#widget-online-users .content {
    padding-bottom: .5rem;
}

#widget-online-users .ui.image.label {
    margin-bottom: .5rem;
}

#widget-online-staff .ui.list .item {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content .badge {
    margin-left: .35rem;
}

.fb-page {
    padding-bottom: 14px;
}

/*
   *  -[ FOOTER ]-
   */

.ui.footer.segment {
    position: relative;
    margin: auto 0 -.5rem 0;
    padding: 3em 0;
}

@media only screen and (max-width: 768px) {
    .ui.footer.segment {
        text-align: center;
    }
}

.ui.link.list.list .active.item {
    color: rgba(255, 255, 255, .5);
}

.ui.link.list.list .active.item a:not(.ui) {
    color: rgba(0, 0, 0, .87) !important;
}

.ui.link.list.list .active.item a:not(.ui):hover {
    background: rgba(0, 0, 0, .05) !important;
}

/*
   *  [ TABLE ]
   */

@media (max-width: 576px) {
    .ui.table.res thead tr th:first-child {
        width: 100%;
    }

    .ui.table.res thead tr th:not(:first-child),
    .ui.table.res tbody tr td:not(:first-child) {
        display: none;
    }
}

@media (max-width: 992px) {

    .ui.table.res thead tr th:first-child,
    .ui.table.res thead tr th:last-child {
        width: 50%;
    }

    .ui.table.res thead tr th:not(:first-child):not(:last-child),
    .ui.table.res tbody tr td:not(:first-child):not(:last-child) {
        display: none;
    }
}

/*
   *  -[ GRID ]-
   */

.ui.grid+.grid {
    margin-top: 0.3rem;
}

.ui.row+.row {
    padding-top: 0.3rem;
}

.ui.padded.grid:not(.vertically):not(.horizontally) {
    margin: 0 -1rem 0 -1rem !important;
}

@media only screen and (max-width: 768px) {
    .ui.padded.grid:not(.vertically):not(.horizontally) {
        margin: 0 !important;
    }
}

/*
   *  [ LINK LIST ]
   */

.ui.link.list.list .item a:not(.ui):hover,
.ui.link.list.list a.item:hover {
    background: none;
}

.ui.link.list.list .ui.divider {
    margin: 0.5rem 0;
}

/*
   *  [ USES POPUP ]
   */

#user-popup .header {
    text-align: center;
}

#user-popup .header .ui.header {
    padding: .5rem 0;
}

#user-popup .header .ui.image {
    margin: auto;
}

/*
   *  [ COOKIE NOTICE ]
   */

.cc-window.cc-floating {
    padding: 1rem 1.5rem;
    background-color: #fff !important;
    color: rgba(0, 0, 0, .68) !important;
    -webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    border: none;
    border-radius: .28571429rem;
    cursor: default;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 18px;
    opacity: 1;
    transition: .5s all ease;
}

.cc-window.cc-floating .cc-highlight .cc-btn:first-child {
    color: rgba(0, 0, 0, .68);
}

.cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    -webkit-box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    background-color: #e08e0b;
    border-color: #fff;
    border-radius: 5px;
    color: #fff;
}

.cc-revoke.cc-bottom.cc-right {
    color: #fff;
}

/*
   *  [ SPOILER ]
   */

#tinymce .spoiler,
.spoiler {
    color: rgba(0, 0, 0, .87);
    border-radius: .28571429rem;
    -webkit-box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    border: none;
}

#tinymce .spoiler-toggle,
.spoiler-toggle {
    color: rgba(0, 0, 0, .87);
}

#tinymce .spoiler-text,
.spoiler-text {
    color: rgba(0, 0, 0, .87);
}

/*
   *  [ MESSAGE ]
   */

.ui.message>.close.icon {
    right: .8em;
}

/*
   *  [ UPDATE MESSAGE ]
   */

#update-message {
    margin-bottom: 1rem;
}

#update-message>a {
    color: inherit;
    transition: all .2s ease;
}

#update-message>a:hover {
    filter: contrast(2);
}

#update-message>a>.icon {
    margin-right: .5em;
}

#update-message>a>.icon:not(.close) {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    line-height: 1;
    font-size: 3em;
    opacity: .8;
}

/*
   *  [ PAGINATION ]
   *
   *  NamelessMC рендерит пагинацию как «ui mini pagination menu centered».
   *  Fomantic даёт .ui.centered.menu transform: translateX(-50%) + margin-left: 50%,
   *  а наши правила сбрасывают margin — пагинация уезжает влево. Нейтрализуем.
   */

.ui.pagination.menu.centered {
    transform: none;
    margin-left: 0;
    display: flex;
    justify-content: center;
}

.ui.pagination.menu .item,
.ui.mini.pagination.menu .item {
    vertical-align: middle;
}

.ui.pagination.menu.centered .item {
    justify-content: center;
}

/*
   *  -[ ALIGNMENTS ]-
   */

[class*="left aligned"] {
    text-align: left;
}

[class*="center aligned"] {
    text-align: center;
}

[class*="right aligned"] {
    text-align: right;
}

/*
   *  [ FLOATS ]
   */

[class*="left floated"],
[class*="res left floated"] {
    float: left;
}

[class*="right floated"],
[class*="res right floated"] {
    float: right;
}

[class*="right floated"]+.ui.segment,
[class*="res right floated"]+.ui.segment {
    margin-top: 1rem;
}

@media only screen and (max-width: 576px) {

    [class*="res right floated"],
    [class*="res left floated"] {
        margin-top: 1rem;
        float: none;
    }

    [class*="res right floated"] .button:not(.mini),
    [class*="res left floated"] .button:not(.mini) {
        width: 100%;
        text-align: center;
    }

    [class*="res right floated"] .button:not(:first-child),
    [class*="res left floated"] .button:not(:first-child) {
        margin-top: 0.5rem;
    }
}

/*
   *  [ DISPLAY ]
   */

[display="block"] {
    display: block !important;
}

[display="inline"] {
    display: inline !important;
}

[display="inline block"] {
    display: inline-block !important;
}

/*
   *  [ VISIBILITY ]
   */

@media only screen and (max-width: 576px) {

    [class*="mobile hidden"],
    [class*="tablet only"]:not(.mobile),
    [class*="computer only"]:not(.mobile),
    [class*="large screen only"]:not(.mobile),
    [class*="widescreen only"]:not(.mobile),
    [class*="or lower hidden"] {
        display: none !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {

    [class*="mobile only"]:not(.tablet),
    [class*="tablet hidden"],
    [class*="computer only"]:not(.tablet),
    [class*="large screen only"]:not(.tablet),
    [class*="widescreen only"]:not(.tablet),
    [class*="or lower hidden"]:not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {

    [class*="mobile only"]:not(.computer),
    [class*="tablet only"]:not(.computer),
    [class*="computer hidden"],
    [class*="large screen only"]:not(.computer),
    [class*="widescreen only"]:not(.computer),
    [class*="or lower hidden"]:not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {

    [class*="mobile only"]:not([class*="large screen"]),
    [class*="tablet only"]:not([class*="large screen"]),
    [class*="computer only"]:not([class*="large screen"]),
    [class*="large screen hidden"],
    [class*="widescreen only"]:not([class*="large screen"]),
    [class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 1280px) {

    [class*="mobile only"]:not([class*="widescreen"]),
    [class*="tablet only"]:not([class*="widescreen"]),
    [class*="computer only"]:not([class*="widescreen"]),
    [class*="large screen only"]:not([class*="widescreen"]),
    [class*="widescreen hidden"],
    [class*="widescreen or lower hidden"] {
        display: none !important;
    }
}

/*
   *  [ USER BADGES ]
   */

.badge {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: 0.3em .3em;
    color: rgba(0, 0, 0, .6);
    text-transform: none;
    font-size: .85714286rem;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}

a.badge:hover,
a.badge:focus {
    text-decoration: none;
}

.badge:empty {
    display: none;
}

.badge-primary {
    color: #fff;
    background-color: #e08e0b;
}

a.badge-primary:hover,
a.badge-primary:focus {
    color: #fff;
    background-color: #c97a10;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

a.badge-secondary:hover,
a.badge-secondary:focus {
    color: #fff;
    background-color: #545b62;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

a.badge-success:hover,
a.badge-success:focus {
    color: #fff;
    background-color: #1e7e34;
}

.badge-info {
    color: #fff;
    background-color: #e0a83c;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #fff;
    background-color: #c98a1c;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

a.badge-warning:hover,
a.badge-warning:focus {
    color: #212529;
    background-color: #d39e00;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

a.badge-danger:hover,
a.badge-danger:focus {
    color: #fff;
    background-color: #bd2130;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

a.badge-light:hover,
a.badge-light:focus {
    color: #212529;
    background-color: #dae0e5;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

a.badge-dark:hover,
a.badge-dark:focus {
    color: #fff;
    background-color: #1d2124;
}

/*
   *  [ OTHER ]
   */

select {
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 10px !important;
}

.ui.popup {
    z-index: 99999;
    text-align: left;
}

.ui.popup .ui.header {
    margin: 0;
}

.ui.message {
    margin: 0.5em 0;
    will-change: transform, opacity;
    transition: opacity .18s ease, transform .18s ease, box-shadow .2s ease;
}

.ui.message.wk-is-dismissing {
    opacity: 0 !important;
    transform: translateY(-6px) scale(.988);
    pointer-events: none;
}

.tox-tinymce {
    min-height: 300px;
}

.forum_post {
    word-wrap: break-word;
}

.forum_post img {
    overflow: auto;
    max-width: 100%;
    height: auto;
}

#post-content .forum_post {
    margin-bottom: 1rem;
}

.ui.checkbox .box:before {
    margin-top: 4px;
}

.ui.checkbox input:checked~.box:after {
    margin-top: 4px;
}

.ui.header .topic.title .label,
.ui.header .topic.title .badge {
    margin-top: -4px;
    vertical-align: middle;
}

#ie-message {
    display: none;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #ie-message {
        display: initial;
    }
}

#darkmode {
    display: inline-block;
}

.darkmode-toggle {
    opacity: 0;
    position: absolute;
}

.darkmode-toggle:checked+.darkmode-toggle-label .darkmode-ball {
    transform: translateX(24px);
}

.darkmode-toggle-label {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    height: 26px;
    width: 50px;
    cursor: pointer;
}

.darkmode-ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transition: transform 0.2s linear;
}

.fa-moon {
    color: #f1c400;
}

.fa-sun {
    color: #f39c00;
}

/*
 Member list search images
 */
.ui.search>.results .result .image {
    border-radius: 0;
}

/*
 Make new members grid avatars fit nicer
 */
#new-members-grid {
    padding: 0.5em;
}

#new-members-grid .column {
    padding: 0.5em;
}

/*
 *  [ EMOJI SIZING ]
 */

.joypixels,
.twemoji {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

/*
   *  [ DARK MODE ]
   */

body.dark,
body.dark>.pusher,
body.dark .ui.pointing.dropdown>.menu:after {
    background: #1a160f;
}

body.dark .ui.secondary.menu:not(.inverted) {
    background: #241e14;
    color: #fff;
}

body.dark .ui.secondary.menu .item.active {
    color: #fff;
}

body.dark .ui.top.attached.menu:not(.inverted) {
    background: #1f1a11;
    border: 1px solid #1f1a11;
}

body.dark .ui.top.attached.menu:not(.inverted) .item {
    color: #fff;
}

body.dark .ui.form input:not(.button) {
    background-color: #241e14 !important;
}

body.dark .ui.modal {
    background-color: #241e14;
    border: none;
}

body.dark .ui.modal>.content {
    background-color: #241e14;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.modal>.actions,
body.dark .ui.modal>.header {
    color: rgba(255, 255, 255, 0.6);
    background-color: #3a2f1d;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.popup,
body.dark .ui.secondary.menu .ui.popup,
body.dark .ui.menu .dropdown.item .menu,
body.dark .ui.dropdown .menu {
    background-color: #1a160f;
    border: 1px solid #3a2f1d;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.default.button,
body.dark .ui.mini.icon.button,
body.dark .ui.top.right.attached.label {
    background-color: #1f1a11;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.button.red {
    background-color: #db2828;
    color: #fff;
}

body.dark .ui.image.label,
body.dark .ui.selection.dropdown,
body.dark .ui.selection.visible.dropdown>.text:not(.default) {
    background-color: #1f1a11;
    color: #fff;
}

body.dark .ui.selection.dropdown .ui.label {
    background-color: #241e14;
    color: #fff;
}

body.dark .ui.form .ui.selection.dropdown input:not(.button) {
    background-color: #1f1a11 !important;
}

body.dark .ui.form .field .ui.selection.active.dropdown .menu {
    border: 1px solid #1f1a11;
}

body.dark .ui.form .field .ui.dropdown .menu .item {
    background-color: #1f1a11;
    border-top: 1px solid #241e14;
    color: #fff;
}

body.dark .ui.form .ui.text input:not(.button) {
    background-color: #1f1a11 !important;
}

body.dark .ui.form .field input {
    background-color: #1f1a11 !important;
}

body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background-color: #241e14;
    border: 1px solid rgba(0, 0, 0, 0.125);
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.vertical.menu .active.item {
    background-color: #382e1c;
}

body.dark .ui.vertical.pointing.menu .active.item:after {
    background-color: #382e1c;
    border-top: 1px solid #382e1c;
    border-right: 1px solid #382e1c;
}

body.dark .ui.segment#profile-header {
    border: none;
}

body.dark .ui.attached.tabular.menu {
    border-bottom: none;
}

body.dark .ui.attached.tabular.menu .item.active {
    background-color: #241e14;
    border-color: transparent;
}

body.dark .ui.card .content.header {
    background-color: #3a2f1d;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.card>.content>.description,
body.dark .ui.cards>.card>.content>.description,
body.dark .ui.card>.content>.description .list .right.floated,
body.dark .ui.card>.content>.header a,
body.dark .ui.segment a,
body.dark .ui.checkbox label,
body.dark .ui.checkbox+label,
body.dark .ui.list .list>.item .description,
body.dark .ui.list>.item .description,
body.dark .ui.vertical.menu .item.active,
body.dark .ui.vertical.menu .item:hover,
body.dark #user-popup .description,
body.dark .ui.search.dropdown.active>input.search,
body.dark .ui.search.selection.dropdown>input.search,
body.dark .ui.selection.dropdown .menu>.message,
body.dark .ui.attached.tabular.menu .item.active,
body.dark .ui.threaded.comments .comment .text {
    color: #fff;
}

body.dark .ui.segment .forum_post a,
body.dark .ui.comments .comment .forum_post a {
    color: #f0b429;
}

body.dark .ui.card .meta,
.ui.cards>.card .meta,
body.dark .ui.header,
body.dark .ui.header .sub.header,
body.dark .ui.card>.content>.header,
body.dark .ui.cards>.card>.content>.header,
body.dark .ui.secondary.menu .item:not(.active),
body.dark .ui.card>.content>.description .list .item .text,
body.dark .ui.card>.extra,
body.dark .ui.cards>.card>.extra,
body.dark .ui.pointing.dropdown>.menu>.header,
body.dark .ui.dropdown .menu>.item,
body.dark .ui.breadcrumb .icon.divider,
body.dark .ui.vertical.menu .item,
body.dark .ui.segment,
body.dark .ui.form .field>label,
body.dark .ui.list .list>.item .header,
body.dark .ui.list>.item .header,
body.dark .ui.attached.tabular.menu .item,
body.dark .ui.comments .comment .metadata,
body.dark .ui.comments .comment .actions a,
body.dark .ui.card>.extra a:not(.ui),
body.dark .ui.cards>.card>.extra a:not(.ui),
body.dark .ui.relaxed.list .item .content,
body.dark .ui.horizontal.divider,
body.dark .ui.dropdown .menu>.header:not(.ui),
body.dark .ui.link.list.list .active.item,
body.dark .ui.link.list.list .active.item a:not(.ui) {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}

body.dark .ui.secondary.inverted.menu .popup .list a.item,
body.dark .ui.pointing.dropdown>.menu>.item {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover,
body.dark .ui.dropdown .menu>.item:hover,
body.dark .ui.menu .ui.dropdown .menu>.item.active,
body.dark .ui.list>.item a.header,
body.dark .ui.link.list.list .active.item a:not(.ui):hover {
    color: #fff !important;
}

body.dark .ui.top.left.popup:before {
    background: #1a160f;
    -webkit-box-shadow: 1px 1px 0 0 #3a2f1d;
    box-shadow: 1px 1px 0 0 #3a2f1d;
}

body.dark .ui.right.center.popup:before {
    background: #1a160f;
    -webkit-box-shadow: -1px 1px 0 0 #3a2f1d;
    box-shadow: -1px 1px 0 0 #3a2f1d;
}

body.dark .ui.left.center.popup:before {
    background: #1a160f;
    -webkit-box-shadow: 1px -1px 0 0 #3a2f1d;
    box-shadow: 1px -1px 0 0 #3a2f1d;
}

body.dark .ui.bottom.left.popup:before {
    background: #1a160f;
    -webkit-box-shadow: 1px 1px 0 0 #1a160f;
    box-shadow: 1px 1px 0 0 #1a160f;
}

body.dark .ui.form textarea {
    background-color: #241e14;
    border: 2px solid #1f1a11;
    color: #fff;
}

body.dark .ui.form input:not([type]),
body.dark .ui.form input[type=date],
body.dark .ui.form input[type=datetime-local],
body.dark .ui.form input[type=email],
body.dark .ui.form input[type=file],
body.dark .ui.form input[type=number],
body.dark .ui.form input[type=password],
body.dark .ui.form input[type=search],
body.dark .ui.form input[type=tel],
body.dark .ui.form input[type=text],
body.dark .ui.form input[type=time],
body.dark .ui.form input[type=url] {
    color: #fff;
}

body.dark .ui.mini.message,
body.dark .ui.mini.info.message {
    background-color: #1f1a11;
    box-shadow: 0 0 0 1px #1f1a11 inset, 0 0 0 0 transparent;
    -webkit-box-shadow: 0 0 0 1px #1f1a11 inset, 0 0 0 0 transparent;
}

body.dark .ui.pagination {
    background-color: #241e14;
}

body.dark .ui.pagination.menu .item {
    color: #fff;
}

body.dark .ui.pagination.menu .item.active {
    background-color: #1f1a11;
}

body.dark .ui.pagination .disabled.item {
    background-color: rgba(0, 0, 0, .05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.table {
    background: #241e14;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table thead th {
    background-color: #1f1a11;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.top.attached.header {
    background-color: #1f1a11;
    border-color: #1f1a11;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table a {
    color: #fff;
}

body.dark .ui.selectable.table tbody tr:hover,
body.dark .ui.table tbody tr td.selectable:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

@media only screen and (min-width: 768px) {

    body.dark #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        border-right: none;
    }
}

body.dark .forum_post,
body.dark .ui.comments .forum_post.text {
    color: #fff;
}

body.dark .ui.comments .comment .author {
    color: #fff;
}

body.dark .tox .tox-toolbar {
    background-color: #1a160f;
}

body.dark .tox .tox-tbtn {
    color: #fff;
}

body.dark .tox .tox-tbtn:hover,
body.dark .tox .tox-tbtn--enabled,
body.dark .tox .tox-split-button:focus,
body.dark .tox .tox-edit-area__iframe {
    color: #fff;
}

body.dark .tox .tox-tbtn svg {
    fill: #fff;
}

/* Override TinyMCE blue-ish dark theme with neutral dark theme */

body.dark .tox .tox-menu,
body.dark .tox .tox-statusbar,
body.dark .tox .tox-menubar,
body.dark .tox .tox-toolbar,
body.dark .tox .tox-toolbar__overflow,
body.dark .tox .tox-toolbar__primary,
body.dark .tox .tox-dialog,
body.dark .tox .tox-dialog__header,
body.dark .tox .tox-dialog__footer,
body.dark .tox .tox-listboxfield .tox-listbox--select,
body.dark .tox .tox-textarea,
body.dark .tox .tox-textfield,
body.dark .tox .tox-toolbar-textfield,
body.dark .tox .tox-selectfield select {
    background-color: #1a160f;
}

body.dark .tox .tox-dialog-wrap__backdrop {
    background-color: rgba(26, 22, 15, 0.7);
}

body.dark .tox .tox-collection--list .tox-collection__item--enabled {
    background-color: #3a2f1d;
}

body.dark .tox .tox-collection--list .tox-collection__item--active {
    background-color: #4a3c24;
}

body.dark .ui.cards>.green.card,
body.dark .ui.green.card,
body.dark .ui.green.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.cards>.red.card,
body.dark .ui.red.card,
body.dark .ui.red.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.tabular.menu {
    border-color: #1f1a11;
}

body.dark .ui.tabular.menu .item {
    color: #fff;
}

body.dark .ui.tabular.menu .active.item {
    background-color: #1f1a11;
    border-color: #1f1a11;
}

body.dark .cc-window.cc-floating {
    -webkit-box-shadow: 0 1px 3px 0 #3a2f1d, 0 0 1px 1px #3a2f1d;
    box-shadow: 0 1px 3px 0 #3a2f1d, 0 0 1px 1px #3a2f1d;
    background-color: #241e14 !important;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff !important;
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn:first-child,
body.dark .cc-window.cc-floating .cc-link {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    background-color: #1f1a11;
    border-color: transparent;
}

body.dark #reactions.ui.mini.message span {
    color: #fff;
}

body.dark #modal-reactions .ui.menu {
    background-color: #1f1a11;
}

body.dark #modal-reactions .ui.menu .item {
    color: #fff;
}

body.dark #modal-reactions .ui.menu .item.active {
    background-color: #1a160f;
}

body.dark #modal-reactions .ui.large.selection.divided.list.middle.aligned .item .content {
    color: #fff;
}

body.dark ::-webkit-scrollbar-corner {
    background-color: transparent;
}

/*
 * Colours
 */

body.dark .white {
    color: #fff;
}

/*
 * Accessiblity
 */

.screenreader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/*
 * ============================================================
 *  WakcedonDesign5 - GLOBAL THEME TOKENS (redesign scaffold)
 * ============================================================
 *  Правило (docs/namelessmc-design-playbook.md):
 *  - Цвета темы задаются ТОЛЬКО здесь: в :root (light) и body.dark.
 *  - Модули в css/modules/*.css используют эти переменные через var(--wk-*)
 *    и НЕ дублируют цветовые схемы.
 *  - Меняй значения ниже — тема меняется во всём шаблоне.
 */

:root {
    /* Поверхности */
    --wk-surface: #ffffff;
    --wk-surface-alt: #f6f1e7;
    --wk-surface-raised: #fffdf6;
    --wk-border: rgba(90, 70, 30, 0.12);
    --wk-border-strong: rgba(90, 70, 30, 0.22);

    /* Текст */
    --wk-text: #2b2111;
    --wk-text-muted: #8a734c;
    --wk-heading: #1d1607;

    /* Акцент */
    --wk-accent: #e08e0b;
    --wk-accent-hover: #c97a10;
    --wk-accent-contrast: #ffffff;

    /* Состояния */
    --wk-link: #a15808;
    --wk-link-hover: #7c4304;
    --wk-success: #15803d;
    --wk-danger: #b91c1c;
    --wk-warning: #b45309;

    /* Радиусы и тени */
    --wk-radius-sm: 8px;
    --wk-radius-md: 12px;
    --wk-radius-lg: 18px;
    --wk-shadow-sm: 0 1px 3px rgba(120, 90, 40, 0.12);
    --wk-shadow-md: 0 6px 18px rgba(120, 90, 40, 0.14);
    --wk-shadow-lg: 0 16px 40px rgba(120, 90, 40, 0.18);
}

body.dark {
    /* Поверхности */
    --wk-surface: #1a160f;
    --wk-surface-alt: #161209;
    --wk-surface-raised: #241e14;
    --wk-border: rgba(255, 220, 160, 0.1);
    --wk-border-strong: rgba(255, 220, 160, 0.2);

    /* Текст */
    --wk-text: #f4ecd9;
    --wk-text-muted: #a89372;
    --wk-heading: #fff8e6;

    /* Акцент */
    --wk-accent: #f0b429;
    --wk-accent-hover: #f7c95f;
    --wk-accent-contrast: #2b1e05;

    /* Состояния */
    --wk-link: #f0b429;
    --wk-link-hover: #f7c95f;
    --wk-success: #4ade80;
    --wk-danger: #f87171;
    --wk-warning: #fbbf24;

    /* Радиусы и тени */
    --wk-radius-sm: 8px;
    --wk-radius-md: 12px;
    --wk-radius-lg: 18px;
    --wk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
    --wk-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
    --wk-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
}

/*
 * ============================================================
 *  Amber & Gold — Semantic UI overrides
 * ============================================================
 */

/* Ссылки */
a,
.ui.link.list a.item,
.ui.breadcrumb a,
.ui.list>.item a:not(.ui) {
    color: var(--wk-link);
    transition: color .15s ease;
}

a:hover,
.ui.link.list a.item:hover,
.ui.breadcrumb a:hover,
.ui.list>.item a:not(.ui):hover {
    color: var(--wk-link-hover);
}

/* Primary-кнопки */
.ui.primary.button,
.ui.primary.buttons .button {
    background: linear-gradient(180deg, #f2a71c 0%, #d9850b 55%, #c06f08 100%);
    color: #fff;
    box-shadow: 0 1px 2px rgba(180, 83, 9, .4);
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover,
.ui.primary.button:focus,
.ui.primary.buttons .button:focus {
    background: linear-gradient(180deg, #ffb82e 0%, #e08e0b 55%, #c97a10 100%);
    color: #fff;
}

/* Default-кнопки */
.ui.default.button {
    background: var(--wk-surface);
    color: var(--wk-text);
    border: 1px solid var(--wk-border-strong);
    box-shadow: none;
}

.ui.default.button:hover,
.ui.default.button:focus {
    background: var(--wk-surface-raised);
    border-color: var(--wk-accent);
    color: var(--wk-accent-hover);
}

/* Фокусы полей */
.ui.input input:focus,
.ui.form input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
.ui.form textarea:focus,
.ui.form .ui.selection.dropdown:focus,
.ui.selection.active.dropdown {
    border-color: #e6b31e;
    box-shadow: 0 0 0 0 rgba(214, 158, 46, .2) inset, 0 0 0 2px rgba(214, 158, 46, .35);
}

/* Чекбоксы */
.ui.checkbox input:checked~label:before,
.ui.checkbox input:checked~.box:before {
    background: var(--wk-accent);
    border-color: var(--wk-accent);
}

.ui.checkbox input:checked~label:after,
.ui.checkbox input:checked~.box:after {
    color: var(--wk-accent-contrast);
}

.ui.toggle.checkbox input:checked~label:before,
.ui.toggle.checkbox input:checked~.box:before {
    background-color: var(--wk-accent) !important;
}

/* Пагинация */
.ui.pagination.menu .item.active {
    color: #fff;
    background: var(--wk-accent);
}

/* Инфо-сообщения */
.ui.info.message {
    background-color: #fdf3dd;
    color: #8a4a0c;
    box-shadow: 0 0 0 1px #f0d9a8 inset, 0 0 0 0 transparent;
}

/* Tabular / вкладки */
.ui.tabular.menu .active.item {
    border-color: var(--wk-accent);
}

/* Хлебные крошки */
.ui.breadcrumb .active.section {
    color: var(--wk-text-muted);
}

/* Dark: янтарно-золотые акценты поверх */
body.dark .ui.primary.button,
body.dark .ui.primary.buttons .button {
    background: linear-gradient(180deg, #f7c95f 0%, #f0b429 60%, #e29c16 100%);
    color: #2b1e05;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

body.dark .ui.primary.button:hover,
body.dark .ui.primary.buttons .button:hover,
body.dark .ui.primary.button:focus,
body.dark .ui.primary.buttons .button:focus {
    background: linear-gradient(180deg, #ffd98a 0%, #f7c95f 60%, #f0b429 100%);
    color: #2b1e05;
}

body.dark .ui.info.message {
    background-color: #2a2110;
    color: #f0b429;
    box-shadow: 0 0 0 1px #4a3c24 inset, 0 0 0 0 transparent;
}

body.dark .ui.input input:focus,
body.dark .ui.form input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
body.dark .ui.form textarea:focus,
body.dark .ui.form .ui.selection.dropdown:focus,
body.dark .ui.selection.active.dropdown {
    border-color: #f0b429;
    box-shadow: 0 0 0 0 rgba(240, 180, 41, .2) inset, 0 0 0 2px rgba(240, 180, 41, .35);
}

/*
 * ============================================================
 *  Footer — social links
 * ============================================================
 */

.wk-social-row {
    display: flex;
    gap: 10px;
    margin-top: .75rem;
    flex-wrap: wrap;
}

.wk-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #f0b429;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(240, 180, 41, .45);
    font-size: 1.05rem;
    transition: all .18s ease;
}

.wk-social:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: transparent;
}

.wk-social-tg:hover {
    background: #229ED9;
    box-shadow: 0 4px 12px rgba(34, 158, 217, .45);
}

.wk-social-ds:hover {
    background: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, .45);
}

.wk-social-yt:hover {
    background: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, .45);
}

/*
 * ============================================================
 *  Footer — логотип из двух слов (первое выше, второе ниже)
 * ============================================================
 */

.wk-footer-logo {
    display: grid;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: .6rem;
}

.wk-footer-logo__word {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
}

/*
 * ============================================================
 *  Footer — светлая тема
 * ============================================================
 */

body:not(.dark) .wk-footer,
body:not(.dark) .wk-footer.ui.inverted.vertical.segment {
    background: #efe7d3;
    border-top: 1px solid #e0d3b4;
    color: #4a3a1c;
}

body:not(.dark) .wk-footer .ui.inverted.header {
    color: #2b2111;
}

body:not(.dark) .wk-footer .ui.inverted.link.list .item,
body:not(.dark) .wk-footer .ui.inverted.link.list a.item,
body:not(.dark) .wk-footer .ui.inverted.link.list a.item:visited {
    color: #6b5628;
}

body:not(.dark) .wk-footer .ui.inverted.link.list a.item:hover {
    color: var(--wk-accent-hover);
}

body:not(.dark) .wk-footer .darkmode-toggle-label {
    background-color: #d6c9a2;
}

body:not(.dark) .wk-footer .darkmode-ball {
    background-color: #fff;
}

body:not(.dark) .wk-footer .wk-social {
    border-color: rgba(140, 100, 30, .45);
    color: var(--wk-accent-hover);
    background: rgba(120, 90, 40, .08);
}

body:not(.dark) .wk-footer .wk-social:hover {
    color: #fff;
    border-color: transparent;
}

body:not(.dark) .wk-footer .wk-social-tg:hover {
    background: #229ED9;
    box-shadow: 0 4px 12px rgba(34, 158, 217, .45);
}

body:not(.dark) .wk-footer .wk-social-ds:hover {
    background: #5865F2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, .45);
}

body:not(.dark) .wk-footer .wk-social-yt:hover {
    background: #FF0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, .45);
}

body.dark .wk-footer.ui.inverted.vertical.segment {
    background: #141109;
    border-top: 1px solid #2a2316;
}

/*
 * ============================================================
 *  Footer — вторая строка логотипа по центру под первой
 * ============================================================
 */

.wk-footer-logo {
    justify-items: center;
}

/*
 * ============================================================
 *  Аватарки игроков — квадратные с лёгким скруглением
 * ============================================================
 *  Заменяет круглые аватарки (Fomantic .circular / .avatar) по всему
 *  сайту: навбар, профиль, форум, участники, виджеты, ЛС.
 */

.ui.avatar.image,
.ui.avatar.image img,
img.ui.avatar,
.ui.circular.image,
.ui.circular.image img,
.ui.image.label img,
#page-members .ui.list.selection > .item .ui.avatar.image,
#page-members .ui.search > .results .result .image,
#page-members #new-members-grid img.ui.circular.image,
#navbar .ui.medium.image.label img {
    border-radius: 10px !important;
}

img.ui.avatar {
    box-shadow: none;
}
