/* HFE user.css — conservative consolidation, 2026-11-30
 * Original cascade order retained. Legacy compatibility retained.
 * Sections: legacy/theme; floating buttons/support; navigation; shared articles;
 * gameplay/combat; technical guides/room list; downloads; homepage/news;
 * manga/library/reader; character/troop guides; author; link archive.
 */

::selection,
::-moz-selection {
  background: #FF0099;
  color: black;
  text-shadow: none;
}

/* MangaD - Marti's article - START */
#HFIntroVideo {
    margin: auto;
    float: right;
    margin-left: 20px;
    margin-top: 13px;
}
@media only screen and (max-width: 800px) {
    #HFIntroVideo {
        float:initial;
        margin-left:auto;
        margin-top:auto;
        margin-bottom: 8px;
    }
}
/* MangaD - Marti's article - END */

/* MangaD - cookie consent */
.cc-trigger svg {
    filter: invert(100%) sepia(100%) saturate(0%) brightness(90%) contrast(100%);
}

/* MangaD - Marti's article - START */
    img.framed {
        box-shadow:-50px -50px 0 -40px var(--cassiopeia-color-primary),50px 50px 0 -40px var(--cassiopeia-color-primary);
    }
    figure.image-container,
    figure .thumb-slideshow {
        display:flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: fit-content;
        height: fit-content;
        margin: 0 auto;
    }
    figure.image-container {
        margin: 30px auto 10px;
    }
    figure .thumb-slideshow {
        margin-top: 30px;
    }
    figure.image-container a,
    figure .thumb-slideshow a {
        text-decoration: none;
        display: inline-flex;
    }
    .break-flex {
        flex-basis: 100%;
        height: 0;
    }
    figure.image-container figcaption {
        font-style: oblique;
        color: #f5f5f5;
        flex-basis: 100%;
        height: initial;
        margin-top: 12px;
    }
/* MangaD - Marti's article - END */

/* MangaD - Shadowbox - START */
#sb-body, #sb-loading {
    background-color: #510707;
}
/* MangaD - Shadowbox - END */

/* MangaD - JCE MediaBox - START */
.wf-mediabox-container {
    background-color:rgba(150,50,50,0.4); /* #510707 */
    color: #fff;
}
.wf-mediabox-caption,
.wf-mediabox-nav {
    background-color: transparent;
    color: #fff;
}
.wf-mediabox-close > svg, .wf-mediabox-prev > svg, .wf-mediabox-next > svg {
    fill: white;
}
[class^="wf-mediabox"], .wf-mediabox-numbers * {
    color: white;
}
/* MangaD - JCE MediaBox - END */

/* MangaD - Visitors - START */
.cw-mod-traffic-100 hr, 
.cw-mod-traffic-90 hr, 
.cw-mod-traffic-80 hr, 
.cw-mod-traffic-70 hr, 
.cw-mod-traffic-60 hr, 
.cw-mod-traffic-50 hr {
    margin: auto;
}
/* MangaD - Visitors - END */

/* MangaD - EXT Random Phrases - START */
    .ext_random_phrases {
        text-align:center;
    }
/* MangaD - EXT Random Phrases - END */

/* MangaD - HF-Empire - Gameplay - Mounts article - START */
    .expand {
        background-position: 0% 50%;
        background-repeat: no-repeat;
        cursor: pointer;
        display:flex;
        display: -webkit-flex;
        flex-wrap:wrap;
        -webkit-flex-wrap: wrap;
    }
    .expand.mount {
        padding-left: 310px;
        border: 1px solid;
    }
    .expand.mount h1 {
        font-size: 24px;
    }
    .expand:hover h1 {
        padding: 10px;
    }
    .expand h1 {
        padding: 0px;
        margin: 8px;
        transition: all 0.2s ease 0s;
    }
    .expand p {
        margin: 8px;
    }
    .expand div {
        display: none;
    }
    @media screen and (max-width:500px) {
        .expand.mount h1 {
            background: rgba(0,0,0,0.4);
            width: 100%;
            height: 100%;
            text-align: center;
            margin: 0;
            padding: 8px;
        }
        .expand.mount div {
            background: rgba(0,0,0,0.4);
        }
        .expand.mount {
            padding-left: 0px;
        }
    }
/*  MangaD - HF-Empire - Gameplay - Mounts article - END */

/* MangaD - HF-Empire - Gameplay - Troops article - START */
    .expand.move {
        padding-left: 100px;
        border: 0px solid;
        margin: 2px 0px;
        text-align: left;
    }
    .expand.move.active {
        height: auto !important;
        min-height: 40px !important;
        max-height: 300px !important;
    }
    .expand.move.active>div {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }
    .expand.move h1 {
        font-size: 13px;
        line-height: 39px;
    }
    .list_char, .character_pic {
        position:relative;
        width:90px;
        height:103px;
        /*margin-left:-10px;*/
        border:0px solid #900;
        display:inline-block;
        margin-left:-20px;
        background-size:90px 100px;
        background-repeat:no-repeat;
        background-position: center;
    }
    .list_char img, .character_pic img{
        position:absolute;
        left:0px;top:0px;
        -webkit-transition: opacity 0.4s ease-in-out;
        -o-transition: opacity 0.4s ease-in-out;
        -moz-transition: opacity 0.4s ease-in-out;
        transition: opacity 0.4s ease-in-out;
        cursor:pointer;
        box-shadow: #000 0em 0em 0em;/* Fixes weird bug with opacity transition */
        -moz-box-shadow: #000 0em 0em 0em;
        -webkit-box-shadow: #000 0em 0em 0em;
    }
    .list_char img {
        margin:0px !important;
    }
    .list_char img.top:hover, .character_pic img.top:hover {
        opacity:0;
    }
    .guide_bg {
        background-color:#FFDB97;
        background-image:url(/images/hf-empire/gameplay/character_guide/bg_left_top.png),
            url(/images/hf-empire/gameplay/character_guide/bg_right_top.png),
            url(/images/hf-empire/gameplay/character_guide/bg_left_bottom.png),
            url(/images/hf-empire/gameplay/character_guide/bg_right_bottom.png),
            url(/images/hf-empire/gameplay/character_guide/bg_top.png),
            url(/images/hf-empire/gameplay/character_guide/bg_left.png),
            url(/images/hf-empire/gameplay/character_guide/bg_right.png),
            url(/images/hf-empire/gameplay/character_guide/bg_bottom.png);
        background-position: left top, right top, left bottom, right bottom,
            center top, center left, center right, center bottom;
        background-repeat:no-repeat;
        background-size:auto, auto, auto, auto,
            100% 20px,20px 100%, 20px 100%, 100% 20px;
        box-shadow: inset 0px 0px 0px 8px #802F26;
        -moz-box-shadow: inset 0px 0px 0px 8px #802F26;
        -webkit-box-shadow: inset 0px 0px 0px 8px #802F26;
    }
    #character-guide, #character-guide p, #character-guide h1, #character-guide h2,
    #character-guide h3, #character-guide h4{
        color: #000;
        text-shadow: none;
        font-family: Arial, Helvetica, sans-serif;
    }
    .guide_arrow {
        width: 0;
        height: 0;
        display:inline-block;
        border-style: solid;
        cursor:pointer;
    }
    .guide_arrow:active {
        border-top-width:8px !important;
        border-bottom-width:8px !important;
        margin-top:2px;
    }
    .guide_link {
        color:#c53 !important;
        cursor:pointer;
    }
    .guide_link:hover {
        text-decoration:underline;
    }
    /* 2026 HFX GUIDE - START */
    .glowing-star {
        filter: brightness(0.9);
        transition: all 0.5s ease-in-out;
        animation: glowWave 3s infinite;
    }
    .glowing-star:nth-child(1) {
        animation-delay: 0s;
    }
    .glowing-star:nth-child(2) {
        animation-delay: 0.4s;
    }
    .glowing-star:nth-child(3) {
        animation-delay: 0.8s;
    }
    .glowing-star:nth-child(4) {
        animation-delay: 1.2s;
    }
    .glowing-star:nth-child(5) {
        animation-delay: 1.6s;
    }
    .glowing-star:nth-child(6) {
        animation-delay: 2s;
    }
    @keyframes glowWave {
        0%,
        100% {
            filter: brightness(0.9) drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
            transform: scale(1);
        }
        50% {
            filter: brightness(2) drop-shadow(0 0 25px rgba(255, 255, 255, 1));
            transform: scale(1.15);
        }
    }
    /* 2026 HFX GUIDE - END */
    #commands {
        background-image:url(/images/hf-empire/gameplay/troops/cmdmenu.png);
        width:222px;
        height:149px;
        border-radius: 15px;
        float:left;
        margin-right: 40px;
        margin-top: 27px;
        transition: all 0.2s;
        background-repeat: no-repeat;
        margin-bottom: 10px;
    }
    #commands:hover {
        background-color:rgba(255,255,255,0.2);
    }
    .commands_key {
        width: 38px;
        height: 31px;
        border-radius: 4px;
        position:absolute;
        cursor: pointer;
    }
    .commands_key:hover {
        background-color: rgba(155,155, 255, 0.2);
        box-shadow:0px 0px 5px 0px #ccf;
    }
    /* Don't show broken images */
    #character-guide img[src='/']{
        display: none;
    }
    #character-guide img {
        max-width:initial;
    }
    #character-guide #stats p {
        line-height: 1;
    }
    #character-guide #moves p {
        line-height: 1;
        margin:8px;
    }
    #character-guide p {
        margin: 13px 0 13px 0;
        line-height: 1.42857;
        font-size: 13px;
    }
/*  MangaD - HF-Empire - Gameplay - Troops article - END */

/*  MangaD - HF-Empire - Multiplayer - Room List article - START */
    #refreshroom, #playnow {
        padding: 12px !important;
        vertical-align: bottom;
        font-size: 0.95em;
    }

    .roomlist_title {
        text-shadow: 2px 2px 2px #930, -1px -1px 0 #520,1px -1px 0 #300, -1px 1px 0 #300,1px 1px 0 #300;
    }

    .roomlist_table {
        width: 99.3% !important;
        margin: 0 auto 20px !important;
        border-collapse: collapse !important;
        border: none;
        padding: 0px !important;
        border-radius: 0px !important;
        box-shadow:0 8px 6px -6px #622;
        vertical-align: initial !important;
        text-shadow: none !important;
        font-size: 1em;
    }

    .roomlist_header {
        background: #5d1010;
        border-width: 0px 0px 1px 0px !important;
        border-style: none !important;
        border-color: #200;
        font-size: 0.9em;
        padding: 7px;
        resize: horizontal;
        overflow: hidden;
        text-align: center;
    }

    .roomlist_footer {
        background: #5d1010;
        border-width: 1px 0px 0px 0px !important;
        border-style: none;
        border-color: #200;
        padding: 5px !important;
        line-height: 0.6em;
    }

    .roomlist_row1,
    .roomlist_row2 {
        border-style: none;
        border-width: 0px 0px 0px 1px !important;
        border-color: #200;
        padding:5px !important;
        text-align: center !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .roomlist_row1 {
        background-color: #410909;
    }
    .roomlist_row2 {
        background-color: #350404;
    }

    .roomlist_table tr:hover {
        background-color: #fe5a24 !important;
    }

    tr td.roomlist_row1:first-child, tr td.roomlist_row2:first-child {
        border-left: 0px none !important;
    }
    /*
    .roomlist_table tr:last-child td:first-child{
        border-bottom-left-radius: 3px;
    }
    .roomlist_table tr:last-child td:last-child{
        border-bottom-right-radius: 3px;
    }

    .roomlist_table tr:first-child th:first-child{
        border-top-left-radius: 3px;
    }
    .roomlist_table tr:first-child th:last-child{
        border-top-right-radius: 3px;
    }*/

/*  MangaD - HF-Empire - Multiplayer - Room List article - END */

/* MangaD - Download cards - START */
.download_card .card-img-overlay {
    height: 250px;
    position: relative;
    background: rgba(0,0,0,0.7);
}
.download_card .card-img-overlay p {
    margin-bottom: 50px;
}
.download_card {
    float: left;
    margin: 0 1rem 1rem 0;
    width: 400px;
    text-shadow: 2px 2px #000;
    overflow: hidden;

    /* Taken from .card */
    background-color: var(--cassiopeia-color-primary);
    --card-spacer-y: 1rem;
    --card-spacer-x: 1rem;
    --card-title-spacer-y: .5rem;
    --card-title-color: ;
    --card-subtitle-color: ;
    --card-border-width: var(--border-width);
    --card-border-color: #dfe3e7;
    --card-border-radius: var(--border-radius);
    --card-box-shadow: ;
    --card-inner-border-radius: calc(var(--border-radius) - (var(--border-width)));
    --card-cap-padding-y: .5rem;
    --card-cap-padding-x: 1rem;
    --card-cap-bg: rgba(var(--body-color-rgb),.03);
    --card-cap-color: ;
    --card-height: ;
    --card-color: ;
    --card-bg: var(--body-bg);
    --card-img-overlay-padding: 1rem;
    --card-group-margin: .5em;
    color: var(--body-color);
    word-wrap: break-word;
    border: var(--card-border-width)solid var(--card-border-color);
    border-radius: var(--card-border-radius);
    background-clip: border-box;
    flex-direction: column;
    min-width: 0;
    display: flex;
    position: relative;
    color: white;
}
.download_card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Center smaller images in the div */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.download_card .card-img-top {
    position: absolute;
    transition: transform 0.2s;
}
.download_card .card-img-overlay {
    transition: background 0.2s;
}
.download_card:hover .card-img-top {
    transform: scale(1.1);
}
.download_card:hover .card-img-overlay {
    background: rgba(0,0,0,0.6);
}
.download_card .badges {
    position: absolute;
    bottom: 15px;
    left: 16px;
}
.download_card .badge_version,
.download_card .badge_release_date {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    background-color: #fc9;
    text-shadow: none;
    color: black;
}
.download_card .badge_release_date {
    background-color: #f99;
}
.download_card > div > i.fa-android,
.download_card > div > i.fa-apple {
    font-size:45px;
    position:absolute;
    top:9px;
    right:19px;
}
@media only screen and (max-width: 432px) {
    .download_card {
        width: 100%;
    }
    .download_card .card-img-overlay {
        height: 100%;
    }
}
@media only screen and (max-width: 390px) {
    .download_card > div > i.fa-android,
    .download_card > div > i.fa-apple {
        position: initial;
    }
}
/* MangaD - Download cards - END */

/* MangaD - Main page download buttons - START */
@media only screen and (max-width: 546px) {
    .main_download_btn {
        width: min-content;
    }
}
@media only screen and (max-width: 293px) {
    .main_download_btn {
        width: 100%;
        margin-right:0;
    }
}
/* MangaD - Main page download buttons - END */

/* MangaD - Make Youtube videos mobile responsive - START */
/*https://stackoverflow.com/a/15844571/3049315*/
.videowrapper {
    float: none;
    clear: both;
    width: 100%;
    position: relative;
    padding-top: 25px;
    max-width: 560px;
    height: 315px;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 315px;
    max-width: 560px;
}
@media only screen and (max-width: 560px) {
    .videowrapper {
        height: 0;
        padding-bottom: 56.25%;
    }
}
/* MangaD - Make Youtube videos mobile responsive - END */

/* MangaD - responsive table - START */
@media only screen and (max-width: 560px) {
    .pre_responsive {
        overflow-x: auto;
        width: 70vw !important;
        box-sizing: border-box;
        margin: auto;
        margin-left: auto;
        margin-left: calc(50% - 15px);
        transform: translateX(-50%);
    }
}
/* MangaD - responsive table - END */

/* Cassiopeia theme */
:root {
  --cassiopeia-color-primary: #6A0E0E;
  --cassiopeia-color-link: #000;
  --cassiopeia-color-hover: #A40B0D;
}
html {
    scrollbar-color: rgba(255,255,255,0.4) #501011; /* Firefox */
}
/* Scrollbar for webkit */
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar-track-piece {
  background-color: #501011;
}
::-webkit-scrollbar-thumb {
  border-radius:5.5px;
  background-color: rgba(255,255,255,0.4);
  border-right:4.2px solid transparent;
  border-left:4.1px solid transparent;
  background-clip: padding-box;
}
.container-header .navbar-brand img {
    width: auto;
    min-width: auto;
    max-height: 50px;
    display: inline-block;
    transition: transform .2s;
}
.container-header .navbar-brand img:hover {
  transform: scale(1.1);
}
.grid-child.container-component {
    max-width: 1000px;
}
.article-info-term {
    display: none;
}


html, body {
    color:#fff;
    background:#200;
}
a, a:not([class]) {
    color: #fff;
}
a:hover, td a:hover,
a:not([class]):hover, td a:not([class]):hover {
    text-decoration: underline;
    color: #fc0;
}
.text-muted {
  color: #ccc !important;
}
.back-to-top-link {
  color: white;
  background-color: #640B0D;
  border: 1px solid #940;
}
.back-to-top-link:focus, .back-to-top-link:hover {
  background-color: #842B2D;
  border-color: #940;
}
.btn-secondary,
.page-link,
.page-item.active .page-link,
.page-item.disabled .page-link {
  border: 0px solid #940;
  background-color: #910;
}
.btn-secondary:focus, .btn-secondary:hover,
.page-link:focus, .page-link:hover {
  border-color: #940;
  color: white;
  background-color: #842B2D;
}
.page-item.disabled .page-link {
  background-color: #290000;
}
@media (min-width: 992px) {
    .container-header .mod-menu a, .container-header .mod-menu button {
      color: white!important;
    }
}
a:hover, td a:hover, a:not([class]):hover, td a:not([class]):hover {
  color: #fc0!important;
}
.metismenu.mod-menu .mm-toggler {
  color: #ccc;
}
.table {
  --table-bg: #350404;
  --table-accent-bg: #410909;
  --table-hover-color: white;
  --table-hover-bg: rgba(255,255,255,0.2);
  color: white;
  border: 0;
  border-color: #200;
}
.table-striped > tbody > tr:nth-of-type(2n+1) {
  color: white;
}
.table-bordered > :not(caption) > * > * {
  border-width: 0;
}
.table > :not(:last-child) > :last-child > * {
  border-bottom-color: #A40B0D;
}
.bg-info {
  background-color: #fc0 !important;
  color: #200;
}
dd {
  display: inline;
}
dt {
  margin-bottom: 7px;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  line-height: 1.5;
}
.breadcrumb {
  background-color: rgba(150,0,0,.3);

}
.breadcrumb-item.active {
  color: #fc0;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #ccc;
}
.footer .grid-child {
  padding: 1.5rem 1.5em;
}
img {
  display: block;
}
blockquote {
  margin: 0 0.1rem 1rem;
  background: rgba(125,0,0,0.1);
  padding: 15px 20px;
  box-shadow: 0px 0px 1px 0px #fff;
}
cite::before {
  content: "\2014\20";
}
.container-header .container-search {
  margin-top: 1.2rem;
}
@media (min-width: 992px) {
    .metismenu.mod-menu .metismenu-item.parent {
      padding: .1em 0.5em;
      font-size: 1.1rem;
      line-height: 1.5;
      margin: 0;
    }
    .metismenu.mod-menu .metismenu-item.parent .parent {
      padding: .5em 1em;
    }
    .metismenu.mod-menu .metismenu-item.parent > a {
      font-size: 0.95rem;
      text-transform: uppercase;
      font-weight: bold;
    }
    .metismenu.mod-menu {
      margin-left: 2rem;
    }
}
@media only screen and (min-width: 1100px) {
  .metismenu.mod-menu {
    margin: 0.35rem 3.7rem 0;
  }
}
.container-header .metismenu > li.active > a::after, .container-header .metismenu > li.active > button::before,
.container-header .metismenu > li > a:hover::after, .container-header .metismenu > li > button:hover::before {
  background: none;
}
@media (min-width: 992px) {
    .metismenu.mod-menu .mm-toggler::after {
      margin: 0 0 0 .35em;
      border-top: .35em solid;
      border-right: .35em solid transparent;
      border-left: .35em solid transparent;
    }
}
.metismenu.mod-menu .metismenu-item.active > a, .metismenu.mod-menu .metismenu-item.active > button,
.metismenu.mod-menu .metismenu-item > a:hover, .metismenu.mod-menu .metismenu-item > button:hover {
  text-decoration: none;
}
.offline-card {
    background-color: #400;
}

#system-message-container joomla-alert[type="message"], #system-message-container joomla-alert[type="success"],
#system-message-container joomla-alert[type="info"], #system-message-container joomla-alert[type="notice"],
.img-thumbnail, .form-control, .form-control:focus, .form-check-input, .dropdown-menu,
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link, .card, .accordion-button,
.accordion-item, .page-link, .page-item.disabled .page-link, .list-group-item,
.list-group-item.disabled, .list-group-item:disabled, .modal-content, .popover,
.carousel-indicators [data-bs-target], .offcanvas, .bg-body, .options-form,
.options-form > legend, .boxed .blog-item, .btn-secondary, .form-select[multiple],
[multiple].custom-select, .form-select[multiple] option, [multiple].custom-select option,
.form-select.form-select-success option, .form-select-success.custom-select option,
.form-select.custom-select-success option, .custom-select-success.custom-select option,
.form-select.form-select-danger option, .form-select-danger.custom-select option,
.form-select.custom-select-danger option, .custom-select-danger.custom-select option,
.form-select optgroup, .custom-select optgroup, .form-select option, .custom-select option,
.nav.nav-tabs, .metismenu.mod-menu .mm-collapse {
    background-color: #6A0E0E;
    background-color: var(--cassiopeia-color-primary);
    color: white;
}
.form-control, .form-control:focus {
  background-color: #222;
}
.form-control:disabled, .form-control[readonly] {
  background-color: #111;
  color: #888;
}
#system-message-container joomla-alert .joomla-alert--close,
#system-message-container joomla-alert .joomla-alert-button--close {
    color: #fff;
}
#system-message-container joomla-alert {
    color: white;
    background-color: #200;
    border: #200;
}
.form-select {
    color: black;
    filter: invert(100%);
}
.custom-select {
    background-color: #444;
    color: white;
    filter: none;
}

