/*
 *  [ HTML & BODY ]
 */

html,
body {
    background: #f3f6fa;
}

body.pushable>.pusher {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#wrapper {
    margin-bottom: 1rem;
}

/*
   *  [ NAVIGATION BAR ]
   */

.ui.secondary.menu {
    background: #fff;
    padding: 10px;
    margin: 0;
}

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

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

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

.ui.secondary.menu .ui.medium.label {
    padding: .68em 1em .5em .5em;
}

.ui.secondary.menu .ui.medium.label img {
    font-size: 1.09rem;
    margin: -.6em .5em -.6em -.5em;
}

.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: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    padding: 4rem 0;
    border-radius: 0;
    color: #fff;
}

.ui.masthead .connect-server {
    background: rgba(255, 255, 255, .2);
    width: fit-content;
    padding: 1rem 1.5rem;
    margin-left: auto;
    border-radius: .4rem;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
}

@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 #d4d4d5, 0 0 0 1px #d4d4d5;
    box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}

.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 ]
   */

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

.redful-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 #ccc;
    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: #2185d0;
    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 ]
   */

.ui.mini.pagination.menu .item:first-child,
.ui.mini.pagination.menu .item:last-child {
    padding-top: .5rem;
}

/*
   *  -[ 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: #007bff;
}

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

.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: #17a2b8;
}

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

.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;
}

.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: #222;
}

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

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

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

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

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

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

body.dark .ui.modal>.content {
    background-color: #303030;
    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: #444;
    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: #222;
    border: 1px solid #444;
    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: #282828;
    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: #282828;
    color: #fff;
}

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

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

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

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

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

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

body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background-color: #303030;
    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: #464646;
}

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

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: #303030;
    border-color: transparent;
}

body.dark .ui.card .content.header {
    background-color: #444;
    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: #62b6f7;
}

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: #222;
    -webkit-box-shadow: 1px 1px 0 0 #444;
    box-shadow: 1px 1px 0 0 #444;
}

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

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

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

body.dark .ui.form textarea {
    background-color: #303030;
    border: 2px solid #282828;
    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: #282828;
    box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
    -webkit-box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
}

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

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

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

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: #303030;
    color: rgba(255, 255, 255, 0.6);
}

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

body.dark .ui.top.attached.header {
    background-color: #282828;
    border-color: #282828;
    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: #222;
}

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: #222;
}

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

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

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

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: #282828;
}

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

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

body.dark .cc-window.cc-floating {
    -webkit-box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    background-color: #303030 !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: #282828;
    border-color: transparent;
}

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

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

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

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

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;
}

/* Redful site-wide background */
body,
body.pushable,
body.pushable > .pusher {
    background-color: #eef1f5 !important;
    background-image:
        linear-gradient(rgba(245, 247, 250, .82), rgba(245, 247, 250, .82)),
        url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body.dark,
body.dark.pushable,
body.dark.pushable > .pusher {
    background-color: #151719 !important;
    background-image:
        linear-gradient(rgba(14, 16, 18, .76), rgba(14, 16, 18, .76)),
        url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') !important;
}

/* Keep the site artwork visible below the landing hero, but subdued enough
 * that it does not compete with the dedicated hero image. */
body:has(.redful-landing),
body.pushable:has(.redful-landing) {
    background-color: #eef1f5 !important;
    background-image: none !important;
}

body.dark:has(.redful-landing),
body.dark.pushable:has(.redful-landing) {
    background-color: #151719 !important;
    background-image: none !important;
}

body.pushable:has(.redful-landing) > .pusher {
    background-color: #eef1f5 !important;
    background-image:
        linear-gradient(rgba(245, 247, 250, .9), rgba(245, 247, 250, .9)),
        url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') !important;
}

body.dark.pushable:has(.redful-landing) > .pusher {
    background-color: #151719 !important;
    background-image:
        linear-gradient(rgba(14, 16, 18, .86), rgba(14, 16, 18, .86)),
        url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') !important;
}

/* Blend the masthead into the page instead of ending at a hard edge. */
.ui.masthead {
    position: relative;
    overflow: hidden;
    background-attachment: fixed !important;
    background-position: center center !important;
    background-size: cover !important;
}

.ui.masthead > .ui.container {
    position: relative;
    z-index: 1;
}

.ui.masthead::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -1px;
    left: 0;
    height: clamp(72px, 10vw, 140px);
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(245, 247, 250, 0), rgba(245, 247, 250, .82));
}

body.dark .ui.masthead::after {
    background: linear-gradient(to bottom, rgba(14, 16, 18, 0), rgba(14, 16, 18, .76));
}

/* A reset banner has no inline background image. Keep that state genuinely
 * transparent instead of falling back to the old blue template strip. */
.ui.masthead:not([style]) {
    background: transparent !important;
    color: inherit;
}

.ui.masthead:not([style])::after {
    display: none;
}

/* Forum masthead has no banner after a reset. Fomantic gives its h1 a fixed
 * dark colour, so explicitly follow the active Redful theme. */
body#page-forum .ui.masthead:not([style]) h1 {
    color: #171a1f;
}

body#page-forum.dark .ui.masthead:not([style]) h1 {
    color: #f5f7fa !important;
}

/* Redful product landing */
:root {
    --redful-red: #ef3f49;
    --redful-red-dark: #c91f2b;
    --redful-ink: #11151c;
    --redful-muted: #697386;
    --redful-surface: rgba(255, 255, 255, .94);
}

#navbar .redful-nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--redful-red), var(--redful-red-dark)) !important;
    border-radius: 9px !important;
    box-shadow: 0 8px 24px rgba(229, 57, 69, .24);
}

.redful-landing,
.redful-page {
    color: var(--redful-ink);
    padding-bottom: 3rem;
}

.redful-hero,
.redful-detail-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    min-height: min(690px, 78vh);
    margin: 0 calc(50% - 50vw) 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #111722 var(--redful-hero-image, none) center/cover no-repeat;
}

.redful-hero {
    border-radius: 0 0 28px 28px;
    box-shadow: 0 22px 55px rgba(10, 18, 30, .2);
}

.redful-hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 58px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(8, 11, 17, .24));
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 72%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 72%);
}

.redful-hero-shade,
.redful-detail-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 11, 17, .96) 0%, rgba(8, 11, 17, .74) 48%, rgba(8, 11, 17, .2) 100%),
        radial-gradient(circle at 20% 30%, rgba(229, 57, 69, .25), transparent 45%);
}