.main-top.card {
    border: none;
    background: none;
}
.table-striped-columns > :not(caption) > tr > :nth-child(2n), .table-striped > tbody > tr:nth-of-type(2n+1) > *, .table > :not(caption) > * > * {
  --table-accent-bg: var(--table-striped-bg);
  color: white;
}


/* MangaD - let pagination wrap on mobile screens */
@media (max-width: 600px) {
    .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        max-width: 100%;
    }
    .pagination .page-item {
        margin: 0;
    }
    .pagination .page-link {
        padding: 6px 9px;
        font-size: 0.8rem;
    }
}
/* MangaD - pagination end */

/* MangaD - HFE support module — Joomla wrappers - Start */
.card:has(#mod-custom152),
.card-body:has(#mod-custom152),
#mod-custom152 {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    perspective: none !important;
    contain: none !important;
    will-change: auto !important;
}

/* Preserve dismissal functionality */

.card:has(#mod-custom152)[hidden],
#mod-custom152[hidden],
#mod-custom152 .support-box[hidden] {
    display: none !important;
}
/* MangaD - HFE support module — Joomla wrappers - End */


/* MangaD - HFE support module — Floating buttons - Start */
.hfe-floating-button {
    /* Shared design settings */

    --button-size: 48px;
    --expanded-width: 188px;
    --icon-size: 25px;
    --button-background: rgba(35, 27, 26, 0.92);
    --button-accent: #AC221F;
    --button-border: rgba(172, 34, 31, 0.5);
    --button-icon-color: #EB9185;
    --button-duration: 0.3s;
    --button-gap: 12px;
    --button-offset: 24px;
    --button-index: 0;

    /* Position */

    position: fixed;
    left: calc(
        var(--button-offset) + env(safe-area-inset-left, 0px)
    );

    bottom: calc(
        var(--button-offset) +
        env(safe-area-inset-bottom, 0px) +
        var(--button-index) *
        (var(--button-size) + var(--button-gap))
    );

    z-index: 99998;

    /* Layout */

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;

    width: var(--button-size);
    height: var(--button-size);
    max-width: calc(
        100vw - var(--button-offset) * 2 -
        env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    );

    margin: 0;
    padding: 0;
    overflow: hidden;

    /* Appearance */

    appearance: none;
    -webkit-appearance: none;

    background: var(--button-background);
    border: 1px solid var(--button-border);
    border-radius: calc(var(--button-size) / 2);

    color: #FFFFFF;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Animation */

    transition:
        width var(--button-duration) ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================
   SHARED ICON
   ========================================= */

.hfe-floating-button .hfe-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 calc(var(--button-size) - 2px);
    height: 100%;

    color: var(--button-icon-color);

    transition: color 0.2s ease;
}

.hfe-floating-button .hfe-button-icon img,
.hfe-floating-button .hfe-button-icon svg {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    margin: 0;
    object-fit: contain;
}


/* =========================================
   SHARED LABEL
   ========================================= */

.hfe-floating-button .hfe-button-label {
    flex-shrink: 0;
    padding-right: 16px;

    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;

    opacity: 0;
    transform: translateX(-8px);

    transition:
        opacity 0.2s ease,
        transform var(--button-duration) ease;
}


/* =========================================
   HOVER STATE
   ========================================= */

@media (hover: hover) and (pointer: fine) {

    .hfe-floating-button:hover {
        width: var(--expanded-width);

        background: var(--button-accent);
        border-color: var(--button-accent);

        color: #FFFFFF;
        text-decoration: none;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    }

    .hfe-floating-button:hover .hfe-button-label {
        opacity: 1;
        transform: translateX(0);
    }

    .hfe-floating-button:hover .hfe-button-icon {
        color: #FFFFFF;
    }
}


/* =========================================
   KEYBOARD ACCESSIBILITY
   ========================================= */

.hfe-floating-button:focus-visible {
    width: var(--expanded-width);

    background: var(--button-accent);
    border-color: var(--button-accent);

    color: #FFFFFF;
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

.hfe-floating-button:focus-visible .hfe-button-label {
    opacity: 1;
    transform: translateX(0);
}

.hfe-floating-button:focus-visible .hfe-button-icon {
    color: #FFFFFF;
}


/* =========================================
   DISCORD BUTTON
   ========================================= */

#discord_link {
    --button-index: 1;
    --button-accent: #5865F2;
    --button-border: rgba(88, 101, 242, 0.5);
    --button-icon-color: #A5ADFF;
}

#discord_link_img {
    filter: brightness(0) saturate(100%)
            invert(65%) sepia(38%)
            saturate(1100%) hue-rotate(196deg);

    transition: filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    #discord_link:hover #discord_link_img {
        filter: brightness(0) invert(1);
    }
}

#discord_link:focus-visible #discord_link_img {
    filter: brightness(0) invert(1);
}


/* =========================================
   COOKIE SETTINGS BUTTON
   ========================================= */

#hfe_cookie_settings {
    --button-index: 0;
    --button-accent: #AC221F;
    --button-border: rgba(172, 34, 31, 0.5);
    --button-icon-color: #EB9185;
}


/* =========================================
   MOBILE LAYOUT
   ========================================= */

@media (max-width: 600px) {

    .hfe-floating-button {
        --button-size: 46px;
        --icon-size: 24px;
        --button-offset: 12px;
        --button-gap: 12px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .hfe-floating-button,
    .hfe-floating-button .hfe-button-icon,
    .hfe-floating-button .hfe-button-label,
    #discord_link_img {
        transition: none;
    }
}
/* MangaD - HFE floating action buttons - END */


/* MangaD - HFE support module — Floating buttons - Start */
#hfe_support_toggle {
    --button-index: 2;
    --button-accent: #AC221F;
    --button-border: rgba(172, 34, 31, 0.5);
    --button-icon-color: #EB9185;
}

/* Active state */

#hfe_support_toggle[aria-expanded="true"] {
    width: var(--button-size);
    background: var(--button-accent);
    border-color: var(--button-accent);
}

#hfe_support_toggle[aria-expanded="true"]
.hfe-button-icon {
    color: #FFFFFF;
}

#hfe_support_toggle[aria-expanded="true"]
.hfe-button-label {
    opacity: 0;
    transform: translateX(-8px);
}


/* =========================================
   SUPPORT POPOVER POSITIONING
   ========================================= */

#mod-custom152 {
    --support-action-size: 48px;
    --support-action-gap: 12px;
    --support-edge-offset: 24px;
    --support-popover-gap: 14px;

    --support-stack-height: calc(
        3 * var(--support-action-size) +
        2 * var(--support-action-gap)
    );

    --support-panel-left: calc(
        var(--support-edge-offset) +
        var(--support-action-size) +
        var(--support-popover-gap) +
        env(safe-area-inset-left, 0px)
    );

    --support-panel-bottom: calc(
        var(--support-edge-offset) +
        2 * (
            var(--support-action-size) +
            var(--support-action-gap)
        ) +
        env(safe-area-inset-bottom, 0px)
    );
}

#mod-custom152 .support-box {
    position: fixed;

    left: var(--support-panel-left);
    right: auto;
    bottom: var(--support-panel-bottom);

    width: 320px;

    max-width: calc(
        100vw -
        var(--support-panel-left) -
        var(--support-edge-offset) -
        env(safe-area-inset-right, 0px)
    );

    max-height: calc(
        100vh -
        var(--support-panel-bottom) -
        16px
    );

    max-height: calc(
        100dvh -
        var(--support-panel-bottom) -
        16px
    );

    margin: 0;
    z-index: 99999;

    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;

    animation: hfe-support-popover-enter
               0.25s ease-out both;
}

/* Ensure the hidden attribute is respected */

#mod-custom152 .support-box[hidden] {
    display: none !important;
}


/* =========================================
   POPOVER ANIMATION
   ========================================= */

@keyframes hfe-support-popover-enter {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================
   MOBILE POSITIONING
   ========================================= */

@media (max-width: 600px) {

    #mod-custom152 {
        --support-action-size: 46px;
        --support-action-gap: 12px;
        --support-edge-offset: 12px;
        --support-popover-gap: 12px;

        --support-panel-left: calc(
            var(--support-edge-offset) +
            env(safe-area-inset-left, 0px)
        );

        --support-panel-bottom: calc(
            var(--support-edge-offset) +
            var(--support-stack-height) +
            var(--support-popover-gap) +
            env(safe-area-inset-bottom, 0px)
        );
    }

    #mod-custom152 .support-box {
        left: var(--support-panel-left);
        right: auto;
        bottom: var(--support-panel-bottom);

        width: 320px;
        padding: 16px;

        animation-name: hfe-support-popover-enter-mobile;
    }
}

@keyframes hfe-support-popover-enter-mobile {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   SHORT VIEWPORTS
   ========================================= */

@media (max-height: 480px) {

    #mod-custom152 .support-box {
        top: max(12px, env(safe-area-inset-top, 0px));
        bottom: auto;

        left: calc(
            var(--support-edge-offset) +
            var(--support-action-size) +
            var(--support-popover-gap) +
            env(safe-area-inset-left, 0px)
        );

        max-width: calc(
            100vw -
            var(--support-edge-offset) * 2 -
            var(--support-action-size) -
            var(--support-popover-gap) -
            env(safe-area-inset-left, 0px) -
            env(safe-area-inset-right, 0px)
        );

        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
}


/* =========================================
   SMALL SCREENS
   ========================================= */

@media (max-width: 360px) {

    #mod-custom152 .support-box {
        padding: 13px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    #mod-custom152 .support-box {
        animation: none;
    }
}

/* =========================================
   HFE SUPPORT POPOVER ARROW
   ========================================= */

#hfe_support_toggle[aria-expanded="true"] {
    overflow: visible;
    z-index: 100000;
}

/* Shared triangle properties */

#hfe_support_toggle[aria-expanded="true"]::before,
#hfe_support_toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    pointer-events: none;
}

/* Outer triangle — border */

#hfe_support_toggle[aria-expanded="true"]::before {
    left: calc(100% + 5px);
    width: 10px;
    height: 18px;
    background: #514846;
}

/* Inner triangle — background */

#hfe_support_toggle[aria-expanded="true"]::after {
    left: calc(100% + 6.5px);
    width: 10px;
    height: 15px;
    background: #231B1A;
}

/* Mobile: downward-pointing arrow */

@media (max-width: 600px) {
    #hfe_support_toggle[aria-expanded="true"]::before,
    #hfe_support_toggle[aria-expanded="true"]::after {
        left: 50%;
        transform: translateX(-50%);
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }

    #hfe_support_toggle[aria-expanded="true"]::before {
        top: -13px;
        width: 18px;
        height: 10px;
    }

    #hfe_support_toggle[aria-expanded="true"]::after {
        top: -15px;
        width: 15px;
        height: 10.5px;
    }
}

/* Hide arrows on short viewports */

@media (max-height: 480px) {
    #hfe_support_toggle::before,
    #hfe_support_toggle::after {
        display: none;
    }
}
/* MangaD - HFE support module — Floating buttons - End */



/* =========================================
   HFE RESPONSIVE MOBILE NAVIGATION
   ========================================= */

@media (max-width: 991.98px) {

    /* Design variables */

    .container-header {
        --hfe-menu-accent: #ECA04F;
        --hfe-menu-text: #FFFFFF;
        --hfe-menu-muted: #E4C8BC;
        --hfe-menu-background: rgba(25, 10, 8, 0.35);
        --hfe-menu-border: rgba(255, 255, 255, 0.12);
        --hfe-menu-hover: rgba(255, 255, 255, 0.07);
        --hfe-menu-radius: 10px;
    }


    /* =====================================
       NAVIGATION CONTAINER
       ===================================== */

    .container-header .container-nav {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0 12px 12px;
    }

    .container-header .container-nav nav.navbar {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
		margin-top: 10px;
    }


    /* =====================================
       HAMBURGER BUTTON
       ===================================== */

    .container-header .navbar-toggler {
        display: flex;
        align-items: center;
        gap: 12px;

        width: 100%;
        min-height: 46px;

        margin: 0;
        padding: 12px 14px;

        background: var(--hfe-menu-background);
        color: var(--hfe-menu-text);

        border: 1px solid var(--hfe-menu-border);
        border-radius: var(--hfe-menu-radius);

        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.4;

        box-shadow: none;
        cursor: pointer;

        transition:
            background-color 0.2s ease,
            border-color 0.2s ease;
    }

    .container-header .navbar-toggler:hover,
    .container-header .navbar-toggler[aria-expanded="true"] {
        background: rgba(25, 10, 8, 0.5);
        border-color: rgba(236, 160, 79, 0.4);
    }

    /* Replace the native hamburger symbol */

    .container-header .navbar-toggler .icon-menu {
        display: block;
        flex: 0 0 20px;
        width: 20px;
        height: 20px;

        background: var(--hfe-menu-accent);

        -webkit-mask:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E")
            center / contain no-repeat;

        mask:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E")
            center / contain no-repeat;
    }

    .container-header .navbar-toggler .icon-menu::before {
        content: none;
    }

    /* Change hamburger to close icon */

    .container-header
    .navbar-toggler[aria-expanded="true"] .icon-menu {
        -webkit-mask:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
            center / contain no-repeat;

        mask:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
            center / contain no-repeat;
    }

    /* Menu label */

    .container-header .navbar-toggler::after {
        content: "Menu";
        color: var(--hfe-menu-text);
        margin-right: auto;
    }


    /* =====================================
       COLLAPSIBLE MENU PANEL
       ===================================== */

    .container-header .navbar-collapse {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
    }

    .container-header .metismenu {
        display: flex;
        flex-direction: column;

        width: 100%;
        min-width: 0;
        box-sizing: border-box;

        margin: 8px 0 0;
        padding: 5px;

        background: var(--hfe-menu-background);

        border: 1px solid var(--hfe-menu-border);
        border-radius: var(--hfe-menu-radius);

        list-style: none;
    }


    /* =====================================
       TOP-LEVEL MENU ITEMS
       ===================================== */

    .container-header .metismenu > li {
        position: relative;

        display: flex;
        flex-wrap: wrap;
        align-items: center;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;

        color: var(--hfe-menu-text);
        border-radius: 6px;
    }

    .container-header .metismenu > li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .container-header .metismenu > li > a,
    .container-header .metismenu > li > span,
    .container-header .metismenu > li > button.mm-toggler-nolink {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 12px;

        min-width: 0;
        min-height: 46px;

        margin: 0;
        padding: 12px 14px;

        background: transparent;
        color: var(--hfe-menu-text);

        border: none;

        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.4;

        text-align: left;
        text-decoration: none;

        overflow-wrap: anywhere;
    }

    .container-header .metismenu > li > a:hover,
    .container-header .metismenu > li > button:hover {
        background: var(--hfe-menu-hover);
        color: var(--hfe-menu-accent);
        text-decoration: none;
    }


    /* =====================================
       DROPDOWN CHEVRONS
       ===================================== */

    .container-header .metismenu .mm-toggler {
        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 44px;
        margin: 0;

        background: transparent;
        color: var(--hfe-menu-accent);
        border: none;
        box-shadow: none;

        cursor: pointer;
    }

    /* Standalone submenu buttons */

    .container-header
    .metismenu .mm-toggler-link {
        flex: 0 0 44px;
        width: 44px;
        padding: 0;
    }

    /* Replace the native triangle */

    .container-header .metismenu .mm-toggler::after {
        content: "";

        display: block;
        flex-shrink: 0;

        width: 9px;
        height: 9px;

        margin: 0 4px;

        border: 0;
        border-right: 2px solid var(--hfe-menu-accent);
        border-bottom: 2px solid var(--hfe-menu-accent);

        transform: rotate(45deg);

        transition: transform 0.2s ease;
    }

    .container-header
    .metismenu .mm-toggler-nolink::after {
        margin-left: auto;
    }

    /* Rotate when expanded */

    .container-header
    .metismenu .mm-toggler[aria-expanded="true"]::after {
        transform: rotate(225deg);
    }


    /* =====================================
       SUBMENUS
       ===================================== */

    .container-header .metismenu li > ul {
        position: static;

        flex: 0 0 100%;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        box-sizing: border-box;

        margin: 0;
        padding: 0;

        background: rgba(0, 0, 0, 0.12);
        color: var(--hfe-menu-muted);

        border: none;
        border-left: 2px solid rgba(236, 160, 79, 0.35);
        border-radius: 0 6px 6px 0;

        box-shadow: none;
        list-style: none;
    }

    /* Preserve Joomla's native collapse states */

    .container-header .metismenu .mm-collapse:not(.mm-show) {
        display: none;
    }

    .container-header .metismenu .mm-collapse.mm-show {
        display: block;
    }

    .container-header .metismenu .mm-collapsing {
        overflow: hidden;
    }

    .container-header .metismenu li > ul > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0 0 0 10px;

        box-sizing: border-box;
    }

    .container-header .metismenu li > ul a,
    .container-header .metismenu li > ul button.mm-toggler-nolink {
        display: flex;
        flex: 1;
        align-items: center;

        min-width: 0;
        min-height: 44px;

        padding: 10px 12px;

        color: var(--hfe-menu-muted);

        font-size: 0.85rem;
        font-weight: 400;
        line-height: 1.5;

        text-align: left;
        text-decoration: none;

        overflow-wrap: anywhere;
    }

    .container-header .metismenu li > ul a:hover,
    .container-header .metismenu li > ul button:hover {
        color: var(--hfe-menu-accent);
        background: var(--hfe-menu-hover);
    }


    /* =====================================
       ACTIVE MENU ITEMS
       ===================================== */

    .container-header .metismenu li.active > a,
    .container-header .metismenu li.active > button,
    .container-header .metismenu li.current > a {
        color: var(--hfe-menu-accent);
        text-decoration: none;
    }

    .container-header .metismenu li.current > a {
        background: rgba(236, 160, 79, 0.09);
        border-radius: 5px;
        font-weight: 600;
    }

    .container-header .metismenu > li::after {
        display: none;
    }


    /* =====================================
       KEYBOARD ACCESSIBILITY
       ===================================== */

    .container-header .navbar-toggler:focus-visible,
    .container-header .metismenu a:focus-visible,
    .container-header .metismenu button:focus-visible {
        outline: 2px solid var(--hfe-menu-accent);
        outline-offset: -2px;
        border-radius: 5px;
    }


    /* =====================================
       REDUCED MOTION
       ===================================== */

    @media (prefers-reduced-motion: reduce) {
        .container-header .navbar-toggler,
        .container-header .navbar-collapse,
        .container-header .metismenu *,
        .container-header .metismenu *::after {
            transition: none !important;
            animation: none !important;
        }
    }
}


/* =========================================
   HFE MOBILE MENU CATEGORY ICONS
   ========================================= */

@media (max-width: 991.98px) {

    .container-header .metismenu > li:nth-child(1) {
        --hfe-category-icon: "\f015"; /* Home */
    }

    .container-header .metismenu > li:nth-child(2) {
        --hfe-category-icon: "\f108"; /* Desktop */
    }

    .container-header .metismenu > li:nth-child(3) {
        --hfe-category-icon: "\f3cd"; /* Mobile */
    }

    .container-header .metismenu > li:nth-child(4) {
        --hfe-category-icon: "\f518"; /* Book */
    }

    .container-header .metismenu > li:nth-child(5) {
        --hfe-category-icon: "\f0c1"; /* Link */
    }

    .container-header .metismenu > li:nth-child(6) {
        --hfe-category-icon: "\f086"; /* Forum */
    }

    .container-header .metismenu > li > a::before,
    .container-header .metismenu > li > span::before,
    .container-header .metismenu > li > button.mm-toggler-nolink::before {
        content: var(--hfe-category-icon, none);

        display: inline-block;
        flex: 0 0 20px;

        position: static;
        width: 20px;
        height: auto;

        margin: 0;

        background: transparent;
        color: var(--hfe-menu-accent);

        font-family: "Font Awesome 6 Free",
                     "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 16px;

        line-height: 1;
        text-align: center;
        opacity: 1;
    }
}

/* =========================================
   HFE MOBILE MENU CORRECTIONS
   ========================================= */

@media (max-width: 991.98px) {

    /* Override legacy global link colours */
    .container-header .metismenu.mod-menu a:hover,
    .container-header .metismenu.mod-menu li.active > a,
    .container-header .metismenu.mod-menu li.current > a {
        color: var(--hfe-menu-accent) !important;
    }

    /* Remove duplicated category icons */

    .container-header .metismenu.mod-menu
    .mm-toggler-link::before {
        content: none !important;
        display: none !important;
    }

    .container-header .metismenu.mod-menu {
        flex: 0 0 100%;
        margin-left: 0;
    }

    .container-header .metismenu.mod-menu > li > a,
    .container-header .metismenu.mod-menu > li > button.mm-toggler-nolink {
        text-transform: uppercase;
    }

    /* Menu row layout */

    .container-header .metismenu.mod-menu
    .metismenu-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;

        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Menu links occupy the available space */

    .container-header .metismenu.mod-menu
    .metismenu-item > a,

    .container-header .metismenu.mod-menu
    .metismenu-item > button.mm-toggler-nolink {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    /* Compact standalone chevron buttons */

    .container-header .metismenu.mod-menu
    .mm-toggler-link {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        max-width: 44px;

        min-height: 44px;
        padding: 0;
        margin: 0;

        justify-content: center;
        background: transparent;
        border-radius: 6px;
    }

    .container-header .metismenu.mod-menu
    .mm-toggler-link::after {
        margin: 0;
    }

    /* Accordion-style submenu positioning */

    .container-header .metismenu.mod-menu
    .metismenu-item > ul {
        position: static !important;
        inset: auto !important;
        transform: none !important;

        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin: 0;
        padding: 4px;

        background: rgba(0, 0, 0, 0.15);
        border: none;
        border-left: 2px solid rgba(236, 160, 79, 0.35);
        border-radius: 0 6px 6px 0;

        box-shadow: none;
        box-sizing: border-box;
    }

    /* Compact submenu rows */

    .container-header .metismenu.mod-menu
    .metismenu-item > ul > li {
        margin: 0;
        padding: 0;
        min-height: 0;
    }

    .container-header .metismenu.mod-menu
    .metismenu-item > ul > li > a,

    .container-header .metismenu.mod-menu
    .metismenu-item > ul > li > button.mm-toggler-nolink {
        min-height: 40px;
        margin: 0;
        padding: 9px 14px;

        font-size: 0.85rem;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Preserve native submenu visibility */

    .container-header .metismenu.mod-menu
    .mm-collapse:not(.mm-show) {
        display: none;
    }

    .container-header .metismenu.mod-menu
    .mm-collapse.mm-show {
        display: block;
    }

    .container-header .metismenu.mod-menu
    .mm-collapsing {
        overflow: hidden;
    }
}

/* Hide floating actions while navigating */

@media (max-width: 991.98px) {

    body:has(.container-header .navbar-toggler[aria-expanded="true"])
    .hfe-floating-button,

    body:has(.container-header .navbar-toggler[aria-expanded="true"])
    #mod-custom152 .support-box {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 991.98px) {
    .container-header .metismenu button:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }

    .container-header .metismenu button:focus-visible {
        outline: 2px solid var(--hfe-menu-accent);
        outline-offset: -3px;
    }
}

@media (max-width: 991.98px) {
    .container-header .metismenu.mod-menu
    li:has(> .mm-toggler[aria-expanded="true"]) {
        background: rgba(255, 255, 255, 0.035);
    }

    .container-header .metismenu.mod-menu
    li:has(> .mm-toggler[aria-expanded="true"]) > a,
    .container-header .metismenu.mod-menu
    .mm-toggler-nolink[aria-expanded="true"] {
        color: var(--hfe-menu-accent);
    }
}

@media (max-width: 991.98px) {
    .container-header .navbar-toggler[aria-expanded="true"]::after {
        content: "Close menu";
    }
}

@media (max-width: 991.98px) {
    .container-header .metismenu.mod-menu li > ul li > ul {
        background: rgba(0, 0, 0, 0.12);
        border-left-color: rgba(236, 160, 79, 0.25);
    }
}


/* =========================================
   HFE DESKTOP NAVIGATION
   ========================================= */

@media (min-width: 992px) {

    /* =====================================
       DESIGN VARIABLES
       ===================================== */

    .container-header {
        --hfe-menu-accent: #ECA04F;
        --hfe-menu-text: #FFFFFF;
        --hfe-menu-muted: #E4C8BC;
        --hfe-menu-background: rgba(35, 27, 26, 0.56);
        --hfe-menu-border: rgba(255, 255, 255, 0.12);
        --hfe-menu-hover: rgba(255, 255, 255, 0.07);
        --hfe-menu-active: rgba(236, 160, 79, 0.09);
        --hfe-menu-radius: 10px;
    }


    /* =====================================
       TOP-LEVEL NAVIGATION
       ===================================== */

    .container-header .metismenu.mod-menu {
        align-items: center;
        gap: 4px;
    }

    .container-header .metismenu.mod-menu
    > .metismenu-item {
        align-items: center;
        padding: 0;
        border-radius: 6px;

        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .container-header .metismenu.mod-menu > li > a,
    .container-header .metismenu.mod-menu > li > span,
    .container-header .metismenu.mod-menu
    > li > button.mm-toggler-nolink {
        display: inline-flex;
        align-items: center;
        gap: 8px;

        padding: 10px 8px;
        min-height: 40px;

        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.4;

        color: var(--hfe-menu-text) !important;
        text-decoration: none;
    }

    /* Hover and expanded states */

    .container-header .metismenu.mod-menu
    > li:hover,

    .container-header .metismenu.mod-menu
    > li:has(> .mm-toggler[aria-expanded="true"]) {
        background: var(--hfe-menu-hover);
    }

    .container-header .metismenu.mod-menu
    > li.active,

    .container-header .metismenu.mod-menu
    > li.current {
        background: var(--hfe-menu-active);
    }

    .container-header .metismenu.mod-menu
    > li.active > a,

    .container-header .metismenu.mod-menu
    > li.current > a,

    .container-header .metismenu.mod-menu
    > li:hover > a,

    .container-header .metismenu.mod-menu
    > li:has(> .mm-toggler[aria-expanded="true"]) > a {
        color: var(--hfe-menu-accent) !important;
    }


    /* =====================================
       DROPDOWN CHEVRONS
       ===================================== */

    .container-header .metismenu.mod-menu
    .mm-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        background: transparent;
        border: none;
        box-shadow: none;

        color: var(--hfe-menu-accent) !important;
        cursor: pointer;
    }

    .container-header .metismenu.mod-menu
    .mm-toggler-link {
        flex: 0 0 28px;
        width: 28px;
        min-height: 36px;
        padding: 0;
        margin: 0;
        border-radius: 5px;
    }

    .container-header .metismenu.mod-menu
    .mm-toggler::after {
        content: "";

        display: block;
        flex-shrink: 0;

        width: 7px;
        height: 7px;
        margin: 0;

        border: 0;
        border-right: 2px solid var(--hfe-menu-accent);
        border-bottom: 2px solid var(--hfe-menu-accent);

        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.2s ease;
    }

    .container-header .metismenu.mod-menu
    .mm-toggler[aria-expanded="true"]::after {
        transform: translateY(2px) rotate(225deg);
    }

    /* Remove native decorative underlines */

    .container-header .metismenu.mod-menu
    > li > a::after {
        display: none;
    }


    /* =====================================
       DROPDOWN PANELS
       ===================================== */

    .container-header .metismenu.mod-menu
    > li > ul.mm-collapse {
        min-width: 220px;
        max-width: 300px;

        margin-top: 4px;
        padding: 6px;

        background: var(--hfe-menu-background);
        color: var(--hfe-menu-muted);

        border: 1px solid var(--hfe-menu-border);
        border-top: 2px solid var(--hfe-menu-accent);
        border-radius: var(--hfe-menu-radius);

        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.35),
            0 2px 8px rgba(0, 0, 0, 0.15);

        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        box-sizing: border-box;
    }

    /* Keep rightmost dropdowns inside the viewport */

    .container-header .metismenu.mod-menu
    > li:nth-last-child(-n+2) > ul.mm-collapse {
        left: auto;
        right: 0;
    }


    /* =====================================
       DROPDOWN MENU ITEMS
       ===================================== */

    .container-header .metismenu.mod-menu
    li > ul > .metismenu-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;

        border-radius: 5px;
        box-sizing: border-box;
    }

    .container-header .metismenu.mod-menu
    li > ul > li > a,

    .container-header .metismenu.mod-menu
    li > ul > li > span,

    .container-header .metismenu.mod-menu
    li > ul > li > button.mm-toggler-nolink {
        display: flex;
        flex: 1 1 0;
        align-items: center;

        min-width: 0;
        min-height: 38px;

        margin: 0;
        padding: 9px 12px;

        background: transparent;
        color: var(--hfe-menu-muted) !important;

        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 400;
        line-height: 1.5;

        text-transform: none;
        text-align: left;
        text-decoration: none;

        white-space: normal;
        overflow-wrap: anywhere;

        border-radius: 5px;

        transition:
            background-color 0.15s ease,
            color 0.15s ease;
    }

    /* Submenu hover states */

    .container-header .metismenu.mod-menu
    li > ul > li > a:hover,

    .container-header .metismenu.mod-menu
    li > ul > li > button:hover {
        background: var(--hfe-menu-hover);
        color: var(--hfe-menu-accent) !important;
        text-decoration: none;
    }

    /* Active and expanded submenu items */

    .container-header .metismenu.mod-menu
    li > ul > li.active > a,

    .container-header .metismenu.mod-menu
    li > ul > li.current > a,

    .container-header .metismenu.mod-menu
    li > ul > li:has(> .mm-toggler[aria-expanded="true"]) > a,

    .container-header .metismenu.mod-menu
    li > ul .mm-toggler-nolink[aria-expanded="true"] {
        color: var(--hfe-menu-accent) !important;
        background: var(--hfe-menu-active);
    }


    /* =====================================
       NESTED SUBMENUS
       ===================================== */

    .container-header .metismenu.mod-menu
    li > ul li > ul {
        position: static;
        inset: auto;

        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin: 2px 0 4px;
        padding: 3px 3px 3px 8px;

        background: rgba(0, 0, 0, 0.15);

        border: none;
        border-left: 2px solid rgba(236, 160, 79, 0.35);
        border-radius: 0 5px 5px 0;

        box-shadow: none;
        box-sizing: border-box;
    }

    /* Align combined label and toggle buttons */

    .container-header .metismenu.mod-menu
    .mm-toggler-nolink::after {
        margin-left: auto;
    }

    /* Preserve native collapse behaviour */

    .container-header .metismenu.mod-menu
    .mm-collapse:not(.mm-show) {
        display: none;
    }

    .container-header .metismenu.mod-menu
    .mm-collapse.mm-show {
        display: block;
    }

    .container-header .metismenu.mod-menu
    .mm-collapsing {
        overflow: hidden;
    }


    /* =====================================
       KEYBOARD ACCESSIBILITY
       ===================================== */

    .container-header .metismenu.mod-menu
    a:focus:not(:focus-visible),

    .container-header .metismenu.mod-menu
    button:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }

    .container-header .metismenu.mod-menu
    a:focus-visible,

    .container-header .metismenu.mod-menu
    button:focus-visible {
        outline: 2px solid var(--hfe-menu-accent);
        outline-offset: -2px;
        border-radius: 5px;
    }


    /* =====================================
       REDUCED MOTION
       ===================================== */

    @media (prefers-reduced-motion: reduce) {
        .container-header .metismenu.mod-menu *,
        .container-header .metismenu.mod-menu *::after {
            transition: none !important;
            animation: none !important;
        }
    }
}


/* =========================================
   HFE DESKTOP MENU CATEGORY ICONS
   ========================================= */

/* Show icons on wider desktop screens to
   avoid overcrowding the navigation. */

@media (min-width: 1200px) {

    .container-header .metismenu > li:nth-child(1) {
        --hfe-category-icon: "\f015";
    }

    .container-header .metismenu > li:nth-child(2) {
        --hfe-category-icon: "\f108";
    }

    .container-header .metismenu > li:nth-child(3) {
        --hfe-category-icon: "\f3cd";
    }

    .container-header .metismenu > li:nth-child(4) {
        --hfe-category-icon: "\f518";
    }

    .container-header .metismenu > li:nth-child(5) {
        --hfe-category-icon: "\f0c1";
    }

    .container-header .metismenu > li:nth-child(6) {
        --hfe-category-icon: "\f086";
    }

    .container-header .metismenu > li > a::before,
    .container-header .metismenu > li > span::before,
    .container-header .metismenu
    > li > button.mm-toggler-nolink::before {
        content: var(--hfe-category-icon, none);

        display: inline-block;
        flex: 0 0 16px;

        position: static;
        width: 16px;
        height: auto;

        margin: 0;

        background: transparent;
        color: var(--hfe-menu-accent);

        font-family: "Font Awesome 6 Free",
                     "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 13px;

        line-height: 1;
        text-align: center;
        opacity: 1;
    }

    /* Prevent duplicate icons */

    .container-header .metismenu.mod-menu
    .mm-toggler-link::before {
        content: none;
        display: none;
    }
}

/* =========================================
   HFE DESKTOP NAVIGATION — REFINEMENTS
   ========================================= */

@media (min-width: 992px) {

    /* Remove inherited parent item spacing */

    .container-header .metismenu.mod-menu
    li > ul > li.metismenu-item.parent {
        padding: 0;
        margin: 0;
    }

    /* Consistent submenu typography */

    .container-header .metismenu.mod-menu
    li > ul > li.metismenu-item > a,

    .container-header .metismenu.mod-menu
    li > ul > li.metismenu-item > span,

    .container-header .metismenu.mod-menu
    li > ul > li.metismenu-item > button.mm-toggler-nolink {
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: none;
        padding: 9px 12px;
        min-height: 38px;
    }

    /* Highlight the entire expanded row */

    .container-header .metismenu.mod-menu
    li > ul > li:has(> .mm-toggler[aria-expanded="true"]) {
        background: rgba(255, 255, 255, 0.025);
    }

    /* Avoid highlighting only the label */

    .container-header .metismenu.mod-menu
    li > ul > li:has(> .mm-toggler[aria-expanded="true"]) > a {
        background: transparent;
        color: var(--hfe-menu-accent) !important;
    }

    /* Consistent chevron alignment */

    .container-header .metismenu.mod-menu
    li > ul .mm-toggler-link {
        flex: 0 0 36px;
        width: 36px;
        min-height: 38px;
    }

    /* Nested submenu hierarchy */

    .container-header .metismenu.mod-menu
    li > ul li > ul {
        background: rgba(0, 0, 0, 0.18);
        border-left: 2px solid rgba(236, 160, 79, 0.35);
        margin: 2px 0 4px;
        padding: 3px 3px 3px 8px;
    }
}

/* =========================================
   HFE DESKTOP NAVIGATION — LOGO ALIGNMENT
   ========================================= */

@media (min-width: 992px) {

    .container-header .grid-child.container-nav {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(32px, 5vw, 82px);
    }

    .container-header .container-nav > .navbar-brand {
        flex: 0 0 auto;
        margin: 0;
    }

    .container-header .container-nav > .navbar {
        flex: 0 1 auto;
        width: auto;
        margin: 0;
        justify-content: flex-start;
		padding-top: 0.5rem;
    }

    .container-header #navbar121 {
        flex: 0 1 auto;
        justify-content: flex-start;
        margin: 0;
    }

    .container-header #navbar121 > .metismenu.mod-menu {
        margin: 0;
        justify-content: flex-start;
    }
}

/* HFE DESKTOP NAVIGATION - END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM - START
   ========================================= */

.hfe-article {

    /* Design variables */

    --hfe-article-accent: #ECA04F;
    --hfe-article-primary: #AC221F;
    --hfe-article-text: #FFFFFF;
    --hfe-article-muted: #E4C8BC;

    --hfe-article-background: rgba(255, 255, 255, 0.035);
    --hfe-article-border: rgba(255, 255, 255, 0.1);
    --hfe-article-hover: rgba(255, 255, 255, 0.07);

    --hfe-article-radius: 10px;
    --hfe-article-gap: 16px;

    color: var(--hfe-article-text);
    line-height: 1.65;
}

.hfe-article,
.hfe-article * {
    box-sizing: border-box;
}


/* =========================================
   ARTICLE SECTIONS
   ========================================= */

.hfe-article .hfe-section {
    margin: 36px 0;
}

.hfe-article .hfe-section > h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;

    color: var(--hfe-article-accent);

    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;

    border-bottom: 1px solid var(--hfe-article-border);
}

.hfe-article p {
    margin: 0 0 16px;
}

.hfe-article p:last-child {
    margin-bottom: 0;
}


/* =========================================
   HERO SECTION
   ========================================= */