.redful-hero-content,
.redful-detail-content {
    position: relative;
    z-index: 2;
    width: min(1127px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 6rem 0;
}

.redful-hero h1,
.redful-detail-hero h1 {
    max-width: 820px;
    margin: .35rem 0 1.25rem;
    font-size: clamp(3.2rem, 8vw, 6.7rem);
    line-height: .94;
    letter-spacing: -.055em;
    color: #fff;
}

.redful-hero p,
.redful-detail-hero p,
.redful-page-header p {
    max-width: 720px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.65;
}

.redful-kicker {
    color: var(--build-accent, var(--redful-red));
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.redful-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.ui.redful-primary.button {
    color: #fff;
    background: linear-gradient(135deg, var(--build-accent, var(--redful-red)), color-mix(in srgb, var(--build-accent, var(--redful-red)) 72%, #700 28%));
    box-shadow: 0 12px 28px rgba(229, 57, 69, .25);
}

.ui.redful-primary.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.redful-online-total {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1.6rem;
    font-weight: 700;
}
.redful-online-total span { width: 10px; height: 10px; border-radius: 50%; background: #25d978; box-shadow: 0 0 0 6px rgba(37, 217, 120, .14); }

.redful-section { margin: 0 auto 5rem; }
.redful-project-signature {
    position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center; gap: 1.75rem; margin: -2.6rem auto 5rem; padding: 1.65rem 2rem;
    overflow: hidden; color: #fff; border: 1px solid rgba(255,255,255,.11); border-radius: 22px;
    background: linear-gradient(115deg, rgba(21,25,34,.98), rgba(31,37,50,.96)); box-shadow: 0 22px 60px rgba(0,0,0,.24);
}
.redful-project-signature::after { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -190px; border-radius: 50%; background: rgba(239,63,73,.16); filter: blur(3px); pointer-events: none; }
.redful-project-mark { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; color: #fff; font-size: 2.45rem; font-weight: 900; border-radius: 20px; background: linear-gradient(145deg, #ff4d58, #c92332); box-shadow: 0 12px 28px rgba(239,63,73,.3); }
.redful-project-mark.has-image { padding: 8px; background: rgba(12,16,24,.72); }
.redful-project-mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.redful-project-copy { position: relative; z-index: 1; }
.redful-project-copy h2 { margin: .15rem 0 .35rem; color: #fff; font-size: clamp(1.55rem, 2vw, 2.15rem); }
.redful-project-copy p { max-width: 760px; margin: 0; color: #bfc7d5; font-size: 1.04rem; line-height: 1.6; }
.redful-project-link { position: relative; z-index: 1; color: #fff; font-weight: 800; white-space: nowrap; }
.redful-project-link:hover { color: #ff626b; }
.redful-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.redful-section-heading h2,
.redful-community h2,
.redful-final-cta h2,
.redful-page-header h1,
.redful-detail-copy h2 { margin: .35rem 0 .7rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; }
.redful-section-heading p { max-width: 680px; color: var(--redful-muted); font-size: 1.08rem; }
.redful-text-link { white-space: nowrap; font-weight: 800; }

.redful-build-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.redful-build-card { position: relative; overflow: hidden; min-height: 470px; display: flex; flex-direction: column; border-radius: 20px; background: var(--redful-surface); box-shadow: 0 18px 50px rgba(16, 24, 40, .12); transition: transform .25s ease, box-shadow .25s ease; }
.redful-build-card:hover { transform: translateY(-7px); box-shadow: 0 25px 60px rgba(16, 24, 40, .2); }
.redful-card-cover { position: absolute; inset: 0; z-index: 3; }
.redful-build-image { min-height: 220px; background: linear-gradient(145deg, color-mix(in srgb, var(--build-accent) 55%, #10151d), #10151d), var(--build-image, url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg')) center/cover no-repeat; background-blend-mode: multiply, normal; }
.redful-build-body { display: flex; flex: 1; flex-direction: column; padding: 1.6rem; border-top: 4px solid var(--build-accent); }
.redful-build-body h3 { margin: .35rem 0 .8rem; font-size: 2rem; }
.redful-build-body p { color: var(--redful-muted); line-height: 1.55; }
.redful-build-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.2rem; font-weight: 700; }
.redful-build-meta span { white-space: nowrap; }
.redful-build-meta .online { color: #18a95b; }
.redful-build-meta .offline { color: #8992a2; }
.redful-build-meta .circle.icon { font-size: .58rem; }
.redful-card-action { margin-top: auto; padding-top: 1.4rem; color: var(--build-accent); font-weight: 900; }

.redful-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.redful-gallery-item { position: relative; overflow: hidden; border-radius: 16px; background-position: center; background-size: cover; box-shadow: 0 12px 30px rgba(16, 24, 40, .12); transition: transform .25s ease; }
.redful-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.redful-gallery-item:hover { transform: scale(1.012); }
.redful-gallery-item span { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem 1rem 1rem; color: #fff; font-weight: 800; background: linear-gradient(transparent, rgba(0,0,0,.8)); }

.redful-community,
.redful-final-cta,
.redful-security { display: flex; align-items: center; justify-content: space-between; gap: 3rem; margin: 0 0 5rem; padding: clamp(2rem, 6vw, 4rem); border-radius: 24px; }
.redful-community { color: #fff; background: linear-gradient(135deg, #161b24, #282e3b); }
.redful-community h2 { color: #fff; }
.redful-community p { max-width: 720px; color: #cbd1dc; font-size: 1.1rem; }
.redful-final-cta { flex-direction: column; text-align: center; color: #fff; background: radial-gradient(circle at 50% 0%, rgba(239,63,73,.3), transparent 48%), #11151c; }
.redful-final-cta h2 { color: #fff; margin-bottom: 0; }
.redful-final-cta p { color: #cbd1dc; font-size: 1.15rem; }

.redful-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.redful-news-card { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--redful-ink) 9%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--redful-surface) 94%, transparent); box-shadow: 0 18px 42px rgba(3, 8, 20, .14); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.redful-news-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--redful-red) 55%, transparent); box-shadow: 0 24px 52px rgba(3, 8, 20, .22); }
.redful-news-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 8.5; overflow: hidden; background: linear-gradient(135deg, #111827, #1f2937); }
.redful-news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.redful-news-card:hover .redful-news-cover img { transform: scale(1.035); }
.redful-news-cover-placeholder { color: rgba(255,255,255,.55); background: radial-gradient(circle at 78% 20%, rgba(239,63,73,.3), transparent 35%), linear-gradient(135deg, #0b1324, #1b2435); }
.redful-news-cover-placeholder i.icon { margin: 0; font-size: 2.3rem; }
.redful-news-body { display: flex; flex-direction: column; min-height: 230px; padding: 1.25rem 1.35rem 1.35rem; }
.redful-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; color: var(--redful-muted); font-size: .78rem; font-weight: 700; }
.redful-news-meta i.icon { margin-right: .25rem; }
.redful-news-language { margin-left: auto; padding: .2rem .48rem; border: 1px solid currentColor; border-radius: 999px; color: var(--redful-red); font-size: .68rem; letter-spacing: .08em; }
.redful-news-card h3 { margin: .85rem 0 .55rem; font-size: 1.28rem; line-height: 1.25; }
.redful-news-card h3 a { color: var(--redful-ink); }
.redful-news-card p { margin: 0 0 1.2rem; color: var(--redful-muted); line-height: 1.62; }
.redful-news-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--redful-ink) 8%, transparent); }
.redful-news-author { display: flex; align-items: center; min-width: 0; gap: .5rem; color: var(--redful-muted); font-size: .82rem; font-weight: 700; }
.redful-news-author img { width: 25px; height: 25px; border-radius: 7px; object-fit: cover; }
.redful-news-read { white-space: nowrap; color: var(--redful-red); font-size: .82rem; font-weight: 800; }
.redful-article-language-help p { margin-top: .45rem !important; }
.redful-article-tabs .ui.label { margin-right: .45rem; }
.redful-topic-language { margin-left: .5rem !important; vertical-align: middle !important; color: var(--redful-red) !important; }

.redful-page-header { margin: 2rem 0 4rem; padding: clamp(2rem, 6vw, 5rem); border-radius: 24px; background: var(--redful-surface); box-shadow: 0 15px 45px rgba(16,24,40,.1); }
.redful-page-header .redful-online-total { color: var(--redful-ink); }
.redful-build-list { display: grid; gap: 2rem; margin-bottom: 5rem; }
.redful-build-feature { display: grid; grid-template-columns: minmax(300px, 45%) 1fr; min-height: 420px; overflow: hidden; border-radius: 24px; background: var(--redful-surface); box-shadow: 0 18px 50px rgba(16,24,40,.12); }
.redful-build-feature:nth-child(even) { grid-template-columns: 1fr minmax(300px,45%); }
.redful-build-feature:nth-child(even) .redful-build-feature-image { order: 2; }
.redful-build-feature-image { background: linear-gradient(145deg, color-mix(in srgb, var(--build-accent) 40%, transparent), transparent), var(--build-image, url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg')) center/cover no-repeat, #18202c; }
.redful-build-feature-body { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
.redful-build-feature-body h2 { margin: .4rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4rem); }
.redful-build-feature-body p { color: var(--redful-muted); font-size: 1.12rem; line-height: 1.65; }

.redful-detail-hero { min-height: 620px; border-radius: 0 0 28px 28px; }
.redful-detail-copy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5rem; font-size: 1.15rem; line-height: 1.75; }
.redful-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.redful-feature-grid span { padding: .9rem 1rem; border-radius: 10px; background: rgba(127,127,127,.09); font-weight: 700; }

.redful-launcher-steps { display: grid; gap: 1rem; margin: 0 0 4rem; counter-reset: step; }
.redful-launcher-steps > article { display: grid; grid-template-columns: 66px 1fr; gap: 1.5rem; padding: 2rem; border-radius: 18px; background: var(--redful-surface); box-shadow: 0 12px 35px rgba(16,24,40,.09); }
.redful-launcher-steps > article > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #fff; background: var(--redful-red); font-size: 1.5rem; font-weight: 900; }
.redful-launcher-steps h3 { margin-top: .2rem; font-size: 1.55rem; }
.redful-downloads { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.redful-downloads .button small { display: block; margin-top: .25rem; opacity: .78; font-size: .72rem; }
.redful-security { justify-content: flex-start; background: linear-gradient(135deg, rgba(31,176,102,.13), rgba(255,255,255,.86)); }
.redful-security > .icon { color: #1fb066; font-size: 4rem; }
.redful-developer { margin-bottom: 4rem; padding: 1.6rem 2rem; border-radius: 14px; background: var(--redful-surface); box-shadow: 0 10px 30px rgba(16,24,40,.08); }
.redful-developer summary { cursor: pointer; font-size: 1.2rem; font-weight: 900; }
.redful-developer code { overflow-wrap: anywhere; }

.redful-account-page { max-width: 980px; }
.redful-account-page .redful-page-header { margin-bottom: 2rem; }
.redful-account-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2rem; align-items: center; margin-bottom: 5rem; padding: clamp(1.6rem, 5vw, 3rem); border: 1px solid rgba(127,127,127,.14); border-radius: 24px; background: var(--redful-surface); box-shadow: 0 18px 50px rgba(16,24,40,.12); }
.redful-account-icon { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(145deg, var(--redful-red), #a31225); box-shadow: 0 14px 30px rgba(239,63,73,.25); }
.redful-account-icon .icon { margin: 0; font-size: 3rem; }
.redful-account-content h2 { margin: .25rem 0 .65rem; color: var(--redful-ink); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.redful-account-content p { max-width: 650px; margin-bottom: 1.5rem; color: var(--redful-muted); font-size: 1.05rem; line-height: 1.6; }
.redful-account-label { display: block; margin-top: 1.2rem; color: var(--redful-muted); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.redful-account-status { display: inline-flex; align-items: center; gap: .55rem; color: #18a95b; font-size: .9rem; font-weight: 900; }
.redful-account-status span { width: .65rem; height: .65rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(24,169,91,.12); }
.redful-account-status.pending { color: #d18b13; }
.redful-account-status.pending span { box-shadow: 0 0 0 5px rgba(209,139,19,.12); }
.redful-account-card-pending .redful-account-icon { background: linear-gradient(145deg, #d89a2b, #a9630c); box-shadow: 0 14px 30px rgba(209,139,19,.22); }
.redful-discord-account-card .redful-account-icon { background: linear-gradient(145deg, #5865f2, #3644c5); box-shadow: 0 14px 30px rgba(88,101,242,.25); }
.redful-discord-identity { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.redful-discord-identity img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; border: 2px solid rgba(88,101,242,.5); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.redful-discord-identity h2, .redful-discord-identity p { margin: 0; }

.redful-shop-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.redful-shop-balance { min-width: min(100%, 300px); padding: 1rem 1.15rem; border: 1px solid rgba(239,63,73,.25); border-radius: 16px; background: rgba(239,63,73,.08); }
.redful-shop-balance-title { display: block; margin-bottom: .7rem; color: var(--redful-muted); font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.redful-shop-balance-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.redful-shop-balance-value { min-width: 0; padding: .65rem .75rem; border: 1px solid rgba(127,127,127,.18); border-radius: 11px; background: var(--redful-surface); }
.redful-shop-balance-value span { display: block; color: var(--redful-muted); font-size: .68rem; font-weight: 900; letter-spacing: .11em; line-height: 1; }
.redful-shop-balance-value strong { display: block; margin-top: .3rem; color: var(--redful-ink); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.15; white-space: nowrap; }
.redful-promo-redeem { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 0 2rem; padding: 1.6rem 2rem; border: 1px solid rgba(239,63,73,.22); border-radius: 18px; background: linear-gradient(135deg, rgba(239,63,73,.12), var(--redful-surface)); box-shadow: 0 12px 35px rgba(16,24,40,.09); }
.redful-promo-redeem h2 { margin: .25rem 0; }
.redful-promo-redeem p { margin: 0; color: var(--redful-muted); }
.redful-promo-redeem form { display: grid; min-width: min(100%, 520px); gap: .65rem; grid-template-columns: 1fr 1.25fr auto; }
.redful-promo-redeem input, .redful-promo-redeem select { min-width: 0; padding: .85rem 1rem; border: 1px solid rgba(127,127,127,.25); border-radius: 9px; color: var(--redful-ink); background: var(--redful-surface); }
.redful-promo-redeem input { text-transform: uppercase; }
.redful-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-bottom: 4rem; }
.redful-shop-categories { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 2rem; }
.redful-shop-categories a { padding: .7rem 1rem; border: 1px solid rgba(127,127,127,.22); border-radius: 999px; color: var(--redful-ink); background: var(--redful-surface); font-weight: 800; transition: border-color .2s ease, transform .2s ease; }
.redful-shop-categories a:hover { border-color: var(--redful-red); color: var(--redful-red); transform: translateY(-1px); }
.redful-shop-section { scroll-margin-top: 90px; }
.redful-shop-section-title { margin: 2.5rem 0 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(127,127,127,.18); }
.redful-shop-section-title h2 { margin: .25rem 0 0; font-size: clamp(2rem,4vw,3rem); }
.redful-product-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid rgba(127,127,127,.14); border-radius: 20px; background: var(--redful-surface); box-shadow: 0 15px 40px rgba(16,24,40,.11); }
.redful-product-image { position: relative; min-height: 190px; background: linear-gradient(145deg, rgba(239,63,73,.62), rgba(13,20,33,.92)), url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') center/cover no-repeat; }
.redful-product-image span { position: absolute; right: 1rem; bottom: 1rem; padding: .55rem .85rem; border-radius: 9px; color: #fff; background: #ef3f49; font-size: 1.05rem; font-weight: 900; box-shadow: 0 8px 20px rgba(239,63,73,.3); }
.redful-product-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.redful-product-body h2 { margin: 0 0 .65rem; font-size: 1.7rem; }
.redful-product-body p, .redful-product-body details { color: var(--redful-muted); line-height: 1.55; }
.redful-product-body details { margin: .5rem 0 1.25rem; }
.redful-product-body summary { cursor: pointer; color: var(--redful-ink); font-weight: 800; }
.redful-product-buy { display: grid; gap: .7rem; margin-top: auto; }
.redful-product-buy label { margin: .15rem 0 -.35rem; color: var(--redful-muted); font-size: .82rem; font-weight: 700; }
.redful-product-buy input, .redful-product-buy select { width: 100%; padding: .85rem 1rem; border: 1px solid rgba(127,127,127,.25); border-radius: 9px; color: var(--redful-ink); background: var(--redful-surface); }
.redful-product-build { padding: .7rem .85rem; border-radius: 9px; color: var(--redful-muted); background: rgba(127,127,127,.08); }
.redful-order-history { margin-bottom: 5rem; padding: 2rem; border-radius: 20px; background: var(--redful-surface); box-shadow: 0 15px 40px rgba(16,24,40,.1); }

#profile-privileges { padding: clamp(1rem, 3vw, 1.75rem); }
.redful-privileges-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.redful-privileges-heading h3.ui.header { margin: .2rem 0 0; }
.redful-privilege-count.ui.label { min-width: 2.4rem; border-radius: 999px; color: #fff; background: #ef3f49; text-align: center; }
.redful-privilege-list { display: grid; gap: .8rem; }
.redful-privilege-card { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(145px,auto) auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid rgba(239,63,73,.22); border-radius: 14px; background: linear-gradient(105deg, rgba(239,63,73,.08), rgba(255,255,255,.75)); box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.redful-privilege-card.is-expired { border-color: rgba(127,127,127,.18); background: rgba(127,127,127,.06); filter: saturate(.55); }
.redful-privilege-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#ef3f49,#a31225); box-shadow: 0 8px 18px rgba(239,63,73,.22); }
.redful-privilege-mark .icon { margin: 0; font-size: 1.25rem; }
.redful-privilege-name { margin-bottom: .3rem; font-size: 1.05rem; font-weight: 900; }
.redful-privilege-server { color: rgba(0,0,0,.55); font-size: .88rem; font-weight: 700; }
.redful-privilege-time { display: flex; align-items: flex-end; flex-direction: column; line-height: 1.25; }
.redful-privilege-time strong { font-size: .95rem; }
.redful-privilege-time span { margin-top: .22rem; color: rgba(0,0,0,.48); font-size: .76rem; }
.redful-privilege-state { padding: .42rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.redful-privilege-state.is-active { color: #148847; background: rgba(31,176,102,.14); }
.redful-privilege-state.is-expired { color: #777; background: rgba(127,127,127,.14); }
.redful-privilege-empty { display: grid; min-height: 190px; place-items: center; align-content: center; gap: .55rem; padding: 2rem; border: 1px dashed rgba(127,127,127,.28); border-radius: 14px; color: rgba(0,0,0,.48); text-align: center; }
.redful-privilege-empty .icon { margin: 0; color: rgba(239,63,73,.5); font-size: 2.5rem; }
.redful-privilege-empty strong { color: rgba(0,0,0,.78); font-size: 1.1rem; }
.redful-privilege-empty span { max-width: 480px; }

body.dark .redful-privilege-card { color: #f5f7fb; border-color: rgba(239,63,73,.28); background: linear-gradient(105deg, rgba(239,63,73,.12), rgba(27,31,38,.94)); box-shadow: none; }
body.dark .redful-privilege-card.is-expired { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
body.dark .redful-privilege-server,
body.dark .redful-privilege-time span { color: rgba(255,255,255,.58); }
body.dark .redful-privilege-empty { color: rgba(255,255,255,.52); border-color: rgba(255,255,255,.14); }
body.dark .redful-privilege-empty strong { color: #f5f7fb; }

.redful-texture-message { max-width: 1280px; margin: 0 auto 1rem !important; }
.redful-character-studio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(1.4rem, 3vw, 2.5rem); max-width: 1280px; margin: 0 auto 1.4rem; padding: clamp(1rem, 2.4vw, 1.7rem); overflow: hidden; border: 1px solid rgba(127,127,127,.16); border-radius: 26px; background: linear-gradient(135deg, var(--redful-surface), rgba(239,63,73,.055)); box-shadow: 0 22px 65px rgba(16,24,40,.14); }
.redful-character-stage { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: radial-gradient(circle at 50% 23%, rgba(239,63,73,.3), transparent 38%), radial-gradient(circle at 78% 78%, rgba(41,121,255,.19), transparent 42%), linear-gradient(145deg, #121a28, #070b12); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.redful-skin-viewer, .redful-viewer-empty { position: relative; min-height: 480px; }
.redful-skin-viewer canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; outline: none; cursor: grab; touch-action: none; transition: opacity .32s ease; }
.redful-skin-viewer canvas:active { cursor: grabbing; }
.redful-skin-viewer canvas:focus-visible { box-shadow: inset 0 0 0 3px rgba(239,63,73,.85); }
.redful-skin-viewer.is-ready canvas { opacity: 1; }
.redful-viewer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .75rem; color: rgba(255,255,255,.72); font-weight: 800; letter-spacing: .02em; }
.redful-viewer-loading span { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.18); border-top-color: #ef3f49; border-radius: 50%; animation: redful-viewer-spin .8s linear infinite; }
.redful-skin-viewer.is-ready .redful-viewer-loading, .redful-skin-viewer.is-fallback .redful-viewer-loading { display: none; }
.redful-viewer-toolbar { position: absolute; z-index: 3; top: 1rem; right: 1rem; display: flex; gap: .45rem; opacity: 0; transform: translateY(-5px); transition: opacity .2s ease, transform .2s ease; }
.redful-skin-viewer.is-ready .redful-viewer-toolbar { opacity: 1; transform: none; }
.redful-viewer-toolbar button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; color: rgba(255,255,255,.7); background: rgba(9,14,22,.68); box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.redful-viewer-toolbar button:hover, .redful-viewer-toolbar button:focus-visible, .redful-viewer-toolbar button.is-active { color: #fff; border-color: rgba(239,63,73,.7); background: rgba(239,63,73,.82); transform: translateY(-1px); outline: none; }
.redful-viewer-toolbar .icon { margin: 0; }
.redful-viewer-hint { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; left: 1rem; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: rgba(255,255,255,.72); background: rgba(9,14,22,.64); font-size: .79rem; font-weight: 800; text-align: center; opacity: 0; transform: translateY(5px); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.redful-skin-viewer.is-ready .redful-viewer-hint { opacity: 1; transform: none; }
.redful-viewer-hint .icon { margin-right: .45rem; }
.redful-viewer-hint-touch { display: none; }
.redful-viewer-fallback { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 1rem; padding: 2rem; color: rgba(255,255,255,.75); text-align: center; }
.redful-viewer-fallback img { width: min(210px, 60%); max-height: 260px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 18px 32px rgba(0,0,0,.3)); }
.redful-skin-viewer.is-fallback .redful-viewer-fallback { display: grid; }
.redful-viewer-empty { display: grid; place-items: center; align-content: center; gap: 1rem; padding: 2rem; color: rgba(255,255,255,.65); text-align: center; }
.redful-viewer-empty .icon { margin: 0; color: rgba(239,63,73,.72); font-size: 6rem; }
.redful-character-summary { display: flex; min-width: 0; justify-content: center; flex-direction: column; padding: clamp(.5rem, 2vw, 1.25rem); }
.redful-character-summary h2 { margin: .5rem 0 .8rem; font-size: clamp(2.2rem, 4vw, 4rem); line-height: .98; }
.redful-character-summary > p { margin: 0; color: var(--redful-muted); font-size: 1.02rem; line-height: 1.65; }
.redful-character-badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.35rem; }
.redful-character-badges span { padding: .55rem .72rem; border: 1px solid rgba(127,127,127,.17); border-radius: 999px; color: var(--redful-muted); background: rgba(127,127,127,.07); font-size: .78rem; font-weight: 900; }
.redful-character-badges span.is-ready { color: #1fb066; border-color: rgba(31,176,102,.25); background: rgba(31,176,102,.1); }
.redful-character-badges span.is-empty { opacity: .68; }
.redful-character-badges .icon { margin-right: .35rem; }
.redful-texture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 1280px; margin: 0 auto 5rem; }
.redful-skin-card { display: grid; gap: 1.5rem; align-items: start; margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(127,127,127,.14); border-radius: 24px; background: var(--redful-surface); box-shadow: 0 18px 50px rgba(16,24,40,.12); }
.redful-texture-settings-card { display: block; }
.redful-skin-content h2 { margin: .4rem 0 .7rem; }
.redful-skin-content > p { color: var(--redful-muted); line-height: 1.55; }
.redful-skin-form { display: grid; grid-template-columns: minmax(150px,1fr) minmax(100px,.55fr) auto; gap: .75rem; align-items: end; margin-top: 1.4rem; }
.redful-cape-form { grid-template-columns: minmax(180px,1fr) auto; }
.redful-skin-form label span { display: block; margin-bottom: .45rem; color: var(--redful-muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.redful-skin-form input[type=file], .redful-skin-form select { width: 100%; min-height: 44px; padding: .7rem; border: 1px solid rgba(127,127,127,.25); border-radius: 8px; color: var(--redful-ink); background: rgba(127,127,127,.08); }
.redful-skin-delete { margin-top: .8rem; }

@keyframes redful-viewer-spin { to { transform: rotate(360deg); } }

body.dark .redful-landing,
body.dark .redful-page { --redful-ink: #f5f7fb; --redful-muted: #aeb7c6; --redful-surface: rgba(27,31,38,.95); color: var(--redful-ink); }
body.dark .redful-build-body h3,
body.dark .redful-section h2,
body.dark .redful-page h1,
body.dark .redful-page h2,
body.dark .redful-page h3 { color: #f5f7fb; }
body.dark .redful-security { background: linear-gradient(135deg, rgba(31,176,102,.18), rgba(27,31,38,.96)); }

@media (max-width: 900px) {
    .redful-build-grid, .redful-news-grid { grid-template-columns: 1fr 1fr; }
    .redful-shop-grid { grid-template-columns: 1fr 1fr; }
    .redful-character-studio { grid-template-columns: 1fr; }
    .redful-character-summary { padding: 1rem .5rem .5rem; }
    .redful-texture-grid { grid-template-columns: 1fr; }
    .redful-skin-form { grid-template-columns: 1fr; }
    .redful-build-feature, .redful-build-feature:nth-child(even) { grid-template-columns: 1fr; }
    .redful-build-feature:nth-child(even) .redful-build-feature-image { order: 0; }
    .redful-build-feature-image { min-height: 300px; }
    .redful-detail-copy { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .redful-hero { min-height: 620px; }
    .redful-project-signature { grid-template-columns: 58px 1fr; margin-top: -1.5rem; padding: 1.35rem; }
    .redful-project-mark { width: 58px; height: 58px; border-radius: 16px; font-size: 2rem; }
    .redful-project-link { grid-column: 1 / -1; }
    .redful-hero-content, .redful-detail-content { width: calc(100% - 2rem); }
    .redful-build-grid, .redful-news-grid, .redful-gallery { grid-template-columns: 1fr; }
    .redful-shop-grid, .redful-skin-card { grid-template-columns: 1fr; }
    .redful-shop-header { align-items: stretch; flex-direction: column; }
    .redful-shop-balance { width: 100%; }
    .redful-promo-redeem { align-items: stretch; flex-direction: column; }
    .redful-promo-redeem form { grid-template-columns: 1fr; }
    .redful-gallery-item:first-child { grid-column: auto; grid-row: auto; }
    .redful-section-heading, .redful-community, .redful-security { align-items: flex-start; flex-direction: column; }
    .redful-feature-grid { grid-template-columns: 1fr; }
    .redful-launcher-steps > article { grid-template-columns: 1fr; }
    .redful-account-card { grid-template-columns: 1fr; }
    .redful-account-icon { width: 82px; height: 82px; border-radius: 19px; }
    .redful-account-icon .icon { font-size: 2.2rem; }
    .redful-character-studio { margin-right: .75rem; margin-left: .75rem; padding: .75rem; border-radius: 20px; }
    .redful-character-stage, .redful-skin-viewer, .redful-viewer-empty { min-height: 380px; }
    .redful-viewer-toolbar { top: .7rem; right: .7rem; }
    .redful-viewer-toolbar button { width: 38px; height: 38px; }
    .redful-viewer-hint { right: .7rem; bottom: .7rem; left: .7rem; font-size: .7rem; }
    .redful-privilege-card { grid-template-columns: 44px minmax(0,1fr); }
    .redful-privilege-mark { width: 44px; height: 44px; }
    .redful-privilege-time { align-items: flex-start; grid-column: 2; }
    .redful-privilege-state { grid-column: 2; justify-self: start; }
}

/* Keep account CTAs inside the Redful product palette even when Semantic UI
   loads its stock blue primary-button rule later in the cascade. */
#navbar .right.menu .ui.primary.button,
#navbar .right.menu .ui.primary.icon.button {
    color: #fff !important;
    border-color: #ee4650 !important;
    background: linear-gradient(135deg,#e8323d,#ae1f29) !important;
    box-shadow: 0 9px 24px rgba(218,42,53,.2) !important;
}
#navbar .right.menu .ui.primary.button:hover,
#navbar .right.menu .ui.primary.icon.button:hover {
    background: linear-gradient(135deg,#f04650,#c22631) !important;
}

/* Redful production UX v1.1: releases, pack landing, support, status and legal. */
.redful-download-hero,.redful-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem}.redful-download-hero{margin:2rem 0 1.25rem;padding:1.5rem 1.7rem;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(135deg,rgba(229,57,53,.13),rgba(16,25,37,.78))}.redful-download-hero h2,.redful-section-title h2{margin:.25rem 0 0}.redful-download-hero p{max-width:760px;margin:.45rem 0 0;color:var(--rf-text,#9eabbc)}
.redful-release-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:2.5rem}.redful-release-card{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:0;padding:1.35rem;border:1px solid rgba(255,255,255,.11);border-radius:20px;background:linear-gradient(160deg,rgba(26,33,43,.97),rgba(12,18,26,.97));box-shadow:0 18px 50px rgba(0,0,0,.18);transition:transform .2s,border-color .2s,box-shadow .2s}.redful-release-card:hover,.redful-release-card.is-recommended{transform:translateY(-3px);border-color:rgba(239,58,65,.75);box-shadow:0 20px 60px rgba(213,37,45,.16)}.redful-release-recommended{display:none;margin:-1.35rem -1.35rem 0;padding:.55rem 1rem;border-radius:19px 19px 0 0;background:linear-gradient(90deg,#d92730,#f04b50);color:#fff;font-size:.78rem;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:.04em}.redful-release-card.is-recommended .redful-release-recommended{display:block}.redful-release-heading{display:flex;align-items:center;gap:.8rem}.redful-release-heading>i{color:#ef3a41}.redful-release-heading h2{margin:0}.redful-release-heading span{display:block;margin-top:.25rem;color:#91a0b2;font-size:.84rem}.redful-release-card dl{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:0}.redful-release-card dl div{padding:.7rem;border-radius:10px;background:rgba(255,255,255,.045)}.redful-release-card dt{color:#8794a5;font-size:.73rem;text-transform:uppercase}.redful-release-card dd{margin:.2rem 0 0;color:#fff;font-weight:700}.redful-release-trust{display:grid;gap:.45rem;color:#a9b5c4;font-size:.78rem}.redful-release-trust .healthy{color:#41d278}.redful-release-trust .warning{color:#f7bd57}.redful-release-details summary{cursor:pointer;color:#c9d2de;font-weight:700}.redful-release-details p{color:#9ca9b9}.redful-hash-row{display:flex;align-items:center;gap:.35rem;margin-top:.75rem}.redful-hash-row code{min-width:0;overflow:hidden;padding:.55rem;border-radius:8px;background:#070b11;color:#a9e3bb;font-size:.68rem;text-overflow:ellipsis}.redful-hash-row button{flex:0 0 auto;padding:.55rem;border:0;border-radius:8px;background:#293343;color:#fff;cursor:pointer}.redful-hash-row button.copied{background:#218b52}
.redful-pack-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.redful-pack-fact{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.15rem .8rem;padding:1.15rem;border:1px solid rgba(255,255,255,.1);border-radius:15px;background:rgba(21,28,37,.84)}.redful-pack-fact>i{grid-row:1/3;color:var(--build-accent,#ef3a41);font-size:1.5rem}.redful-pack-fact span{color:#8f9cad;font-size:.76rem;text-transform:uppercase}.redful-pack-fact strong{color:#f4f7fa}.redful-pack-video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:18px;background:#080c12}.redful-pack-information{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.redful-changelog article,.redful-faq details{margin-top:.7rem;padding:1rem;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(18,25,34,.82)}.redful-changelog article>div{display:flex;justify-content:space-between;gap:1rem}.redful-changelog time{color:#8e9aaa}.redful-changelog p,.redful-faq p{margin:.55rem 0 0;color:#9eabba}.redful-faq summary{cursor:pointer;color:#f4f7fa;font-weight:750}
.redful-component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.redful-component-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.85rem;padding:1rem;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(18,25,34,.86)}.redful-component-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:rgba(49,210,120,.12);color:#41d278}.redful-component-card div{display:grid}.redful-component-card small{margin-top:.2rem;color:#8996a6}.redful-component-state{color:#41d278;font-weight:750}.redful-component-card[data-status=degraded] .redful-component-state,.redful-component-card[data-status=maintenance] .redful-component-state{color:#f7bd57}.redful-component-card[data-status=outage] .redful-component-state{color:#f05b61}.redful-status-components,.redful-status-worlds,.redful-incidents,.redful-kb{margin:2.2rem 0}.redful-status-summary{display:flex;align-items:center;gap:.65rem;margin-top:1rem}.redful-status-pulse,.redful-status-light{display:inline-block;width:10px;height:10px;border-radius:50%;background:#41d278;box-shadow:0 0 0 5px rgba(65,210,120,.1)}.redful-status-header[data-status=major_outage] .redful-status-pulse{background:#ef3a41}.redful-status-header[data-status=degraded] .redful-status-pulse{background:#f7bd57}.redful-status-row{display:grid;grid-template-columns:auto minmax(170px,2fr) minmax(100px,1fr) minmax(80px,.7fr) auto auto;align-items:center;gap:1rem;margin-top:.65rem;padding:1rem 1.15rem;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(18,25,34,.86);color:inherit}.redful-status-row:hover{border-color:var(--build-accent);transform:translateX(2px)}.redful-status-light.offline{background:#788391;box-shadow:none}.redful-status-name{display:grid}.redful-status-name small,.redful-status-row>span>small{color:#8996a6}.redful-status-row>span:not(.redful-status-name){display:grid}.redful-status-state.online{color:#41d278}.redful-status-state.offline{color:#8f9aaa}.redful-incident,.redful-no-incidents{margin-top:.75rem;padding:1.1rem;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(18,25,34,.86)}.redful-incident-head,.redful-no-incidents{display:flex;justify-content:space-between;gap:1rem}.redful-incident-head>div{display:grid}.redful-incident-head span,.redful-no-incidents span{color:#8996a6}.redful-incident-badge{align-self:start;padding:.3rem .55rem;border-radius:30px;background:rgba(239,58,65,.14);color:#ff7e83!important}.redful-no-incidents{align-items:center;justify-content:flex-start;color:#41d278}.redful-no-incidents>div{display:grid}
.redful-support-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:2rem 0}.redful-support-card{display:grid;gap:.4rem;min-height:150px;padding:1.2rem;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(18,25,34,.86);color:inherit}.redful-support-card:hover{border-color:#ef3a41;transform:translateY(-2px)}.redful-support-card>i{color:#ef3a41;font-size:1.5rem}.redful-support-card span{color:#919dae}.redful-kb-search{display:flex;align-items:center;gap:.6rem;max-width:540px;margin:1rem 0;padding:.8rem 1rem;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(10,16,23,.9)}.redful-kb-search input{width:100%;border:0;outline:0;background:transparent;color:#fff}.redful-kb-article{margin:.65rem 0;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(18,25,34,.86)}.redful-kb-article summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:1rem;cursor:pointer}.redful-kb-article summary>div{display:grid}.redful-kb-article small{color:#8996a6}.redful-kb-code{padding:.32rem .55rem;border-radius:7px;background:rgba(239,58,65,.13);color:#ff676d;font-family:monospace;font-weight:800}.redful-kb-body{padding:0 1rem 1rem;color:#adb8c6;white-space:normal}.redful-diagnostic-handoff{display:grid;grid-template-columns:1fr minmax(260px,.6fr);align-items:center;gap:2rem;margin:2.5rem 0;padding:1.5rem;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:linear-gradient(120deg,rgba(229,57,53,.12),rgba(18,25,34,.9))}.redful-diagnostic-handoff form{display:grid;gap:.8rem}.redful-diagnostic-handoff label{display:grid;gap:.5rem;color:#dfe5ec}
.redful-legal-page{max-width:1050px!important}.redful-legal-nav{position:sticky;top:74px;z-index:5;display:flex;gap:.35rem;margin:1.5rem 0;padding:.35rem;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(13,19,27,.94);backdrop-filter:blur(14px)}.redful-legal-nav a{padding:.7rem 1rem;border-radius:9px;color:#a9b3c0;font-weight:750}.redful-legal-nav a.active,.redful-legal-nav a:hover{background:#e63239;color:#fff}.redful-legal-content{display:grid;gap:.75rem;margin:1.5rem 0}.redful-legal-content article{padding:1.25rem 1.4rem;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(18,25,34,.86)}.redful-legal-content h2{margin:0 0 .5rem;font-size:1.2rem}.redful-legal-content p{margin:0;color:#a7b2c0;line-height:1.75}
body#page-login #redful-main-content,body#page-register #redful-main-content,body[id*=forgot] #redful-main-content{max-width:1120px;padding-top:3rem;padding-bottom:5rem}body#page-login .redful-auth-shell,body#page-register .redful-auth-shell,body[id*=forgot] .redful-auth-shell{position:relative}body#page-login .ui.segment,body#page-register .ui.segment,body[id*=forgot] .ui.segment{border:1px solid rgba(255,255,255,.1)!important;border-radius:20px!important;background:linear-gradient(150deg,rgba(25,32,42,.98),rgba(11,17,24,.98))!important;box-shadow:0 28px 80px rgba(0,0,0,.28)!important}body#page-login input,body#page-register input,body[id*=forgot] input{min-height:48px!important;border-radius:10px!important;background:rgba(5,10,16,.6)!important;color:#fff!important}.redful-password-guidance{display:flex;gap:.55rem;margin:.65rem 0;padding:.75rem;border-radius:10px;background:rgba(49,210,120,.08);color:#a9cbb7;font-size:.82rem}.redful-password-guidance i{color:#41d278}
body:not(.dark) .redful-release-card,body:not(.dark) .redful-pack-fact,body:not(.dark) .redful-component-card,body:not(.dark) .redful-status-row,body:not(.dark) .redful-incident,body:not(.dark) .redful-no-incidents,body:not(.dark) .redful-support-card,body:not(.dark) .redful-kb-article,body:not(.dark) .redful-legal-content article{border-color:#dce2e9;background:#fff;box-shadow:0 12px 35px rgba(25,35,48,.07)}body:not(.dark) .redful-release-heading h2,body:not(.dark) .redful-release-card dd,body:not(.dark) .redful-pack-fact strong,body:not(.dark) .redful-faq summary{color:#151b24}body:not(.dark) .redful-hash-row code{background:#edf2f6;color:#1c6942}body:not(.dark) .redful-download-hero{border-color:#e1e5ea;background:linear-gradient(135deg,#fff0f0,#f7f9fb)}body:not(.dark) .redful-legal-nav{border-color:#dde2e8;background:rgba(255,255,255,.94)}body:not(.dark) .redful-legal-content p{color:#536172}
@media(max-width:1000px){.redful-release-grid{grid-template-columns:1fr}.redful-support-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.redful-pack-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.redful-pack-information{grid-template-columns:1fr}.redful-component-grid{grid-template-columns:1fr}.redful-status-row{grid-template-columns:auto minmax(150px,1fr) auto}.redful-status-row>span:nth-of-type(3),.redful-status-row>span:nth-of-type(4){display:none}}
@media(max-width:640px){.redful-download-hero,.redful-section-title{align-items:flex-start;flex-direction:column}.redful-support-grid,.redful-pack-facts{grid-template-columns:1fr}.redful-diagnostic-handoff{grid-template-columns:1fr}.redful-status-row{gap:.65rem;padding:.85rem}.redful-status-name small{display:none}.redful-legal-nav{top:58px;overflow:auto}.redful-release-card dl{grid-template-columns:1fr}}

@media (hover: none) and (pointer: coarse) {
    .redful-skin-viewer canvas { touch-action: pan-y !important; }
    .redful-viewer-hint-desktop { display: none; }
    .redful-viewer-hint-touch { display: inline; }
}

/* Translucent site chrome. The fixed site artwork remains visible through the
 * navigation and footer while the blur keeps their controls readable. */
#navbar.ui.secondary.menu {
    position: relative;
    z-index: 20;
    background-color: rgba(12, 16, 23, .56) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 32px rgba(5, 8, 13, .14);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

#navbar.ui.secondary.menu .item,
#navbar.ui.secondary.menu .item > .icon,
#navbar.ui.secondary.menu .ui.label {
    color: rgba(255, 255, 255, .86) !important;
}

#navbar.ui.secondary.menu .item:hover,
#navbar.ui.secondary.menu .active.item {
    color: #fff !important;
    background-color: rgba(255, 255, 255, .09) !important;
}

#navbar.ui.secondary.menu .ui.default.button,
#navbar.ui.secondary.menu .ui.basic.button {
    color: #fff !important;
    background-color: rgba(255, 255, 255, .1) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16) !important;
}

#footer.ui.inverted.vertical.footer.segment {
    background-color: rgba(10, 14, 20, .58) !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 -14px 40px rgba(5, 8, 13, .12);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

@media (max-width: 768px) {
    #navbar.ui.secondary.menu {
        background-color: rgba(12, 16, 23, .68) !important;
        -webkit-backdrop-filter: blur(14px) saturate(125%);
        backdrop-filter: blur(14px) saturate(125%);
    }

    #footer.ui.inverted.vertical.footer.segment {
        background-color: rgba(10, 14, 20, .66) !important;
    }
}
/* Redful accessibility, locale controls and resilient motion defaults */
.redful-skip-link {
    position: fixed;
    z-index: 100000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    color: #fff;
    background: #b91c2b;
    border-radius: .45rem;
    transform: translateY(-160%);
    transition: transform .18s ease;
}
.redful-skip-link:focus { transform: translateY(0); color: #fff; }
.redful-language-switcher { gap: .35rem; font-weight: 800; letter-spacing: .04em; }
.redful-language-switcher a { opacity: .55; color: inherit; }
.redful-language-switcher a:hover,
.redful-language-switcher a:focus,
.redful-language-switcher a.active { opacity: 1; color: #ef3f49; }
.redful-footer-languages a { color: inherit; opacity: .72; }
.redful-footer-languages a.active { color: #fff; opacity: 1; font-weight: 700; }
.redful-toc-button { border: 0; background: transparent; cursor: pointer; }
.redful-primary.button:focus-visible,
.redful-card-cover:focus-visible,
.redful-project-link:focus-visible,
.redful-text-link:focus-visible,
.redful-language-switcher a:focus-visible,
#footer a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #b91c2b;
}
@media (max-width: 900px), (hover: none) {
    body, .ui.masthead { background-attachment: scroll !important; }
}
@media (max-width: 640px) {
    .redful-hero { min-height: min(620px, calc(100svh - 48px)); }
    .redful-hero h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Redful Production v2 — shared public product language from the approved
 * site/launcher/control-plane sketches. These declarations intentionally live
 * after the legacy template layer so every built-in NamelessMC page inherits
 * the same readable dark shell without coupling published pages to SiteBuilder. */
:root {
    --rf2-bg: #07090d;
    --rf2-panel: #0e1319;
    --rf2-panel-strong: #121820;
    --rf2-line: rgba(255,255,255,.1);
    --rf2-muted: #929ca9;
    --rf2-red: #e9323c;
    --rf2-red-bright: #ff4c55;
    --rf2-green: #36d275;
}

html { background: var(--rf2-bg); }
body, body.pushable, body.pushable > .pusher {
    background-attachment: scroll !important;
}
body.dark, body.dark.pushable, body.dark.pushable > .pusher {
    background-color: var(--rf2-bg) !important;
}
body.dark.pushable > .pusher {
    background-image: linear-gradient(rgba(7,9,13,.9),rgba(7,9,13,.94)),url('/uploads/template_banners/6a88a7729a0d09.31162748_qlkojpginmfhe.jpeg') !important;
}
#wrapper { margin-bottom: 0; }
#redful-main-content.ui.container { width: min(1480px,calc(100% - 2rem)) !important; }

#navbar.ui.secondary.menu {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: 66px;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(8,11,15,.92) !important;
    box-shadow: 0 12px 36px rgba(0,0,0,.16);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}
#navbar.ui.secondary.menu > .ui.container { width: min(1480px,calc(100% - 2rem)) !important; min-height: 66px; }
#navbar.ui.secondary.menu .item { min-height: 38px; margin: 0 .08rem; padding: .75rem .72rem; border-radius: 8px; color: rgba(255,255,255,.68) !important; font-size: .82rem; font-weight: 750; }
#navbar.ui.secondary.menu .item:hover,#navbar.ui.secondary.menu .item.active { color: #fff !important; background: rgba(255,255,255,.055) !important; }
#navbar.ui.secondary.menu .item.active::after { position: absolute; right: .8rem; bottom: 2px; left: .8rem; height: 2px; border-radius: 2px; background: var(--rf2-red); content: ''; }
#navbar .redful-wordmark { display: inline-flex !important; min-height: 50px !important; align-items: center; gap: .58rem; margin-right: 1rem; padding: .35rem .7rem .35rem 0 !important; }
#navbar .redful-wordmark::after { display: none; }
.redful-wordmark-mark { display: grid; width: 31px; height: 31px; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,76,85,.55); border-radius: 8px; color: #fff; background: linear-gradient(145deg,#f1434c,#97131c); box-shadow: 0 0 22px rgba(233,50,60,.2); font-size: 1.08rem; font-weight: 950; }
#navbar .redful-wordmark-text { color: #fff; font-size: 1.28rem; font-weight: 950; letter-spacing: -.065em; }
#navbar .redful-wordmark-text b { color: var(--rf2-red-bright); }
#navbar .redful-nav-cta { margin-left: .35rem !important; padding-right: 1rem !important; padding-left: 1rem !important; background: linear-gradient(135deg,#ee3c45,#b41d27) !important; box-shadow: 0 9px 25px rgba(233,50,60,.22); }

.redful-landing,.redful-page { color: #eef1f5; }
.redful-page { width: 100%; }
.redful-hero {
    min-height: min(620px,calc(100svh - 66px));
    margin-bottom: 0;
    border-radius: 0 0 24px 24px;
    background-position: center 54%;
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
.redful-hero-shade { background: linear-gradient(90deg,rgba(5,8,13,.97) 0%,rgba(5,8,13,.78) 44%,rgba(5,8,13,.22) 100%),radial-gradient(circle at 20% 25%,rgba(233,50,60,.22),transparent 44%); }
.redful-hero-stage { width: min(1480px,calc(100% - 3rem)); grid-template-columns: minmax(360px,.82fr) minmax(520px,1.18fr); gap: clamp(2rem,4vw,5rem); padding: 3.8rem 0 7rem; }
.redful-hero-stage .redful-hero-content h1 { max-width: 590px; margin-top: .55rem; font-size: clamp(3.3rem,5.5vw,5.3rem); line-height: .92; }
.redful-hero-stage .redful-hero-content p { max-width: 570px; color: rgba(255,255,255,.79); font-size: clamp(1rem,1.5vw,1.2rem); line-height: 1.55; }
.redful-kicker { color: var(--rf2-red-bright); font-size: .7rem; letter-spacing: .15em; }
.redful-actions .button { min-height: 48px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 8px !important; font-size: .94rem !important; }
.ui.redful-primary.button { background: linear-gradient(135deg,#ef3e47,#b41d27) !important; box-shadow: 0 12px 30px rgba(233,50,60,.28); }
.redful-hero-servers { padding: 1rem; border-radius: 15px; background: rgba(8,12,18,.84); }
.redful-hero-server-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.redful-hero-server { min-height: 208px; border-radius: 10px; background: rgba(17,23,31,.96); }
.redful-hero-server-image { min-height: 96px; }
.redful-hero-server-body { padding: .75rem .8rem; }
.redful-hero-server-body > strong { font-size: .92rem; text-transform: uppercase; }
.redful-benefits { width: min(1360px,calc(100% - 3rem)); margin: -4.3rem auto 3.4rem; gap: .6rem; }
.redful-benefits article { min-height: 72px; padding: .9rem 1rem; border-radius: 10px; background: rgba(13,18,25,.96); }
.redful-benefits article > i.icon { font-size: 1.25rem; }

.redful-project-signature,.redful-section,.redful-community,.redful-final-cta { width: min(1280px,calc(100% - 2rem)); }
.redful-project-signature { grid-template-columns: 58px minmax(0,1fr) auto; margin-bottom: 3.5rem; padding: 1.15rem 1.3rem; border-radius: 13px; background: linear-gradient(112deg,rgba(17,23,31,.98),rgba(23,29,39,.98)); }
.redful-project-mark { width: 58px; height: 58px; border-radius: 13px; font-size: 1.9rem; }
.redful-project-copy h2 { font-size: 1.45rem; }.redful-project-copy p { font-size: .9rem; }
.redful-section { margin-bottom: 4rem; }
.redful-section-heading h2,.redful-community h2,.redful-final-cta h2,.redful-page-header h1 { font-size: clamp(2rem,4vw,3.1rem); }
.redful-build-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.redful-build-card { min-height: 390px; border: 1px solid var(--rf2-line); border-radius: 13px; background: rgba(16,22,30,.97); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.redful-build-image { min-height: 170px; }.redful-build-body { padding: 1.1rem; border-top-width: 3px; }.redful-build-body h3 { margin: .3rem 0 .55rem; color: #fff; font-size: 1.35rem; }.redful-build-body p { color: var(--rf2-muted); font-size: .84rem; }
.redful-community,.redful-final-cta { border: 1px solid var(--rf2-line); border-radius: 15px; background: linear-gradient(135deg,#111720,#171e29); }
.redful-news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.redful-news-card { border-radius: 13px; background: rgba(16,22,30,.97); }

.redful-page-header { margin: 1.5rem 0 1rem; padding: 2rem 2.2rem; border: 1px solid var(--rf2-line); border-radius: 15px; color: #fff; background: radial-gradient(circle at 85% 15%,rgba(233,50,60,.16),transparent 35%),linear-gradient(145deg,#121821,#0c1118); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.redful-page-header h1 { color: #fff !important; }.redful-page-header p { max-width: 820px; color: var(--rf2-muted); font-size: 1rem; }
.redful-server-filters,.redful-shop-categories { position: sticky; z-index: 20; top: 76px; display: flex; gap: .35rem; margin: 0 0 1rem; padding: .4rem; overflow-x: auto; border: 1px solid var(--rf2-line); border-radius: 11px; background: rgba(9,13,18,.92); backdrop-filter: blur(15px); scrollbar-width: none; }
.redful-server-filters button,.redful-shop-categories a { flex: 0 0 auto; padding: .65rem .9rem; border: 0; border-radius: 7px; color: #8f99a6; background: transparent; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.redful-server-filters button.active,.redful-server-filters button:hover,.redful-shop-categories a:hover { color: #fff; background: linear-gradient(135deg,#e93740,#ad1b24); }
.redful-server-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-bottom: 4rem; }
.redful-server-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--rf2-line); border-radius: 13px; background: rgba(15,21,29,.97); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.redful-server-card[hidden] { display: none; }
.redful-server-card-image { position: relative; display: block; min-height: 190px; background: linear-gradient(180deg,transparent,rgba(7,10,15,.55)),var(--build-image) center/cover no-repeat; }
.redful-server-card-image span { position: absolute; top: .8rem; left: .8rem; padding: .35rem .55rem; border-radius: 6px; color: #fff; background: rgba(7,10,15,.78); font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }
.redful-server-card-body { display: flex; min-height: 235px; flex: 1; flex-direction: column; padding: 1rem; border-top: 3px solid var(--build-accent); }
.redful-server-card-title { display: flex; justify-content: space-between; gap: 1rem; }.redful-server-card-title > div { min-width: 0; }.redful-server-card-title h2 { overflow: hidden; margin: 0; color: #fff; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }.redful-server-card-title > div > span { color: var(--rf2-muted); font-size: .7rem; }.redful-server-card-version { align-self: flex-start; padding: .25rem .42rem; border-radius: 5px; color: #d9dee4; background: rgba(255,255,255,.06); font-size: .66rem; }
.redful-server-card-body > p { display: -webkit-box; margin: .8rem 0; overflow: hidden; color: var(--rf2-muted); font-size: .8rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.redful-server-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: auto; }.redful-server-card-actions .button { margin: 0 !important; border-radius: 7px !important; font-size: .76rem !important; }

.redful-shop-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.redful-shop-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.redful-product-card { border: 1px solid var(--rf2-line); border-radius: 13px; background: rgba(15,21,29,.97); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.redful-product-image { min-height: 180px; }.redful-product-body { padding: 1rem; }.redful-product-body h3 { color: #fff; font-size: 1.1rem; }.redful-product-body p,.redful-product-body details { color: var(--rf2-muted); font-size: .78rem; }

@media (max-width: 1180px) {
    .redful-build-grid,.redful-shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .redful-server-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .redful-hero-stage { grid-template-columns: 1fr; padding: 3.5rem 0 7rem; }
    .redful-hero-servers { width: 100%; }
    .redful-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    #redful-main-content.ui.container { width: 100% !important; margin: 0 !important; padding: 0 1rem !important; }
    #navbar.ui.secondary.menu > .ui.container { width: 100% !important; margin: 0 !important; padding: 0 .75rem !important; }
    #navbar .redful-wordmark { display: none !important; }
    #navbar.ui.secondary.menu > .ui.container::after { content: 'REDFUL'; position: absolute; left: 50%; color: #fff; font-size: 1.05rem; font-weight: 950; letter-spacing: -.05em; transform: translateX(-50%); }
    .redful-hero,.redful-detail-hero { width: auto !important; max-width: none !important; margin-right: -1rem !important; margin-left: -1rem !important; border-radius: 0 0 18px 18px; }
    .redful-hero-stage { width: 100%; max-width: 100%; padding: 3rem 1rem 6.5rem; }
    .redful-hero-stage .redful-hero-content h1 { font-size: clamp(2.45rem,12vw,3.4rem); overflow-wrap: normal; }
    .redful-hero-stage .redful-hero-content p { max-width: 100%; font-size: .96rem; overflow-wrap: break-word; }
    .redful-actions { display: grid; grid-template-columns: 1fr; }.redful-actions .button { width: 100%; margin: 0 !important; }
    .redful-hero-server-grid { grid-template-columns: 1fr; }.redful-hero-server { min-height: 190px; }.redful-hero-server-image { min-height: 105px; }
    .redful-benefits { width: 100%; margin-top: -5.3rem; grid-template-columns: 1fr; }.redful-benefits article:nth-child(n+3) { display: none; }
    .redful-project-signature,.redful-section,.redful-community,.redful-final-cta { width: 100%; }
    .redful-project-signature { grid-template-columns: 48px 1fr; gap: .8rem; }.redful-project-mark { width: 48px; height: 48px; }.redful-project-link { grid-column: 1/-1; }.redful-project-copy p { font-size: .82rem; }
    .redful-build-grid,.redful-news-grid,.redful-server-catalog,.redful-shop-grid { grid-template-columns: 1fr; }
    .redful-page-header { margin-top: 1rem; padding: 1.35rem; }.redful-page-header h1 { font-size: 2.25rem; }.redful-page-header p { font-size: .9rem; }
    .redful-shop-header { align-items: flex-start; flex-direction: column; }.redful-shop-balance { width: 100%; }
    .redful-server-filters,.redful-shop-categories { top: 70px; margin-right: -.25rem; margin-left: -.25rem; }
}

/* Redful product shell — unified with the desktop launcher. */
#navbar.ui.secondary.menu > .ui.container { min-height: 64px; }
#navbar .redful-wordmark {
    margin-right: 1.1rem;
    padding-right: 1rem !important;
    color: #fff !important;
    font-size: 1.7rem !important;
    font-weight: 950 !important;
    letter-spacing: -.06em;
}
#navbar .redful-wordmark span { color: var(--redful-red); }
#navbar .redful-wordmark:hover { background: transparent !important; transform: translateY(-1px); }

.redful-hero { min-height: min(650px, calc(100svh - 64px)); }
.redful-hero-stage {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1360px, calc(100% - 3rem));
    margin: 0 auto;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 6rem);
    padding: 4.5rem 0;
}
.redful-hero-stage .redful-hero-content { width: auto; margin: 0; padding: 0; }
.redful-hero-stage .redful-hero-content h1 { max-width: 650px; font-size: clamp(3.25rem, 6vw, 5.7rem); }
.redful-hero-stage .redful-hero-content p { max-width: 610px; }
.redful-hero-servers {
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(7,11,18,.72);
    box-shadow: 0 28px 70px rgba(0,0,0,.36);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
}
.redful-hero-servers-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.redful-hero-servers-head strong { font-size: 1rem; letter-spacing: .04em; }
.redful-hero-servers-head a { color: rgba(255,255,255,.74); font-size: .82rem; font-weight: 700; }
.redful-hero-servers-head a:hover { color: #fff; }
.redful-hero-server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.redful-hero-server {
    display: flex;
    min-width: 0;
    min-height: 235px;
    overflow: hidden;
    flex-direction: column;
    color: #fff;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(19,24,33,.94);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.redful-hero-server:hover { color: #fff; transform: translateY(-3px); border-color: color-mix(in srgb, var(--build-accent) 70%, #fff); box-shadow: 0 16px 34px rgba(0,0,0,.3); }
.redful-hero-server-image {
    display: block;
    min-height: 112px;
    background: linear-gradient(180deg, rgba(3,7,12,.04), rgba(3,7,12,.48)), var(--build-image, var(--redful-hero-image)) center/cover no-repeat;
}
.redful-hero-server-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: .9rem 1rem; }
.redful-hero-server-body > strong { overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.redful-hero-server-body > small { display: -webkit-box; min-height: 2.7em; margin-top: .42rem; overflow: hidden; color: rgba(255,255,255,.63); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.redful-hero-server-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: .7rem; color: rgba(255,255,255,.68); font-size: .76rem; }
.redful-hero-server-meta .online { color: #39d572; }
.redful-hero-server-meta .offline { color: #9ca3af; }
.redful-hero-server-meta .circle.icon { margin-right: .28rem; font-size: .55rem; }
.redful-hero-server-empty { grid-column: 1 / -1; margin: 2rem 0; color: rgba(255,255,255,.65); text-align: center; }
.redful-benefits {
    position: relative;
    z-index: 4;
    display: grid;
    width: min(1360px, calc(100% - 3rem));
    margin: -5.7rem auto 4.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
.redful-benefits article {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .9rem;
    padding: 1.05rem 1.15rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(13,18,26,.9);
    box-shadow: 0 16px 38px rgba(0,0,0,.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.redful-benefits article > i.icon { margin: 0; color: var(--redful-red); font-size: 1.5rem; }
.redful-benefits article div { display: flex; min-width: 0; flex-direction: column; gap: .25rem; }
.redful-benefits article strong { font-size: .91rem; }
.redful-benefits article span { overflow: hidden; color: rgba(255,255,255,.58); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
    .redful-hero-stage { grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: 2rem; }
    .redful-hero-stage .redful-hero-content h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
    .redful-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    #navbar .redful-wordmark { margin-right: auto; }
    .redful-hero { min-height: auto; }
    .redful-hero-stage { grid-template-columns: 1fr; padding: 5rem 0 8rem; }
    .redful-hero-servers { width: 100%; }
    .redful-benefits { margin-top: -6.4rem; }
}
@media (max-width: 580px) {
    html, body, .pusher, #wrapper, #redful-main-content, .redful-landing { max-width: 100vw !important; overflow-x: hidden !important; }
    .redful-hero-stage, .redful-hero-stage *, .redful-benefits, .redful-benefits * { box-sizing: border-box; }
    .redful-hero-stage { width: calc(100% - 2rem); padding-top: 3.5rem; }
    .redful-hero-server-grid, .redful-benefits { grid-template-columns: 1fr; }
    .redful-benefits { width: calc(100% - 2rem); }
    .redful-benefits article:nth-child(n+3) { display: none; }
    #navbar.ui.secondary.menu .right.menu > .ui.primary.button { display: none !important; }
    #navbar.ui.secondary.menu > .ui.container { width: 100% !important; margin: 0 !important; padding-right: .6rem !important; padding-left: .6rem !important; }
    .redful-hero-stage > *, .redful-hero-servers, .redful-hero-server-grid { min-width: 0; }
    .redful-hero-stage { max-width: calc(100vw - 2rem) !important; }
    .redful-hero-servers, .redful-hero-server, .redful-hero-content { width: 100% !important; max-width: 100% !important; }
    .redful-hero p, .redful-hero-server-body small { overflow-wrap: anywhere; }
    .redful-hero-servers-head a { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #navbar.ui.secondary.menu > .ui.container::after { content: 'REDFUL'; position: absolute; left: 50%; color: #fff; font-size: 1.15rem; font-weight: 950; letter-spacing: -.05em; transform: translateX(-50%); }
}

.redful-status-list { display: grid; gap: .8rem; margin: -1.5rem 0 5rem; }
.redful-status-row {
    display: grid;
    grid-template-columns: 12px minmax(240px, 1fr) minmax(110px, .22fr) minmax(110px, .22fr) auto 18px;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.3rem;
    color: var(--redful-ink);
    border: 1px solid color-mix(in srgb, var(--redful-ink) 9%, transparent);
    border-left: 3px solid var(--build-accent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--redful-surface) 96%, transparent);
    box-shadow: 0 12px 30px rgba(3,8,20,.1);
    transition: transform .18s ease, border-color .18s ease;
}
.redful-status-row:hover { color: var(--redful-ink); transform: translateX(4px); border-color: color-mix(in srgb, var(--build-accent) 55%, transparent); }
.redful-status-light { width: 10px; height: 10px; border-radius: 50%; background: #8992a2; }
.redful-status-light.online { background: #29ce68; box-shadow: 0 0 0 5px rgba(41,206,104,.12); }
.redful-status-name, .redful-status-row > span:not(.redful-status-light) { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.redful-status-row small { overflow: hidden; color: var(--redful-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.redful-status-state { display: inline-flex !important; padding: .38rem .65rem; color: #8992a2; border-radius: 999px; background: rgba(137,146,162,.1); font-size: .76rem; font-weight: 800; }
.redful-status-state.online { color: #18a95b; background: rgba(24,169,91,.1); }
.redful-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: -1.5rem 0 5rem; }
.redful-support-card { display: grid; grid-template-columns: 52px 1fr; gap: .25rem 1rem; padding: 1.5rem; color: var(--redful-ink); border: 1px solid color-mix(in srgb, var(--redful-ink) 9%, transparent); border-radius: 16px; background: var(--redful-surface); box-shadow: 0 14px 36px rgba(3,8,20,.1); }
.redful-support-card:hover { color: var(--redful-ink); border-color: color-mix(in srgb, var(--redful-red) 55%, transparent); transform: translateY(-3px); }
.redful-support-card > i.icon { grid-row: span 2; align-self: center; margin: 0; color: var(--redful-red); font-size: 2rem; }
.redful-support-card strong { font-size: 1.08rem; }
.redful-support-card span { color: var(--redful-muted); }
.redful-news-page .redful-news-grid { margin: -1.5rem 0 5rem; }
@media (max-width: 720px) {
    .redful-status-row { grid-template-columns: 10px 1fr auto; gap: .8rem; }
    .redful-status-row > span:nth-child(3), .redful-status-row > span:nth-child(4), .redful-status-row > i { display: none; }
    .redful-support-grid { grid-template-columns: 1fr; }
}

/* Typed visual page-builder blocks. All class suffixes and colour variables
 * are generated from server-side allowlists; no user CSS reaches this sheet. */
@font-face {
    font-family: 'Redful Minecraft';
    src: url('/modules/Redful%20Integration/assets/vendor/skinview3d/minecraft.woff2') format('woff2');
    font-display: swap;
}

.redful-custom-blocks {
    display: grid;
    width: 100%;
    gap: 0;
    margin: 0 auto;
}
.redful-custom-block {
    --rf-title-color-effective: var(--rf-title-color, var(--redful-ink));
    --rf-text-color-effective: var(--rf-text-color, var(--redful-muted));
    --rf-accent-color-effective: var(--rf-accent-color, var(--redful-red));
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    color: var(--rf-text-color-effective);
    overflow: visible;
}
.redful-custom-block-inner { position: relative; z-index: 1; border-radius: inherit; }
.redful-custom-block h2 {
    margin: 0 0 .75rem;
    color: var(--rf-title-color-effective) !important;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}
.redful-custom-block p {
    max-width: 76ch;
    margin: 0;
    color: var(--rf-text-color-effective);
    line-height: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.redful-custom-block p strong { color: inherit; font-weight: 800; }
.redful-custom-block p em { color: inherit; font-style: italic; }
.redful-custom-code-html { margin-top: 1rem; }
.redful-custom-eyebrow {
    display: block;
    margin-bottom: .7rem;
    color: var(--rf-accent-color-effective);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rf-width-narrow { max-width: 760px; }
.rf-width-normal { max-width: 1120px; }
.rf-width-wide { max-width: 1380px; }
.rf-width-full { width: 100%; max-width: none; }
.rf-space-none { margin-top: 0; margin-bottom: 0; padding: 0; }
.rf-space-sm { margin-top: .8rem; margin-bottom: .8rem; padding: clamp(.9rem, 2vw, 1.25rem); }
.rf-space-md { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: clamp(1.35rem, 3vw, 2.25rem); }
.rf-space-lg { margin-top: 2.4rem; margin-bottom: 2.4rem; padding: clamp(1.8rem, 4vw, 3.5rem); }
.rf-space-xl { margin-top: 3.5rem; margin-bottom: 3.5rem; padding: clamp(2.4rem, 6vw, 5rem); }
.rf-radius-none { border-radius: 0; }
.rf-radius-sm { border-radius: 10px; }
.rf-radius-md { border-radius: 18px; }
.rf-radius-lg { border-radius: 28px; }
.rf-radius-pill { border-radius: 999px; }
.rf-theme-transparent { background: var(--rf-background-color, transparent); }
.rf-theme-surface { background: var(--rf-background-color, var(--redful-surface)); }
.rf-theme-muted { background: var(--rf-background-color, rgba(127, 127, 127, .09)); }
.rf-theme-dark { --rf-title-color-effective: var(--rf-title-color, #fff); --rf-text-color-effective: var(--rf-text-color, #cbd2de); background: var(--rf-background-color, #151b26); }
.rf-theme-accent { --rf-title-color-effective: var(--rf-title-color, #fff); --rf-text-color-effective: var(--rf-text-color, rgba(255,255,255,.86)); background: var(--rf-background-color, linear-gradient(135deg, var(--rf-accent-color-effective), #a3162a)); }
.rf-border-subtle { border: 1px solid rgba(127, 127, 127, .2); }
.rf-border-accent { border: 2px solid var(--rf-accent-color-effective); }
.rf-shadow-soft { box-shadow: 0 16px 44px rgba(12, 18, 28, .12); }
.rf-shadow-strong { box-shadow: 0 28px 80px rgba(8, 13, 22, .23); }

.rf-font-site { font-family: inherit; }
.rf-font-modern { font-family: Inter, Lato, 'Helvetica Neue', Arial, sans-serif; }
.rf-font-minecraft { font-family: 'Redful Minecraft', monospace; }
.rf-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.rf-font-mono { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; }
.rf-weight-400 { font-weight: 400; }
.rf-weight-500 { font-weight: 500; }
.rf-weight-600 { font-weight: 600; }
.rf-weight-700 { font-weight: 700; }
.rf-weight-800 { font-weight: 800; }
.rf-weight-900 { font-weight: 900; }
.rf-align-left { text-align: left; }
.rf-align-center { text-align: center; }
.rf-align-right { text-align: right; }
.rf-align-center p { margin-right: auto; margin-left: auto; }
.rf-align-right p { margin-left: auto; }
.rf-line-tight { line-height: 1.25; }
.rf-line-normal { line-height: 1.6; }
.rf-line-relaxed { line-height: 1.9; }
.rf-letter-tight { letter-spacing: -.025em; }
.rf-letter-normal { letter-spacing: normal; }
.rf-letter-wide { letter-spacing: .065em; }
.rf-title-sm h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.rf-title-md h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.rf-title-lg h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.rf-title-xl h2 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.rf-title-display h2 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.045em; }
.rf-text-sm p, .rf-text-sm figcaption, .rf-text-sm blockquote { font-size: .9rem; }
.rf-text-md p, .rf-text-md figcaption, .rf-text-md blockquote { font-size: 1.05rem; }
.rf-text-lg p, .rf-text-lg figcaption, .rf-text-lg blockquote { font-size: 1.25rem; }
.rf-text-xl p, .rf-text-xl figcaption, .rf-text-xl blockquote { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.rf-italic { font-style: italic; }
.rf-underline { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.rf-uppercase { text-transform: uppercase; }

.redful-custom-image { overflow: hidden; }
.redful-custom-image figure { margin: 0; border-radius: inherit; }
.redful-custom-block img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.redful-custom-image figure img {
    height: auto;
    max-height: min(78vh, 900px);
    background: rgba(127,127,127,.06);
}
.rf-fit-cover img { object-fit: cover; }
.rf-fit-contain img { object-fit: contain; background: rgba(127,127,127,.08); }
.rf-ratio-square img, .rf-ratio-square .redful-custom-media-image { aspect-ratio: 1; }
.rf-ratio-4x3 img, .rf-ratio-4x3 .redful-custom-media-image { aspect-ratio: 4 / 3; }
.rf-ratio-16x9 img, .rf-ratio-16x9 .redful-custom-media-image { aspect-ratio: 16 / 9; }
.rf-ratio-wide img, .rf-ratio-wide .redful-custom-media-image { aspect-ratio: 21 / 9; }
.redful-custom-image figcaption { margin-top: .7rem; color: var(--rf-text-color-effective); opacity: .82; }

.redful-custom-media, .redful-custom-card .redful-custom-media {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(1.4rem, 4vw, 4rem);
    align-items: center;
}
.redful-custom-card .redful-custom-media { padding: 0; }
.redful-custom-media.is-text-only { grid-template-columns: 1fr; }
.redful-custom-media-image { min-height: 240px; overflow: hidden; border-radius: 18px; }
.rf-radius-none .redful-custom-media-image { border-radius: 0; }
.rf-radius-sm .redful-custom-media-image { border-radius: 10px; }
.rf-radius-md .redful-custom-media-image { border-radius: 18px; }
.rf-radius-lg .redful-custom-media-image { border-radius: 28px; }
.rf-radius-pill .redful-custom-media-image { border-radius: 999px; }
.rf-image-right .redful-custom-media-image { order: 2; }
.rf-image-top .redful-custom-media { grid-template-columns: 1fr; }
.rf-image-background { overflow: hidden; }
.rf-image-background .redful-custom-media { min-height: 420px; border-radius: inherit; }
.rf-image-background .redful-custom-media-image { position: absolute; z-index: -1; inset: 0; min-height: 100%; border-radius: inherit; }
.rf-image-background .redful-custom-media-image::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(9,14,24,.9), rgba(9,14,24,.3)); }
.rf-image-background .redful-custom-copy { max-width: 680px; padding: clamp(2rem, 6vw, 5rem); }
.rf-image-background { --rf-title-color-effective: var(--rf-title-color, #fff); --rf-text-color-effective: var(--rf-text-color, #d9e0eb); }
.rf-image-background.rf-no-image { --rf-title-color-effective: var(--rf-title-color, var(--redful-ink)); --rf-text-color-effective: var(--rf-text-color, var(--redful-muted)); overflow: visible; background: var(--rf-background-color, var(--redful-surface)); }
.rf-image-background.rf-no-image .redful-custom-media { min-height: 0; }
.redful-custom-copy { min-width: 0; }
.redful-custom-button {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: .9rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    background: var(--rf-accent-color-effective);
    font-style: normal;
    font-weight: 900;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.redful-custom-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px color-mix(in srgb, var(--rf-accent-color-effective) 35%, transparent); }
.redful-custom-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.redful-custom-button:focus-visible { outline: 3px solid var(--rf-accent-color-effective); outline-offset: 4px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--rf-accent-color-effective) 22%, transparent); }
.rf-button-outline .redful-custom-button { color: var(--rf-accent-color-effective); background: transparent; border-color: currentColor; }
.rf-button-outline .redful-custom-button:hover { color: var(--rf-accent-color-effective); }
.rf-button-ghost .redful-custom-button { padding-right: .2rem; padding-left: .2rem; color: var(--rf-accent-color-effective); background: transparent; }

.redful-custom-quote blockquote { margin: 0; padding-left: 1.3em; border-left: 5px solid var(--rf-accent-color-effective); color: var(--rf-title-color-effective); }
.redful-custom-quote blockquote p { color: inherit; font-size: clamp(1.35rem, 3vw, 2.25rem); font-weight: inherit; line-height: inherit; }
.redful-custom-quote cite { display: block; margin-top: 1rem; color: var(--rf-text-color-effective); font-size: .9rem; font-style: normal; }
.redful-custom-divider { padding-top: 0; padding-bottom: 0; }
.redful-custom-divider hr { height: 1px; margin: 0; border: 0; background: linear-gradient(90deg, transparent, var(--rf-accent-color-effective), transparent); }
.redful-custom-block.redful-custom-spacer { margin-top: 0; margin-bottom: 0; padding: 0; }
.redful-custom-spacer .redful-custom-spacer { display: block; height: 2rem; }
.redful-custom-spacer.rf-spacer-sm .redful-custom-spacer { height: 1rem; }
.redful-custom-spacer.rf-spacer-lg .redful-custom-spacer { height: 4rem; }
.redful-custom-spacer.rf-spacer-xl .redful-custom-spacer { height: 7rem; }

.redful-custom-page-header { margin-bottom: 1.5rem; }
.redful-custom-page > .redful-custom-blocks { margin-bottom: 4rem; }

/* SiteBuilder v2 blocks and live data bindings. */
.redful-custom-richtext > :first-child { margin-top: 0; }
.redful-custom-richtext > :last-child { margin-bottom: 0; }
.redful-custom-richtext ul,
.redful-custom-richtext ol { margin: .8rem 0; padding-left: 1.45rem; }
.redful-custom-richtext li + li { margin-top: .35rem; }
.redful-custom-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.redful-custom-data-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: .9rem; min-height: 94px; padding: .8rem; border: 1px solid rgba(148,163,184,.22); border-radius: 14px; color: inherit; background: color-mix(in srgb, var(--rf-surface, #111827) 88%, transparent); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.redful-custom-data-card:hover { border-color: var(--rf-accent-color, #e63946); color: inherit; box-shadow: 0 12px 30px rgba(0,0,0,.14); transform: translateY(-2px); }
.redful-custom-data-card img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; }
.redful-custom-data-card span,
.redful-custom-data-card strong,
.redful-custom-data-card small,
.redful-custom-data-card em { display: block; min-width: 0; }
.redful-custom-data-card small { margin-top: .35rem; opacity: .72; }
.redful-custom-data-card em { margin-top: .45rem; color: var(--rf-accent-color, #e63946); font-size: .75rem; font-style: normal; font-weight: 800; }
.redful-custom-video { width: 100%; max-height: 72vh; margin-top: 1rem; border-radius: inherit; background: #05070b; }
.rf-desktop-25 { width: 25%; } .rf-desktop-33 { width: 33.333%; } .rf-desktop-50 { width: 50%; } .rf-desktop-66 { width: 66.666%; } .rf-desktop-75 { width: 75%; } .rf-desktop-100 { width: 100%; }
.rf-desktop_hidden { display: none !important; }
@media (max-width: 991px) {
    .rf-tablet-50 { width: 50%; } .rf-tablet-100 { width: 100%; }
    .rf-tablet_hidden { display: none !important; }
}
@media (max-width: 640px) {
    .rf-mobile-100 { width: 100%; }
    .rf-mobile_hidden { display: none !important; }
    .redful-custom-data-grid { grid-template-columns: 1fr; }
}
body.dark .rf-theme-surface { background: var(--rf-background-color, rgba(27,31,38,.95)); }
body.dark .rf-theme-muted { background: var(--rf-background-color, rgba(255,255,255,.065)); }

@media (max-width: 900px) {
    .redful-custom-media, .redful-custom-card .redful-custom-media { grid-template-columns: 1fr; }
    .rf-image-right .redful-custom-media-image { order: initial; }
    .rf-image-background .redful-custom-media { min-height: 360px; }
}
@media (max-width: 640px) {
    .redful-custom-block { max-width: calc(100% - 1.5rem); }
    .rf-width-full { max-width: 100%; border-radius: 0; }
    .rf-space-xl { margin-top: 2rem; margin-bottom: 2rem; padding: 2rem 1.15rem; }
    .rf-title-display h2 { font-size: clamp(2.6rem, 15vw, 4.3rem); }
    .redful-custom-media-image { min-height: 190px; }
}

/* Production v2 cascade seal: the original launcher-alignment rules below
 * the main theme remain for compatibility, while these final declarations are
 * the authoritative responsive geometry used by the public product. */
#navbar.ui.secondary.menu > .ui.container { width: min(1480px,calc(100% - 2rem)) !important; min-height: 66px; }
#navbar .redful-wordmark { display: inline-flex !important; align-items: center; gap: .58rem; }
#navbar .redful-wordmark > span.redful-wordmark-mark { display: grid; }
.redful-hero { min-height: min(620px,calc(100svh - 66px)); margin-bottom: 0; }
.redful-hero-stage { width: min(1480px,calc(100% - 3rem)); grid-template-columns: minmax(360px,.82fr) minmax(520px,1.18fr); gap: clamp(2rem,4vw,5rem); padding: 3.8rem 0 7rem; }
.redful-hero-stage .redful-hero-content h1 { max-width: 590px; font-size: clamp(3.3rem,5.5vw,5.3rem); line-height: .92; }
.redful-hero-servers { padding: 1rem; border-radius: 15px; background: rgba(8,12,18,.84); }
.redful-hero-server { min-height: 208px; border-radius: 10px; }.redful-hero-server-image { min-height: 96px; }
.redful-benefits { width: min(1360px,calc(100% - 3rem)); margin: -4.3rem auto 3.4rem; gap: .6rem; }
.redful-benefits article { min-height: 72px; padding: .9rem 1rem; border-radius: 10px; }
@media (max-width: 900px) {
    .redful-hero-stage { grid-template-columns: 1fr; padding: 3.5rem 0 7rem; }
}
@media (max-width: 700px) {
    html,body,.pusher,#wrapper,#redful-main-content,.redful-landing { max-width: 100% !important; }
    #redful-main-content.ui.container { width: 100% !important; margin: 0 !important; padding: 0 1rem !important; overflow-x: clip !important; }
    #navbar.ui.secondary.menu > .ui.container { width: 100% !important; margin: 0 !important; padding: 0 .75rem !important; }
    #navbar .redful-wordmark { display: none !important; }
    .redful-hero,.redful-detail-hero { width: auto !important; max-width: none !important; margin-right: -1rem !important; margin-left: -1rem !important; }
    .redful-hero-stage { width: 100% !important; max-width: 100% !important; grid-template-columns: minmax(0,1fr); padding: 3rem 1rem 6.5rem; }
    .redful-hero-stage > *,.redful-hero-stage .redful-hero-content,.redful-hero-servers,.redful-hero-server-grid,.redful-hero-server { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    .redful-hero-stage .redful-hero-content h1 { font-size: clamp(2.45rem,12vw,3.4rem); overflow-wrap: normal; }
    .redful-hero-server-grid { grid-template-columns: minmax(0,1fr); }
    .redful-benefits { width: 100%; grid-template-columns: minmax(0,1fr); }
}

/* Public P1 hardening: build covers, status states, forum contrast and nav. */
.redful-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.redful-detail-hero {
    background-color: #090e15;
    background-image:
        var(--build-image, var(--redful-hero-image, linear-gradient(transparent, transparent))),
        radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--build-accent, #e63946) 38%, transparent), transparent 34%),
        linear-gradient(135deg, #171f2b 0%, #0b1119 56%, color-mix(in srgb, var(--build-accent, #e63946) 22%, #090d13) 100%);
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat;
}

.redful-detail-hero .redful-detail-shade { z-index: 1; }
.redful-detail-fallback::before {
    position: absolute;
    z-index: 0;
    right: clamp(2rem, 9vw, 10rem);
    color: color-mix(in srgb, var(--build-accent, #e63946) 44%, transparent);
    content: 'R';
    font-size: clamp(14rem, 34vw, 32rem);
    font-weight: 950;
    line-height: .72;
    text-shadow: 0 0 80px color-mix(in srgb, var(--build-accent, #e63946) 28%, transparent);
    transform: rotate(-6deg);
    pointer-events: none;
}

.redful-component-card {
    --redful-status-color: #41d278;
    border-color: color-mix(in srgb, var(--redful-status-color) 28%, rgba(255,255,255,.09));
    box-shadow: inset 3px 0 0 var(--redful-status-color);
}
.redful-component-card .redful-component-icon {
    color: var(--redful-status-color);
    background: color-mix(in srgb, var(--redful-status-color) 13%, transparent);
}
.redful-component-card .redful-component-state { color: var(--redful-status-color); }
.redful-component-card[data-status='degraded'],
.redful-component-card[data-status='partial_outage'],
.redful-component-card[data-status='maintenance'] { --redful-status-color: #f7bd57; }
.redful-component-card[data-status='outage'],
.redful-component-card[data-status='major_outage'] { --redful-status-color: #f05b61; }
.redful-status-header[data-status='outage'] .redful-status-pulse,
.redful-status-header[data-status='major_outage'] .redful-status-pulse { background: #f05b61; box-shadow: 0 0 0 5px rgba(240,91,97,.13); }
.redful-status-header[data-status='degraded'] .redful-status-pulse,
.redful-status-header[data-status='partial_outage'] .redful-status-pulse,
.redful-status-header[data-status='maintenance'] .redful-status-pulse { background: #f7bd57; box-shadow: 0 0 0 5px rgba(247,189,87,.13); }

.redful-forum-page { padding: 1.25rem 0 4rem; }
.redful-forum-page #forum-index-header,
.redful-forum-page #forum-index { margin-right: 0; margin-left: 0; }
.redful-forum-page #redful-forum-title { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.redful-forum-page .ui.breadcrumb { color: var(--redful-muted, #9da9b8); }
.redful-forum-page .ui.breadcrumb a { color: inherit; }
body.dark .redful-forum-page,
body.dark .redful-forum-page .ui.header,
body.dark .redful-forum-page .ui.header a,
body.dark .redful-forum-page a.header { color: #f4f7fb !important; }
body.dark .redful-forum-page .description,
body.dark .redful-forum-page .meta,
body.dark .redful-forum-page .ui.breadcrumb,
body.dark .redful-forum-page .ui.list .item { color: #aab5c3 !important; }
body.dark .redful-forum-page .ui.segment {
    border: 1px solid rgba(148,163,184,.16) !important;
    background: linear-gradient(150deg, rgba(22,29,39,.96), rgba(10,15,22,.96)) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.22) !important;
}
body.dark .redful-forum-page .ui.divider { border-color: rgba(148,163,184,.16) !important; }
body.dark .redful-forum-page .ui.input > input {
    border: 1px solid rgba(148,163,184,.22) !important;
    background: rgba(6,10,16,.82) !important;
    color: #f4f7fb !important;
}
body.dark .redful-forum-page .ui.input > input::placeholder { color: #8f9bac; opacity: 1; }
.redful-forum-page .ui.input .ui.primary.button {
    color: #fff !important;
    background: linear-gradient(135deg, #ed3d47, #b51e28) !important;
}

#toc .redful-mobile-user-group > .header,
#toc .redful-mobile-user-action { color: #fff; }
#toc .redful-mobile-user-group > .header .icon,
#toc .redful-mobile-user-action .icon { color: #ef4650; }

@media (max-width: 1180px) {
    #navbar.ui.secondary.menu > .ui.container > a.item:not(.redful-wordmark),
    #navbar.ui.secondary.menu > .ui.container > .ui.dropdown.item {
        display: none !important;
    }
    #navbar.ui.secondary.menu > .ui.container > .redful-wordmark {
        display: inline-flex !important;
        min-width: 0;
        margin-right: 0 !important;
    }
    #navbar.ui.secondary.menu > .ui.container > .redful-toc-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: auto !important;
    }
    #navbar.ui.secondary.menu > .ui.container > .right.menu {
        display: flex !important;
        align-items: center;
        order: 3;
        margin-left: .5rem !important;
    }
    #navbar.ui.secondary.menu > .ui.container > .right.menu > .item,
    #navbar.ui.secondary.menu > .ui.container > .right.menu > .button,
    #navbar.ui.secondary.menu > .ui.container > .right.menu > .label {
        display: flex !important;
    }
}

@media (max-width: 900px) {
    #navbar .redful-language-switcher { display: none !important; }
}

@media (max-width: 760px) {
    #navbar.ui.secondary.menu > .ui.container::after { content: none !important; }
    #navbar.ui.secondary.menu > .ui.container > .right.menu { display: none !important; }
    #navbar.ui.secondary.menu > .ui.container > .redful-wordmark {
        display: inline-flex !important;
        max-width: calc(100% - 54px);
    }
    #navbar .redful-wordmark-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Keep the server-list action readable on narrow phones. An older rule
       constrained it to 74px and rendered “Смотреть в…”. */
    .redful-hero-servers-head a {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-size: .76rem;
    }
}

#navbar .redful-toc-button:focus-visible,
#toc a:focus-visible,
.redful-forum-page button:focus-visible,
.redful-forum-page input:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #b91c2b !important;
}