.hfe-article .hfe-hero {
    padding: clamp(20px, 4vw, 36px);

    background:
        radial-gradient(
            ellipse at top right,
            rgba(172, 34, 31, 0.18),
            transparent 70%
        ),
        var(--hfe-article-background);

    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-article .hfe-eyebrow {
    margin-bottom: 8px;

    color: var(--hfe-article-accent);

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hfe-article .hfe-hero-title {
    margin: 0 0 12px;

    color: var(--hfe-article-accent);

    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.hfe-article .hfe-lead {
    color: var(--hfe-article-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* =========================================
   ACTION BUTTONS
   ========================================= */

.hfe-article .hfe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 24px;
}

.hfe-article .hfe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 44px;
    padding: 12px 20px;

    background: var(--hfe-article-primary);
    color: #FFFFFF !important;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hfe-article .hfe-btn:hover {
    background: #C52F2A;
    color: #FFFFFF !important;
    text-decoration: none;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hfe-article .hfe-btn-secondary {
    background: transparent;
    border-color: rgba(236, 160, 79, 0.4);
    color: var(--hfe-article-accent) !important;
}

.hfe-article .hfe-btn-secondary:hover {
    background: rgba(236, 160, 79, 0.09);
    border-color: var(--hfe-article-accent);
    color: var(--hfe-article-accent) !important;
}


/* =========================================
   RESPONSIVE VIDEO
   ========================================= */

.hfe-article .hfe-video {
    position: relative;

    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;

    margin: 24px auto;

    background: #170504;
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    overflow: hidden;
}

.hfe-article .hfe-video iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================
   RESPONSIVE GRIDS
   ========================================= */

.hfe-article .hfe-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: var(--hfe-article-gap);
}

.hfe-article .hfe-grid-3 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.hfe-article .hfe-grid-4 {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* =========================================
   CONTENT CARDS
   ========================================= */

.hfe-article .hfe-card {
    min-width: 0;
    padding: 20px;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-article .hfe-card h3 {
    margin: 0 0 10px;

    color: var(--hfe-article-accent);

    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.hfe-article .hfe-card p {
    color: var(--hfe-article-muted);
    font-size: 0.95rem;
}


/* =========================================
   FEATURE ICONS
   ========================================= */

.hfe-article .hfe-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    margin-bottom: 16px;

    background: rgba(236, 160, 79, 0.08);
    color: var(--hfe-article-accent);

    border-radius: 8px;
    font-size: 22px;
}


/* =========================================
   STATISTIC CARDS
   ========================================= */

.hfe-article .hfe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px 12px;

    text-align: center;
}

.hfe-article .hfe-stat > i {
    margin-bottom: 12px;

    color: var(--hfe-article-accent);
    font-size: 24px;
}

.hfe-article .hfe-stat-value {
    color: var(--hfe-article-accent);

    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.hfe-article .hfe-stat-label {
    margin-top: 4px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
}


/* =========================================
   INFORMATION CALLOUTS
   ========================================= */

.hfe-article .hfe-callout {
    margin: 20px 0;
    padding: 18px 20px;

    background: rgba(236, 160, 79, 0.05);

    border-left: 3px solid var(--hfe-article-accent);
    border-radius: 0 var(--hfe-article-radius)
                   var(--hfe-article-radius) 0;
}

.hfe-article .hfe-callout-title {
    display: block;

    margin-bottom: 6px;

    color: var(--hfe-article-accent);
    font-weight: 600;
}

.hfe-article .hfe-callout p {
    color: var(--hfe-article-muted);
}


/* =========================================
   NAVIGATION CARDS
   ========================================= */

.hfe-article a.hfe-link-card {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 80px;
    padding: 16px;

    background: var(--hfe-article-background);
    color: var(--hfe-article-text) !important;

    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hfe-article a.hfe-link-card:hover {
    background: var(--hfe-article-hover);
    border-color: rgba(236, 160, 79, 0.4);
    color: var(--hfe-article-text) !important;

    text-decoration: none;
}

.hfe-article .hfe-link-icon {
    flex: 0 0 28px;

    color: var(--hfe-article-accent);
    font-size: 22px;

    text-align: center;
}

.hfe-article .hfe-link-content {
    flex: 1;
    min-width: 0;
}

.hfe-article .hfe-link-title {
    display: block;

    font-size: 0.95rem;
    font-weight: 600;
}

.hfe-article .hfe-link-description {
    display: block;

    margin-top: 3px;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.hfe-article .hfe-link-arrow {
    flex-shrink: 0;

    color: var(--hfe-article-accent);
    font-size: 13px;

    transition: transform 0.2s ease;
}

.hfe-article .hfe-link-card:hover .hfe-link-arrow {
    transform: translateX(3px);
}


/* =========================================
   KEYBOARD ACCESSIBILITY
   ========================================= */

.hfe-article .hfe-btn:focus-visible,
.hfe-article .hfe-link-card:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 3px;
}


/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-article .hfe-grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hfe-article .hfe-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hfe-article .hfe-section {
        margin: 28px 0;
    }

    .hfe-article .hfe-section > h2 {
        font-size: 1.3rem;
    }

    .hfe-article .hfe-lead {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {

    .hfe-article .hfe-grid:not(.hfe-grid-4) {
        grid-template-columns: minmax(0, 1fr);
    }

    .hfe-article .hfe-actions {
        flex-direction: column;
    }

    .hfe-article .hfe-btn {
        width: 100%;
    }

    .hfe-article .hfe-card {
        padding: 16px;
    }

    .hfe-article .hfe-stat {
        padding: 18px 10px;
    }

    .hfe-article .hfe-stat-value {
        font-size: 1.5rem;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .hfe-article .hfe-btn,
    .hfe-article .hfe-link-card,
    .hfe-article .hfe-link-arrow {
        transition: none;
    }
}

/* HFE ARTICLE DESIGN SYSTEM - END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — EXTENSIONS
   ========================================= */

/* Platform and feature cards */

.hfe-article .hfe-card-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hfe-article .hfe-card-flex .hfe-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.hfe-article .hfe-card-flex .hfe-btn {
    width: 100%;
}

.hfe-article .hfe-card-subtitle {
    display: block;
    margin: -4px 0 14px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
}

/* Platform icons */

.hfe-article .hfe-platform-icon {
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 1;
}

.hfe-article .hfe-platform-android {
    color: #A4C639;
}

.hfe-article .hfe-platform-ios {
    color: #FFFFFF;
}

/* Feature lists */

.hfe-article .hfe-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    margin: 16px 0;
    padding: 0;

    list-style: none;
}

.hfe-article .hfe-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--hfe-article-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hfe-article .hfe-feature-list li > i {
    flex: 0 0 16px;
    margin-top: 4px;
    text-align: center;
}

.hfe-article .hfe-feature-list .fa-check {
    color: #A4C639;
}

.hfe-article .hfe-feature-list .fa-info-circle {
    color: var(--hfe-article-accent);
}

/* Full-width grid item */

.hfe-article .hfe-card-wide {
    grid-column: 1 / -1;
}

/* Anchor navigation */

.hfe-article .hfe-section[id] {
    scroll-margin-top: 100px;
}

/* HFE ARTICLE DESIGN SYSTEM — EXTENSIONS END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — GALLERY
   ========================================= */

.hfe-article .hfe-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hfe-article .hfe-gallery-item {
    position: relative;
    display: block;

    min-width: 0;
    aspect-ratio: 16 / 9;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;

    overflow: hidden;
    text-decoration: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hfe-article .hfe-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: 100%;

    margin: 0;
    object-fit: cover;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

/* Enlargement indicator */

.hfe-article .hfe-gallery-item::after {
    content: "\f00e";

    position: absolute;
    right: 8px;
    bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: rgba(35, 27, 26, 0.85);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;

    font-family: "Font Awesome 6 Free",
                 "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;

    opacity: 0;
    transform: translateY(4px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* Hover effects */

@media (hover: hover) and (pointer: fine) {

    .hfe-article .hfe-gallery-item:hover {
        border-color: rgba(236, 160, 79, 0.65);

        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .hfe-article .hfe-gallery-item:hover img {
        transform: scale(1.05);
        filter: brightness(1.08);
    }

    .hfe-article .hfe-gallery-item:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyboard accessibility */

.hfe-article .hfe-gallery-item:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 3px;
}

.hfe-article .hfe-gallery-item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery description */

.hfe-article .hfe-gallery-caption {
    margin-top: 12px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive layout */

@media (max-width: 767.98px) {

    .hfe-article .hfe-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }
}

@media (max-width: 359.98px) {

    .hfe-article .hfe-gallery {
        gap: 6px;
    }
}

/* Show enlargement indicator on touch devices */

@media (hover: none), (pointer: coarse) {

    .hfe-article .hfe-gallery-item::after {
        opacity: 1;
        transform: none;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .hfe-article .hfe-gallery-item,
    .hfe-article .hfe-gallery-item img,
    .hfe-article .hfe-gallery-item::after {
        transition: none;
    }

    .hfe-article .hfe-gallery-item:hover img {
        transform: none;
    }
}

/* HFE ARTICLE DESIGN SYSTEM — GALLERY END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — GAMEPLAY
   ========================================= */


/* =========================================
   KEYBOARD KEYS
   ========================================= */

.hfe-article .hfe-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    min-height: 32px;

    padding: 5px 10px;

    background: rgba(236, 160, 79, 0.08);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, 0.35);
    border-bottom-width: 3px;
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    vertical-align: middle;
    box-shadow: none;
}

.hfe-article .hfe-key-large {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.2rem;
}

.hfe-article .hfe-key-combo {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;

    vertical-align: middle;
}

.hfe-article .hfe-key-separator {
    color: var(--hfe-article-muted);
    font-size: 0.8rem;
}


/* =========================================
   DIRECTIONAL KEY LAYOUT
   ========================================= */

.hfe-article .hfe-direction-keys {
    display: grid;

    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(2, 44px);

    justify-content: center;
    gap: 5px;

    margin: 20px auto;
}

.hfe-article .hfe-key-up {
    grid-column: 2;
    grid-row: 1;
}

.hfe-article .hfe-key-left {
    grid-column: 1;
    grid-row: 2;
}

.hfe-article .hfe-key-down {
    grid-column: 2;
    grid-row: 2;
}

.hfe-article .hfe-key-right {
    grid-column: 3;
    grid-row: 2;
}

.hfe-article .hfe-control-card {
    text-align: center;
}

.hfe-article .hfe-control-card p {
    margin-bottom: 0;
}


/* =========================================
   CONTROL AND SHORTCUT LISTS
   ========================================= */

.hfe-article .hfe-control-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.hfe-article .hfe-control-row {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 48px;
    padding: 10px 0;

    border-bottom: 1px solid
        var(--hfe-article-border);
}

.hfe-article .hfe-control-row:first-child {
    padding-top: 0;
}

.hfe-article .hfe-control-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hfe-article .hfe-control-row .hfe-key {
    flex-shrink: 0;
}

.hfe-article .hfe-control-name {
    flex: 1;

    color: var(--hfe-article-text);
    font-size: 0.95rem;
    text-align: left;
}

.hfe-article .hfe-shortcut-list
.hfe-control-name {
    color: var(--hfe-article-muted);
    text-align: right;
}


/* =========================================
   GAME RESOURCE CARDS
   ========================================= */

.hfe-article .hfe-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: var(--hfe-article-gap);
}

.hfe-article .hfe-resource-card {
    --hfe-resource-color: #FFFFFF;

    min-width: 0;
}

.hfe-article .hfe-resource-hp {
    --hfe-resource-color: #EF5350;
}

.hfe-article .hfe-resource-mp {
    --hfe-resource-color: #6495ED;
}

.hfe-article .hfe-resource-sp {
    --hfe-resource-color: #EEEEEE;
}

.hfe-article .hfe-resource-heading {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}

.hfe-article .hfe-resource-symbol {
    color: var(--hfe-resource-color);

    font-size: 1.25rem;
    font-weight: 700;
}

.hfe-article .hfe-resource-name {
    color: var(--hfe-article-text);
    font-size: 0.95rem;
    font-weight: 600;
}


/* =========================================
   RESOURCE BARS
   ========================================= */

.hfe-article .hfe-resource-bar {
    height: 12px;

    margin: 0 0 16px;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;

    overflow: hidden;
}

.hfe-article .hfe-resource-fill {
    display: block;

    width: var(--hfe-resource-level, 100%);
    height: 100%;

    background: var(--hfe-resource-color);
    border-radius: 2px;
}

.hfe-article .hfe-resource-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 16px;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.hfe-article .hfe-resource-note i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--hfe-resource-color);
}


/* =========================================
   GAMEPLAY ILLUSTRATIONS
   ========================================= */

.hfe-article .hfe-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 24px 0;
    padding: 20px;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-article .hfe-illustration img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0;
    object-fit: contain;

    border-radius: 5px;
}

.hfe-article .hfe-illustration figcaption {
    margin-top: 12px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================================
   GAMEPLAY FEATURE CARDS
   ========================================= */

.hfe-article .hfe-mechanic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hfe-article .hfe-mechanic .hfe-illustration {
    align-self: stretch;

    margin: 16px 0;
    padding: 12px;

    background: rgba(0, 0, 0, 0.15);
}


/* =========================================
   INLINE RESOURCE LABELS
   ========================================= */

.hfe-article .hfe-hp {
    color: #EF5350;
    font-weight: 600;
}

.hfe-article .hfe-mp {
    color: #6495ED;
    font-weight: 600;
}

.hfe-article .hfe-sp {
    color: #EEEEEE;
    font-weight: 600;
}


/* =========================================
   RESPONSIVE GAMEPLAY LAYOUT
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-article .hfe-resource-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {

    .hfe-article .hfe-key {
        min-width: 30px;
        min-height: 30px;

        padding: 4px 8px;
        font-size: 0.85rem;
    }

    .hfe-article .hfe-key-large {
        min-width: 44px;
        min-height: 44px;

        font-size: 1.2rem;
    }

    .hfe-article .hfe-control-row {
        gap: 10px;
    }

    .hfe-article .hfe-control-name {
        font-size: 0.85rem;
    }

    .hfe-article .hfe-illustration {
        padding: 12px;
    }
}

/* HFE ARTICLE DESIGN SYSTEM — GAMEPLAY END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — COMBAT GUIDES
   ========================================= */


/* =========================================
   ILLUSTRATED PROFILES
   ========================================= */

.hfe-article .hfe-profile {
    padding: clamp(16px, 3vw, 24px);

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-article .hfe-profile-header {
    display: grid;
    grid-template-columns:
        minmax(0, 280px) minmax(0, 1fr);

    align-items: center;
    gap: 24px;
}

.hfe-article .hfe-profile-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 160px;

    margin: 0;
    padding: 16px;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;
}

.hfe-article .hfe-profile-image img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0;
    object-fit: contain;
}

.hfe-article .hfe-profile-content {
    min-width: 0;
}

.hfe-article .hfe-profile-title {
    margin: 0 0 4px;

    color: var(--hfe-article-accent);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
}

.hfe-article .hfe-profile-subtitle {
    display: block;
    margin-bottom: 16px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
}


/* =========================================
   COMBAT MOVE LISTS
   ========================================= */

.hfe-article .hfe-move-list {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid var(--hfe-article-border);
}

.hfe-article .hfe-move-list > h3 {
    margin: 0 0 16px;

    color: var(--hfe-article-accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.hfe-article .hfe-move {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;
    gap: 16px;

    padding: 16px 0;

    border-bottom: 1px solid var(--hfe-article-border);
}

.hfe-article .hfe-move:first-of-type {
    padding-top: 0;
}

.hfe-article .hfe-move:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hfe-article .hfe-move-name {
    display: block;
    margin-bottom: 4px;

    color: var(--hfe-article-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.hfe-article .hfe-move-description {
    display: block;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.hfe-article .hfe-move .hfe-key-combo {
    flex-wrap: nowrap;
    justify-content: flex-end;
}


/* =========================================
   RESPONSIVE COMPARISON TABLES
   ========================================= */

.hfe-article .hfe-table-wrapper {
    max-width: 100%;
    overflow-x: auto;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-article .hfe-comparison {
    width: 100%;
    min-width: 500px;
    margin: 0;

    border-collapse: collapse;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hfe-article .hfe-comparison th,
.hfe-article .hfe-comparison td {
    padding: 14px 16px;

    border-bottom: 1px solid var(--hfe-article-border);

    text-align: center;
    vertical-align: middle;
}

.hfe-article .hfe-comparison thead th {
    background: rgba(236, 160, 79, 0.07);
    color: var(--hfe-article-accent);
    font-weight: 600;
}

.hfe-article .hfe-comparison tbody th {
    color: var(--hfe-article-text);
    font-weight: 500;
    text-align: left;
}

.hfe-article .hfe-comparison thead th:first-child {
    text-align: left;
}

.hfe-article .hfe-comparison tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.hfe-article .hfe-comparison tbody tr:last-child > * {
    border-bottom: none;
}

.hfe-article .hfe-comparison tbody tr:hover {
    background: var(--hfe-article-hover);
}

.hfe-article .hfe-table-wrapper:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 3px;
}


/* =========================================
   RESPONSIVE COMBAT PROFILES
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-article .hfe-profile-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hfe-article .hfe-profile-image {
        min-height: 140px;
    }

    .hfe-article .hfe-profile-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {

    .hfe-article .hfe-move {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .hfe-article .hfe-move .hfe-key-combo {
        justify-content: flex-start;
    }

    .hfe-article .hfe-comparison th,
    .hfe-article .hfe-comparison td {
        padding: 10px 12px;
    }
}

/* HFE ARTICLE DESIGN SYSTEM — COMBAT GUIDES END */


/* =========================================
   HFE MOUNT PROFILES
   ========================================= */

.hfe-article .hfe-mount-horse {
    --hfe-mount-background: rgba(90, 20, 20, 0.2);
}

.hfe-article .hfe-mount-monster {
    --hfe-mount-background: rgba(30, 60, 60, 0.2);
}

.hfe-article .hfe-mount-triceratops {
    --hfe-mount-background: rgba(70, 40, 20, 0.2);
}

.hfe-article .hfe-mount .hfe-profile-image {
    background: var(--hfe-mount-background);
}

.hfe-article .hfe-mount .hfe-profile-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Keep comparison tables within the article */

.hfe-article .hfe-table-wrapper {
    min-width: 0;
}

/* HFE MOUNT PROFILES - END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — TECHNICAL GUIDES
   ========================================= */


/* =========================================
   NUMBERED INSTRUCTIONS
   ========================================= */

.hfe-article .hfe-steps {
    display: flex;
    flex-direction: column;
    gap: var(--hfe-article-gap);

    margin: 24px 0;
    padding: 0;

    list-style: none;
    counter-reset: hfe-step;
}

.hfe-article .hfe-step {
    position: relative;

    min-width: 0;
    padding: 24px 24px 24px 76px;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    counter-increment: hfe-step;
}

.hfe-article .hfe-step::before {
    content: counter(hfe-step);

    position: absolute;
    top: 24px;
    left: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    background: rgba(236, 160, 79, 0.1);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, 0.3);
    border-radius: 50%;

    font-size: 1rem;
    font-weight: 700;
}

.hfe-article .hfe-step > h3 {
    margin: 5px 0 16px;

    color: var(--hfe-article-accent);
    font-size: 1.15rem;
    font-weight: 600;
}


/* =========================================
   TERMINAL AND CODE BLOCKS
   ========================================= */

.hfe-article .hfe-terminal {
    min-width: 0;

    margin: 16px 0;

    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;

    overflow: hidden;
}

.hfe-article .hfe-terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--hfe-article-muted);

    border-bottom: 1px solid var(--hfe-article-border);

    font-size: 0.8rem;
    font-weight: 500;
}

.hfe-article .hfe-terminal-header i {
    color: var(--hfe-article-accent);
}

.hfe-article .hfe-terminal pre {
    max-width: 100%;

    margin: 0;
    padding: 16px;

    background: transparent;
    color: #E4C8BC;

    border: 0;
    border-radius: 0;

    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.7;

    white-space: pre;
    overflow-x: auto;
    text-align: left;
}

.hfe-article .hfe-terminal pre code {
    padding: 0;

    background: transparent;
    color: inherit;

    border: 0;
    font-size: inherit;
}

.hfe-article .hfe-code {
    padding: 2px 6px;

    background: rgba(236, 160, 79, 0.08);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, 0.15);
    border-radius: 4px;

    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;

    overflow-wrap: anywhere;
}


/* =========================================
   TECHNICAL INFORMATION TABLES
   ========================================= */

.hfe-article .hfe-config-table {
    width: 100%;
    min-width: 0;
    margin: 0;

    border-collapse: collapse;

    font-size: 0.9rem;
    line-height: 1.5;
}

.hfe-article .hfe-config-table th,
.hfe-article .hfe-config-table td {
    padding: 12px 16px;

    border-bottom: 1px solid var(--hfe-article-border);

    text-align: left;
    vertical-align: middle;

    overflow-wrap: anywhere;
}

.hfe-article .hfe-config-table th {
    width: 42%;

    color: var(--hfe-article-text);
    font-weight: 500;
}

.hfe-article .hfe-config-table td {
    color: var(--hfe-article-muted);
}

.hfe-article .hfe-config-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.hfe-article .hfe-config-table tr:last-child > * {
    border-bottom: 0;
}


/* =========================================
   TROUBLESHOOTING PANELS
   ========================================= */

.hfe-article .hfe-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 20px 0;
}

.hfe-article .hfe-faq-item {
    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;
}

.hfe-article .hfe-faq-item > summary {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 20px;

    color: var(--hfe-article-text);

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;

    list-style: none;
    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.hfe-article .hfe-faq-item > summary::-webkit-details-marker {
    display: none;
}

.hfe-article .hfe-faq-item > summary::after {
    content: "";

    display: block;
    flex-shrink: 0;

    width: 8px;
    height: 8px;

    margin-left: auto;
    margin-right: 3px;

    border-right: 2px solid var(--hfe-article-accent);
    border-bottom: 2px solid var(--hfe-article-accent);

    transform: rotate(45deg);

    transition: transform 0.2s ease;
}

.hfe-article .hfe-faq-item > summary:hover {
    color: var(--hfe-article-accent);
    background: var(--hfe-article-hover);
    border-radius: 8px;
}

.hfe-article .hfe-faq-item[open] > summary {
    background: rgba(236, 160, 79, 0.05);
    color: var(--hfe-article-accent);

    border-bottom: 1px solid var(--hfe-article-border);
    border-radius: 8px 8px 0 0;
}

.hfe-article .hfe-faq-item[open] > summary::after {
    transform: rotate(225deg);
}

.hfe-article .hfe-faq-item > summary:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

.hfe-article .hfe-faq-content {
    padding: 20px;

    color: var(--hfe-article-muted);
    font-size: 0.95rem;
}

.hfe-article .hfe-faq-content > :last-child {
    margin-bottom: 0;
}


/* =========================================
   SECURITY WARNING CALLOUTS
   ========================================= */

.hfe-article .hfe-callout-warning {
    background: rgba(172, 34, 31, 0.1);
    border-left-color: #EF5350;
}

.hfe-article .hfe-callout-warning
.hfe-callout-title {
    color: #FF8A80;
}


/* =========================================
   RESPONSIVE TECHNICAL GUIDES
   ========================================= */

@media (max-width: 575.98px) {

    .hfe-article .hfe-step {
        padding: 16px;
    }

    .hfe-article .hfe-step::before {
        position: static;

        width: 30px;
        height: 30px;

        margin-bottom: 12px;

        font-size: 0.9rem;
    }

    .hfe-article .hfe-step > h3 {
        margin-top: 0;
    }

    .hfe-article .hfe-terminal pre {
        padding: 12px;
        font-size: 0.75rem;
    }

    .hfe-article .hfe-config-table th,
    .hfe-article .hfe-config-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .hfe-article .hfe-faq-item > summary,
    .hfe-article .hfe-faq-content {
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hfe-article .hfe-faq-item > summary,
    .hfe-article .hfe-faq-item > summary::after {
        transition: none;
    }
}

/* HFE ARTICLE DESIGN SYSTEM — TECHNICAL GUIDES END */



/* =========================================
   HFE ARTICLE DESIGN SYSTEM — ROOM LIST
   ========================================= */


/* =========================================
   ROOM LIST SUMMARY
   ========================================= */

.hfe-roomlist .hfe-room-stats {
    margin-top: 24px;
}

.hfe-roomlist .hfe-room-stats .hfe-stat-value {
    font-variant-numeric: tabular-nums;
}


/* =========================================
   ROOM LIST TOOLBAR
   ========================================= */

.hfe-roomlist .hfe-room-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 16px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--hfe-article-border);
}

.hfe-roomlist .hfe-room-toolbar h2 {
    margin: 0;

    color: var(--hfe-article-accent);
    font-size: 1.5rem;
    font-weight: 600;
}

.hfe-roomlist button.hfe-btn {
    cursor: pointer;
}

.hfe-roomlist button.hfe-btn:disabled {
    opacity: 0.5;
    cursor: wait;
    box-shadow: none;
}

.hfe-roomlist .hfe-room-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 16px;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
}

.hfe-roomlist .hfe-room-status i {
    margin-right: 5px;
    color: var(--hfe-article-accent);
}


/* =========================================
   ROOM CARDS
   ========================================= */

.hfe-roomlist .hfe-room-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hfe-article-gap);
}

.hfe-roomlist .hfe-room-card {
    min-width: 0;
    padding: clamp(16px, 3vw, 24px);

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hfe-roomlist .hfe-room-card:hover {
    background: var(--hfe-article-hover);
    border-color: rgba(236, 160, 79, 0.25);
}

.hfe-roomlist .hfe-room-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hfe-roomlist .hfe-room-heading {
    flex: 1;
    min-width: 0;
}

.hfe-roomlist .hfe-room-name {
    margin: 0 0 8px;

    color: var(--hfe-article-accent);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.hfe-roomlist .hfe-room-description {
    margin: 0;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    line-height: 1.6;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================
   ROOM AVAILABILITY
   ========================================= */

.hfe-roomlist .hfe-room-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;

    padding: 5px 10px;

    border: 1px solid currentColor;
    border-radius: 6px;

    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;

    white-space: nowrap;
}

.hfe-roomlist .hfe-room-open {
    background: rgba(117, 199, 151, 0.07);
    color: #75C797;
    border-color: rgba(117, 199, 151, 0.25);
}

.hfe-roomlist .hfe-room-full {
    background: rgba(239, 83, 80, 0.07);
    color: #FF8A80;
    border-color: rgba(239, 83, 80, 0.25);
}

.hfe-roomlist .hfe-room-unknown {
    background: rgba(255, 255, 255, 0.04);
    color: var(--hfe-article-muted);
    border-color: var(--hfe-article-border);
}


/* =========================================
   ROOM INFORMATION
   ========================================= */

.hfe-roomlist .hfe-room-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;

    margin-top: 20px;
}

.hfe-roomlist .hfe-room-detail {
    min-width: 0;
}

.hfe-roomlist .hfe-room-detail-label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 6px;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
}

.hfe-roomlist .hfe-room-detail-label i {
    width: 16px;

    color: var(--hfe-article-accent);
    text-align: center;
}

.hfe-roomlist .hfe-room-detail-value {
    color: var(--hfe-article-text);
    font-size: 0.95rem;
    font-weight: 500;

    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}


/* =========================================
   OCCUPANCY BAR
   ========================================= */

.hfe-roomlist .hfe-room-occupancy {
    height: 7px;

    margin-top: 10px;

    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;

    overflow: hidden;
}

.hfe-roomlist .hfe-room-occupancy-fill {
    display: block;

    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        #AC221F,
        #ECA04F
    );

    border-radius: inherit;
}

.hfe-roomlist .hfe-room-occupancy-full
.hfe-room-occupancy-fill {
    background: #EF5350;
}


/* =========================================
   PLAYERS INSIDE
   ========================================= */

.hfe-roomlist .hfe-room-players {
    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid var(--hfe-article-border);
}

.hfe-roomlist .hfe-room-players-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 10px;

    color: var(--hfe-article-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.hfe-roomlist .hfe-room-player-text {
    padding: 12px 14px;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--hfe-article-border);
    border-radius: 6px;

    color: var(--hfe-article-text);
    font-size: 0.85rem;
    line-height: 1.8;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* =========================================
   LOADING, EMPTY AND ERROR STATES
   ========================================= */

.hfe-roomlist .hfe-room-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 220px;
    padding: clamp(24px, 5vw, 40px);

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    text-align: center;
}

.hfe-roomlist .hfe-room-state-icon {
    color: var(--hfe-article-accent);
    font-size: 36px;
    line-height: 1.2;
}

.hfe-roomlist .hfe-room-state-title {
    margin: 0;

    color: var(--hfe-article-accent);
    font-size: 1.2rem;
    font-weight: 600;
}

.hfe-roomlist .hfe-room-state p {
    max-width: 440px;
    margin: 0;

    color: var(--hfe-article-muted);
    font-size: 0.9rem;
}

.hfe-roomlist .hfe-room-state .hfe-actions {
    justify-content: center;
    margin-top: 8px;
}

.hfe-roomlist .hfe-room-state-error {
    background: rgba(172, 34, 31, 0.07);
    border-color: rgba(239, 83, 80, 0.25);
}

.hfe-roomlist .hfe-room-state-error
.hfe-room-state-icon,

.hfe-roomlist .hfe-room-state-error
.hfe-room-state-title {
    color: #FF8A80;
}


/* =========================================
   LOADING ANIMATION
   ========================================= */

.hfe-roomlist .hfe-room-loading {
    animation: hfe-room-spin 1.2s linear infinite;
}

@keyframes hfe-room-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   RESPONSIVE ROOM LIST
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-roomlist .hfe-room-stats.hfe-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hfe-roomlist .hfe-room-stats .hfe-stat-value {
        font-size: 1.5rem;
    }

    .hfe-roomlist .hfe-room-stats .hfe-stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {

    .hfe-roomlist .hfe-room-stats.hfe-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hfe-roomlist .hfe-room-stats .hfe-stat {
        padding: 14px 6px;
    }

    .hfe-roomlist .hfe-room-stats .hfe-stat > i {
        font-size: 20px;
    }

    .hfe-roomlist .hfe-room-stats .hfe-stat-value {
        font-size: 1.3rem;
    }

    .hfe-roomlist .hfe-room-toolbar h2 {
        font-size: 1.3rem;
    }

    .hfe-roomlist .hfe-room-toolbar .hfe-btn {
        width: auto;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .hfe-roomlist .hfe-room-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .hfe-roomlist .hfe-room-name {
        font-size: 1.1rem;
    }

    .hfe-roomlist .hfe-room-details {
        gap: 12px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .hfe-roomlist .hfe-room-loading {
        animation: none;
    }

    .hfe-roomlist .hfe-room-card {
        transition: none;
    }
}

/* HFE ARTICLE DESIGN SYSTEM — ROOM LIST END */



/* =========================================
   HFE ROOM LIST — FILTERS & PAGINATION
   ========================================= */


/* =========================================
   FILTER PANEL
   ========================================= */

.hfe-roomlist .hfe-room-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: end;
    gap: 12px;

    margin-bottom: 16px;
    padding: 16px;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-roomlist .hfe-room-field {
    min-width: 0;
}

.hfe-roomlist .hfe-room-field label {
    display: block;

    margin-bottom: 6px;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.hfe-roomlist .hfe-room-input,
.hfe-roomlist .hfe-room-select {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 42px;

    margin: 0;
    padding: 9px 12px;

    background-color: #2B1C19;
    color: var(--hfe-article-text);

    border: 1px solid var(--hfe-article-border);
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;

    transition: border-color 0.2s ease;
}

.hfe-roomlist .hfe-room-select {
    color-scheme: dark;
    cursor: pointer;
}

.hfe-roomlist .hfe-room-input::placeholder {
    color: var(--hfe-article-muted);
    opacity: 0.65;
}

.hfe-roomlist .hfe-room-input:focus,
.hfe-roomlist .hfe-room-select:focus {
    border-color: var(--hfe-article-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 160, 79, 0.1);
}

.hfe-roomlist .hfe-room-input:disabled,
.hfe-roomlist .hfe-room-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================
   SEARCH FIELD
   ========================================= */

.hfe-roomlist .hfe-room-search {
    position: relative;
}

.hfe-roomlist .hfe-room-search > i {
    position: absolute;
    top: 50%;
    left: 12px;

    color: var(--hfe-article-accent);
    font-size: 0.85rem;

    transform: translateY(-50%);

    pointer-events: none;
}

.hfe-roomlist .hfe-room-search .hfe-room-input {
    padding-left: 36px;
}


/* =========================================
   RESULTS TOOLBAR
   ========================================= */

.hfe-roomlist .hfe-room-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    margin: 16px 0;

    color: var(--hfe-article-muted);
    font-size: 0.8rem;
}

.hfe-roomlist .hfe-room-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hfe-roomlist .hfe-room-page-size .hfe-room-select {
    width: auto;
    min-height: 36px;
    padding: 6px 10px;

    font-size: 0.8rem;
}


/* =========================================
   COMPACT ROOM CARDS
   ========================================= */

.hfe-roomlist .hfe-room-list {
    gap: 10px;
}

.hfe-roomlist .hfe-room-card {
    padding: 16px 20px;
}

.hfe-roomlist .hfe-room-name {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.hfe-roomlist .hfe-room-description {
    font-size: 0.8rem;
}

.hfe-roomlist .hfe-room-details {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;
    margin-top: 12px;
}

.hfe-roomlist .hfe-room-detail-label {
    margin-bottom: 3px;
    font-size: 0.75rem;
}

.hfe-roomlist .hfe-room-detail-value {
    font-size: 0.85rem;
}

.hfe-roomlist .hfe-room-occupancy {
    height: 5px;
    max-width: 180px;
    margin-top: 6px;
}


/* =========================================
   COLLAPSIBLE PLAYER INFORMATION
   ========================================= */

.hfe-roomlist .hfe-room-players {
    margin-top: 12px;
    padding-top: 10px;
}

.hfe-roomlist .hfe-room-players > summary {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 4px 0;

    color: var(--hfe-article-muted);

    font-size: 0.8rem;
    font-weight: 500;

    list-style: none;
    cursor: pointer;

    transition: color 0.2s ease;
}

.hfe-roomlist .hfe-room-players
> summary::-webkit-details-marker {
    display: none;
}

.hfe-roomlist .hfe-room-players > summary > i {
    color: var(--hfe-article-accent);
}

.hfe-roomlist .hfe-room-players > summary::after {
    content: "";

    display: block;
    flex-shrink: 0;

    width: 7px;
    height: 7px;

    margin-left: auto;
    margin-right: 4px;

    border-right: 2px solid var(--hfe-article-accent);
    border-bottom: 2px solid var(--hfe-article-accent);

    transform: rotate(45deg);

    transition: transform 0.2s ease;
}

.hfe-roomlist .hfe-room-players > summary:hover,
.hfe-roomlist .hfe-room-players[open] > summary {
    color: var(--hfe-article-accent);
}

.hfe-roomlist .hfe-room-players[open]
> summary::after {
    transform: rotate(225deg);
}

.hfe-roomlist .hfe-room-players > summary:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 4px;
    border-radius: 3px;
}

.hfe-roomlist .hfe-room-player-text {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.8rem;
}


/* =========================================
   PAGINATION
   ========================================= */

.hfe-roomlist .hfe-room-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 24px;
    padding: 14px;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-roomlist .hfe-room-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    background: rgba(255, 255, 255, 0.04);
    color: var(--hfe-article-accent);

    border: 1px solid var(--hfe-article-border);
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.85rem;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.hfe-roomlist .hfe-room-page-button:hover:not(:disabled) {
    background: rgba(236, 160, 79, 0.1);
    border-color: rgba(236, 160, 79, 0.4);
}

.hfe-roomlist .hfe-room-page-button:focus-visible {
    outline: 2px solid var(--hfe-article-accent);
    outline-offset: 3px;
}

.hfe-roomlist .hfe-room-page-button:disabled {
    opacity: 0.3;
    cursor: default;
}

.hfe-roomlist .hfe-room-page-info {
    min-width: 100px;
    padding: 0 8px;

    color: var(--hfe-article-muted);
    font-size: 0.85rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}


/* =========================================
   CONDITIONAL VISIBILITY
   ========================================= */

.hfe-roomlist [hidden] {
    display: none !important;
}


/* =========================================
   RESPONSIVE FILTERS & PAGINATION
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-roomlist .hfe-room-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hfe-roomlist .hfe-room-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {

    .hfe-roomlist .hfe-room-filters {
        padding: 12px;
        gap: 10px;
    }

    .hfe-roomlist .hfe-room-card {
        padding: 14px;
    }

    .hfe-roomlist .hfe-room-card-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hfe-roomlist .hfe-room-heading {
        flex-basis: 100%;
    }

    .hfe-roomlist .hfe-room-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .hfe-roomlist .hfe-room-pagination {
        padding: 10px 6px;
        gap: 4px;
    }

    .hfe-roomlist .hfe-room-page-button {
        width: 34px;
        height: 34px;
    }

    .hfe-roomlist .hfe-room-page-info {
        min-width: 84px;
        padding: 0 4px;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hfe-roomlist .hfe-room-input,
    .hfe-roomlist .hfe-room-select,
    .hfe-roomlist .hfe-room-page-button,
    .hfe-roomlist .hfe-room-players > summary,
    .hfe-roomlist .hfe-room-players > summary::after {
        transition: none;
    }
}

/* HFE ROOM LIST — FILTERS & PAGINATION END */


/* HFE DOWNLOAD CATALOGUE — START */
.hfe-downloads [hidden] { display: none !important; }
.hfe-downloads .hfe-download-main,
.hfe-downloads .hfe-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hfe-article-gap, 16px);
}
.hfe-downloads .hfe-download-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}
.hfe-downloads .hfe-download-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    border-color: rgba(236,160,79,.4);
    background: rgba(172,34,31,.08);
}
.hfe-downloads .hfe-download-art {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0,0,0,.25);
    border-bottom: 1px solid var(--hfe-article-border);
}
.hfe-downloads .hfe-download-art img {
    display: block;
    width: 100%; height: 100%; margin: 0;
    object-fit: contain;
}
.hfe-downloads .hfe-download-featured .hfe-download-art {
    aspect-ratio: auto; min-height: 180px;
    border-bottom: 0;
}
.hfe-downloads .hfe-download-icon img { padding: 16px; }
.hfe-downloads .hfe-download-body {
    display: flex; flex-direction: column; flex: 1;
    min-width: 0; padding: 18px; gap: 12px;
    overflow-wrap: anywhere;
}
.hfe-downloads .hfe-download-body h3 {
    color: var(--hfe-article-accent); font-size: 1.15rem; margin: 0;
}
.hfe-downloads .hfe-download-body p { color: var(--hfe-article-muted); font-size: .9rem; margin: 0; }
.hfe-downloads .hfe-download-category { color: var(--hfe-article-accent); font-size: .78rem; }
.hfe-downloads .hfe-download-versions { display: grid; gap: 6px; font-size: .8rem; color: var(--hfe-article-muted); }
.hfe-downloads .hfe-download-versions > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.hfe-downloads .hfe-download-versions strong { padding: 3px 8px; color: var(--hfe-article-accent); background: rgba(236,160,79,.09); border: 1px solid rgba(236,160,79,.2); border-radius: 5px; }
.hfe-downloads .hfe-download-body .hfe-actions { margin-top: auto; padding-top: 6px; }
.hfe-downloads .hfe-download-body .hfe-btn { width: 100%; justify-content: center; text-align: center; }
.hfe-downloads .hfe-download-controls {
    display: grid; grid-template-columns: minmax(0,2fr) repeat(3,minmax(0,1fr));
    gap: 12px; padding: 16px; margin: 20px 0 12px;
    background: var(--hfe-article-background); border: 1px solid var(--hfe-article-border); border-radius: var(--hfe-article-radius);
}
.hfe-downloads .hfe-download-controls > div { min-width: 0; }
.hfe-downloads .hfe-download-controls label { display: block; margin-bottom: 6px; }
.hfe-downloads .hfe-download-controls label, .hfe-downloads .hfe-download-results { color: var(--hfe-article-muted); font-size: .85rem; }
.hfe-downloads input, .hfe-downloads select {
    width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
    background: #2B1C19; color: #fff; color-scheme: dark;
    border: 1px solid var(--hfe-article-border); border-radius: 6px; font: inherit;
}
.hfe-downloads input:focus-visible, .hfe-downloads select:focus-visible, .hfe-downloads button:focus-visible { outline: 2px solid var(--hfe-article-accent); outline-offset: 2px; }
.hfe-downloads .hfe-download-results, .hfe-downloads .hfe-download-results > div, .hfe-downloads .hfe-download-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hfe-downloads .hfe-download-results { justify-content: space-between; margin: 12px 0 16px; }
.hfe-downloads .hfe-download-results select { width: auto; }
.hfe-downloads .hfe-download-results .hfe-btn, .hfe-downloads .hfe-download-pagination .hfe-btn { width: auto; cursor: pointer; }
.hfe-downloads .hfe-download-pagination { justify-content: center; margin-top: 24px; }
.hfe-downloads .hfe-download-pagination button:disabled { opacity: .4; cursor: default; }
.hfe-downloads #hf-mods > h2 { scroll-margin-top: 100px; }
@media (min-width: 1200px) {
    .hfe-downloads .hfe-download-grid, .hfe-downloads .hfe-download-main { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
    .hfe-downloads .hfe-download-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .hfe-downloads .hfe-download-main, .hfe-downloads .hfe-download-grid, .hfe-downloads .hfe-download-featured { grid-template-columns: minmax(0,1fr); }
    .hfe-downloads .hfe-download-featured .hfe-download-art { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 420px) {
    .hfe-downloads .hfe-download-controls { grid-template-columns: minmax(0,1fr); }
}
/* HFE DOWNLOAD CATALOGUE — END */

/* HFE HFX DOWNLOADS — START */
/* Requires the shared HFE article and HF Downloads catalogue CSS. */
.hfe-downloads.hfe-hfx-downloads .hfe-hfx-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hfe-hfx-downloads .hfe-hfx-recommended {
    border-color: rgba(164, 198, 57, .4);
}
.hfe-hfx-downloads .hfe-hfx-platform {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hfe-article-muted);
    font-size: .85rem;
    font-weight: 600;
}
.hfe-hfx-downloads .hfe-hfx-platform i {
    font-size: 32px;
    line-height: 1;
}
.hfe-hfx-downloads .hfe-hfx-android { color: #3DDC84; }
.hfe-hfx-downloads .hfe-hfx-apple { color: #A2AAAD; }
.hfe-hfx-downloads .hfe-hfx-recommendation {
    align-self: flex-start;
    color: #75C797;
    font-size: .8rem;
    font-weight: 600;
}
.hfe-hfx-downloads .hfe-download-body .hfe-feature-list {
    margin: 0;
    padding: 0;
}
.hfe-hfx-downloads .hfe-download-body .hfe-feature-list li {
    font-size: .85rem;
}
.hfe-hfx-downloads .hfe-hfx-spaced { margin-top: 16px; }
.hfe-hfx-downloads .hfe-hfx-subheading {
    margin: 24px 0 16px;
    color: var(--hfe-article-accent);
    font-size: 1.15rem;
}
.hfe-hfx-downloads .hfe-card h4 {
    color: var(--hfe-article-accent);
    font-size: 1.05rem;
    margin: 0 0 12px;
}
.hfe-hfx-downloads .hfe-section > .hfe-callout { margin-top: 20px; }
@media (max-width: 767.98px) {
    .hfe-downloads.hfe-hfx-downloads .hfe-hfx-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* HFE HFX DOWNLOADS — END */



/* =========================================
   HFE HOMEPAGE — START
   ========================================= */

.hfe-home {
    margin-bottom: 36px;
}


/* =========================================
   WELCOME HERO
   ========================================= */

.hfe-home .hfe-home-hero {
    position: relative;
    overflow: hidden;

    padding: clamp(24px, 5vw, 48px);

    background:
        radial-gradient(
            ellipse at top right,
            rgba(172, 34, 31, .24),
            transparent 65%
        ),
        rgba(255, 255, 255, .025);
}

.hfe-home .hfe-home-hero .hfe-hero-title {
    max-width: 850px;

    font-size: clamp(2rem, 4.5vw, 3rem);
}

.hfe-home .hfe-home-hero p {
    max-width: 760px;
}

.hfe-home .hfe-home-hero .hfe-actions {
    margin-top: 24px;
}


/* =========================================
   GAME SHOWCASE
   ========================================= */

.hfe-home .hfe-home-games {
    align-items: stretch;
}

.hfe-home .hfe-home-game {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: var(--hfe-article-background);
    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.hfe-home .hfe-home-game:hover {
    border-color: rgba(236, 160, 79, .3);
}


/* =========================================
   GAME ARTWORK
   ========================================= */

.hfe-home .hfe-home-game-art {
    position: relative;

    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: rgba(0, 0, 0, .25);

    border-bottom:
        1px solid var(--hfe-article-border);
}

.hfe-home .hfe-home-game-art img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: contain;

    transition: transform .3s ease;
}

.hfe-home .hfe-home-platform {
    position: absolute;

    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 12px;

    background: rgba(35, 27, 26, .92);
    color: var(--hfe-article-text);

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 6px;

    font-size: .8rem;
    font-weight: 600;
}

.hfe-home .hfe-home-platform i {
    color: var(--hfe-article-accent);
}


/* =========================================
   GAME CARD CONTENT
   ========================================= */

.hfe-home .hfe-home-game-body {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    padding: clamp(16px, 3vw, 24px);
}

.hfe-home .hfe-home-game-body h3 {
    margin: 0 0 12px;

    color: var(--hfe-article-accent);
    font-size: 1.4rem;
}

.hfe-home .hfe-home-game-body p {
    color: var(--hfe-article-muted);
    font-size: .95rem;
}

.hfe-home .hfe-home-game-body .hfe-feature-list {
    margin: 4px 0 0;
    padding: 0;
}

.hfe-home .hfe-home-game-body .hfe-actions {
    margin-top: auto;
    padding-top: 24px;
}

.hfe-home .hfe-home-game-body .hfe-btn {
    flex: 1 1 auto;
    justify-content: center;
}


/* =========================================
   QUICK ACCESS
   ========================================= */

.hfe-home .hfe-home-explore {
    align-items: stretch;
}

.hfe-home .hfe-home-explore .hfe-link-card {
    min-height: 92px;
    height: 100%;
}

.hfe-home .hfe-home-explore .hfe-link-icon {
    flex-shrink: 0;
}


/* =========================================
   COMMUNITY PANEL
   ========================================= */

.hfe-home .hfe-home-community {
    display: flex;
    align-items: center;
    gap: 24px;

    padding: clamp(20px, 4vw, 32px);

    background:
        linear-gradient(
            135deg,
            rgba(172, 34, 31, .12),
            rgba(255, 255, 255, .025)
        );

    border: 1px solid var(--hfe-article-border);
    border-radius: var(--hfe-article-radius);
}

.hfe-home .hfe-home-community-icon {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;

    background: rgba(236, 160, 79, .08);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, .15);
    border-radius: 12px;

    font-size: 32px;
}

.hfe-home .hfe-home-community-content {
    flex: 1;
    min-width: 0;
}

.hfe-home .hfe-home-community-content h2 {
    margin: 0 0 12px;

    color: var(--hfe-article-accent);
    font-size: 1.35rem;
}

.hfe-home .hfe-home-community-content p {
    margin-bottom: 0;

    color: var(--hfe-article-muted);
    font-size: .95rem;
}

.hfe-home .hfe-home-community-content .hfe-actions {
    margin-top: 20px;
}


/* =========================================
   POINTER INTERACTIONS
   ========================================= */

@media (hover: hover) and (pointer: fine) {

    .hfe-home .hfe-home-game:hover
    .hfe-home-game-art img {
        transform: scale(1.025);
    }

}


/* =========================================
   RESPONSIVE HOMEPAGE
   ========================================= */

@media (min-width: 768px)
   and (max-width: 1199.98px) {

    .hfe-home .hfe-home-explore {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {

    .hfe-home .hfe-home-games {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .hfe-home .hfe-home-explore {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hfe-home .hfe-home-community {
        align-items: flex-start;
        flex-direction: column;

        gap: 16px;
    }

    .hfe-home .hfe-home-community-icon {
        flex-basis: 56px;

        width: 56px;
        height: 56px;

        font-size: 24px;
    }

}

@media (max-width: 575.98px) {

    .hfe-home {
        margin-bottom: 24px;
    }

    .hfe-home .hfe-home-hero {
        padding: 20px;
    }

    .hfe-home .hfe-home-hero .hfe-hero-title {
        font-size: 1.9rem;
    }

    .hfe-home .hfe-home-explore {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .hfe-home .hfe-home-explore .hfe-link-card {
        min-height: 76px;
    }

    .hfe-home .hfe-home-game-body h3 {
        font-size: 1.25rem;
    }

    .hfe-home .hfe-home-game-body .hfe-btn {
        flex-basis: 100%;
    }

    .hfe-home .hfe-home-platform {
        top: 8px;
        left: 8px;

        padding: 5px 9px;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .hfe-home .hfe-home-game,
    .hfe-home .hfe-home-game-art img {
        transition: none;
    }

    .hfe-home .hfe-home-game:hover
    .hfe-home-game-art img {
        transform: none;
    }

}

/* HFE HOMEPAGE — END */



/* =========================================
   HFE HOMEPAGE — NEWS FEED START
   ========================================= */

.blog-featured {
    --hfe-news-accent: #ECA04F;
    --hfe-news-muted: #E4C8BC;
    --hfe-news-background: rgba(255, 255, 255, .035);
    --hfe-news-border: rgba(255, 255, 255, .1);
    --hfe-news-radius: 10px;
}


/* =========================================
   NEWS SECTION HEADING
   ========================================= */

.blog-featured > .page-header,
.com-content-article > .page-header:first-child {
    margin: 0 0 24px;
    padding-bottom: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.blog-featured > .page-header > h1,
.blog-featured > .page-header > h2,
.com-content-article > .page-header:first-child > h1,
.com-content-article > .page-header:first-child > h2 {
    margin: 0;

    color: #ECA04F;
    font-size: 1.5rem;
    font-weight: 600;
}


/* =========================================
   NEWS ARTICLE GRID
   ========================================= */

.blog-featured > .blog-items {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    gap: 16px;
}

.blog-featured > .items-leading {
    margin-bottom: 16px;
}


/* =========================================
   NEWS ARTICLE CARDS
   ========================================= */

.blog-featured .blog-item {
    min-width: 0;

    margin: 0;
    padding: clamp(16px, 3vw, 28px);

    background: var(--hfe-news-background);

    border: 1px solid var(--hfe-news-border);
    border-radius: var(--hfe-news-radius);

    overflow-wrap: anywhere;

    transition: border-color .2s ease;
}

.blog-featured .blog-item:hover {
    border-color: rgba(236, 160, 79, .25);
}

.blog-featured .item-content {
    min-width: 0;
}


/* =========================================
   ARTICLE TITLES
   ========================================= */

.blog-featured .item-title {
    margin: 0 0 12px;

    color: var(--hfe-news-accent);

    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.4;
}

.blog-featured .item-title a {
    color: var(--hfe-news-accent);

    text-decoration: none;

    transition: color .2s ease;
}

.blog-featured .item-title a:hover {
    color: #FFC783;

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================
   ARTICLE METADATA
   ========================================= */

.blog-featured .article-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px 18px;

    margin: 0 0 20px;
    padding: 0 0 12px;

    color: var(--hfe-news-muted);

    border-bottom: 1px solid var(--hfe-news-border);

    font-size: .8rem;
}

.blog-featured .article-info-term {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.blog-featured .article-info dd {
    margin: 0;
}

.blog-featured .article-info [class*="icon-"] {
    margin-right: 4px;

    color: var(--hfe-news-accent);
}


/* =========================================
   ARTICLE CONTENT
   ========================================= */

.blog-featured .item-content {
    line-height: 1.7;
}

.blog-featured .item-content p {
    margin-bottom: 16px;
}

.blog-featured .item-content p:last-child {
    margin-bottom: 0;
}

.blog-featured .blog-item img {
    max-width: 100%;
    height: auto;
}

.blog-featured .blog-item iframe {
    max-width: 100%;
}

.blog-featured .item-image {
    max-width: 100%;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 8px;
}


/* =========================================
   QUOTATIONS
   ========================================= */

.blog-featured .item-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;

    background: rgba(236, 160, 79, .045);
    color: var(--hfe-news-muted);

    border-left: 3px solid var(--hfe-news-accent);
    border-radius: 0 6px 6px 0;

    font-size: .95rem;
}

.blog-featured .item-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================
   READ MORE BUTTON
   ========================================= */

.blog-featured .readmore {
    margin: 20px 0 0;
}

.blog-featured .readmore .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;

    padding: 9px 16px;

    background: transparent;
    color: var(--hfe-news-accent);

    border: 1px solid rgba(236, 160, 79, .45);
    border-radius: 7px;

    box-shadow: none;

    font-size: .85rem;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.blog-featured .readmore .btn:hover {
    background: rgba(236, 160, 79, .1);
    color: var(--hfe-news-accent);

    border-color: var(--hfe-news-accent);
}


/* =========================================
   KEYBOARD ACCESSIBILITY
   ========================================= */

.blog-featured .item-title a:focus-visible,
.blog-featured .readmore .btn:focus-visible {
    outline: 2px solid var(--hfe-news-accent);
    outline-offset: 4px;

    border-radius: 4px;
}


/* =========================================
   RESPONSIVE NEWS FEED
   ========================================= */

@media (max-width: 575.98px) {

    .blog-featured > .page-header {
        margin-bottom: 16px;
    }

    .blog-featured .blog-item {
        padding: 16px;
    }

    .blog-featured .article-info {
        gap: 6px 12px;

        font-size: .75rem;
    }

    .blog-featured .item-content {
        font-size: .95rem;
    }

    .blog-featured .item-content blockquote {
        padding: 12px 14px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .blog-featured .blog-item,
    .blog-featured .item-title a,
    .blog-featured .readmore .btn {
        transition: none;
    }

}

/* HFE HOMEPAGE — NEWS FEED END */


/* Hide the empty homepage module wrapper */
#mod-custom130:not(:has(#hfe-home)) {
    display: none !important;
}



/* =========================================
   HFE MANGA — START
   ========================================= */

.hfe-manga {
    --hfe-manga-cover-width: 240px;
}


/* =========================================
   MANGA HERO
   ========================================= */

.hfe-manga .hfe-manga-hero {
    display: grid;

    grid-template-columns:
        minmax(0, var(--hfe-manga-cover-width))
        minmax(0, 1fr);

    align-items: center;
    gap: clamp(24px, 4vw, 40px);

    padding: clamp(20px, 4vw, 36px);

    background:
        radial-gradient(
            ellipse at top right,
            rgba(172, 34, 31, .2),
            transparent 70%
        ),
        rgba(255, 255, 255, .025);
}


/* =========================================
   MANGA COVER
   ========================================= */

.hfe-manga .hfe-manga-cover {
    min-width: 0;

    overflow: hidden;

    background: rgba(0, 0, 0, .25);

    border: 1px solid rgba(236, 160, 79, .25);
    border-radius: 8px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .3);
}

.hfe-manga .hfe-manga-cover img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* =========================================
   INTRODUCTION
   ========================================= */

.hfe-manga .hfe-manga-intro {
    min-width: 0;
}

.hfe-manga .hfe-manga-intro .hfe-hero-title {
    margin-bottom: 16px;
}

.hfe-manga .hfe-manga-intro .hfe-lead {
    margin-bottom: 12px;
}

.hfe-manga .hfe-manga-intro > p:not(.hfe-lead) {
    color: var(--hfe-article-muted);

    font-size: .95rem;
}


/* =========================================
   PUBLICATION METADATA
   ========================================= */

.hfe-manga .hfe-manga-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0 0 20px;
}

.hfe-manga .hfe-manga-tag {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 5px 10px;

    background: rgba(255, 255, 255, .045);
    color: var(--hfe-article-muted);

    border: 1px solid var(--hfe-article-border);
    border-radius: 5px;

    font-size: .8rem;
    font-weight: 500;
}

.hfe-manga .hfe-manga-status {
    background: rgba(236, 160, 79, .08);
    color: var(--hfe-article-accent);

    border-color: rgba(236, 160, 79, .3);
}


/* =========================================
   GENRES
   ========================================= */

.hfe-manga .hfe-manga-genres {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 20px 0;
    padding: 0;

    list-style: none;
}

.hfe-manga .hfe-manga-genres li {
    margin: 0;
    padding: 5px 12px;

    background: rgba(236, 160, 79, .045);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, .2);
    border-radius: 30px;

    font-size: .8rem;
}


/* =========================================
   READING LANGUAGE SELECTION
   ========================================= */

.hfe-manga .hfe-manga-reading {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid var(--hfe-article-border);
}

.hfe-manga .hfe-manga-reading-label {
    display: block;

    margin-bottom: 12px;

    color: var(--hfe-article-muted);

    font-size: .85rem;
}

.hfe-manga .hfe-manga-reading .hfe-actions {
    margin-top: 0;
}


/* =========================================
   SYNOPSIS
   ========================================= */

.hfe-manga .hfe-manga-synopsis {
    padding: clamp(20px, 4vw, 32px);

    background:
        linear-gradient(
            135deg,
            rgba(236, 160, 79, .035),
            transparent
        ),
        var(--hfe-article-background);

    border: 1px solid var(--hfe-article-border);

    border-left:
        3px solid var(--hfe-article-accent);

    border-radius: var(--hfe-article-radius);

    font-size: 1.05rem;
    line-height: 1.8;
}

.hfe-manga .hfe-manga-synopsis p {
    margin-bottom: 18px;
}

.hfe-manga .hfe-manga-synopsis p:last-child {
    margin-bottom: 0;
}


/* =========================================
   CREATIVE TEAM
   ========================================= */

.hfe-manga .hfe-manga-credit {
    min-width: 0;

    overflow-wrap: anywhere;
}

.hfe-manga .hfe-manga-role {
    display: block;

    margin: 0 0 6px;

    color: var(--hfe-article-muted);

    font-size: .8rem;
}

.hfe-manga .hfe-manga-credit h3 {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.5;
}

.hfe-manga .hfe-manga-credit p {
    margin: 6px 0 0;

    font-size: .85rem;
}

.hfe-manga .hfe-manga-credit h3 a {
    color: var(--hfe-article-accent);
}

.hfe-manga .hfe-manga-credit a i {
    font-size: .65em;
}


/* =========================================
   READING DIRECTION ILLUSTRATION
   ========================================= */

.hfe-manga .hfe-manga-direction {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    margin: 20px 0;
    padding: 16px;

    background: rgba(0, 0, 0, .15);

    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;
}

.hfe-manga .hfe-manga-page {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 64px;

    background: rgba(236, 160, 79, .06);
    color: var(--hfe-article-accent);

    border: 1px solid rgba(236, 160, 79, .3);
    border-radius: 4px;

    font-size: 1.2rem;
    font-weight: 600;
}

.hfe-manga .hfe-manga-direction > i {
    color: var(--hfe-article-accent);

    font-size: 1.5rem;
}


/* =========================================
   AGE RATING
   ========================================= */

.hfe-manga .hfe-manga-age {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 98px;

    margin: 20px 0;
    padding: 16px;

    background: rgba(0, 0, 0, .15);
    color: var(--hfe-article-accent);

    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;

    font-size: 2rem;
    font-weight: 600;
}


/* =========================================
   STATUS AND CALL TO ACTION
   ========================================= */

.hfe-manga #hfo-reading-guide > .hfe-callout {
    margin-top: 20px;
}

.hfe-manga .hfe-manga-cta h2 {
    margin: 0 0 12px;

    color: var(--hfe-article-accent);

    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hfe-manga .hfe-manga-cta p {
    color: var(--hfe-article-muted);
}


/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

@media (max-width: 991.98px) {

    .hfe-manga {
        --hfe-manga-cover-width: 200px;
    }

    .hfe-manga .hfe-manga-credits {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {

    .hfe-manga .hfe-manga-hero {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 24px;
    }

    .hfe-manga .hfe-manga-cover {
        width: 100%;
        max-width: 220px;

        justify-self: center;
    }

    .hfe-manga .hfe-manga-intro
    .hfe-hero-title {
        font-size: 1.9rem;
    }

}

@media (max-width: 575.98px) {

    .hfe-manga .hfe-manga-cover {
        max-width: 180px;
    }

    .hfe-manga .hfe-manga-tags {
        gap: 6px;
    }

    .hfe-manga .hfe-manga-tag {
        padding: 4px 8px;

        font-size: .75rem;
    }

    .hfe-manga .hfe-manga-synopsis {
        padding: 16px;

        font-size: .95rem;
        line-height: 1.75;
    }

    .hfe-manga .hfe-manga-credit h3 {
        font-size: .95rem;
    }

    .hfe-manga .hfe-manga-genres li {
        padding: 4px 10px;

        font-size: .75rem;
    }

}

@media (max-width: 359.98px) {

    .hfe-manga .hfe-manga-credits {
        grid-template-columns:
            minmax(0, 1fr);
    }

}

/* HFE MANGA — END */



/* =========================================
   HFE MANGA LIBRARY — START
   ========================================= */

.hfe-chapter-library .category-list {
    --hfe-library-accent: #ECA04F;
    --hfe-library-muted: #E4C8BC;
    --hfe-library-border: rgba(255, 255, 255, .1);
    --hfe-library-background: rgba(255, 255, 255, .035);
}


/* =========================================
   LIBRARY HEADER
   ========================================= */

.hfe-manga-library .hfe-manga-library-heading {
    margin-bottom: 16px;
}

.hfe-manga-library-heading p {
    color: var(--hfe-article-muted);
}

.hfe-chapter-library #adminForm {
    scroll-margin-top: 100px;
}


/* =========================================
   CHAPTER LIST
   ========================================= */

.hfe-chapter-library .com-content-category__table {
    width: 100%;

    margin: 0 0 24px;

    border-collapse: separate !important;
    border-spacing: 0 10px !important;

    border: 0 !important;

    --bs-table-bg: transparent;
    --bs-table-color: #fff;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-border-color: transparent;
}

.hfe-chapter-library
.com-content-category__table tbody tr {
    background: transparent;
}

.hfe-chapter-library
.com-content-category__table .list-title {
    padding: 0 !important;

    background: var(--hfe-library-background);

    border: 1px solid var(--hfe-library-border);
    border-radius: 8px;

    box-shadow: none !important;

    text-align: left;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}

.hfe-chapter-library
.com-content-category__table .list-title:hover {
    background: rgba(236, 160, 79, .055);

    border-color: rgba(236, 160, 79, .35);
}


/* =========================================
   CHAPTER LINKS
   ========================================= */

.hfe-chapter-library
.com-content-category__table .list-title > a:first-child {
    display: flex;
    align-items: center;

    gap: 16px;

    width: 100%;
    min-height: 72px;

    padding: 14px 20px;

    color: var(--hfe-library-accent);

    font-size: 1rem;
    font-weight: 600;

    text-decoration: none;

    border-radius: 8px;
}


/* Book icon */

.hfe-chapter-library
.com-content-category__table .list-title > a:first-child::before {
    content: "\f518";

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    background: rgba(236, 160, 79, .08);
    color: var(--hfe-library-accent);

    border: 1px solid rgba(236, 160, 79, .15);
    border-radius: 7px;

    font-family: "Font Awesome 6 Free",
                 "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
}


/* Right chevron */

.hfe-chapter-library
.com-content-category__table .list-title > a:first-child::after {
    content: "";

    flex-shrink: 0;

    width: 9px;
    height: 9px;

    margin-left: auto;
    margin-right: 4px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;

    transform: rotate(45deg);

    transition: transform .2s ease;
}

.hfe-chapter-library
.com-content-category__table .list-title > a:first-child:hover::after {
    transform: translateX(3px) rotate(45deg);
}

.hfe-chapter-library
.com-content-category__table .list-title > a:first-child:focus-visible {
    outline: 2px solid var(--hfe-library-accent);
    outline-offset: 3px;
}


/* =========================================
   RESPONSIVE CHAPTER LIST
   ========================================= */

@media (max-width: 575.98px) {

    .hfe-chapter-library
    .com-content-category__table .list-title > a:first-child {
        min-height: 64px;

        padding: 12px 14px;

        gap: 12px;

        font-size: .95rem;
    }

    .hfe-chapter-library
    .com-content-category__table .list-title > a:first-child::before {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hfe-chapter-library
    .com-content-category__table .list-title,

    .hfe-chapter-library
    .com-content-category__table .list-title > a:first-child::after {
        transition: none;
    }

    .hfe-chapter-library
    .com-content-category__table .list-title > a:first-child:hover::after {
        transform: rotate(45deg);
    }

}

/* HFE MANGA LIBRARY — END */



/* =========================================
   HFE MANGA READER — START
   ========================================= */

.hfe-manga-reader .hfe-reader-header {
    padding: clamp(16px, 3vw, 24px);
}

.hfe-manga-reader .hfe-reader-header .hfe-hero-title {
    margin: 0 0 12px;

    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.hfe-manga-reader .hfe-reader-header .hfe-manga-tags {
    margin-bottom: 16px;
}

.hfe-manga-reader .hfe-reader-header .hfe-actions {
    margin-top: 0;
}

.hfe-manga-reader .hfe-reader-gallery {
    min-width: 0;

    margin: 24px 0;
}

.hfe-manga-reader > .hfe-callout {
    margin-top: 24px;
}

.hfe-manga-reader > .hfe-callout .hfe-actions {
    margin-top: 16px;
}

/* Native Joomla previous/next navigation */

.com-content-article:has(.hfe-manga-reader) .pagenavigation {
    margin-top: 24px;
}

.com-content-article:has(.hfe-manga-reader) .pagenavigation .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 44px;
    padding: 10px 18px;

    background: transparent;
    color: #ECA04F;

    border: 1px solid rgba(236, 160, 79, .45);
    border-radius: 7px;

    box-shadow: none;

    text-decoration: none;
}

.com-content-article:has(.hfe-manga-reader)
.pagenavigation .btn:hover {
    background: rgba(236, 160, 79, .1);
    color: #ECA04F;

    border-color: #ECA04F;
}

.com-content-article:has(.hfe-manga-reader)
.pagenavigation .btn:focus-visible {
    outline: 2px solid #ECA04F;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {

    .hfe-manga-reader .hfe-reader-gallery {
        margin: 16px 0;
    }

}

/* HFE MANGA READER — END */



/* =========================================
   HFE MANGA READER — GALLERY ENHANCEMENTS
   ========================================= */

.hfe-manga-reader .brSigContainer {
    display: grid !important;

    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));

    gap: 14px;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    list-style: none;

    counter-reset: hfe-manga-page;
}

.hfe-manga-reader .brSigContainer > .brSigItem {
    display: block !important;

    float: none !important;

    width: auto !important;
    height: auto !important;

    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    counter-increment: hfe-manga-page;
}

.hfe-manga-reader .brSigLink {
    position: relative;

    display: block !important;

    width: 100%;
    height: auto !important;

    aspect-ratio: 220 / 309;

    overflow: hidden;

    background: rgba(0, 0, 0, .25);

    border: 1px solid var(--hfe-article-border);
    border-radius: 7px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.hfe-manga-reader .brSigLink img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;

    border: 0;

    transition: transform .25s ease;
}


/* =========================================
   PAGE NUMBER OVERLAY
   ========================================= */

.hfe-manga-reader .brSigLink::after {
    content: counter(hfe-manga-page, decimal-leading-zero);

    position: absolute;

    right: 8px;
    bottom: 8px;

    min-width: 32px;

    padding: 4px 8px;

    background: rgba(35, 27, 26, .92);
    color: #ECA04F;

    border: 1px solid rgba(236, 160, 79, .25);
    border-radius: 5px;

    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;

    text-align: center;

    pointer-events: none;
}

.hfe-manga-reader .brSigLink:focus-visible {
    outline: 2px solid #ECA04F;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {

    .hfe-manga-reader .brSigLink:hover {
        border-color: #ECA04F;

        box-shadow:
            0 4px 16px rgba(0, 0, 0, .3);
    }

    .hfe-manga-reader .brSigLink:hover img {
        transform: scale(1.025);
    }

}


/* =========================================
   READING TOOLBAR
   ========================================= */

.hfe-manga-reader .hfe-reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 12px;

    margin: 0 0 20px;
    padding: 14px;

    background: var(--hfe-article-background);

    border: 1px solid var(--hfe-article-border);
    border-radius: 8px;
}

.hfe-manga-reader .hfe-reader-modes {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.hfe-manga-reader .hfe-reader-toolbar .hfe-btn {
    min-height: 40px;

    padding: 8px 14px;

    cursor: pointer;
}

.hfe-manga-reader .hfe-reader-toolbar
.hfe-btn[aria-pressed="true"] {
    background: #AC221F;
    color: #fff;

    border-color: #AC221F;
}

.hfe-manga-reader .hfe-reader-progress {
    color: var(--hfe-article-muted);

    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}


/* =========================================
   CONTINUOUS READING MODE
   ========================================= */

.hfe-manga-reader .hfe-reader-continuous {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}

.hfe-manga-reader .hfe-reader-page {
    margin: 0 0 20px;
    padding: 0;

    scroll-margin-top: 100px;
}

.hfe-manga-reader .hfe-reader-page img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    background: #fff;
}

.hfe-manga-reader .hfe-reader-page figcaption {
    padding: 8px;

    color: var(--hfe-article-muted);

    font-size: .85rem;
    text-align: center;
}

.hfe-manga-reader [hidden] {
    display: none !important;
}


/* =========================================
   FANCYBOX — IMMERSIVE READING
   ========================================= */

/* Hide floating website controls while the
   manga lightbox is open. */

body.fancybox-active:has(.hfe-manga-reader)
.hfe-floating-button,

body.fancybox-active:has(.hfe-manga-reader)
#mod-custom152 .support-box {
    display: none !important;
}

/* Darken the lightbox background so the
   website does not distract from the artwork. */

body:has(.hfe-manga-reader)
.fancybox-is-open .fancybox-bg {
    background: #100c0b;

    opacity: .98;
}


/* =========================================
   RESPONSIVE READER
   ========================================= */

@media (max-width: 767.98px) {

    .hfe-manga-reader .brSigContainer {
        grid-template-columns:
            repeat(auto-fill, minmax(120px, 1fr));

        gap: 10px;
    }

}

@media (max-width: 575.98px) {

    .hfe-manga-reader .brSigContainer {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .hfe-manga-reader .hfe-reader-toolbar {
        align-items: stretch;
        flex-direction: column;

        padding: 12px;
    }

    .hfe-manga-reader .hfe-reader-modes {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hfe-manga-reader .hfe-reader-modes .hfe-btn {
        width: 100%;

        justify-content: center;

        font-size: .8rem;
    }

    .hfe-manga-reader .hfe-reader-page {
        margin-bottom: 12px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hfe-manga-reader .brSigLink,
    .hfe-manga-reader .brSigLink img {
        transition: none;
    }

    .hfe-manga-reader .brSigLink:hover img {
        transform: none;
    }

}

/* HFE MANGA READER — GALLERY ENHANCEMENTS END */


/* HFE MANGA CHAPTER NAVIGATION — START */
.hfe-manga-reader .hfe-reader-chapter-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--hfe-article-border);
}
.hfe-manga-reader .hfe-reader-chapter-nav .hfe-btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
}
.hfe-manga-reader .hfe-reader-chapter-select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    color: #ECA04F;
    background: #231b1a;
    border: 1px solid rgba(236,160,79,.45);
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
}
.hfe-manga-reader .hfe-reader-chapter-select:focus-visible {
    outline: 2px solid #ECA04F;
    outline-offset: 3px;
}
.hfe-manga-reader .hfe-reader-nav-disabled {
    color: var(--hfe-article-muted);
    font-size: .85rem;
    text-align: center;
}
.hfe-manga-reader .hfe-reader-offline {
    margin-top: 24px;
}
.hfe-manga-reader .hfe-reader-credit {
    margin: 0 0 12px;
    color: var(--hfe-article-muted);
    font-size: .9rem;
}
.com-content-article:has(.hfe-reader-has-navigation) .pagenavigation {
    display: none !important;
}
@media (max-width: 575.98px) {
    .hfe-manga-reader .hfe-reader-chapter-nav { gap: 8px; }
    .hfe-manga-reader .hfe-reader-chapter-nav .hfe-btn { font-size: .78rem; padding: 8px 5px; }
    .hfe-manga-reader .hfe-reader-chapter-select { font-size: .85rem; padding: 8px 5px; }
}
/* HFE MANGA CHAPTER NAVIGATION — END */


/* HFE LIBRARY CONTINUE READING — START */
.hfe-manga-library .hfe-library-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: clamp(16px, 3vw, 24px);
    background: rgba(236,160,79,.055);
    border: 1px solid rgba(236,160,79,.30);
    border-radius: var(--hfe-article-radius, 10px);
}
.hfe-library-resume-content { flex: 1; min-width: 0; }
.hfe-manga-library .hfe-library-resume h2 {
    margin: 0 0 8px;
    color: #ECA04F;
    font-size: 1.25rem;
}
.hfe-manga-library .hfe-library-resume p {
    margin: 0 0 12px;
    color: var(--hfe-article-muted, #E4C8BC);
}
.hfe-library-resume progress {
    display: block;
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    accent-color: #ECA04F;
}
.hfe-library-resume progress::-webkit-progress-bar { background: rgba(255,255,255,.12); }
.hfe-library-resume progress::-webkit-progress-value { background: #ECA04F; }
.hfe-library-resume progress::-moz-progress-bar { background: #ECA04F; }
.hfe-library-resume > .hfe-btn { flex-shrink: 0; }
@media (max-width: 575.98px) {
    .hfe-manga-library .hfe-library-resume { flex-direction: column; align-items: stretch; gap: 16px; }
    .hfe-library-resume > .hfe-btn { width: 100%; }
}
/* HFE LIBRARY CONTINUE READING — END */


/* HFE CHARACTERS — START */
.hfe-character-guide [hidden] { display: none !important; }
.hfe-character-guide .hfe-character-filter { display:grid; gap:8px; margin-bottom:16px; }
.hfe-character-guide .hfe-character-filter label { font-weight:600; }
.hfe-character-guide input[type="search"] { width:100%; max-width:420px; min-height:44px; padding:10px 14px; border:1px solid var(--hfe-article-border); border-radius:7px; color:#fff; background:#350404; }
.hfe-character-guide .hfe-character-count,.hfe-character-guide .hfe-character-note { color:var(--hfe-article-muted); font-size:.85rem; }
.hfe-character-guide .hfe-character-roster { display:grid; grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:10px; }
.hfe-character-guide .hfe-character-choice { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:120px; padding:8px 4px; background:var(--hfe-article-background); border:1px solid var(--hfe-article-border); border-radius:8px; color:var(--hfe-article-text); font-size:.82rem; font-weight:600; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.hfe-character-guide .hfe-character-choice img { width:90px; max-width:100%; height:80px; object-fit:contain; margin:0; }
.hfe-character-guide .hfe-character-choice:hover,.hfe-character-guide .hfe-character-choice[aria-current="true"] { color:var(--hfe-article-accent); background:rgba(236,160,79,.09); border-color:var(--hfe-article-accent); }
.hfe-character-guide .hfe-character-choice[aria-current="true"] { box-shadow:inset 0 -3px 0 var(--hfe-article-accent); }
.hfe-character-guide .hfe-character-level { display:grid; gap:12px; max-width:580px; padding:16px; margin:16px 0; border:1px solid var(--hfe-article-border); background:var(--hfe-article-background); border-radius:8px; }
.hfe-character-guide .hfe-character-level output { color:var(--hfe-article-accent); font-weight:700; font-size:1.2rem; }
.hfe-character-guide .hfe-character-slider { display:flex; align-items:center; gap:12px; }
.hfe-character-guide .hfe-character-slider input { flex:1; min-width:0; accent-color:#ECA04F; }
.hfe-character-guide .hfe-character-slider button { width:44px; height:44px; flex:none; border:1px solid rgba(236,160,79,.4); border-radius:7px; color:#ECA04F; background:transparent; font-size:1.35rem; }
.hfe-character-guide button:disabled { opacity:.4; cursor:not-allowed; }
.hfe-character-guide .hfe-character-normalize { display:flex; gap:10px; align-items:center; font-size:.9rem; }
.hfe-character-guide .hfe-character-normalize input { width:20px; height:20px; flex:none; accent-color:#ECA04F; }
.hfe-character-guide .hfe-character-profile { scroll-margin-top:100px; }
.hfe-character-guide .hfe-character-summary .hfe-profile-header { grid-template-columns:minmax(0,180px) minmax(0,1fr); }
.hfe-character-guide .hfe-character-summary .hfe-profile-image img { width:auto; max-width:100%; max-height:180px; object-fit:contain; }
.hfe-character-guide .hfe-character-stars { color:#ECA04F; letter-spacing:2px; font-size:1.15rem; }
.hfe-character-guide .hfe-character-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:20px; }
.hfe-character-guide .hfe-character-stat { --stat-color:#ECA04F; display:grid; gap:6px; min-width:0; padding:12px; background:rgba(0,0,0,.18); border:1px solid var(--hfe-article-border); border-radius:7px; }
.hfe-character-guide .hfe-stat-hp { --stat-color:#EF5350; }
.hfe-character-guide .hfe-stat-mp { --stat-color:#6495ED; }
.hfe-character-guide .hfe-character-stat > span:first-child { color:var(--hfe-article-muted); font-size:.85rem; }
.hfe-character-guide .hfe-character-stat strong { color:var(--stat-color); font-size:1.3rem; font-variant-numeric:tabular-nums; }
.hfe-character-guide .hfe-character-meter { height:6px; border-radius:4px; overflow:hidden; background:rgba(255,255,255,.1); }
.hfe-character-guide .hfe-character-meter > span { display:block; height:100%; width:0; background:var(--stat-color); }
.hfe-character-guide .hfe-character-moves-title { margin:24px 0 16px; color:var(--hfe-article-accent); font-size:1.25rem; }
.hfe-character-guide .hfe-character-moves { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.hfe-character-guide .hfe-character-move { display:flex; flex-direction:column; padding:0; min-width:0; overflow:hidden; }
.hfe-character-guide .hfe-character-move-art { display:grid; justify-items:center; padding:14px; background:rgba(0,0,0,.2); border-bottom:1px solid var(--hfe-article-border); }
.hfe-character-guide .hfe-character-move-art > img { width:auto; max-width:100%; height:100px; object-fit:contain; margin:0; image-rendering:auto; }
.hfe-character-guide .hfe-character-alt { width:100%; text-align:center; margin-top:8px; color:var(--hfe-article-muted); font-size:.8rem; }
.hfe-character-guide .hfe-character-alt summary { cursor:pointer; }
.hfe-character-guide .hfe-character-alt img { max-width:100%; height:auto; margin:8px auto 0; }
.hfe-character-guide .hfe-character-move-body { padding:16px; overflow-wrap:anywhere; }
.hfe-character-guide .hfe-character-move-body h4 { color:var(--hfe-article-accent); font-size:1.05rem; margin:0 0 12px; }
.hfe-character-guide .hfe-character-input { line-height:2.2; }
.hfe-character-guide .hfe-character-input .hfe-key { margin:2px; min-width:24px; padding:2px 5px; }
.hfe-character-guide .hfe-character-cost { display:flex; flex-wrap:wrap; gap:10px; font-weight:600; }
.hfe-character-guide .hfe-character-flags { display:flex; flex-wrap:wrap; gap:6px; }
.hfe-character-guide .hfe-character-flags span { padding:4px 8px; border:1px solid rgba(236,160,79,.25); border-radius:5px; color:var(--hfe-article-accent); font-size:.75rem; }
.hfe-character-guide .hfe-character-back { display:inline-block; margin-top:16px; color:var(--hfe-article-accent); }
.hfe-character-guide :is(a,button,input,summary):focus-visible { outline:2px solid #ECA04F; outline-offset:3px; }
@media(max-width:767.98px) { .hfe-character-guide .hfe-character-summary .hfe-profile-header { grid-template-columns:1fr; } }
@media(max-width:575.98px) { .hfe-character-guide .hfe-character-roster { grid-template-columns:repeat(auto-fill,minmax(85px,1fr)); gap:8px; } .hfe-character-guide .hfe-character-moves { grid-template-columns:1fr; } .hfe-character-guide .hfe-character-stats { gap:6px; } .hfe-character-guide .hfe-character-stat { padding:8px; } .hfe-character-guide .hfe-character-stat strong { font-size:1rem; } }
/* HFE CHARACTERS — END */


/* HFE HFX CHARACTERS — START: requires existing HFE Characters CSS */
.hfe-hfx-character-guide .hfe-character-move { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:stretch; }
.hfe-hfx-character-guide .hfe-character-move-art { padding:12px; align-content:center; border-bottom:0; border-right:1px solid var(--hfe-article-border); }
.hfe-hfx-character-guide .hfe-character-move-art > img { width:60px; height:60px; object-fit:contain; }
.hfe-hfx-character-guide .hfe-character-input { line-height:1.65; }
.hfe-hfx-character-guide .hfe-hfx-level-entry { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.hfe-hfx-character-guide .hfe-hfx-level-entry input { width:110px; min-height:44px; padding:8px; color:#fff; background:#350404; border:1px solid var(--hfe-article-border); border-radius:7px; }
@media(max-width:359.98px) { .hfe-hfx-character-guide .hfe-character-move { grid-template-columns:64px minmax(0,1fr); } .hfe-hfx-character-guide .hfe-character-move-art { padding:8px; } }
/* HFE HFX CHARACTERS — END */

/* HFE TROOPS — START: requires shared hfe-characters.css */
.hfe-troop-guide .hfe-troop-team {display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 16px;}
.hfe-troop-guide .hfe-troop-team select {min-height:44px; padding:8px 12px; color:#fff; background:#350404; border:1px solid var(--hfe-article-border); border-radius:7px;}
.hfe-troop-guide .hfe-character-summary .hfe-profile-header {grid-template-columns:minmax(0,240px) minmax(0,1fr);}
.hfe-troop-guide .hfe-troop-pair {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:10px; padding:12px;}
.hfe-troop-guide .hfe-troop-pair figure {margin:0; min-width:0; text-align:center;}
.hfe-troop-guide .hfe-troop-pair img {width:100%; height:130px; object-fit:contain; margin:auto;}
.hfe-troop-guide .hfe-troop-pair figcaption {font-size:.75rem; color:var(--hfe-article-muted); margin-top:6px;}
.hfe-troop-guide .hfe-troop-pair figure:first-child figcaption {color:#8EB7FF;}
.hfe-troop-guide .hfe-troop-pair figure:last-child figcaption {color:#FF9999;}
.hfe-troop-guide .hfe-troop-command-layout {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:16px; align-items:start; margin:20px 0;}
.hfe-troop-guide .hfe-troop-command-list {display:grid; gap:12px;}
.hfe-troop-guide .hfe-troop-command .hfe-actions {margin-top:12px;}
.hfe-troop-guide .hfe-troop-menu {position:relative; width:100%; max-width:300px; margin:16px auto; aspect-ratio:222/149;}
.hfe-troop-guide .hfe-troop-menu > img {width:100%; height:100%; object-fit:contain; margin:0;}
.hfe-troop-guide .hfe-troop-hotspots {position:absolute; inset:0;}
.hfe-troop-guide .hfe-troop-hotspot {position:absolute; width:17.12%; height:20.81%; border:1px solid transparent; border-radius:5px; background:transparent; cursor:pointer; padding:0;}
.hfe-troop-guide .hfe-troop-hotspot:is(:hover,:focus-visible,.is-selected) {background:rgba(236,160,79,.22); border-color:#ECA04F;}
.hfe-troop-guide .hfe-troop-hotspot-stay-left {left:10.81%; top:35.57%;}
.hfe-troop-guide .hfe-troop-hotspot-follow {left:40.99%; top:35.57%;}
.hfe-troop-guide .hfe-troop-hotspot-stay-right {left:71.62%; top:35.57%;}
.hfe-troop-guide .hfe-troop-hotspot-free {left:10.81%; top:71.14%;}
.hfe-troop-guide .hfe-troop-hotspot-cancel {left:37.84%; top:71.14%; width:23.87%;}
.hfe-troop-guide .hfe-troop-preview {display:grid; gap:8px; justify-items:center; text-align:center; min-height:100px; padding:12px; background:rgba(0,0,0,.2); border-radius:7px;}
.hfe-troop-guide .hfe-troop-preview img {width:101px; height:62px; object-fit:contain;}
.hfe-troop-guide .hfe-troop-preview p {margin:0; color:var(--hfe-article-accent);}
@media(max-width:767.98px) {.hfe-troop-guide .hfe-character-summary .hfe-profile-header,.hfe-troop-guide .hfe-troop-command-layout {grid-template-columns:1fr;} .hfe-troop-guide .hfe-troop-pair {max-width:320px; width:100%; margin:auto;}}
/* HFE TROOPS — END */


/* HFE — About the Author */
.hfe-author .hfe-author-hero { text-align:center; }
.hfe-author .hfe-author-hero .hfe-lead { margin:0 auto 24px; }
.hfe-author .hfe-author-credentials { color:var(--hfe-article-muted,#E4C8BC); font-size:.95rem; line-height:1.8; margin-top:20px; overflow-wrap:anywhere; }
.hfe-author .hfe-author-nav { margin:24px 0 36px; }
.hfe-author .hfe-author-nav h2 { font-size:1.15rem; color:var(--hfe-article-accent,#ECA04F); margin:0 0 12px; }
.hfe-author .hfe-author-nav ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 24px; padding-left:20px; margin:0; }
.hfe-author .hfe-author-nav li::marker { color:#ECA04F; }
.hfe-author .hfe-author-nav a { display:block; padding:5px 0; font-size:.9rem; overflow-wrap:anywhere; }
.hfe-author .hfe-author-main-image { position:relative; display:block; width:fit-content; max-width:100%; margin:0 auto; border-radius:6px; overflow:hidden; }
.hfe-author .hfe-author-main-image img { display:block; max-width:100%; height:auto; margin:0 auto; }
.hfe-author .hfe-author-thumbnail { position:relative; flex:0 0 calc((100% - 40px)/6); max-width:140px; display:flex; justify-content:center; align-items:center; min-width:0; aspect-ratio:4/3; overflow:hidden; border:1px solid rgba(236,160,79,.2); border-radius:5px; background:rgba(0,0,0,.25); }
.hfe-author .hfe-author-thumbnail img { width:100%; height:100%; object-fit:contain; margin:0; transition:transform .2s ease; }
.hfe-author .hfe-author-thumbnail:hover img { transform:scale(1.04); }
.hfe-author .hfe-author-thumbnail:hover { border-color:#ECA04F; }
.hfe-author .hfe-author-figure figcaption { color:var(--hfe-article-muted,#E4C8BC); font-size:.85rem; line-height:1.5; margin:16px 0 0; }
.hfe-author .hfe-author-quote { margin:24px 0 8px; padding:18px 22px; border:0; border-left:3px solid #ECA04F; border-radius:0 8px 8px 0; background:rgba(236,160,79,.055); box-shadow:none; color:#F3E1D7; overflow-wrap:anywhere; }
.hfe-author .hfe-author-quote p { line-height:1.75; margin:0 0 12px; }
.hfe-author .hfe-author-quote footer { color:#ECA04F; font-size:.85rem; margin-top:12px; text-align:right; }
.hfe-author .hfe-author-quote cite { font-style:normal; }
.hfe-author .hfe-author-quote ul,.hfe-author .hfe-author-quote ol { padding-left:22px; }
.hfe-author p.hfe-author-source { margin:8px 0 24px; color:var(--hfe-article-muted,#E4C8BC); font-size:.82rem; line-height:1.5; overflow-wrap:anywhere; }
.hfe-author .hfe-author-source a { text-decoration:underline; text-underline-offset:3px; }
.hfe-author .hfe-author-question { border-left:0; border-radius:8px; background:rgba(236,160,79,.09); color:#ECA04F; font-weight:600; margin:24px 0 8px; }
.hfe-author .hfe-author-question footer { color:var(--hfe-article-muted,#E4C8BC); font-weight:400; }
.hfe-author .hfe-author-question + .hfe-author-quote:not(.hfe-author-question) { margin-top:8px; }
.hfe-author .hfe-author-video { max-width:100%; }
.hfe-author .hfe-author-references { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; padding:0; gap:10px; }
.hfe-author .hfe-author-references li { min-width:0; }
.hfe-author .hfe-author-references a { display:flex; align-items:center; min-height:48px; padding:12px 14px; border:1px solid rgba(255,255,255,.1); border-radius:7px; background:rgba(255,255,255,.035); overflow-wrap:anywhere; }
.hfe-author a:focus-visible { outline:2px solid #ECA04F; outline-offset:3px; }
@media(max-width:575.98px) {
 .hfe-author .hfe-author-nav ul,.hfe-author .hfe-author-references { grid-template-columns:1fr; }
 .hfe-author .hfe-author-quote { padding:14px; }
}
@media(prefers-reduced-motion:reduce) { .hfe-author .hfe-author-thumbnail img { transition:none; } .hfe-author .hfe-author-thumbnail:hover img { transform:none; } }

/* Frameless galleries */
.hfe-author .hfe-author-figure {
    display:block; margin:24px auto; padding:0; border:0;
    border-radius:0; background:transparent; box-shadow:none;
    text-align:center; min-width:0;
}
.hfe-author .hfe-author-thumbnails {
    display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:14px 0 0;
}
.hfe-author .hfe-author-figure a.jcepopup::before { content:none !important; }
.hfe-author .hfe-author-figure a.jcepopup::after {
    content:"\f00e" !important;
    font-family:"Font Awesome 6 Free","Font Awesome 5 Free" !important;
    font-weight:900;
    position:absolute;
    inset:auto 5px 5px auto;
    display:grid;
    place-items:center;
    width:23px;
    height:23px;
    font-size:11px !important;
    line-height:1;
    color:#fff;
    background:rgba(0,0,0,.65) !important;
    background-image:none !important;
    border-radius:4px;
    pointer-events:none;
    opacity:.8;
    transform:none;
}
.hfe-author .hfe-author-main-image.jcepopup::after { width:30px;height:30px;font-size:15px !important; }
.hfe-author .hfe-author-figure a.jcepopup:hover::after,
.hfe-author .hfe-author-figure a.jcepopup:focus-visible::after { opacity:1; }

/* Full-width biography sections */
.hfe-author .hfe-author-section {
    width:100%; max-width:none; margin:12px 0; scroll-margin-top:100px;
}
.hfe-author .hfe-author-chapter {
    width:100%; background:transparent; border:0; border-radius:0; box-shadow:none;
}
.hfe-author .hfe-author-chapter > .hfe-author-chapter-toggle {
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:16px clamp(14px,3vw,24px); min-height:64px; cursor:pointer; list-style:none;
    background:rgba(255,255,255,.035); border:1px solid rgba(236,160,79,.24); border-radius:10px;
}
.hfe-author .hfe-author-chapter > .hfe-author-chapter-toggle:hover,
.hfe-author .hfe-author-chapter[open] > .hfe-author-chapter-toggle {
    background:rgba(236,160,79,.06); border-color:rgba(236,160,79,.4);
}
.hfe-author .hfe-author-chapter-body {
    padding:24px 0; min-width:0; background:transparent; border:0; border-radius:0; box-shadow:none;
}
.hfe-author .hfe-author-chapter-toggle::-webkit-details-marker { display:none; }
.hfe-author .hfe-author-chapter-toggle::marker { content:""; }
.hfe-author .hfe-author-chapter-title { color:#ECA04F; font-size:clamp(1.05rem,2.4vw,1.35rem); line-height:1.4; margin:0; min-width:0; overflow-wrap:anywhere; }
.hfe-author .hfe-author-chapter-toggle:focus-visible { outline:2px solid #ECA04F; outline-offset:-3px; }
.hfe-author .hfe-author-chapter-chevron { flex:0 0 10px; width:10px; height:10px; border-right:2px solid #ECA04F; border-bottom:2px solid #ECA04F; transform:rotate(45deg); margin:0 4px 5px 0; }
.hfe-author .hfe-author-chapter[open] > summary .hfe-author-chapter-chevron { transform:rotate(225deg); margin-bottom:0; }
.hfe-author .hfe-author-chapter-body > p { line-height:1.8; text-align:left; }
.hfe-author .hfe-author-chapter-body > :first-child { margin-top:0; }
.hfe-author .hfe-author-chapter-body > :last-child { margin-bottom:0; }
.hfe-author .hfe-author-chapter:not([open]) > .hfe-author-chapter-body { display:none !important; }
.hfe-author .hfe-author-section-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.hfe-author .hfe-author-section-actions[hidden] { display:none !important; }

/* Nested interview — state selectors target the interview itself only */
.hfe-author details.hfe-author-interview {
    margin:28px 0; padding:0; border:0; background:transparent; box-shadow:none;
}
.hfe-author details.hfe-author-interview > summary.hfe-author-interview-toggle {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:18px clamp(14px,3vw,24px); min-height:64px; cursor:pointer; list-style:none;
    color:#ECA04F; font-weight:600; font-size:1.15rem;
    background:rgba(236,160,79,.06); border:1px solid rgba(236,160,79,.24); border-radius:8px;
}
.hfe-author .hfe-author-interview-toggle::-webkit-details-marker { display:none; }
.hfe-author .hfe-author-interview-toggle::marker { content:""; }
.hfe-author .hfe-author-interview-toggle small { display:block; color:var(--hfe-article-muted,#E4C8BC); font-size:.8rem; font-weight:400; }
.hfe-author .hfe-author-interview-toggle:focus-visible { outline:2px solid #ECA04F; outline-offset:-3px; }
.hfe-author details.hfe-author-interview > summary:hover { background:rgba(236,160,79,.12); }
.hfe-author .hfe-author-interview-action { display:flex; align-items:center; gap:8px; font-size:.85rem; flex-shrink:0; }
.hfe-author details.hfe-author-interview:not([open]) > :not(summary) { display:none !important; }
.hfe-author details.hfe-author-interview:not([open]) > summary .hfe-author-expand,
.hfe-author details.hfe-author-interview[open] > summary .hfe-author-collapse { display:inline; }
.hfe-author details.hfe-author-interview:not([open]) > summary .hfe-author-collapse,
.hfe-author details.hfe-author-interview[open] > summary .hfe-author-expand {
  display: none;
}
.hfe-author details.hfe-author-interview[open] > summary .hfe-author-interview-action i { transform:rotate(180deg); }
@media(max-width:575.98px) {
    .hfe-author .hfe-author-figure { margin:18px auto; }
    .hfe-author .hfe-author-thumbnail { flex-basis:calc((100% - 16px)/3); }
    .hfe-author .hfe-author-chapter-body { padding:18px 0; }
    .hfe-author .hfe-author-interview-toggle { flex-wrap:wrap; }
}


/* HFE — Link archive: original website icons and historical status */
.hfe-link-archive .hfe-archive-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hfe-link-archive .hfe-archive-title img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.hfe-link-archive .hfe-card .hfe-archive-status {
    color: var(--hfe-article-accent);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.hfe-link-archive .hfe-archive-note {
    color: var(--hfe-article-muted);
    font-size: 0.85rem;
}


/* =========================================
   HFE — Cookie Consent Theme
   ========================================= */

#cc--main #cc_div {
    /* General appearance */

    --cc-bg: #231B1A;
    --cc-text: #FFFFFF;

    /* Primary buttons */

    --cc-btn-primary-bg: #AC221F;
    --cc-btn-primary-text: #FFFFFF;
    --cc-btn-primary-hover-bg: #92201D;
    --cc-btn-primary-hover-text: #FFFFFF;

    /* Secondary buttons */

    --cc-btn-secondary-bg: rgba(255, 255, 255, 0.07);
    --cc-btn-secondary-text: #ECA04F;
    --cc-btn-secondary-hover-bg: rgba(236, 160, 79, 0.12);
    --cc-btn-secondary-hover-text: #ECA04F;

    /* Cookie categories */

    --cc-cookie-category-block-bg: rgba(255, 255, 255, 0.04);
    --cc-cookie-category-block-bg-hover: rgba(255, 255, 255, 0.08);

    /* Toggle switches */

    --cc-toggle-bg-on: #AC221F;
    --cc-toggle-bg-off: #635651;
    --cc-toggle-bg-readonly: #514846;
    --cc-toggle-knob-bg: #FFFFFF;
    --cc-toggle-knob-icon-color: #FFFFFF;

    /* Links, borders and overlay */

    --cc-btn-link-color: #ECA04F;
    --cc-section-border: rgba(255, 255, 255, 0.12);
    --cc-cookie-table-border: rgba(255, 255, 255, 0.10);
    --cc-overlay-bg: rgba(15, 5, 4, 0.85);

    font-family: inherit;
}

/* Dialog containers */

#cc_div #cm,
#cc_div #s-inr {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Gold headings */

#cc_div #c-ttl,
#cc_div #s-ttl,
#cc_div .b-tl {
    color: #ECA04F;
}

/* Muted descriptive text */

#cc_div #c-txt,
#cc_div #s-bl .p,
#cc_div .n3tcc-consent-info {
    color: #E4C8BC;
}

/* Category containers */

#cc_div #s-bl .c-bl.b-ex {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

/* Consistent button appearance */

#cc_div .c-bn {
    border-radius: 7px;
    font-family: inherit;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Equally prominent consent choices */

#cc_div #s-all-bn,
#cc_div #s-rall-bn {
    background: #AC221F;
    color: #FFFFFF;
}

#cc_div #s-all-bn:hover,
#cc_div #s-rall-bn:hover {
    background: #92201D;
}

/* Save settings */

#cc_div #s-sv-bn {
    background: transparent;
    color: #ECA04F;
    border: 1px solid rgba(236, 160, 79, 0.4);
}

#cc_div #s-sv-bn:hover {
    background: rgba(236, 160, 79, 0.12);
}

/* Privacy policy link */

#cc_div .cc-link {
    color: #ECA04F;
}

/* Keyboard accessibility */

#cc_div button:focus-visible,
#cc_div a:focus-visible,
#cc_div .c-tgl:focus-visible + .c-tg {
    outline: 2px solid #ECA04F;
    outline-offset: 3px;
}

/* Cookie information table */

#cc_div #s-bl table {
    color: #E4C8BC;
}

#cc_div #s-bl th {
    color: #ECA04F;
    font-weight: 600;
}

#cc_div #s-bl td {
    color: #E4C8BC;
}

#cc_div #s-bl td::before {
    color: #ECA04F;
    font-weight: 600;
}

/* Consent information */

#cc_div .n3tcc-consent-info {
    color: #E4C8BC;
    font-size: 0.85rem;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--cc-section-border);
    overflow-wrap: anywhere;
}

#cc_div .n3tcc-consent-info strong {
    color: #FFFFFF;
    font-weight: 500;
}

/* Consistent privacy policy underline */

#cc_div .cc-link {
    border-bottom-color: #ECA04F;
    text-decoration-color: #ECA04F;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    #cc_div .c-bn {
        transition: none;
    }
}

/* =========================================
   HFE — Cookie Consent Mobile Layout
   ========================================= */

@media (max-width: 600px) {

    #cc_div #cm,
    #cc_div #s-cnt,
    #cc_div #c-vln,
    #cc_div #cs,
    #cc_div #c-s-in,
    #cc_div #s-inr {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    #cc_div #s-bl,
    #cc_div .c-bl,
    #cc_div .desc,
    #cc_div .p {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Long consent identifiers */

    #cc_div .n3tcc-consent-info {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Cookie information tables */

    #cc_div #s-bl table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    #cc_div #s-bl th,
    #cc_div #s-bl td {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Responsive action buttons */

    #cc_div #s-bns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    #cc_div #s-bns .c-bn {
        box-sizing: border-box;
        float: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }

    #cc_div #s-sv-bn {
        grid-column: 1 / -1;
    }
}


/* =========================================
   HFE — Homepage mobile overflow fix
   ========================================= */

@media (max-width: 575.98px) {

    .hfe-home .hfe-home-game-body {
        min-width: 0;
    }

    .hfe-home .hfe-home-game-body .hfe-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .hfe-home .hfe-home-game-body .hfe-actions .hfe-btn {
        position: relative;
        box-sizing: border-box;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        white-space: normal;
        text-align: center;
        justify-content: center;
        overflow-wrap: anywhere;
    }
}


/* =========================================
   HFE — Support article
   Uses the shared HFE article components.
   ========================================= */
.hfe-support .hfe-support-costs {
    margin-top: var(--hfe-article-gap, 16px);
}

.hfe-support .hfe-support-note {
    margin-top: 12px;
    color: var(--hfe-article-muted, #E4C8BC);
    font-size: 0.85rem;
}

.hfe-support .hfe-support-payment {
    margin-bottom: 0;
}

.hfe-support .hfe-support-payment .hfe-btn {
    cursor: pointer;
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .hfe-support .hfe-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hfe-support .hfe-actions .hfe-btn {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* HFE — Credits article */
.hfe-credits .hfe-credits-meta {
    color: var(--hfe-accent, #ECA04F);
    font-size: .85rem;
    font-weight: 600;
    margin: 0 0 8px;
}
.hfe-credits .hfe-credits-timeline {
    display: grid;
    gap: 16px;
    border-inline-start: 2px solid rgba(236,160,79,.3);
    padding-inline-start: 20px;
}
.hfe-credits .hfe-credits-timeline > .hfe-card {
    position: relative;
}
.hfe-credits .hfe-credits-timeline > .hfe-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -27px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: #ECA04F;
    border-radius: 50%;
}
.hfe-credits .hfe-credits-active {
    border-top: 2px solid #ECA04F;
}
.hfe-credits .hfe-card p:last-child,
.hfe-credits .hfe-credits-translators {
    margin-bottom: 0;
}
.hfe-credits .hfe-credits-translators {
    padding-inline-start: 1.2em;
    color: #E4C8BC;
}
.hfe-credits .hfe-credits-note {
    margin-top: 16px;
    color: #E4C8BC;
    font-size: .9rem;
}
.hfe-credits .hfe-callout h2 {
    color: #ECA04F;
    font-size: 1.25rem;
    margin: 0 0 10px;
}
.hfe-credits .hfe-card {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
    .hfe-credits .hfe-credits-timeline { padding-inline-start: 14px; }
    .hfe-credits .hfe-credits-timeline > .hfe-card::before { inset-inline-start: -21px; }
    .hfe-credits .hfe-actions { flex-wrap: wrap; }
    .hfe-credits .hfe-actions .hfe-btn { max-width: 100%; white-space: normal; }
}


/* HFE — Banner article */
.hfe-banner .hfe-banner-preview { text-align: center; }
.hfe-banner .hfe-banner-image { display: inline-block; max-width: 100%; }
.hfe-banner .hfe-banner-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hfe-banner .hfe-banner-preview .hfe-actions { justify-content: center; }
.hfe-banner .hfe-banner-note { margin: 12px 0 0; font-size: .875rem; color: #E4C8BC; }
.hfe-banner label { display: block; color: #ECA04F; font-weight: 600; margin-bottom: 8px; }
.hfe-banner .hfe-banner-code { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 10rem; padding: 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: #231B1A; color: #E4C8BC; font: .875rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; overflow-wrap: anywhere; }
.hfe-banner .hfe-banner-code:focus-visible, .hfe-banner .hfe-banner-image:focus-visible { outline: 2px solid #ECA04F; outline-offset: 3px; }
.hfe-banner [data-hfe-banner-copy][hidden] { display: none; }
@media (max-width: 575.98px) {
  .hfe-banner .hfe-actions { flex-direction: column; align-items: stretch; }
  .hfe-banner .hfe-actions .hfe-btn { width: 100%; min-width: 0; justify-content: center; white-space: normal; }
  .hfe-banner .hfe-banner-code { min-height: 13rem; }
}


/* =========================================
   HFE — JCE MediaBox
   ========================================= */

/* Dark overlay */

.wf-mediabox-theme-standard .wf-mediabox-overlay {
    background-color: #0F0504;
}

/* Lightbox frame */

.wf-mediabox-theme-standard .wf-mediabox-body {
    background-color: #231B1A;
    color: #FFFFFF;
    border: 1px solid rgba(236, 160, 79, 0.25);
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

.wf-mediabox-theme-standard .wf-mediabox-container {
    background-color: #231B1A;
    border-radius: 9px;
}

/* Content area */

.wf-mediabox-theme-standard .wf-mediabox-content {
    background-color: #231B1A;
}

/* Image captions */

.wf-mediabox-theme-standard .wf-mediabox-caption {
    background-color: #231B1A;
    color: #E4C8BC;
}

.wf-mediabox-theme-standard .wf-mediabox-caption a {
    color: #ECA04F;
}

/* Navigation bar */

.wf-mediabox-theme-standard .wf-mediabox-nav {
    background-color: #231B1A;
    color: #ECA04F;
}

/* Navigation buttons */

.wf-mediabox-theme-standard .wf-mediabox-nav button {
    background-color: transparent;
    color: #ECA04F;
    border: 0;
    box-shadow: none;
    transition: color 0.2s ease,
                background-color 0.2s ease;
}

.wf-mediabox-theme-standard .wf-mediabox-nav button svg {
    fill: currentColor;
}

.wf-mediabox-theme-standard .wf-mediabox-nav button:hover {
    color: #FFFFFF;
}

/* Close button */

.wf-mediabox-theme-standard .wf-mediabox-close {
    color: #ECA04F;
}

.wf-mediabox-theme-standard .wf-mediabox-close:hover {
    color: #FFFFFF;
}

/* Gallery counter */

.wf-mediabox-theme-standard .wf-mediabox-numbers {
    color: #E4C8BC;
}

/* Keyboard accessibility */

.wf-mediabox-theme-standard button:focus-visible,
.wf-mediabox-theme-standard a:focus-visible {
    outline: 2px solid #ECA04F;
    outline-offset: 3px;
    border-radius: 4px;
}

/* HFE — Native Joomla Single Contact */
.com-contact.contact {
    --hfe-contact-accent: #ECA04F;
    --hfe-contact-muted: #E4C8BC;
    --hfe-contact-border: rgba(255,255,255,.12);
    color: #fff;
    line-height: 1.65;
    min-width: 0;
}
.com-contact.contact .page-header {
    padding: clamp(20px,4vw,36px);
    background: radial-gradient(ellipse at top left,rgba(172,34,31,.22),transparent 80%),rgba(255,255,255,.035);
    border: 1px solid var(--hfe-contact-border);
    border-radius: 10px;
    margin-bottom: 24px;
}
.com-contact.contact .page-header h1 {
    color: var(--hfe-contact-accent);
    font-size: clamp(1.9rem,4vw,2.8rem);
    margin: 0;
}
.com-contact.contact h2 {
    color: var(--hfe-contact-accent);
    font-size: 1.5rem;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hfe-contact-border);
}
.com-contact.contact .com-contact__container {
    display: block;
}
.com-contact.contact .com-contact__thumbnail {
    float: none;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
}
.com-contact.contact .com-contact__thumbnail img {
    display: block;
    width: 96px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(236,160,79,.35);
}
.com-contact.contact .com-contact__form,
.com-contact.contact .com-contact__miscinfo {
    padding: clamp(16px,3vw,28px);
    background: rgba(255,255,255,.035);
    border: 1px solid var(--hfe-contact-border);
    border-radius: 10px;
    min-width: 0;
}
.com-contact.contact #contact-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.com-contact.contact #contact-form fieldset { min-width: 0; }
.com-contact.contact #contact-form legend {
    color: var(--hfe-contact-accent);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.com-contact.contact #contact-form .control-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 20px;
}
.com-contact.contact #contact-form .control-group:last-child { margin-bottom: 0; }
.com-contact.contact #contact-form .control-label,
.com-contact.contact #contact-form .controls {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}
.com-contact.contact #contact-form .control-label label,
.com-contact.contact #selectForm label {
    color: var(--hfe-contact-muted);
    font-weight: 600;
}
.com-contact.contact #contact-form .star,
.com-contact.contact #contact-form .red { color: var(--hfe-contact-accent); }
.com-contact.contact #contact-form .field-spacer label { font-size: .85rem; font-weight: 400; }
.com-contact.contact #contact-form .form-control,
.com-contact.contact #selectForm .form-select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    background-color: #231B1A;
    color: #fff;
    border: 1px solid rgba(236,160,79,.3);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 1rem;
    color-scheme: dark;
}
.com-contact.contact #contact-form textarea.form-control {
    min-height: 180px;
    resize: vertical;
}
.com-contact.contact #contact-form .form-control:focus,
.com-contact.contact #selectForm .form-select:focus {
    border-color: #ECA04F;
    box-shadow: 0 0 0 3px rgba(236,160,79,.2);
}
.com-contact.contact #contact-form .form-control[aria-invalid="true"],
.com-contact.contact #contact-form .form-control.invalid,
.com-contact.contact #contact-form .form-control.is-invalid { border-color: #ff7777; }
.com-contact.contact #contact-form button[type="submit"] {
    min-height: 44px;
    padding: 12px 20px;
    color: #fff;
    background: #AC221F;
    border: 1px solid #AC221F;
    border-radius: 7px;
    font-weight: 600;
}
.com-contact.contact #contact-form button[type="submit"]:hover { background: #92201D; border-color: #92201D; }
.com-contact.contact #contact-form button:focus-visible,
.com-contact.contact a:focus-visible { outline: 2px solid #ECA04F; outline-offset: 3px; }
.com-contact.contact #contact-form altcha-widget { display: block; max-width: 100%; }
.com-contact.contact #contact-form .altcha {
    box-sizing: border-box;
    max-width: 100%;
    background: #231B1A;
    color: #E4C8BC;
    border-color: rgba(236,160,79,.3);
    border-radius: 7px;
}
.com-contact.contact #contact-form .altcha input[type="checkbox"] { accent-color: #AC221F; }
.com-contact.contact .com-contact__miscinfo dl { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.com-contact.contact .com-contact__miscinfo dt { float: none; width: auto; flex: 0 0 auto; color: #ECA04F; }
.com-contact.contact .com-contact__miscinfo dd { float: none; min-width: 0; margin: 0; color: #E4C8BC; }
.com-contact.contact .com-contact__miscinfo p:last-child { margin-bottom: 0; }
.com-contact.contact .com-contact__miscinfo a { color: #ECA04F; text-decoration: underline; }
@media (max-width: 575.98px) {
    .com-contact.contact #contact-form button[type="submit"] { width: 100%; }
    .com-contact.contact .com-contact__miscinfo dl { gap: 8px; }
}


/* =========================================
   HFE — Hero Fighter Origins gallery
   ========================================= */
.hfe-hfo-gallery .brSigContainer {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.hfe-hfo-gallery .hfo-gallery-avatars .brSigContainer {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
}
.hfe-hfo-gallery .brSigContainer > .brSigItem {
    display: block !important;
    float: none !important;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hfe-hfo-gallery .brSigLink {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 6px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--hfe-article-border, rgba(255,255,255,.1));
    border-radius: 7px;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease;
}
.hfe-hfo-gallery .hfo-gallery-avatars .brSigLink {
    aspect-ratio: 1;
}
.hfe-hfo-gallery .brSigLink img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    box-shadow: none;
}
@media (hover: hover) {
    .hfe-hfo-gallery .brSigLink:hover {
        border-color: var(--hfe-article-accent, #ECA04F);
        background: rgba(236,160,79,.06);
    }
}
.hfe-hfo-gallery .brSigLink:focus-visible {
    outline: 2px solid var(--hfe-article-accent, #ECA04F);
    outline-offset: 3px;
}
@media (max-width: 575.98px) {
    .hfe-hfo-gallery .brSigContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .hfe-hfo-gallery .hfo-gallery-avatars .brSigContainer {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 85px), 1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    .hfe-hfo-gallery .brSigLink { transition: none; }
}
