/* input(281,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(385,15): run-time error CSS1035: Expected colon, found '{'
input(1433,20): run-time error CSS1035: Expected colon, found '{'
input(1520,22): run-time error CSS1035: Expected colon, found '{'
input(1775,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found ':'
input(1965,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1988,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(2644,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(3582,6): run-time error CSS1035: Expected colon, found '.'
input(4083,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(4106,19): run-time error CSS1035: Expected colon, found '{'
input(4129,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(4582,23): run-time error CSS1035: Expected colon, found '{'
input(4905,11): run-time error CSS1035: Expected colon, found ','
input(4933,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(6149,19): run-time error CSS1035: Expected colon, found '{'
input(6234,28): run-time error CSS1035: Expected colon, found '{' */
:root {
    --font-awesome-font: var(--fa-family-classic), var(--fa-family-duotone), var(--fa-family-brands);
    --mobile-display-edge: 4vmin;
    --mobile-display-bottom-gap: 32px;
    --top-nav-height: 45px;
    --control-font-size: 14px;
    --control-border-width: 1.5px;
    --control-border-radius: 3px;
}

:root, [data-theme="light"] {
    --border-color: #e2e2e2;
    --control-bg: white;
    --control-2-bg: #eee;
    --control-border-color: #e0e0e0;
    --control-color: #7c7c7c;
    --tab-active-header-bg: #eee;
    --tab-button-color: #222;
    --selection-item-text-color: #3b3b3b;
    --selection-item-sub-text-color: #3b3b3b;
    --selection-item-border: #d9d9d9;
    --selection-item-active-bg: white;
    --hr-color: #eee;
    --hr-color-2: #e1e1e1;
    --table-header-color: #333;
    --table-header-border-color: #E3E3E3;
    --table-td-bg: #fff;
    --table-row-border-color: #E3E3E3;
    --table-hover-bg: rgba(0, 0, 0, .025);
    --table-td-color: #444;
    --fieldset-border-color: #e1e1e1;
    --fieldset-legend-color: #3b3b3b;
    --label-color: #333;
    --fieldset-warning-row-bg: #eee;
    --fieldset-warning-row-text-color: #666;
    --sortable-color: #333;
    --sortable-bg: white;
    --sortable-border-color: #E3E3E3;
    --sortable-2-bg: #FAFAFA;
    --sortable-bg-hover: #eee;
    --selection-list-bg: white;
    --selection-list-hover-bg: #eee;
    --selection-list-item-color: black;
    --selection-list-item-selected-color: #f3f3f3;
    --selection-list-item-border-color: #eee;
    --context-menu-bg: #fcfcfc;
    --context-menu-hover-bg: #eee;
    --info-label-gray-color: #666;
    --info-label-gray-color-hover: #777;
    --text-button-black-color: black;
    --green-color: green;
    --red-color: #ed0101;
    --crimson-color: #f12938;
    --yellow-color: #f8b700;
    --light-orange-color: #f67624;
    --orange-color: #e7620c;
    --purple-color: #a335ee;
    --blue-color: #008fd5;
    --light-blue-color: #30b8fa;
    --gray-color: gray;
    --faded-text-color: #999;
    --badge-bg: #eee;
}

[data-theme="dark"] {
    --border-color: #42454a;
    --control-bg: #303339;
    --control-2-bg: #333;
    --control-border-color: #25282c;
    --control-color: #c1c2c4;
    --tab-active-header-bg: #454e6b;
    --tab-button-color: #eee;
    --selection-item-text-color: #eee;
    --selection-item-sub-text-color: #e1e1e1;
    --selection-item-border: #202225;
    --selection-item-active-bg: #303237;
    --hr-color: #555;
    --hr-color-2: #777;
    --table-header-color: #eee;
    --table-header-border-color: #3e4147;
    --table-td-bg: transparent;
    --table-row-border-color: #3e4147;
    --table-hover-bg: rgba(255, 255, 255, .04);
    --table-td-color: #d6d7d9;
    --fieldset-border-color: #42454a;
    --fieldset-legend-color: #eee;
    --label-color: #eee;
    --fieldset-warning-row-bg: #333;
    --fieldset-warning-row-text-color: #c4c4c4;
    --sortable-color: #eee;
    --sortable-bg: transparent;
    --sortable-border-color: #262729;
    --sortable-2-bg: transparent;
    --sortable-bg-hover: #333;
    --selection-list-bg: #18191c;
    --selection-list-hover-bg: #333;
    --selection-list-item-color: #eee;
    --selection-list-item-selected-color: #222;
    --selection-list-item-border-color: #262729;
    --context-menu-bg: #333;
    --context-menu-hover-bg: #222;
    --info-label-gray-color: #fafafa;
    --info-label-gray-color-hover: #dbdbdb;
    --text-button-black-color: #eee;
    --green-color: #1fa900;
    --red-color: #f04747;
    --crimson-color: #f12938;
    --yellow-color: #f8b700;
    --light-orange-color: #f67624;
    --orange-color: #e7620c;
    --purple-color: #a335ee;
    --blue-color: #008fd5;
    --light-blue-color: #1692ce;
    --gray-color: gray;
    --faded-text-color: #555;
    --badge-bg: #333;
}

:root {
    --battlenet-color: #0074e0;
    --patreon-color: rgb(232, 91, 70);
    --discord-color: #5865F2;
    --twitter-color: #000000;
    --twitch-color: #6441A5;
    --instagram-color: #FF0069;
    --facebook-color: #3578e5;
    --youtube-color: #FF0000
}

body.no-scroll {
    overflow: hidden !important;
}

body.is-shell {
    overscroll-behavior-y: contain;
    -ms-overflow-style: scrollbar;
    overflow-y: scroll;
}

/* Nav */
#top-nav {
    display: flex;
    place-items: center;
    position: fixed;
    height: var(--top-nav-height);
    top: 0;
    right: 0;
    left: 0;
    z-index: 900;
    background: #111;
    transition: background .2s ease, backdrop-filter .2s ease;
    box-shadow: 0 0 12px 0 rgba(180, 180, 180, .075);
}

[data-theme="dark"] body:not(.is-mobile) div:not(#manage-wrapper) #top-nav.scrolled {
    backdrop-filter: blur(500px);
    background: rgba(0, 0, 0, .4);
}

[data-theme="light"] body:not(.is-mobile) div:not(#manage-wrapper) #top-nav.scrolled {
    backdrop-filter: blur(500px);
    background: rgba(0, 0, 0, .8);
}

body.is-mobile #top-nav {
    box-shadow: none;
}

#top-nav .nav-wrapper {
    display: flex;
    width: 100vw;
    width: 100dvw;
    margin: 0 25px;
    justify-content: space-between;
}

body:has(#app-shell-side-nav) #top-nav .nav-wrapper {
    margin-left: 12px !important;
    margin-right: 20px;
}

body:has(#app-shell-side-nav) #top-nav .nav-wrapper #mobile-nav-button {
    margin-left: 5px;
}

body.external-domain #top-nav .nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (min-width:2500px) {
    #top-nav .nav-wrapper {
        max-width: 2400px;
        margin: 0 auto;
    }
}

@media screen and (max-width:1400px), screen and (max-height:650px) {
    #top-nav .nav-wrapper, body.external-domain #top-nav .nav-wrapper {
        margin: 0 15px;
    }
}

#top-nav .nav-wrapper .nav-container {
    display: flex;
    place-items: center;
    position: relative;
}

#top-nav .nav-wrapper .nav-container > ul {
    display: flex;
    gap: 6px;
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item {
    display: flex;
    place-items: center;
    gap: 6px;
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button {
    display: inline-flex;
    gap: 5px;
    font-size: 13px;
    height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    box-sizing: border-box;
    place-content: center;
    place-items: center;
    letter-spacing: .5px;
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button:has(#nav-site-logo) img {
    filter: brightness(120%);
    transition: transform .05s, filter .3s;
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button:has(#nav-site-logo).active img {
    filter: brightness(140%) drop-shadow(-3px 3px 0px rgba(248, 183, 0, .6));
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button:has(#nav-site-logo):hover img {
    filter: brightness(160%) drop-shadow(-3px 3px 4px rgba(255, 255, 255, .4));
    transform: scale(1.1);
}

@media screen and (max-width:800px) {
    #top-nav .nav-wrapper .nav-container > ul {
        gap: 4px;
    }

    #top-nav .nav-wrapper .nav-container > ul li.nav-item {
        gap: 2px;
    }

    #top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button {
        padding: 0 8px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    #top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button {
        transition: color .25s ease, background-color .1s ease-in;
    }
}

@media (hover: hover) {
    body:not(.is-mobile) #top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button.bordered {
    border: 1.5px solid #333;
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button :is(.icon, nhea-icon) {
    font-size: 16px;

    &.caret {
        font-size: 14px;
    }
}

#top-nav .nav-wrapper .nav-container > ul li.nav-item .nav-button.active,
#top-nav .nav-wrapper .nav-container nhea-selectlist[open] > .nav-button {
    color: var(--light-orange-color);
}

#top-nav .button, #top-nav .nav-button {
    font-weight: 900;
}

#system-warning {
    min-height: 30px;
    font-size: 13.5px;
    position: fixed;
    padding: 5px 0;
    top: 45px;
    right: 0;
    left: 0;
    z-index: 99;
    background: red;
    color: white;
    font-weight: 600;
    display: flex;
    place-items: center;
    place-content: center;
}

body:has(#app-shell-side-nav) #system-warning {
    left: var(--app-shell-side-width);
}

#system-warning-content {
    max-width: 70vw;
}

#system-warning button {
    margin-left: 10px;
}

#system-warning.hidden {
    display: none;
}

:root, [data-theme="light"] {
    --sub-menu-wrapper-active-bg: #f0f0f0;
    --sub-menu-wrapper-active-subheader-bg: #e7e7e7;
}

[data-theme="dark"] {
    --sub-menu-wrapper-active-bg: #333;
    --sub-menu-wrapper-active-subheader-bg: #444;
}

ul li .sub-menu-wrapper .sub-menu-list {
    max-height: 0;
    overflow: hidden;
    margin-top: 2px;
}

ul li .sub-menu-wrapper.open .sub-menu-list {
    max-height: 150px;
}

ul li .sub-menu-wrapper.open .sub-menu-list a {
    border-left: 5px solid #bcbcbc;
    outline-offset: -3px;
}

ul li .sub-menu-wrapper.open .sub-menu-list a.active {
    border-left: 5px solid var(--crimson-color);
}

ul li .sub-menu-wrapper .caret {
    display: inline-block;
    margin-left: 4px;
}

@media (prefers-reduced-motion: no-preference) {
    ul li .sub-menu-wrapper .sub-menu-list {
        transition: max-height 0.3s;
    }

    ul li .sub-menu-wrapper .caret {
        transition: transform 0.2s;
    }
}

ul li .sub-menu-wrapper.open .caret {
    transform: rotate(-180deg);
}

ul li .sub-menu-wrapper .sub-menu-list :is(.icon, nhea-icon) {
    margin-left: 12px;
}

#mobile-nav-button {
    display: none;
    padding: 4px 10px;
    border-radius: 4px;

    nhea-icon {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body:not(.is-mobile) #mobile-nav-button {
        transition: background-color 0.1s ease-in;
    }
}

body:not(.is-mobile) #mobile-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

:root {
    --mobile-nav-bg-color: #202225;
    --mobile-nav-border-color: #42454a;
    --mobile-nav-sub-menu-bg-color: #202225;
    --mobile-nav-active-menu-bg-color: #07080e;
    --mobile-nav-header-height: 60px;
}

#mobile-nav {
    display: block;
    position: fixed;
    z-index: 8000;
}

#mobile-nav .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, .5);
}

#mobile-nav.open {
    display: block;
}

#mobile-nav.open .mobile-nav-overlay {
    display: block;
    animation: fade-in 0.2s forwards;
}

#mobile-nav .mobile-nav-container {
    background: var(--mobile-nav-bg-color);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    width: 80vw;
    width: 80dvw;
    max-width: 300px;
    overflow: hidden;
    box-sizing: border-box;
    content-visibility: hidden;
    transform: translate3d(calc(-100% - 20px), 0, 0);
    transition: transform .3s ease;
    position: fixed;
    top: 10px;
    left: 10px;
    border-radius: 6px;
    border: 1.5px solid var(--mobile-nav-border-color);
}

#mobile-nav .mobile-nav-container .mobile-nav-header {
    display: flex;
    place-content: center;
    place-items: center;
    height: var(--mobile-nav-header-height);
    background: var(--mobile-nav-bg-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    border-bottom: 1.5px solid var(--mobile-nav-border-color);
}

#mobile-nav .mobile-nav-container .mobile-nav-scroller {
    height: calc(100vh - var(--mobile-nav-header-height) - 20px);
    height: calc(100dvh - var(--mobile-nav-header-height) - 20px);
    margin-top: var(--mobile-nav-header-height);
    --scroll-track-bg: var(--mobile-nav-bg-color);
    overscroll-behavior-y: none;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#mobile-nav .mobile-nav-container::-webkit-scrollbar {
    width: 8px;
}

#mobile-nav .mobile-nav-container::-webkit-scrollbar-track {
    border-radius: 10px;
    margin: 8px 0;
}

#mobile-nav .mobile-nav-container::-webkit-scrollbar-thumb {
    border: none;
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
    body.is-mobile #mobile-nav .mobile-nav-container {
        height: calc(100vh - var(--mobile-display-bottom-gap));
        height: calc(100dvh - var(--mobile-display-bottom-gap));
    }

    #mobile-nav .mobile-nav-container .mobile-nav-scroller {
        height: calc(100vh - var(--mobile-nav-header-height) - var(--mobile-display-bottom-gap));
        height: calc(100dvh - var(--mobile-nav-header-height) - var(--mobile-display-bottom-gap));
    }
}

@media (prefers-reduced-motion) {
    #mobile-nav .mobile-nav-container {
        transition: none;
    }

    #mobile-nav.open .mobile-nav-overlay {
        animation: none;
    }
}

#mobile-nav.will-change .mobile-nav-container {
    content-visibility: visible;
}

#mobile-nav.open .mobile-nav-container {
    content-visibility: visible;
    transform: translate3d(0, 0, 0);
}

#mobile-nav.open .mobile-nav-container .mobile-nav-scroller {
    overflow-y: auto;
}

#mobile-nav .mobile-nav-container .mobile-nav-header .mobile-nav-logo {
    display: flex;
    place-items: center;
    place-content: center;
    margin-left: 50px;
}

#mobile-nav .mobile-nav-container .mobile-nav-header #close-mobile-nav-button {
    position: fixed;
    top: 0;
    left: 0;
    display: inline-block;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 18px;
    border-right: 1.5px solid var(--mobile-nav-border-color);
    border-bottom: 1.5px solid var(--mobile-nav-border-color);
    border-bottom-right-radius: 6px;
    outline-offset: -3px;
}

#mobile-nav .mobile-nav-container .mobile-nav-header #close-mobile-nav-button:hover {
    background-color: #444;
}

#mobile-nav .mobile-nav-container #current-user-link {
    background-color: #111;
    border-top: 1px solid #555;
}

#mobile-nav .mobile-nav-container #current-user-link a {
    padding: 13px 20px;
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    display: flex;
    gap: 10px;
    place-items: center;
    justify-content: start;
    outline-offset: -3px;
}

#mobile-nav .mobile-nav-container #current-user-link img {
    height: 28px;
    width: 28px;
    border-radius: 50px;
}

#mobile-nav .mobile-nav-container #current-user-link .icon {
    font-size: 22px;
}

#mobile-nav .mobile-nav-container #current-user-link span {
    font-size: 19px;
    font-weight: bold;
}

#mobile-nav .mobile-nav-container .mobile-nav-logo > a {
    display: inline-block;
    border-radius: 4px;
    height: 35px;
}

#mobile-nav .mobile-nav-container .mobile-nav-logo img {
    max-width: 100%;
}

#mobile-nav .mobile-nav-container #mobile-nav-list {
    border-top: 1px solid #555;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li:not(:last-child) {
    border-bottom: 1px solid #555;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li :is(a, button) {
    font-size: 14px;
    padding: 15px 20px;
    display: flex;
    width: 100%;
    gap: 5px;
    box-sizing: border-box;
    white-space: nowrap;
    justify-content: start;
    align-content: center;
    align-items: center;
    outline-offset: -3px;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li a.active, #mobile-nav .mobile-nav-container #mobile-nav-list li a:active,
#mobile-nav .mobile-nav-container #mobile-nav-list li button.active, #mobile-nav .mobile-nav-container #mobile-nav-list li button:active {
    background-color: #333;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

#mobile-nav .mobile-nav-container #mobile-nav-list li :is(a, button) :is(.icon, nhea-icon) {
    width: 22px;
    font-weight: 300;
    text-align: center;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li .sub-menu-list li a, #mobile-nav .mobile-nav-container #mobile-nav-list li .sub-menu-list li button {
    background: #222;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li .sub-menu-list li:first-child {
    border-top: 1px solid #555;
}

#mobile-nav .mobile-nav-container #mobile-nav-list li .sub-menu-list li:last-child {
    border-bottom: none;
}

#mobile-nav .mobile-nav-container #mobile-secondary-list {
    border-top: 1px solid #555;
    padding: 5px 0 20px;
}

#mobile-nav .mobile-nav-container #mobile-secondary-list li > :is(a, button) {
    font-size: 13.5px;
    text-align: left;
    color: lightgray;
    font-weight: 600;
    padding: 10px 20px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    place-items: center;
    position: relative;
    outline-offset: -3px;
}

#mobile-nav .mobile-nav-container #mobile-secondary-list li > :is(a, button) > :is(.icon, nhea-icon) {
    width: 20px;
    text-align: center;
}

#mobile-nav .tutorial-container {
    display: none !important;
}

#mobile-nav .mobile-nav-container #mobile-nav-list fieldset legend {
    color: white;
}

@media screen and (max-width:1400px), screen and (max-height:650px) {
    #site-nav {
        display: none !important;
    }

    #mobile-nav-button {
        display: inline-flex;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes focus-blink {
    0% {
        outline: 0;
    }

    50% {
        outline: 3px solid #008fd5;
    }

    0% {
        outline: 0;
    }
}

.show-on-mobile, .show-on-installed-app {
    display: none !important;
    pointer-events: none;
    touch-action: none;
}

@media screen and (max-width:1100px), screen and (max-height:650px) {
    .hide-on-mobile {
        display: none !important;
        pointer-events: none;
        touch-action: none;
    }

    .show-on-mobile {
        display: inline-block !important;
        pointer-events: all;
        touch-action: initial;
    }

    thead.show-on-mobile {
        display: table-header-group !important;
    }

    li.show-on-mobile {
        display: list-item !important;
    }
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
    .show-on-installed-app {
        display: inline-block !important;
        pointer-events: all;
        touch-action: initial;
    }
}

:root {
    --app-shell-side-width: 72px;
    --side-menu-bg: #e1e2e4;
    --side-nav-item-bg: #fff;
    --side-nav-image-shadow: drop-shadow(-3px 3px 3px rgba(0, 0, 0, .4));
    --side-nav-image-hover-shadow: drop-shadow(-3px 3px 3px rgba(0, 0, 0, .7));
    --side-nav-image-active-shadow: drop-shadow(-3px 3px 3px rgba(0, 0, 0, .9));
}

[data-theme="dark"] {
    --side-menu-bg: #2f3136;
    --side-nav-item-bg: #2b2d31;
    --side-nav-image-shadow: drop-shadow(-3px 3px 3px rgba(0, 0, 0, .2));
    --side-nav-image-hover-shadow: drop-shadow(-3px 3px 4px rgba(255, 255, 255, .2));
    --side-nav-image-active-shadow: drop-shadow(-3px 3px 3px rgba(255, 255, 255, .4))
}

#app-shell-side-nav {
    position: fixed;
    top: var(--top-nav-height);
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    place-content: space-between;
    width: var(--app-shell-side-width);
    box-sizing: border-box;
    background: var(--side-menu-bg);
    /*border-right: 1px solid var(--border-color);*/
    z-index: 899;
}

#app-shell-side-nav #list-all-button {
    color: var(--label-color);
    font-size: 26px;
    padding: 6px;
    border: 1.5px solid transparent;
    border-radius: 8px;
}

#app-shell-side-nav #list-all-button.active {
    color: var(--orange-color);
}

#app-shell-side-nav #list-all-button:hover {
    border-color: var(--label-color);
}

#app-shell-side-nav #list-all-button.active:hover {
    border-color: var(--orange-color);
}

#app-shell-side-nav menu {
    margin: 0;
    padding: 10px 0;
    display: grid;
    gap: 8px;
    place-items: center;
}

#app-shell-side-nav menu a img {
    border-radius: 8px;
    transition: transform .05s, filter .3s;
    filter: var(--side-nav-image-shadow);
}

#app-shell-side-nav menu a:hover img {
    filter: var(--side-nav-image-hover-shadow);
}

#app-shell-side-nav menu a.active {
    color: var(--orange-color);
}

#app-shell-side-nav menu nhea-selectlist[open] a {
    opacity: .95;
    transform: scale(1.02);
}

#app-shell-side-nav menu nhea-selectlist[open] a img {
    filter: var(--side-nav-image-active-shadow);
}

#app-shell-side-nav menu a.button.round {
    width: 45px;
    height: 45px;
}

#app-shell-side-nav menu a.button.sub-button.round {
    width: 42px;
    height: 42px;
}

#app-shell-side-nav menu fieldset {
    display: grid;
    gap: 6px;
    place-items: center;
    background-color: var(--side-nav-item-bg);
    border-radius: 12px;
    padding: 8px 5px;
    margin: 0;
    border: none;
    position: relative;
}

#app-shell-side-nav menu fieldset .sub-items-list {
    display: grid;
    gap: 5px;
    place-items: center;
    width: 100%;
}

#app-shell-side-nav menu fieldset .sub-items-list button {
    font-size: 10px;
    color: var(--label-color);
    font-weight: 900;
    letter-spacing: .5px;
    display: inline-flex;
    gap: 2px;
    place-items: center;
    margin: 2px 0 2px -2px;
}

#app-shell-side-nav menu fieldset .sub-items-list button:hover {
    opacity: .7;
}

#app-shell-side-nav menu fieldset .sub-items-list.collapsed > nhea-selectlist {
    display: none;
}

#app-shell-side-nav menu fieldset .sub-items-list button .caret {
    opacity: .4;
    transition: transform .3s;
    font-size: 9px;
}

#app-shell-side-nav menu fieldset .sub-items-list.collapsed button .caret {
    transform: rotate(-90deg);
}

#app-shell-side-nav menu:first-child {
    overflow: hidden;
    position: relative;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

#app-shell-side-nav menu::-webkit-scrollbar {
    display: none;
}

#app-shell-side-nav menu::-webkit-scrollbar-track {
    background: var(--scroll-track-bg);
    display: none;
}

body:has(#app-shell-side-nav) nhea-alert {
    left: var(--app-shell-side-width);
}

body:has(#app-shell-side-nav) dialog[open] nhea-alert {
    left: 0;
}

body:has(#app-shell-side-nav) #app-shell-container {
    width: calc(100% - var(--app-shell-side-width));
    margin-left: var(--app-shell-side-width);
}

#app-shell-container[hidden] {
    opacity: 0;
}

#app-shell-container:not([hidden]) {
    display: block;
    animation: fade-in 0.4s;
}

@media (prefers-reduced-motion) {
    #app-shell-container:not([hidden]) {
        animation: none;
    }
}

#app-shell-loader {
    place-items: center;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

#app-shell-loader loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body:has(#app-shell-side-nav) #app-shell-loader loading-spinner {
    left: calc(50% + var(--app-shell-side-width) / 2);
}

/*Button Effects*/
.fade-effect, .glow-effect {
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: no-preference) {
    body:not(.is-mobile) .fade-effect {
        transition: opacity 0.3s, transform .1s ease-in-out;
    }

    .glow-effect {
        transition: box-shadow 0.2s, transform .1s cubic-bezier(0.25, 0.25, 0.75, 0.75);
    }
}

body:not(.is-mobile) .fade-effect:hover {
    opacity: 0.6;
}

body:not(.is-mobile) .glow-effect:hover {
    box-shadow: 0 0 10px 0 #eeeeee;
}

.fade-effect:active, .glow-effect:active {
    transform: translate(1px, 1px);
}

/*Base Element Styles*/
input, textarea, select {
    width: 100%;
    height: 34px;
    display: flex;
    padding: 0 8px;
    box-sizing: border-box;
    border: var(--control-border-width) solid var(--control-border-color);
    box-shadow: none;
    background-color: var(--control-bg);
    color: var(--control-color);
    font-size: var(--control-font-size);
    font-weight: bold;
    font-family: Arial;
    border-radius: var(--control-border-radius);
    transition: border-color 0.20s ease-in-out 0s, box-shadow 0.20s ease-in-out 0s;
}

input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="file"] {
    place-content: center;
}

input:disabled, textarea:disabled, select:disabled {
    background-color: var(--control-2-bg);
}

input:read-only, textarea:read-only {
    background-color: var(--control-2-bg);
}

input:invalid, textarea:invalid, select:invalid,
input:required, textarea:required, select:required,
input:out-of-range, textarea:out-of-range, select:out-of-range {
    box-shadow: none;
    border: var(--control-border-width) solid var(--control-border-color);
}

input:focus, textarea:focus, select:focus {
    border-color: #f47982;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.12);
    outline: none;
}

input:read-only:focus, textarea:read-only:focus, select:read-only:focus {
    border-color: var(--border-color);
}

:focus-visible {
    outline: 3px solid var(--yellow-color);
}

a:focus-visible {
    border-radius: 2px;
}

body.is-mobile *:focus-visible {
    outline: none;
}

input:focus::placeholder {
    opacity: 0;
}

input:disabled::placeholder {
    color: transparent;
}

textarea:focus::placeholder {
    opacity: 0;
}

textarea:disabled::placeholder {
    color: transparent;
}

div:focus::placeholder {
    opacity: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
    margin: 0;
}

input[type="color"] {
    height: 45px;
}

input.wide, textarea.wide, select.wide {
    padding: 15px 12px;
    font-size: 16px;
}

input.medium, textarea.medium, select.medium {
    width: 50%;
    min-width: 150px;
}

input.short, textarea.short, select.short {
    width: 30%;
    min-width: 100px;
}

input.tiny, textarea.tiny, select.tiny {
    width: 20%;
    min-width: 80px;
}

input.extra-tiny, textarea.extra-tiny, select.extra-tiny {
    width: 10%;
    min-width: 65px;
}

@media screen and (max-width:1000px) {
    input.medium, textarea.medium, select.medium {
        width: 75%;
    }

    input.short, textarea.short, select.short {
        width: 50%;
    }
}

@media screen and (max-width:700px) {
    input.medium, textarea.medium, select.medium {
        width: 100%;
    }

    input.short, textarea.short, select.short {
        width: 75%;
    }
}

@media screen and (max-width:500px) {
    input.medium, textarea.medium, select.medium {
        width: 100%;
    }

    input.short, textarea.short, select.short {
        width: 100%;
    }

    input.tiny, textarea.tiny, select.tiny {
        width: 50%;
    }

    input.extra-tiny, textarea.extra-tiny, select.extra-tiny {
        width: 20%;
    }
}

input[type=range] {
    background: transparent;
    color: black;
    padding: 15px 10px;
    box-sizing: border-box;
    -webkit-appearance: none;
    max-width: 100%;
    background-color: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: #dcdedd;
    border: 0;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #999;
    margin-top: -6px;
    border: 2px solid transparent;
    transition: border-color .2s ease;
}

input[type=range]::-webkit-slider-thumb:active, input[type=range]:focus::-webkit-slider-thumb, input[type=range]::-webkit-slider-thumb:hover {
    background: #777;
    border-color: var(--yellow-color);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 3px;
    background: #dcdedd;
    border: 0;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #999;
    border: 2px solid transparent;
    transition: border-color .2s ease;
}

input[type=range]::-moz-range-thumb:active, input[type=range]:focus::-moz-range-thumb, input[type=range]::-moz-range-thumb:hover {
    border-color: var(--yellow-color);
}

input[type=range]:-moz-focusring {
    outline: 1px solid white;
    outline-offset: -1px;
}

body.is-mobile input[type=range]::-webkit-slider-thumb {
    height: 25px;
    width: 25px;
    margin-top: -11px;
}

textarea {
    height: 100px;
    padding: 8px;
    font-size: var(--control-font-size);
    line-height: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--hr-color);
    background-image: linear-gradient(to right, var(--hr-color), var(--hr-color-2), var(--hr-color));
}

/*Info Label*/
.info-label-gray {
    display: inline-block;
    color: var(--info-label-gray-color);
    font-size: 15px;
    line-height: 20px;
    max-width: 75%;
}

small.info-label-gray {
    font-size: 12px;
}

.info-label-gray.full {
    max-width: 100%;
}

.info-label-gray span {
    margin-left: 6px;
}

.info-label-gray a {
    color: var(--info-label-gray-color);
    text-decoration: underline;
}

#background-overlay {
    pointer-events: none;
    touch-action: none;
    content-visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    background-color: black;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 7250;
}

@media (prefers-reduced-motion) {
    #background-overlay {
        transition: none;
    }
}

#background-overlay:not([inert]) {
    pointer-events: all;
    touch-action: initial;
    content-visibility: visible;
    opacity: 0.6;
}
/*Dialog*/
:root, [data-theme="light"] {
    --close-dialog-button-bg: #eaeaea;
    --dialog-bg: white;
    --dialog-text-color: #727272;
    --dialog-list-item-color: #444;
    --dialog-header-bg: #f9f9f9;
    --dialog-footer-bg: #f9f9f9;
}

[data-theme="dark"] {
    --close-dialog-button-bg: #444;
    --dialog-bg: #333;
    --dialog-text-color: #eee;
    --dialog-list-item-color: #bfbfbf;
    --dialog-header-bg: #282828;
    --dialog-footer-bg: #282828;
}

dialog {
    display: flex;
    flex-direction: column;
    position: fixed !important;
    z-index: 950;
    margin: auto;
    pointer-events: none;
    touch-action: none;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    padding: 0;
    height: max-content;
    max-height: 95vh;
    max-height: 95dvh;
    width: 700px;
    transform: scale(0.85);
    background-color: var(--dialog-bg);
    border: 1.5px solid var(--border-color);
    color: #333;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

dialog:focus-visible {
    outline: none;
}

dialog[open] {
    pointer-events: all;
    touch-action: initial;
}

dialog[non-modal] {
    top: 5%;
    top: 5dvh;
    max-height: 90dvh;
}

dialog.shown {
    opacity: 1;
    transform: scale(1);
}

dialog::backdrop {
    background-color: transparent;
    transition: background-color .2s;
}

dialog.shown::backdrop {
    background-color: rgba(0, 0, 0, .75);
}

dialog > .spinner {
    position: absolute;
    left: calc(50% - 45px / 2);
    top: calc(50% - 45px / 2);
}

[data-theme="dark"] dialog.shown::backdrop {
    background-color: rgba(0, 0, 0, .9);
}

@media (prefers-reduced-motion) {
    dialog {
        transition: none !important;
    }
}

dialog:not(.mobile)[size="max"] {
    width: 100dvw;
}

dialog:not(.mobile)[size="large"] {
    width: 1024px;
}

dialog:not(.mobile)[size="medium"] {
    width: 900px;
}

dialog:not(.mobile)[size="small"] {
    width: 520px;
}

dialog:not(.mobile)[size="tiny"] {
    width: 450px;
}

dialog:not(.mobile)[size="extra-tiny"] {
    width: 400px;
}

@media screen and (max-width:1024px) {
    dialog:not(.mobile).large {
        width: 95dvw;
    }
}

@media screen and (max-width:700px) {
    dialog:not(.mobile) {
        width: 95dvw;
    }
}

@media screen and (max-width:540px) {
    dialog:not(.mobile).small {
        width: 95dvw;
    }
}

@media screen and (max-width:470px) {
    dialog:not(.mobile).tiny {
        width: 95dvw;
    }
}

@media screen and (max-width:420px) {
    dialog:not(.mobile).extra-tiny {
        width: 95dvw;
    }
}

dialog {
    .dialog-header {
        width: 100%;
        background-color: var(--dialog-header-bg);
        padding: 10px 20px 10px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border-color);

        h3 {
            font-size: 17px !important;
            color: var(--dialog-text-color);
            font-weight: 600;
            text-transform: uppercase;
            line-height: 25px;
            margin: 0;
            display: inline-flex;
            gap: 8px;
            place-items: center;
        }
    }

    &.mobile .dialog-header {
        padding-right: 20px;
    }
}

dialog > .close-dialog-button, dialog .dialog-header .close-dialog-button {
    position: fixed;
    top: 8px;
    right: 8px;
    display: inline-flex;
    width: 25px;
    height: 25px;
    justify-content: center;
    z-index: 1;
    align-items: center;
    border-radius: 4px;
}

dialog > .close-dialog-button:disabled, dialog .dialog-header .close-dialog-button:disabled {
    cursor: initial;
}

dialog .dialog-header .close-dialog-button {
    position: initial;
}

dialog > .close-dialog-button::before, dialog .dialog-header .close-dialog-button::before {
    content: '\f00d';
    color: #aaaaab;
    font-family: var(--font-awesome-font);
    font-size: 18px;
    font-weight: 900;
}

body:not(.is-mobile) dialog > .close-dialog-button:not(:disabled):hover, body:not(.is-mobile) dialog .dialog-header .close-dialog-button:not([disabled]):hover {
    background-color: var(--close-dialog-button-bg);
}

dialog:not([mode="confirm"]) .dialog-footer button.close-dialog-button {
    background: transparent;
    box-shadow: none;
    color: var(--label-color);
    text-shadow: none;
}

dialog:not([mode="confirm"]) .dialog-footer button.close-dialog-button:not(:disabled):hover {
    color: #eee;
}

dialog:not([mode="confirm"]) .dialog-footer button.button:not(.close-dialog-button) {
    min-width: 120px;
}

@media (prefers-reduced-motion: no-preference) {
    dialog .close-dialog-button {
        transition: all 0.2s ease-in-out 0s;
    }
}

dialog.will-change {
    will-change: opacity;
}

dialog {
    .dialog-scroller {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: none;
        box-sizing: border-box;
        position: relative;
        content-visibility: hidden;

        .dialog-scroller-container {
            margin: 30px 30px 0;
            padding-bottom: 30px;
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    }

    &.mobile .dialog-scroller .dialog-scroller-container {
        margin: 20px 20px 0;
        padding-bottom: 20px;
    }

    &[open] .dialog-scroller, dialog.will-change .dialog-scroller {
        content-visibility: auto;
    }

    &.no-padding .dialog-scroller .dialog-scroller-container {
        margin: 0;
        padding: 0;
    }

    &.disabled .dialog-scroller {
        pointer-events: none;
        touch-action: none;
    }
}

@media screen and (min-width:1400px) {
    dialog [anchor="right"] {
        left: unset;
        right: 50px;
    }
}

dialog .dialog-footer {
    width: 100%;
    background-color: var(--dialog-footer-bg);
    padding: 15px;
    display: flex;
    position: relative;
    place-items: end;
    box-sizing: border-box;
    border-top: 1px solid var(--border-color);
    justify-content: end;
    align-items: center;
}

dialog .dialog-footer[anchor="start"] {
    justify-content: space-between;
}

dialog .dialog-footer > menu {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

dialog[mode="confirm"] .dialog-footer menu {
    width: 100%;
}

dialog[mode="confirm"] .dialog-footer menu button {
    width: 50%;
}

dialog h1, dialog h2 {
    text-align: left;
    color: var(--dialog-text-color);
    font-weight: 600;
}

dialog h1 {
    font-size: 24px;
}

dialog h2 {
    font-size: 20px;
}

dialog p {
    text-align: left;
    color: var(--dialog-text-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 25px;
}

dialog p a, dialog p .text-button {
    color: var(--dialog-text-color);
    font-size: 15px;
    font-weight: bold;
}

dialog p fieldset {
    margin-top: 10px;
}

dialog ul {
    text-align: left;
    list-style: disc;
    list-style-position: inside;
}

dialog ul li {
    margin-bottom: 10px;
    color: var(--dialog-list-item-color);
    font-size: 15px;
}

dialog ul.small li {
    font-size: 13px;
}

dialog ul li a:not(.button) {
    color: var(--dialog-list-item-color);
}

dialog .warning-row {
    border: 1px solid var(--border-color);
}

dialog span.details, dialog span.details :is(a, button) {
    margin-bottom: 5px;
    color: var(--dialog-text-color);
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
}

dialog.mobile {
    max-height: unset !important;
    max-width: unset !important;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    border: none;
    border-radius: 0;
    margin: 0;
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
    dialog.mobile .dialog-footer {
        padding: 10px 20px var(--mobile-display-bottom-gap) 20px;
    }
}
/*Scroll To Top Button*/
#scroll-to-top-button {
    background-color: #000;
    cursor: default;
    color: white;
    font-family: var(--font-awesome-font);
    font-size: 40px;
    width: 52px;
    height: 42px;
    padding: 2px 0 0 0;
    transform: translate(0, 0) scale(0.95);
    border-radius: 5px;
    bottom: 30px;
    box-shadow: 0 0 13px 13px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    content-visibility: hidden;
    position: fixed;
    right: 40px;
    transition: opacity 0.25s, background-color 0.25s, transform 0.25s;
    z-index: 10;
}

#scroll-to-top-button:before {
    content: '\f106';
    font-weight: lighter;
}

#scroll-to-top-button:not([hidden]) {
    opacity: 1;
    cursor: pointer;
    transform: translate(0, 0) scale(1);
    content-visibility: visible;
}

#scroll-to-top-button:hover {
    background-color: var(--crimson-color);
}

@media screen and (max-width:1600px), screen and (max-height:850px) {
    #scroll-to-top-button {
        right: 0;
        bottom: 0;
        border-radius: 4px 0 0 0;
        font-size: 30px;
        width: 50px;
        height: 35px;
    }
}

@media screen and (max-width:800px), screen and (max-height:600px) {
    #scroll-to-top-button {
        font-size: 25px;
        width: 45px;
        height: 28px;
    }
}
/*Button*/
.button {
    display: inline-flex;
    position: relative;
    background-color: #484A52;
    width: fit-content;
    padding: 0 14px;
    height: 34px;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none !important;
    place-items: center;
    place-content: center;
    color: #fff;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .15);
    border-radius: 2px;
    -webkit-user-select: none;
    user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
    .button {
        transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s cubic-bezier(0.25, 0.25, 0.75, 0.75), box-shadow .1s cubic-bezier(0.25, 0.25, 0.75, 0.75);
    }
}

.button.small-gap {
    gap: 2px;
}

.button {
    :is(.icon, nhea-icon) {
        font-size: 16px;
    }

    &.extra-tiny :is(.icon, nhea-icon) {
        font-size: 12px;
    }

    .icon-right {
        font-size: 14px;
    }

    &.round {
        border-radius: 50px;
        box-sizing: border-box;
        width: 35px;
        padding: 0 !important;
        box-shadow: none;

        :is(.icon, nhea-icon) {
            display: inline-flex;
            font-size: 12.5px;
        }
    }

    img.icon {
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        width: 25px;
        height: 25px;
        font-size: 0 !important;
    }

    img.mid-icon {
        width: 22px;
        height: 22px;
        font-size: 0 !important;
    }

    img.small-icon {
        width: 19px;
        height: 19px;
        font-size: 0 !important;
    }

    img.round {
        border-radius: 50%;
        border: 1.5px solid var(--border-color);
        font-size: 0 !important;
    }
}

body:not(.is-mobile) .button:not([disabled]):hover {
    background-color: #686A73;
}

.button:not(:disabled):active {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .15);
    transform: translate(0px, 1.25px);
}

.button.round:active {
    transform: translate(0px, 1px);
}

.button.mini {
    padding: 0 6px;
    font-size: 11px !important;
    height: 20px;
}

.button.mini :is(.icon, .icon-right, nhea-icon) {
    font-size: 14px;
}

.button.mini.round {
    width: 27px;
    font-size: 13px;
}

.button.extra-tiny {
    padding: 0 10px;
    font-size: 11px !important;
    height: 27px;
}

.button.extra-tiny :is(.icon, .icon-right, nhea-icon) {
    font-size: 14px;
}

.button.extra-tiny img.icon {
    height: 16px;
    width: 16px;
}

.button.extra-tiny.round {
    width: 27px;
    font-size: 13px;
}

.button.tiny {
    padding: 0 10px;
    font-size: 12px !important;
    height: 30px;
}

.button.tiny :is(.icon, .icon-right, nhea-icon) {
    font-size: 15px;
}

.button.tiny img.icon {
    height: 18px;
    width: 18px;
}

.button.tiny.round {
    width: 30px;
    font-size: 13px;
}

.button.medium {
    padding: 0 16px;
    font-size: 15px !important;
    height: 40px;
}

.button.medium :is(.icon, .icon-right, nhea-icon) {
    font-size: 18px;
}

.button.medium img.icon {
    height: 20px;
}

.button.medium.round {
    width: 40px;
}

.button.big {
    padding: 0 18px;
    font-size: 18px;
    height: 48px;
}

.button.big :is(.icon, .icon-right, nhea-icon) {
    font-size: 22px;
}

.button.big img.icon {
    height: 24px;
}

.button.big.round {
    width: 48px;
}

.button.extra-big {
    padding: 0 22px;
    font-size: 22px;
    height: 58px;
}

.button.extra-big :is(.icon, .icon-right, nhea-icon) {
    font-size: 26px;
}

.button.extra-big img.icon {
    height: 27px;
}

.button.extra-big.round {
    width: 58px;
}

.button.full {
    width: 100%;
}

.button .vr {
    border: 1px solid var(--badge-color);
    width: 0;
    align-self: stretch;
    min-height: 1em;
    opacity: .1;
    margin: 0 2px;
}

a.button[href].external-link {
    padding-right: 30px;

    &::after {
        content: "\f14c";
        font-family: var(--font-awesome-font);
        font-size: 12.5px;
        position: absolute;
        right: 12px;
        opacity: .5;
    }

    &:hover::after {
        opacity: 1;
    }
}

a.button.big[href].external-link::after {
    font-size: 15px;
}

.button[disabled] {
    cursor: not-allowed !important;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    opacity: .8;

    &:active {
        transform: translate(0) !important;
    }
}

:root, [data-theme="light"] {
    --button-red-bg: #f80000;
    --button-red-bg-hover: var(--crimson-color);
    --button-white-bg: #FFF;
    --button-white-bg-hover: lightgray;
    --button-green-bg: #16a116;
    --button-green-bg-hover: green;
    --button-purple-bg: var(--purple-color);
    --button-purple-bg-hover: #6a0dad;
}

[data-theme="dark"] {
    --button-red-bg: #f80000;
    --button-red-bg-hover: var(--crimson-color);
    --button-white-bg: #FFF;
    --button-white-bg-hover: lightgray;
    --button-green-bg: #16a116;
    --button-green-bg-hover: green;
    --button-purple-bg: var(--purple-color);
    --button-purple-bg-hover: #6a0dad;
}

.button.red {
    background-color: var(--button-red-bg);
    color: white !important;
}

body:not(.is-mobile) .button:not([disabled]).red:hover {
    background-color: var(--button-red-bg-hover);
}

.button.white {
    background-color: var(--button-white-bg);
    color: black;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .15);
}

body:not(.is-mobile) .button:not([disabled]).white:hover {
    background-color: var(--button-white-bg-hover);
    color: black;
}

.button.black {
    background-color: black;
    color: white !important;
}

body:not(.is-mobile) .button:not([disabled]).black:hover {
    background-color: #222;
    color: white;
}

.button.crimson {
    background-color: var(--crimson-color);
    color: #eee !important;
}

body:not(.is-mobile) .button:not([disabled]).crimson:hover {
    background-color: var(--red-color);
    color: white;
}

.button.gray {
    background-color: #2F3136;
    color: white;
}

body:not(.is-mobile) .button:not([disabled]).gray:hover {
    background-color: #202225;
    color: white;
}

.button.darkgray {
    background-color: #222;
    color: white;
}

body:not(.is-mobile) .button:not([disabled]).darkgray:hover {
    background-color: #333;
    color: #eee;
}

.button.blue {
    background-color: #008fd5;
    color: white;
}

body:not(.is-mobile) .button:not([disabled]).blue:hover {
    background-color: #1ca7ea;
    color: white;
}

.button.orange {
    background-color: #ea574b;
    color: white !important;
}

body:not(.is-mobile) .button:not([disabled]).orange:hover {
    background-color: #d13e32;
    color: white;
}

.button.yellow {
    background-color: #c59100;
    color: white !important;
}

body:not(.is-mobile) .button:not([disabled]).yellow:hover {
    background-color: #e1aa11;
    color: white;
}

.button.green {
    background-color: var(--button-green-bg);
}

body:not(.is-mobile) .button:not([disabled]).green:hover {
    background-color: var(--button-green-bg-hover);
}

.button.purple {
    background-color: var(--button-purple-bg);
}

body:not(.is-mobile) .button:not([disabled]).purple:hover {
    background-color: var(--button-purple-bg-hover);
}

.button.subscribe {
    background-color: #ea574b;
    color: white !important;
}

body:not(.is-mobile) .button:not([disabled]).subscribe:hover {
    background-color: #d13e32;
    color: white;
}
/*Spinner*/
.spinner,
.spinner:after {
    border-radius: 50%;
    width: 8px;
    height: 8px;
}

.spinner {
    margin: 0 auto;
    font-size: 10px;
    position: relative;
    display: inline-block;
    text-indent: -9999em;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    transform: translateZ(0);
}

.spinner.active:not([hidden]) {
    animation: load8 1.1s infinite linear;
}

.spinner.blue {
    border-right-color: #008fd5;
    border-top-color: #008fd5;
    border-bottom-color: #008fd5;
    border-left-color: transparent;
}

.loader .spinner, .loader .text-loading {
    display: none;
}

.loader .text-default {
    display: inline-flex;
    gap: 5px;
    place-content: center;
    place-items: center;
}

.loader:not(.round) .spinner, .loader:not(.round) .text-loading, .loader:not(.round) .text-default {
    float: left;
}

.loader.center .text-loading, .loader.center .text-default {
    float: none;
    text-align: center;
}

.loader.spin .spinner {
    animation: load8 1.1s infinite linear;
}

.loader.spin .spinner, .loader.spin .text-loading {
    float: none;
    display: inline-flex;
    margin: unset;
    gap: 5px;
}

.loader.spin .text-default {
    display: none;
}

.button.spin {
    cursor: not-allowed !important;
}

.button .spinner, .button .spinner:after {
    border-width: 4px;
    width: 9px;
    height: 9px;
}

.button.round .spinner {
    margin: 0;
}

.button.extra-tiny .spinner, .spinner.extra-tiny, .button.extra-tiny .spinner:after, .spinner.extra-tiny:after {
    border-width: 2px;
    width: 9px;
    height: 9px;
}

.button.tiny .spinner, .spinner.tiny, .button.tiny .spinner:after, .spinner.tiny:after {
    border-width: 3px;
    width: 10px;
    height: 10px;
}

.button.medium .spinner, .spinner.medium, .button.medium .spinner:after, .spinner.medium:after {
    border-width: 4px;
    width: 11px;
    height: 11px;
}

.button.big .spinner, .spinner.big, .button.big .spinner:after, .spinner.big:after {
    width: 14px;
    height: 14px;
}

.button.extra-big .spinner, .spinner.extra-big, .button.extra-big .spinner:after, .spinner.extra-big:after {
    width: 17px;
    height: 17px;
}

.spinner.semi-giant, .spinner.semi-giant:after {
    width: 28px;
    height: 28px;
}

.spinner.giant, .spinner.giant:after {
    width: 45px;
    height: 45px;
}

.button.white .spinner {
    border-color: rgba(0, 0, 0, 0.2);
    border-left-color: #333;
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.blink-animation {
    animation: blink .8s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 0.5
    }

    to {
        opacity: 1
    }
}

.red-color {
    color: var(--red-color) !important;
}

.green-color {
    color: var(--green-color) !important;
}

.blue-color {
    color: var(--blue-color) !important;
}

.gray-color {
    color: var(--gray-color) !important;
}

.yellow-color {
    color: var(--yellow-color) !important;
}

.subscribe-color, .orange-color {
    color: var(--orange-color) !important;
}

:root, [data-theme="light"] {
    --default-text-button-color: #454545;
}

[data-theme="dark"] {
    --default-text-button-color: #b5b5b5;
}

.text-button {
    font-weight: 600;
    color: var(--default-text-button-color);
    display: inline-block;
    width: fit-content;
    font-size: 13px;
    -webkit-user-select: none;
    user-select: none;
}

.text-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.text-button.f-18, .text-button.bordered.f-18 {
    font-size: 18px;
}

.text-button.f-16, .text-button.bordered.f-16 {
    font-size: 16px;
}

.text-button.f-15, .text-button.bordered.f-15 {
    font-size: 15px;
}

.text-button.f-14, .text-button.bordered.f-14 {
    font-size: 14px;
}

.text-button.f-12, .text-button.bordered.f-12 {
    font-size: 12px;
    gap: 4px;
}

.text-button.f-11, .text-button.bordered.f-11 {
    font-size: 11px;
    gap: 4px;
}

.text-button.f-10, .text-button.bordered.f-10 {
    font-size: 10px;
    gap: 3px;
}

body:not(.is-mobile) .text-button:not([disabled]):hover {
    opacity: 0.8;
}

.text-button.bordered.radius-15 {
    border-radius: 15px;
}

.text-button.bordered.f-10 {
    padding: 1.4px 5px;
}

.text-button.f-10 .spinner {
    width: 6px;
    height: 6px;
}

.text-button[href].external-link, .text-button.copy-button, .text-button.bordered.copy-button {
    padding-right: 24px;
    position: relative;
}

.text-button[href].external-link::after, .text-button.copy-button::after {
    color: gray;
    font-family: var(--font-awesome-font);
    font-size: 12.5px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.text-button[href].external-link::after {
    content: "\f14c";
    opacity: .5;
}

.text-button.copy-button::after {
    content: "\f0c5";
}

.text-button[href].external-link:hover::after {
    opacity: .9;
}

table.table-striped tbody tr td .text-button[href].external-link:hover::after, table.table-striped tbody tr td .text-button.copy-button:hover::after {
    color: var(--table-striped-text-color);
}

@media (prefers-reduced-motion: no-preference) {
    .text-button {
        transition: all 0.1s ease-in-out 0s;
    }
}

.text-button.white {
    color: white;
}

.text-button.red {
    color: var(--red-color);
}

.text-button.crimson {
    color: var(--crimson-color);
}

.text-button.green {
    color: var(--green-color);
}

.text-button.blue {
    color: var(--blue-color);
}

.text-button.blue .spinner {
    border-top-color: var(--blue-color);
    border-bottom-color: var(--blue-color);
    border-left-color: var(--blue-color);
    border-right-color: transparent;
}

.text-button.black {
    color: var(--text-button-black-color);
}

.text-button.orange {
    color: var(--orange-color);
}

.text-button.light-gray {
    color: var(--label-color);
}

.text-button.discord {
    color: var(--discord-color);
}

.text-button.bordered {
    display: inline-flex;
    gap: 5px;
    padding: 4px 10px;
    border: 1.15px solid var(--default-text-button-color);
    border-radius: var(--control-border-radius);
    place-items: center;
}

.text-button.bordered:not([disabled]):hover {
    opacity: 1;
    background: #444;
    color: white;
}

.text-button.white.bordered {
    border-color: white;
}

.text-button.red.bordered {
    border-color: red;
}

.text-button.red.bordered:not([disabled]):hover {
    opacity: 1;
    background: red;
    color: white;
}

.text-button.red.bordered:not([disabled]):hover::after {
    color: white;
}

.text-button.crimson.bordered {
    border-color: var(--crimson-color);
}

.text-button.crimson.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--crimson-color);
    color: white;
}

.text-button.crimson.bordered:not([disabled]):hover::after {
    color: white;
}

.text-button.green.bordered {
    border-color: var(--green-color);
}

.text-button.green.bordered:not([disabled]):hover {
    opacity: 1;
    background: green;
    color: white;
}

.text-button.black.bordered {
    border-color: black;
}

.text-button.blue.bordered {
    border-color: var(--blue-color);
}

.text-button.blue.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--blue-color);
    color: white;
}

.text-button.blue.bordered:not([disabled]):hover .spinner {
    border-top-color: white;
    border-bottom-color: white;
    border-left-color: white;
    border-right-color: transparent;
}

.text-button.blue.bordered:not([disabled]):hover::after {
    color: #bbb;
}

.text-button.orange.bordered {
    border-color: var(--orange-color);
}

.text-button.orange.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--orange-color);
    color: white;
}

.text-button.yellow.bordered {
    border-color: var(--yellow-color);
}

.text-button.yellow.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--yellow-color);
    color: #222;
}

.text-button.light-gray.bordered {
    border-color: var(--border-color);
}

.text-button.light-gray.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--border-color);
    color: var(--label-color);
}

.text-button.discord.bordered {
    border-color: var(--discord-color);
}

.text-button.discord.bordered:not([disabled]):hover {
    opacity: 1;
    background: var(--discord-color);
    color: #eee;
}

.text-button i {
    cursor: pointer;
    width: auto !important;
}

.text-button.bordered i {
    line-height: 18px;
}

.text-button.f-14.bordered i {
    line-height: 17px;
}

.text-button.f-12.bordered i {
    line-height: 16px;
}

.text-button.f-11.bordered i {
    line-height: 15.3px;
}

.text-button .spinner {
    border-color: var(--label-color);
    border-left-color: transparent;
}

.text-button .icon {
    width: auto !important;
}

.text-button .icon.round {
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    font-size: 0 !important;
}

.text-button .icon-small {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.text-button .icon-tiny {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.text-button .icon-small, .text-button .icon-tiny {
    object-fit: contain;
}

.async-background {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: transparent;
}

fieldset, form {
    display: flex;
    flex-direction: column;
    gap: max(15px, 2.5vmin);
    padding: 20px 25px 25px;
    border-radius: 4px;
    border: 1px solid var(--fieldset-border-color);
    box-sizing: border-box;

    &.no-border {
        border: none !important;
        padding: 0 !important;
    }

    &.border-radius-bottom {
        border-radius: 0 0 4px 4px;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left;

        &.inline {
            display: inline-flex;
        }

        &.center {
            text-align: center;
            place-items: center;
        }

        &.justify-end {
            text-align: right;
            place-items: end;
            justify-items: end;
        }

        > label,
        label.form-row-label {
            display: flex;
            text-align: left;
            width: fit-content;
            flex-direction: column;
            gap: 6px;
            color: var(--label-color);
            font-weight: 900;
            font-size: 11.5px;
            letter-spacing: .2px;

            &.large {
                font-size: 15px;
            }

            &.horizontal {
                flex-direction: row;
                place-items: center;
                flex-flow: wrap;
            }

            button:not(.button) {
                color: var(--label-color);
                text-decoration: underline;
                font-weight: 600;

                &:hover {
                    opacity: 0.7;
                }
            }

            a:not(.button) {
                color: var(--blue-color);

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        label.row-text {
            font-size: 14px;
            font-weight: 500;
            color: var(--label-color);
            line-height: 20px;
            flex-direction: row;
            align-items: center;
            word-wrap: anywhere;
        }

        small {
            font-size: 13px;
            color: #999;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            align-content: center;
            align-items: center;

            a,
            button {
                color: #999;
                font-weight: 600;

                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }

    .warning-row {
        display: block;
        padding: 20px;
        background: var(--fieldset-warning-row-bg);
        border-radius: 4px;
        position: relative;

        &.tiny {
            padding: 10px;
        }

        &.center {
            text-align: center;
            display: inline-block;
            margin: 0 10px;
        }

        .warning-text {
            color: var(--fieldset-warning-row-text-color);
            font-size: 14px;
            line-height: 24px;
            display: block;
            text-wrap: balance;

            &.center {
                text-align: center;
            }

            a {
                font-size: 14px;
            }

            a:not(.button, .text-button, .close-dialog-button, .dotted),
            button:not(.button, .text-button, .close-dialog-button, .dotted) {
                font-size: 14px;
                color: var(--fieldset-warning-row-text-color);
                text-decoration: underline;
            }

            .text-button,
            a.button {
                text-decoration: none;
                color: inherit;
            }

            a:hover,
            button:hover {
                color: #999;
            }
        }

        .warning-mark,
        .info-mark,
        .success-mark {
            position: absolute;
            top: -10px;
            left: -10px;
            border-radius: 50px;
            font-size: 13px;
            color: white;
            font-weight: bold;
            box-shadow: 0 2px 3px 0 rgb(0 0 0 / 12%);
            width: 30px;
            height: 30px;
            display: flex;
            box-sizing: border-box;
            justify-content: center;
            align-items: center;
            align-content: center;
        }

        &.tiny .warning-mark,
        &.tiny .info-mark,
        &.tiny .success-mark {
            width: 22px;
            height: 22px;
            font-size: 12px;
        }

        .warning-mark {
            background: var(--crimson-color);
        }

        .info-mark {
            background: #666;
        }

        .success-mark {
            background: var(--green-color);
        }
    }

    &:is(fieldset) {
        &.extra-tiny {
            padding: 5px;
        }

        &.tiny {
            padding: 10px;
        }

        &.small {
            padding: 10px 15px 15px;
        }

        &.medium {
            padding: 20px;
        }

        &.fit {
            width: fit-content;
        }

        &.horizontal {
            flex-direction: row;
            flex-wrap: wrap;
            place-items: center;
        }

        &.inline {
            display: inline-flex;
            width: fit-content;
        }

        &.focus-blink {
            outline-offset: 5px;
            animation: focus-blink 1500ms ease;
        }

        &.small-gap {
            gap: 10px;
        }

        &.center {
            place-items: center;
            text-align: center;

            .form-row {
                display: inline-flex;
            }

            .warning-row {
                display: inline-block;
                margin: 0 10px;
            }
        }

        legend {
            font-size: 13px;
            font-weight: bold;
            color: var(--fieldset-legend-color);
            border: 0;
            margin: 0 -8px;
            padding: 0 8px;
            width: fit-content;

            &.large {
                font-size: 18px;
            }

            &.center {
                margin: 0 auto;
                text-align: center;
            }

            .text-button, .text-button.bordered, .button {
                margin-left: 10px;
                font-size: 10px;
                padding: 4px 8px;
                height: 18px;
            }
        }

        &.enable-toggle legend {
            cursor: pointer;

            &:hover {
                opacity: 0.7;
            }
        }

        .toggle-hidden-content {
            display: none;
        }

        &.collapsed .toggle-hidden-content {
            display: block;
        }

        .form-row {
            &.small-gap {
                gap: 4px;
            }

            &.horizontal {
                flex-direction: row;
                justify-content: start;
                align-items: center;
                flex-wrap: wrap;

                &.even {
                    justify-content: space-evenly;
                    align-items: start;
                }

                &.between {
                    justify-content: space-between;
                    align-items: start;
                }

                &.align-center {
                    align-items: center;
                }
            }

            &.horizontal-mode {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
        }

        .fieldset-section {
            display: flex;
            flex-direction: column;
            gap: 25px;

            &.horizontal {
                flex-direction: row;
                flex-wrap: wrap;
            }

            &.small-gap {
                gap: 10px;
            }
        }
    }

    @media screen and (max-width:800px) {
        padding: 15px;
    }
}

@media screen and (max-width: 800px) {
    fieldset .warning-row .warning-mark, fieldset .warning-row .info-mark, fieldset .warning-row .success-mark, form .warning-row .warning-mark, form .warning-row .info-mark, form .warning-row .success-mark {
        top: -6px;
        left: -6px;
        width: 28px;
        height: 28px;
    }
}

code {
    border: 1.5px solid var(--border-color);
    display: inline-flex;
    background-color: var(--badge-bg);
    color: var(--badge-color);
    padding: 0 2px;
    border-radius: 4px;
}

nhea-formatted-text {
    color: var(--label-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    -webkit-user-select: text;
    user-select: text;
    word-wrap: anywhere;
}

nhea-formatted-text :is(h4, h5, h6) {
    /*display: inline-block !important;*/
    font-size: 15px !important;
    font-weight: 900;
    line-height: 20px !important;
    margin: 0;
}

nhea-formatted-text :is(p, a, span) {
    /*display: inline-block !important;*/
    font-size: 14px !important;
    font-weight: 500;
    line-height: 20px !important;
    margin: 0;
}

nhea-formatted-text small {
    /*display: inline-block !important;*/
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 15px !important;
    margin: 0 !important;
}

nhea-formatted-text ul {
    display: block !important;
}

nhea-formatted-text ul > li {
    display: list-item !important;
    list-style-type: disc !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    margin: 0 0 0 15px !important;
}

nhea-formatted-text a {
    color: var(--blue-color);
}

article nhea-formatted-text[wrap-inline-content] span a {
    line-height: 20px !important;
}

tooltip-data :is(h1, h2, h3) {
    /*display: inline-block !important;*/
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    margin: 0 0 5px 0 !important;
}

nhea-formatted-text h1, nhea-formatted-text h1 * {
    /*display: inline-block !important;*/
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 20px !important;
    margin: 0 0 5px 0 !important;
}

nhea-formatted-text h2, nhea-formatted-text h2 * {
    /*display: inline-block !important;*/
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    margin: 0 0 5px 0 !important;
}

nhea-formatted-text h3, nhea-formatted-text h3 * {
    /*display: inline-block !important;*/
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    margin: 0 0 5px 0 !important;
}

nhea-formatted-text blockquote {
    border-left: 5px solid var(--border-color);
    padding-left: 10px;
    border-radius: 2px;
}

article nhea-formatted-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    visibility: hidden;
    min-height: 30px;
}

article nhea-formatted-text[prepared] {
    visibility: visible;
}

article nhea-formatted-text a {
    color: unset;
}

article nhea-formatted-text[prepared][expandable] {
    overflow: hidden;
    max-height: 90px;
    margin-bottom: 20px;
    mask-image: linear-gradient(to bottom, black 10%, transparent 100%);
}

article:has(nhea-formatted-text[prepared][expandable]) {
    position: relative;
    padding-bottom: 40px;
}

article:has(nhea-formatted-text[prepared][expandable]) .read-more {
    position: absolute;
    display: flex;
    bottom: 10px;
    left: 0;
    right: 0;
    place-content: center;
    padding: 25px 0 10px;
}

nhea-formatted-text code, tooltip-data code {
    display: inline-block;
    background-color: #2e2e2e;
    color: #eee;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
}

nhea-formatted-text code.block, tooltip-data code.block {
    min-width: 245px;
}

body:not(.is-mobile) nhea-formatted-text a:hover {
    text-decoration: underline;
}

.tui-full-calendar-content nhea-formatted-text {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    overflow: hidden;
    overflow-y: auto;
    margin: 10px 0;
    max-height: 150px;
}

table.table-striped {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    font-size: 12.5px;
}

table.table-striped tbody:before {
    content: "@";
    display: block;
    line-height: 2px;
    text-indent: -99999px;
    visibility: hidden;
}

table.table-striped thead tr th {
    display: table-cell;
    padding: 8px;
    border-bottom: 2px solid var(--table-header-border-color);
}

table.table-striped thead tr th button {
    box-sizing: border-box;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    cursor: default;
}

table.table-striped thead tr th, table.table-striped thead tr th button {
    color: var(--table-header-color);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .2px;
    text-align: left;
    text-transform: uppercase;
}

nhea-table table.table-striped thead tr th button {
    cursor: pointer;
}

table.table-striped thead tr th.center, table.table-striped thead tr th.center button {
    text-align: center;
}

nhea-table table.table-striped thead tr th button:hover {
    opacity: .6;
}

nhea-table table.table-striped thead tr th button.active {
    color: var(--orange-color);
}

nhea-table table.table-striped[data-last-sort-type="asc"] thead tr th button.active {
    border-bottom: 2px solid var(--orange-color);
}

nhea-table table.table-striped[data-last-sort-type="desc"] thead tr th button.active {
    border-top: 2px solid var(--orange-color);
}

table.table-striped tbody tr.focus-blink {
    outline-offset: 5px;
    animation: focus-blink 1500ms ease;
    border-radius: 1px;
}

table.table-striped tbody tr td {
    display: table-cell;
    height: 34px;
    text-align: left;
    background: var(--table-td-bg);
    border-bottom: 1px solid var(--table-row-border-color);
    padding: 8px;
}

table.table-striped tbody tr td, table.table-striped tbody tr td .text-button {
    color: var(--table-td-color);
    font-weight: 600;
    font-size: 13px;
}

table.table-striped tbody tr td.big, table.table-striped tbody tr td.big .text-button {
    font-size: 18px;
}

table.table-striped tbody tr td > .has-badge {
    display: grid;
    gap: 6px;
}

table.table-striped tbody tr td .no-data:before {
    content: '\f068';
    font-family: var(--font-awesome-font);
    font-style: normal;
    color: var(--table-td-color);
    font-size: 12px;
}

table.table-striped tbody tr td.center {
    text-align: center;
}

@media (hover: hover) {
    nhea-table[enable-row-click] table.table-striped tbody tr:not([disabled]):hover, nhea-table[enable-row-click] table.table-striped tbody tr .tooltip {
        cursor: pointer;
    }

    table.table-striped tbody tr:not([disabled]):hover td:first-child {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

    table.table-striped tbody tr:not([disabled]):hover td:last-child {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    table.table-striped:not(.dragging) tbody tr:not([disabled]):hover td {
        background-color: var(--table-hover-bg);
        border-bottom-color: transparent;
    }

    table.table-striped tbody tr:has(+ tr:not([disabled]):hover) td {
        border-bottom-color: transparent;
    }
}

table.table-striped tbody tr:has(nhea-selectlist[open]) td {
    background-color: var(--table-hover-bg);
    border-bottom-color: transparent;
}

table.table-striped tbody tr:has(nhea-selectlist[open]) td:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

table.table-striped tbody tr:has(nhea-selectlist[open]) td:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

table.table-striped .table-cell-vertical-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

table.table-striped td:has(.table-cell-thumbnail) {
    vertical-align: text-top;
}

table.table-striped .table-cell-thumbnail {
    display: inline-flex;
    gap: 8px;
    place-items: center;
    color: var(--table-td-color);
}

table.table-striped .table-cell-thumbnail img {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background-color: #333;
    font-size: 0;
    object-fit: contain;
}

table.table-striped .table-cell-thumbnail.small img {
    padding: 5px;
    width: 22px;
    height: 22px;
}

table.table-striped .table-cell-thumbnail.tiny img {
    width: 20px;
    height: 20px;
}

table.table-striped .table-cell-thumbnail .sub-title {
    color: var(--orange-color);
    font-weight: 600;
    font-size: 11.5px;
}

table.table-striped .table-components {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

table.table-striped .table-components > div {
    display: inline-flex;
    gap: .75vmin;
    flex-direction: row;
    flex-wrap: nowrap;
}

table.table-striped tbody tr td.drag-handle {
    cursor: grab;
    -khtml-user-drag: element;
    -webkit-user-drag: element;
}

table.table-striped tbody tr td.drag-handle > nhea-icon, table.table-striped tbody tr.dragging td.drag-handle > nhea-icon, table.table-striped tbody tr td.drag-handle:active > nhea-icon {
    visibility: hidden;
}

table.table-striped:not(.dragging) tbody tr:hover td.drag-handle > nhea-icon {
    visibility: visible;
}

table.table-striped:not(.dragging) tbody tr td.drag-handle:active {
    cursor: grabbing !important;
}

table.table-striped tbody tr.dragging {
    box-shadow: 0px 0px 15px 0 rgba(0, 0, 0, .12);
}

table.table-striped tbody tr.dragging td {
    background-color: var(--table-hover-bg);
    border-bottom-color: transparent;
}

table.table-striped tbody tr:has(+ tr.dragging) td {
    border-bottom-color: transparent;
}

table.table-striped tbody tr.dragging td:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

table.table-striped tbody tr.dragging td:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

table.table-striped tbody tr.dragging td.table-components .button {
    opacity: .25;
}

table.table-striped tbody tr td > nhea-duration {
    min-width: 100px;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid black;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid black;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid black;
}
/*Tooltip*/
.tooltip {
    cursor: default;
    display: inline-block;
}

a.tooltip, button.tooltip {
    cursor: pointer;
    display: inline-flex;
}

nhea-badge.tooltip {
    display: inline-flex;
}

.tooltip-container {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    position: absolute;
    max-width: 320px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    font-size: 13px;
    z-index: 99999;
    color: white;
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .tooltip-container {
        transition: opacity 0.2s ease-in-out 0s;
    }
}

.tooltip-container.large {
    max-width: 450px;
}

.tooltip-container.medium {
    max-width: 240px;
}

.tooltip-container.small {
    max-width: 180px;
}

@media screen and (max-width:480px) {
    .tooltip-container.large {
        max-width: 320px;
    }
}

.tooltip-container.no-padding {
    padding: 0;
    border: 2.5px solid var(--border-color);
    background-color: var(--body-bg);
    box-shadow: 0 2px 16px 6px rgba(0, 0, 0, .2);
}

.tooltip-container.no-padding > * {
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.tooltip-container img {
    max-width: 100% !important;
}

.tooltip-indicator-table {
    color: white;
    font-size: 13px;
    font-family: Arial;
    border-top: 1px solid gray;
    width: 100%;
    display: table;
    margin-top: 5px;
    padding-top: 10px;
}

.tooltip-indicator-table th {
    padding-bottom: 5px;
    text-align: right;
}

.tooltip-indicator-table th.incomplete {
    color: #999;
}

.tooltip-indicator-table.align-headers-left th {
    text-align: left;
}

.tooltip-indicator-table td {
    padding-left: 15px;
    text-align: right;
    padding-bottom: 2px;
}

.tooltip-indicator-table.align-body-left td {
    text-align: left;
    padding: 0 15px 2px 0;
}

.tooltip-indicator-table tr:first-child th, .tooltip-indicator-table tr:first-child td {
    padding-top: 5px;
}

.tooltip-indicator-table tr.highlight th, .tooltip-indicator-table tr.highlight td {
    border-top: 1px solid gray;
    padding-top: 2px;
}

.tooltip-indicator-table:not(.no-summary) tr:last-child th, .tooltip-indicator-table:not(.no-summary) tr:last-child td {
    border-top: 1px solid gray;
    padding-top: 2px;
}

.tooltip-indicator-table tr.highlight th, .tooltip-indicator-table:not(.no-summary) tr:last-child th {
    font-weight: normal;
}

.tooltip-indicator-table tr.highlight td, .tooltip-indicator-table:not(.no-summary) tr:last-child td {
    font-weight: bold;
}



.tooltip-indicator-table td.center {
    text-align: center;
    box-sizing: border-box;
}

.tooltip-container {
    a.close-button {
        position: absolute;
        top: 5px;
        right: 5px;
        background: #666;
        border-radius: 3px;
        display: inline-flex;
        width: 20px;
        height: 20px;
        display: inline-flex;
        place-content: center;
        place-items: center;

        &:hover {
            opacity: 0.7;
        }
    }

    body.is-mobile & {
        a.close-button {
            font-size: 15px;
        }
    }

    &.fullscreen-tooltip-visible {
        max-height: calc(90vh - 52px);
        max-height: calc(90dvh - 52px);

        a.close-button {
            display: none;
        }
    }

    nhea-duration {
        color: var(--yellow-color);
    }
}

.fullscreen-tooltip-close-button {
    position: fixed;
    left: 50%;
    z-index: 100000;
    min-width: 100px;
    min-height: 38px;
    justify-content: center;
    transform: translateX(-50%);
    background-color: #111;
}

tooltip-data {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tutorial {
    cursor: default;
    z-index: 1;
}

a.tutorial, button.tutorial {
    cursor: pointer;
}

.tutorial-container {
    background: #111;
    border: 1.5px solid gray;
    width: 300px;
    border-radius: 4px;
    position: absolute;
    align-self: baseline;
    font-size: 13px;
    z-index: 99999;
    color: white;
    opacity: 0;
    transition: transform .25s ease;
}

.tutorial-container .arrow-up {
    border-bottom: 5px solid lightgray;
}

.tutorial-container a, .tutorial-container button {
    display: inline-block;
    padding: 10px;
}

.tutorial-container:hover {
    background: #222;
    transform: translateY(-2px);
}

.tutorial-container button.tutorial-button {
    border-radius: 2px;
    white-space: break-spaces;
}

.tutorial-container button.tutorial-close-button {
    display: block;
    position: absolute;
    right: -5px;
    top: -5px;
    padding: 0;
}

.tutorial-container button.tutorial-close-button i {
    display: inline-block;
    text-shadow: none;
    color: #aaaaab;
    font-size: 20px;
}

.tutorial-container button.tutorial-close-button:hover i {
    color: white;
}

.tutorial-container .arrow-up {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.tutorial-container.anchor-left .arrow-up {
    left: 25%;
}

.tutorial-container.anchor-right .arrow-up {
    left: unset;
    right: 25%;
}

.full-width {
    width: 100%;
}

.full-max-width {
    max-width: 100%;
}

.flex-layout {
    display: flex;
    width: 100%;
    position: relative;
    gap: 2vmin;
    flex-flow: row;
    flex-wrap: wrap;
}

.grid-layout {
    display: grid;
    width: 100%;
    position: relative;
    gap: 2vmin;
    grid-template-columns: repeat(1, 1fr);
}

.grid-layout[columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.grid-layout[columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.grid-layout[columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.grid-layout[columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.grid-layout[columns="dynamic"] {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

@media screen and (max-width:1400px) {
    .grid-layout[columns="5"], .grid-layout[columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width:1200px) {
    .grid-layout[columns="5"], .grid-layout[columns="4"], .grid-layout[columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:900px) {
    .grid-layout[columns="5"], .grid-layout[columns="4"], .grid-layout[columns="3"], .grid-layout[columns="2"] {
        grid-template-columns: repeat(1, 1fr);
    }
}

.grid-layout.min-max {
    display: grid;
    width: 100%;
    position: relative;
    gap: 2vmin;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-layout.min-max[columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-layout.min-max[columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-layout.min-max[columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-layout.min-max[columns="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-layout.min-max[columns="dynamic"] {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

@media screen and (max-width:1400px) {
    .grid-layout.min-max[columns="5"], .grid-layout.min-max[columns="4"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width:1200px) {
    .grid-layout.min-max[columns="5"], .grid-layout.min-max[columns="4"], .grid-layout.min-max[columns="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width:900px) {
    .grid-layout.min-max[columns="5"], .grid-layout.min-max[columns="4"], .grid-layout.min-max[columns="3"], .grid-layout.min-max[columns="2"] {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

#page-legend {
    position: fixed;
    top: 20vh;
    transform: translateY(-10%);
    right: 0;
    z-index: 9;
    width: 160px;
    -webkit-user-select: none;
    user-select: none;
    justify-content: right;
    display: flex;
    place-items: start;
}

#page-legend #mobile-legend-button {
    display: none;
    font-weight: bold;
    position: fixed;
    border: 1.5px solid transparent;
    border-right: none;
    padding: 9px 18px 9px 12px;
    transform: translate(50px, 0);
    top: 0;
    font-size: 18px;
    text-align: center;
    transition: all 0.4s;
    border-radius: 5px 0 0 5px;
    right: -2px;
    white-space: nowrap;
}

@media (prefers-reduced-motion) {
    #page-legend #mobile-legend-button {
        transition: none;
    }
}

#page-legend #mobile-legend-button.shown {
    transform: translate(0, 0);
}

#page-legend #mobile-legend-button.open {
    background-color: black !important;
}

body:not(.is-mobile) #page-legend #mobile-legend-button:hover {
    padding: 9px 20px 9px 12px;
    border-color: var(--default-border-color);
}

#page-legend #mobile-legend-button {
    background-color: black;
}

#page-legend.horde #mobile-legend-button {
    background-color: #b30000;
}

#page-legend.alliance #mobile-legend-button {
    background-color: #0298e1;
}

#page-legend ul {
    display: flex;
    flex-direction: column;
    justify-content: end;
    place-items: end;
    gap: 5px;
}

#page-legend ul li a {
    background: #f5f5f5;
    color: white;
    text-shadow: 1px 1px rgba(0, 0, 0, .7);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    padding: 10px 16px;
    display: inline-flex;
    place-items: center;
    gap: 4px;
    border-radius: 4px 0 0 4px;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    #page-legend ul li a {
        transition: padding 0.4s ease-in-out 0s, background 0.2s ease-in-out 0s;
    }
}

#page-legend ul li a {
    background-color: #111;
    border: 1.5px solid transparent;
    border-right: none;
}

#page-legend ul li a.success {
    background-color: var(--green-color);
}

#page-legend ul li a.warning {
    background-color: #b30000;
}

body:not(.is-mobile) #page-legend ul li a:hover {
    padding-right: 25px;
    border-color: var(--default-border-color);
}

body.is-mobile #page-legend ul li a {
    border-color: var(--default-border-color);
}

body:not(.is-mobile) #page-legend ul li.warning a:hover {
    background: var(--red-color);
}

#page-legend.horde ul li a:active {
    background-color: #db2828;
}

#page-legend.alliance ul li a:active {
    background-color: #1ca7ea;
}

#page-legend ul li a :is(.icon, nhea-icon) {
    font-size: 15px;
    font-weight: 300;
    display: inline-block;
    text-align: center;
    width: 20px;
}

@media screen and (max-width:1900px) {
    #page-legend ul {
        position: fixed;
        top: 50px;
        right: 0;
        transform: translateX(100%);
        transition-duration: 0.15s;
        transition-timing-function: ease-in-out;
    }

    #page-legend ul.open {
        transform: translateX(0);
    }

    #page-legend #mobile-legend-button {
        display: inline-block;
    }
}

@media (prefers-reduced-motion) {
    #page-legend ul {
        transition: none;
    }
}

@media screen and (max-height:400px) {
    #page-legend {
        display: none;
    }
}

[data-theme="dark"] .dark-mode-invert-100 {
    filter: invert(100%);
}

[data-theme="dark"] .dark-mode-invert-75 {
    filter: invert(75%);
}

[data-theme="dark"] .dark-mode-invert-50 {
    filter: invert(50%);
}

.component-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.component-wrapper.full {
    width: 100%;
}

.component-wrapper.vertical {
    flex-direction: column;
}

.component-wrapper.small-gap {
    gap: 4px;
}

.component-wrapper.no-gap {
    gap: 0;
}

.component-wrapper.no-wrap {
    flex-wrap: nowrap;
}

.component-wrapper.align-start {
    align-items: start !important;
    place-content: start !important;
}

.component-wrapper.justify-center {
    justify-content: center;
}

.component-wrapper.justify-end {
    justify-content: end;
}

.component-wrapper .component-container {
    display: flex;
    gap: 8px;
    place-items: center;
    flex-wrap: wrap;
}

.component-wrapper .component-container.no-wrap {
    flex-wrap: nowrap;
}

.component-wrapper.small-gap .component-container, .component-wrapper .component-container.small-gap {
    gap: 4px;
}

.component-wrapper .component-container.vertical {
    flex-direction: column;
}

.component-wrapper .component-container.justify-center {
    justify-content: center;
}

.component-wrapper .component-container.justify-space-between {
    width: 100%;
    justify-content: space-between;
}

.component-wrapper .component-container.align-start {
    align-items: start !important;
    place-content: start !important;
}

.hover-scroll {
    overflow-y: auto;
}

@media (any-hover: hover) and (pointer: fine) {
    .hover-scroll {
        overflow-y: hidden !important;
        scrollbar-gutter: stable both-edges;

        &:hover {
            overflow-y: auto !important;
        }

        &::-webkit-scrollbar {
            background-color: transparent !important;
        }

        &::-webkit-scrollbar-track {
            background-color: transparent !important;
        }

        &::-webkit-scrollbar-track-piece {
            background-color: transparent !important;
        }

        &.small-scrollbar::-webkit-scrollbar {
            width: 5px;
        }
    }
}

dialog {
    gow-gear-view {
        border: none;

        .gow-gear-center {
            .gow-gear-media-background {
                img {
                    transform: translateY(0%);
                }
            }
        }
    }
}

gow-gear-view {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;

    &.no-border {
        border: none;
    }

    .gow-gear-center {
        position: absolute;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 390px;

        .gow-gear-media-background {
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                opacity: .1;
                transform: translateY(-15%);
            }
        }

        .gow-gear-media-portrait {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 92px;
            height: 92px;
            border-radius: 50%;
            overflow: hidden;
            color: var(--title-color);
            font-size: 34px;
            font-weight: 800;
            background: rgba(0, 0, 0, 0.5);
            border: 3px solid var(--gow-character-color, rgba(255, 255, 255, 0.2));
            box-shadow: 0 0 28px rgba(0, 0, 0, 0.9);

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                opacity: .5;
            }
        }
    }

    .gow-gear-panel {
        --gow-gear-slot-size: 40px;
        display: grid;
        position: relative;
        grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr);
        gap: 16px 0;
        width: min(100%, 980px);
        min-height: 540px;
        box-sizing: border-box;
        padding: 22px 26px;
        place-content: stretch;
        place-items: stretch;
        align-items: stretch;
        align-content: stretch;
        justify-content: space-between;

        .gear-slot,
        .gear-slot img {
            width: var(--gow-gear-slot-size);
            height: var(--gow-gear-slot-size);
            border-radius: 8px;
        }

        .gear-slot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-width: 2.2px;
            background-color: rgba(0, 0, 0, 0.7);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
            flex: 0 0 var(--gow-gear-slot-size);

            img {
                display: block;
                object-fit: cover;
            }

            &.artifact {
                border-color: var(--artifact-color);
            }

            &.legendary {
                border-color: var(--legendary-color);
            }

            &.epic {
                border-color: var(--epic-color);
            }

            &.rare {
                border-color: var(--rare-color);
            }

            &.uncommon {
                border-color: var(--uncommon-color);
            }

            &.common {
                border-color: var(--common-color);
            }

            &.heirloom {
                border-color: var(--heirloom-color);
            }

            &.empty-slot {
                border-style: double;
                opacity: 0.58;
                background: rgba(38, 38, 38, 0.82);
                border-color: rgba(255, 255, 255, 0.16);
            }
        }

        .embellishments {
            max-width: none;
            text-align: center;
        }

        &.comparison-mode {
            display: flex;
            flex-direction: column;
            gap: 14px;
            width: 100%;
            min-height: 100%;
            padding: 18px 18px 22px;
        }
    }

    &.no-vertical-gap {
        .gow-gear-panel {
            padding-top: 0;
            padding-bottom: 0;
        }
    }

    .gow-gear-vertical-list {
        display: flex;
        flex-direction: column;
        gap: 10px;

        .left-column.hr-seperator {
            .component-container {
                flex-direction: row-reverse;
            }
        }
    }

    .gow-gear-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;

        &.gow-gear-left {
            grid-column: 1;
            grid-row: 1;
        }

        &.gow-gear-right {
            grid-column: 2;
            grid-row: 1;
        }
    }

    .gow-gear-row {
        display: flex;
        gap: 10px;
        align-items: center;
        min-height: var(--gow-gear-slot-size);

        &.right-column {
            justify-content: end;
            flex-direction: row-reverse;

            .gow-gear-meta {
                flex-direction: row-reverse;
                justify-content: flex-end;
            }

            .gow-gear-icon {
                grid-column: 2;
            }

            .gow-gear-info {
                grid-column: 1;
                align-items: flex-end;
                text-align: right;
            }
        }

        &.vertical-column {
            align-items: flex-start;
            height: 60px;

            .gow-gear-info {
                flex: 1 1 auto;

                .gow-gear-item-name {
                    font-size: 13px;
                }
            }
        }
    }

    .gow-gear-info {
        display: flex;
        text-align: left;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }

    .gow-gear-item-name {
        display: inline;
        width: fit-content;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;

        &.artifact {
            color: var(--artifact-color);
        }

        &.legendary {
            color: var(--legendary-color);
        }

        &.epic {
            color: var(--epic-color);
        }

        &.rare {
            color: var(--rare-color);
        }

        &.uncommon {
            color: var(--uncommon-color);
        }

        &.common {
            color: var(--common-color);
        }

        &.heirloom {
            color: var(--heirloom-color);
        }
    }

    .gow-gear-empty-name,
    .gow-gear-item-level {
        font-size: 12px;
        font-weight: 600;
    }

    .gow-gear-empty-name {
        color: var(--label-color);
    }

    .gow-gear-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 18px;
        color: var(--label-color);
        font-size: 12px;
    }

    .gow-gear-enchantments {
        display: inline-flex;
    }

    .gow-gear-enchant,
    .gow-gear-status {
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
    }

    .gow-gear-enchant {
        color: var(--green-color);

        &.yellow {
            color: var(--yellow-color);
        }

        &.red {
            color: var(--red-color);
        }
    }

    .gow-gear-status {
        &.enchanted {
            color: var(--green-color);
        }

        &.embellished {
            color: var(--orange-color);
            border: 1px solid;
            padding: 0 4px;
            border-radius: 5px;

            &:hover {
                opacity: 0.8;
            }
        }
    }

    .gow-gear-sockets {
        display: inline-flex;
        gap: 3px;
        font-size: 13px;

        .gear-socket {
            color: var(--green-color);

            &.empty-socket {
                color: var(--red-color);
            }
        }
    }

    .gow-gear-weapons {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 20px;
        min-width: 0;
    }

    .gow-gear-weapon {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;

        .gow-gear-info {
            width: 100%;
            align-items: center;
            text-align: center;
        }

        .gow-gear-item-name {
            width: 100%;
        }

        .gow-gear-meta {
            justify-content: flex-end;
        }
    }

    .gow-gear-extras {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 6px;
    }

    .gow-gear-compare-button {
        margin-bottom: 18px;
    }

    @media screen and (max-width: 760px) {
        .gow-gear-panel {
            --gow-gear-slot-size: 32px;
            grid-template-columns: 1fr 1fr;
            gap: 14px 12px;
            min-height: 0;
            padding: 18px 14px 22px;

            &.comparison-mode {
                grid-template-columns: none;
                padding: 16px 14px 20px;
            }
        }

        .gow-gear-center {
            display: none;
        }

        .gow-gear-weapons {
            flex-wrap: wrap;
        }

        .gow-gear-row {
            flex-direction: column;
            align-items: flex-start;
            height: 95px;
            gap: 4px;

            &.right-column {
                align-items: flex-end;
                justify-content: start;
                flex-direction: column-reverse;
                text-align: right;

                .gow-gear-icon {
                    grid-column: 1;
                }

                .gow-gear-meta {
                    justify-content: flex-start;
                }
            }

            &.vertical-column {
                flex-direction: row;
                align-items: center;
                height: auto;
                gap: 10px;

                &.right-column {
                    align-items: center;
                    justify-content: flex-end;
                    flex-direction: row-reverse;
                    text-align: right;

                    .gow-gear-meta {
                        flex-direction: row-reverse;
                        justify-content: flex-start;
                    }

                    .gow-gear-info {
                        align-items: flex-end;
                        text-align: right;
                    }
                }
            }
        }

        .gow-gear-item-name {
            font-size: 13px;
        }

        .gow-gear-enchant,
        .gow-gear-status {
            font-size: 12px;
        }
    }
}

gow-gear-compare-view {
    display: block;
    width: min(100%, 1120px);
    margin: 0 auto;

    .gow-gear-compare {
        display: flex;
        flex-direction: column;
    }

    .gow-gear-compare-empty {
        padding: 12px 0 4px;
        text-align: center;
        color: var(--label-color);
    }

    .gow-gear-compare-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gow-gear-compare-selector {
        display: flex;

        select {
            width: 100%;
            min-height: 42px;
            padding: 10px 14px;
            color: var(--title-color);
            background: var(--main-bg-color);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font: inherit;

            &:focus {
                outline: 2px solid var(--blue-color);
                outline-offset: 1px;
            }
        }
    }

    .gow-gear-compare-heroes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gow-gear-compare-views {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: stretch;
    }

    .gow-gear-compare-gear-slot {
        display: flex;

        gow-gear-view {
            height: 100%;
            max-width: none;
            margin: 0;
        }
    }

    .gow-gear-compare-enchantments,
    .gow-gear-compare-chart {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
    }

    .gow-gear-compare-section-copy,
    .gow-gear-compare-chart-copy {
        h3 {
            margin: 0;
            color: var(--title-color);
            font-family: 'Trebuchet MS', sans-serif;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
        }
    }

    .gow-gear-compare-enchantment-rows {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gow-gear-compare-enchantment-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        padding: 10px 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }

    .gow-gear-compare-enchantment-slot {
        display: flex;
        justify-content: center;
        min-width: 90px;

        nhea-selectlist {
            display: flex;
        }

        .text-button {
            white-space: nowrap;
        }
    }

    .gow-gear-compare-enchantment-value {
        color: var(--title-color);
        font-size: 14px;
        line-height: 1.45;

        a {
            color: inherit;
        }

        &.left {
            text-align: right;
        }

        &.right {
            text-align: left;
        }
    }

    .gow-gear-compare-enchant-copy {
        display: inline-flex;
        flex-direction: column;
        gap: 2px;
        color: inherit;
        align-items: flex-start;

        &:hover {
            opacity: 0.8;
        }
    }

    .gow-gear-compare-enchant-name {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: inherit;
        width: fit-content;
        max-width: 100%;
        font-size: 13.5px;
    }

    .gow-gear-compare-enchant-title,
    .gow-gear-compare-enchant-rank {
        display: inline-flex;
        align-items: center;
    }

    .gow-gear-compare-enchantment-value.left .gow-gear-compare-enchant-copy {
        align-items: flex-end;
    }

    .gow-gear-compare-enchantment-value.right .gow-gear-compare-enchant-copy .gow-gear-compare-enchant-name {
        flex-direction: row-reverse;
    }

    .gow-gear-compare-enchant-description {
        color: var(--label-color);
        font-size: 12px;
        line-height: 1.35;
    }

    .gow-gear-compare-muted {
        color: var(--label-color);

        &.invalid-enchant {
            color: var(--crimson-color);
        }
    }

    .gow-gear-compare-chart-frame {
        position: relative;
        height: 380px;

        canvas {
            width: 100% !important;
            height: 100% !important;
        }
    }

    .gow-gear-compare-hero {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px;

        &:first-child {
            justify-content: end;
            flex-direction: row-reverse;
            text-align: right;
        }
    }

    .gow-gear-compare-avatar {
        --gow-gear-compare-accent: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        overflow: hidden;
        border-radius: 50%;
        border: 2px solid var(--gow-gear-compare-accent);
        background: rgba(0, 0, 0, 0.2);

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .gow-gear-compare-avatar-fallback {
        color: var(--title-color);
        font-size: 22px;
        font-weight: 800;
    }

    .gow-gear-compare-hero-copy {
        display: flex;
        flex-direction: column;
        gap: 4px;

        h3 {
            color: var(--title-color);
            font-family: 'Trebuchet MS', sans-serif;
            font-weight: 600;
            font-size: 18px;
        }

        p,
        span {
            margin: 0;
            color: var(--label-color);
        }

        p {
            font-size: 14px;
            font-weight: 600;
        }

        span {
            font-size: 12px;
        }
    }

    @media screen and (max-width: 760px) {
        .gow-gear-compare-controls,
        .gow-gear-compare-heroes,
        .gow-gear-compare-views {
            grid-template-columns: 1fr;
        }

        .gow-gear-compare-enchantment-row {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .gow-gear-compare-enchantment-slot {
            order: 1;
        }

        .gow-gear-compare-enchantment-value {
            &.left {
                order: 2;
            }

            &.right {
                order: 3;
            }

            &.left,
            &.right {
                text-align: center;
            }
        }

        .gow-gear-compare-chart-frame {
            height: 320px;
        }
    }
}

@font-face {
    font-family: "LifeCraft";
    src: url("/assets/images/mythic-killstone/LifeCraft_Font.ttf?v=ZgJibdyFN7-jrr0x-3vJbRLUc64") format("truetype");
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: "LifeCraft", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #050b0e;
}

button,
kbd {
    font: inherit;
}

.mythic-killstone-page {
    dialog,
    dialog * {
        font-family: 'Trebuchet MS', sans-serif;
    }
}

.killstone-game {
    --gold: #9ba5aa;
    --gold-light: #d9e0e3;
    --blue: #54c8ff;
    --artifact-color: #e6cc80;
    --legendary-color: #ff8000;
    --epic-color: #a335ee;
    --rare-color: #0070dd;
    --uncommon-color: #1eff00;
    --common-color: #fff;
    --heirloom-color: #00ccff;
    --border-color: #51472f;
    --title-color: #eee5ce;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: #071016;
    user-select: none;

    &,
    * {
        font-family: "LifeCraft", Georgia, serif;
    }

    &::after {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        content: "";
        background: radial-gradient(circle at center, transparent 43%, rgb(0 0 0 / 60%) 100%);
    }

    .game-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .game-hud,
    .mobile-controller,
    .action-dock,
    .fullscreen-toggle,
    .sound-toggle,
    .credits-toggle {
        transition: opacity 200ms ease;
    }

    &:not(.started) {
        .game-hud,
        .mobile-controller,
        .action-dock,
        .fullscreen-toggle,
        .sound-toggle,
        .credits-toggle {
            visibility: hidden;
            opacity: 0;
        }
    }

    .game-hud {
        position: absolute;
        z-index: 4;
        top: 0;
        left: 0;
        display: grid;
        grid-template-columns: minmax(220px, 1fr) minmax(320px, 520px) minmax(220px, 1fr);
        align-items: start;
        width: 100%;
        padding: 22px 28px;
        pointer-events: none;
        filter: drop-shadow(0 4px 8px #000);
    }

    .brand-panel {
        .brand-kicker {
            display: block;
            color: #96a7aa;
            font: 700 9px 'Trebuchet MS', sans-serif;
            letter-spacing: 2.5px;
            text-transform: uppercase;
        }

        h1 {
            margin: 2px 0 0;
            color: #d9e2df;
            font-size: clamp(20px, 2vw, 32px);
            font-weight: 400;
            letter-spacing: -1px;
            text-transform: uppercase;
            text-shadow: 0 2px 0 #000;

            strong {
                color: var(--gold);
            }
        }
    }

    .health-panel {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: center;
        width: 100%;
        margin-top: 2px;

        .portrait {
            position: relative;
            flex: 0 0 58px;
            width: 58px;
            height: 58px;
            overflow: hidden;
            border: 3px solid #a77735;
            border-radius: 50%;
            background: radial-gradient(circle, #247cc1, #071424 70%);
            box-shadow: 0 0 0 2px #2c1e0b, 0 0 18px rgb(47 183 255 / 40%);

            img {
                max-width: none;
                width: 464px;
                height: 116px;
                object-fit: fill;
                image-rendering: pixelated;
            }

            .level {
                position: absolute;
                right: -1px;
                bottom: -1px;
                display: grid;
                width: 20px;
                height: 20px;
                place-items: center;
                border-radius: 50%;
                background: #171207;
                color: #f5d377;
                font: 700 10px 'Trebuchet MS', sans-serif;
            }
        }

        .health-details {
            flex: 1;
        }

        .name-row {
            display: flex;
            justify-content: space-between;
            margin: 0 3px 4px;
            color: #eee8d5;
            font: 700 16px 'Trebuchet MS', sans-serif;
            text-shadow: 0 1px 2px #000;

            span {
                color: #d5c8a5;
                font-weight: 400;
            }
        }

        .health-bar,
        .sprint-bar {
            overflow: hidden;
            height: 13px;
            padding: 2px;
            border: 1px solid #6b542e;
            background: #080806;
            box-shadow: inset 0 0 4px #000, 0 0 0 1px #17130c;

            span {
                display: block;
                width: 100%;
                height: 100%;
                background: linear-gradient(#65bb38, #267519);
                box-shadow: inset 0 1px rgb(255 255 255 / 25%);
                transition: width 180ms ease;
            }
        }

        .sprint-bar {
            height: 8px;
            margin-top: 2px;

            &[hidden] {
                display: none;
            }

            span {
                background: linear-gradient(#e4f77d, #6f971a);
                transition: none;
            }
        }
    }

    .score-panel {
        display: flex;
        justify-self: end;
        gap: clamp(18px, 3vw, 42px);
        text-align: right;

        span {
            display: flex;
            flex-direction: column;

            &:last-child {
                width: 72px;
            }
        }

        small {
            color: #78898c;
            font: 700 8px 'Trebuchet MS', sans-serif;
            letter-spacing: 2px;
        }

        strong {
            color: #f4ead5;
            font-size: 23px;
            line-height: 1.1;
        }
    }

    .start-screen,
    .game-over {
        position: fixed;
        inset: 0;
        z-index: 8;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 130px 24px 150px;
        border: 0;
        text-align: center;
        background: radial-gradient(circle at center, rgb(8 25 33 / 40%), rgb(3 8 11 / 78%));
        backdrop-filter: blur(2px);
        font-family: 'Trebuchet MS';
        opacity: 1;
        transform: scale(1);

        &[open] {
            display: flex;
        }

        &::backdrop {
            background: transparent;
        }

        .start-rune {
            position: absolute;
            z-index: -1;
            width: min(52vw, 540px);
            aspect-ratio: 1;
            border: 1px solid rgb(68 192 255 / 18%);
            border-radius: 50%;
            box-shadow: 0 0 80px rgb(32 146 215 / 12%), inset 0 0 80px rgb(32 146 215 / 8%);
            animation: rune-pulse 3s ease-in-out infinite;

            &::before,
            &::after {
                position: absolute;
                inset: 10%;
                border: 1px dashed rgb(214 166 76 / 24%);
                border-radius: 50%;
                content: "";
            }

            &::after {
                inset: 27%;
                border-color: rgb(75 200 255 / 32%);
            }
        }

        .eyebrow {
            margin: 0 0 12px;
            color: var(--gold);
            font: 700 14px 'Trebuchet MS', sans-serif;
            letter-spacing: 4px;
            text-transform: uppercase;
        }

        h2,
        h2 * {
            font-family: "LifeCraft", Georgia, serif;
        }

        h2 {
            margin: 0;
            color: #f2eee3;
            font-size: clamp(36px, 6vw, 78px);
            font-weight: 400;
            letter-spacing: -3px;
            line-height: .9;
            text-shadow: 0 4px 12px #000;
            transform-origin: center;
            animation: splash-title-in 850ms cubic-bezier(.2, .75, .25, 1) both;
            text-align: center;

            strong {
                display: block;
                color: #68cbff;
                font-weight: 400;
                animation: splash-killstone-settle 950ms 180ms ease-out both;
            }
        }

        > p:not(.eyebrow) {
            max-width: 600px;
            margin: 24px auto;
            color: #aab6b4;
            font: 18px/1.7 'Trebuchet MS', sans-serif;
        }

        button {
            min-width: 220px;
            padding: 14px 24px;
            border: 1px solid #d0a451;
            outline: 1px solid #493418;
            outline-offset: 3px;
            background: linear-gradient(#58381e, #27170e);
            color: #ffe5a6;
            font: 700 16px 'Trebuchet MS', sans-serif;
            letter-spacing: 2px;
            cursor: pointer;
            text-shadow: 0 1px #000;
            place-content: center;

            &:hover,
            &:focus-visible {
                background: linear-gradient(#80542a, #392011);
                box-shadow: 0 0 24px rgb(214 166 76 / 24%);
            }
        }

        .start-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 18px;

            #start-leaderboard-button {
                border-color: #879196;
                outline-color: #333b3f;
                background: linear-gradient(#30383c, #14191b);
                color: #e4eaec;

                &:hover,
                &:focus-visible {
                    background: linear-gradient(#465158, #20282c);
                    box-shadow: 0 0 24px rgb(137 151 158 / 25%);
                }
            }
        }
    }

    .start-screen {
        backdrop-filter: blur(10px);

        &.leaving {
            pointer-events: none;
            animation: start-screen-out 500ms ease-in forwards;
        }
    }

    .game-over {
        background: radial-gradient(circle at center, rgb(57 10 15 / 45%), rgb(5 3 4 / 88%));

        h2 strong {
            color: #c44843;
        }

        .game-over-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 18px;
        }

        .game-over-home-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            margin-top: 22px;
            padding: 7px 10px;
            border: 1px solid #777;
            border-radius: 4px;
            outline: 0;
            background: transparent;
            color: #8e999b;
            font: 700 13px 'Trebuchet MS', sans-serif;
            letter-spacing: 1px;
            opacity: .78;

            img {
                width: 18px;
                height: 18px;
                object-fit: contain;
                opacity: .82;
            }

            &:hover,
            &:focus-visible {
                background: transparent;
                color: #d9e0e3;
                opacity: 1;
                box-shadow: none;
            }
        }
    }

    .controls-guide {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 45px;
        margin-bottom: 30px;

        span {
            display: flex;
            align-items: center;
            gap: 4px;

            small {
                margin-left: 7px;
                color: #788688;
                font: 14px 'Trebuchet MS', sans-serif;
                letter-spacing: 1px;
                text-transform: uppercase;
            }
        }

        kbd {
            min-width: 34px;
            height: 34px;
            font-size: 14px;
        }
    }

    kbd {
        display: inline-grid;
        min-width: 28px;
        height: 28px;
        padding: 0 7px;
        place-items: center;
        border: 1px solid #6c6557;
        border-radius: 3px;
        background: linear-gradient(#393a39, #171918);
        color: #e9e4d6;
        font: 700 11px 'Trebuchet MS', sans-serif;
        box-shadow: 0 2px 0 #050605;
    }

    .announcement {
        position: absolute;
        z-index: 6;
        top: 25%;
        left: 50%;
        color: #f7d783;
        font-size: clamp(18px, 3vw, 34px);
        letter-spacing: 4px;
        opacity: 0;
        pointer-events: none;
        text-shadow: 0 2px 8px #000;
        transform: translate(-50%, -10px);

        &.show {
            animation: announce 1.8s ease-out;
        }
    }

    .mobile-controller {
        position: absolute;
        z-index: 6;
        bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
        left: max(18px, env(safe-area-inset-left));
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: rgb(217 224 227 / 68%);
        font: 11px 'Trebuchet MS', sans-serif;
        letter-spacing: 2px;
        touch-action: none;

        .joystick-base {
            position: relative;
            display: grid;
            width: 118px;
            height: 118px;
            place-items: center;
            border: 2px solid rgb(155 165 170 / 60%);
            border-radius: 50%;
            background: radial-gradient(circle, rgb(44 57 63 / 74%), rgb(5 10 12 / 62%) 68%);
            box-shadow: inset 0 0 22px rgb(0 0 0 / 65%), 0 5px 18px rgb(0 0 0 / 48%);

            &::before,
            &::after {
                position: absolute;
                background: rgb(155 165 170 / 20%);
                content: "";
            }

            &::before {
                width: 1px;
                height: 76%;
            }

            &::after {
                width: 76%;
                height: 1px;
            }
        }

        .joystick-knob {
            z-index: 1;
            width: 50px;
            height: 50px;
            border: 2px solid #b9c2c6;
            border-radius: 50%;
            background: radial-gradient(circle at 38% 32%, #68777e, #242d31 68%);
            box-shadow: inset 0 0 0 3px #111719, 0 4px 10px #000;
            will-change: transform;
        }
    }

    .action-dock {
        position: absolute;
        z-index: 5;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(92vw, 760px);
        pointer-events: none;
        transform: translateX(-50%);

        > p {
            margin: 8px 0 0;
            color: #657376;
            font: 12px 'Trebuchet MS', sans-serif;
            letter-spacing: 1px;
            text-transform: uppercase;

            kbd {
                min-width: auto;
                height: auto;
                padding: 2px 5px;
                font-size: 11px;
            }

            b {
                margin: 0 7px;
                color: #414d4e;
            }
        }
    }

    .action-bar {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 4px;
        padding: 7px;
        border: 1px solid #687278;
        border-radius: 5px;
        background: linear-gradient(#2b3134e8, #0b0d0eee);
        box-shadow: 0 0 0 2px #050504, 0 8px 24px #000;
        pointer-events: auto;

        .action-slot {
            position: relative;
            display: block;
            width: clamp(42px, 5.5vw, 58px);
            aspect-ratio: 1;
            overflow: hidden;
            padding: 2px;
            border: 1px solid #879196;
            border-radius: 4px;
            background: #070707;
            cursor: pointer;
            box-shadow: inset 0 0 0 1px #202629;

            img {
                display: block;
                width: 100%;
                height: 100%;
                border-radius: 2px;
                object-fit: cover;
            }

            .key-label {
                position: absolute;
                top: 3px;
                right: 5px;
                color: #fff;
                font: 700 12px 'Trebuchet MS', sans-serif;
                text-shadow: 0 1px 3px #000, 1px 0 2px #000;
            }

            .cooldown-sweep {
                position: absolute;
                inset: 2px;
                display: grid;
                place-items: center;
                border-radius: 2px;
                background: conic-gradient(rgb(0 0 0 / 78%) var(--cooldown, 0%), transparent 0);
                color: white;
                font: 700 15px 'Trebuchet MS', sans-serif;
                text-shadow: 0 1px 3px #000;
            }

            &.ready:hover,
            &.ready:focus-visible {
                border-color: #e1e7ea;
                box-shadow: 0 0 10px #89979e;
                transform: translateY(-2px);
            }

            &.cast {
                animation: slot-cast 260ms ease-out;
            }
        }
    }

    .action-tooltip {
        position: fixed;
        z-index: 20;
        width: min(340px, calc(100vw - 24px));
        padding: 14px 16px 16px;
        border: 1px solid #77848a;
        border-radius: 4px;
        background: linear-gradient(145deg, rgb(13 19 23 / 98%), rgb(3 7 10 / 98%));
        color: #d9e0e3;
        box-shadow: 0 0 0 2px #050708, 0 12px 30px rgb(0 0 0 / 70%);
        pointer-events: none;

        &,
        * {
            font-family: 'Trebuchet MS', sans-serif;
        }

        &[hidden] {
            display: none;
        }

        &.compact {
            .tooltip-meta {
                display: none;
            }

            .tooltip-title {
                margin-bottom: 8px;
            }
        }

        .tooltip-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 6px;
            font-size: 14px;

            .tooltip-cast {
                color: #fff;
                font-weight: 700;
            }

            .tooltip-cooldown {
                display: inline-flex;
                gap: 4px;
                color: #9ba8ad;

                strong {
                    color: #fff;
                    font-weight: 700;
                }
            }
        }

        .tooltip-title {
            display: block;
            color: #f0cf62;
            font-family: "LifeCraft", Georgia, serif;
            font-size: 22px;
            font-weight: 400;
            line-height: 1.1;
        }

        p {
            margin: 11px 0 0;
            padding-top: 11px;
            border-top: 1px solid #2e373b;
            color: #c9d1d4;
            font-size: 15px;
            line-height: 1.35;
        }
    }

    .sound-toggle,
    .fullscreen-toggle,
    .credits-toggle {
        position: absolute;
        z-index: 7;
        right: 22px;
        bottom: 22px;
        border: 1px solid #58492e;
        background: rgb(8 11 11 / 75%);
        color: #b9ad8f;
        cursor: pointer;
    }

    .sound-toggle,
    .fullscreen-toggle {
        display: grid;
        width: 32px;
        height: 32px;
        place-items: center;
        border-radius: 50%;
        font-family: 'Trebuchet MS', sans-serif;

        &:hover,
        &:focus-visible {
            border-color: #a2adb2;
            color: #e4eaec;
        }

        &[hidden] {
            display: none;
        }
    }

    .sound-toggle {
        &[aria-pressed="true"] {
            border-color: #a43d3d;
            background: rgb(70 10 14 / 88%);
            color: #ff7169;
            box-shadow: 0 0 12px rgb(199 48 48 / 32%);

            &:hover,
            &:focus-visible {
                border-color: #d95b55;
                color: #ff9a94;
            }
        }
    }

    .fullscreen-toggle {
        right: 62px;
    }

    .credits-toggle {
        right: auto;
        bottom: 24px;
        left: 22px;
        padding: 5px 9px;
        color: #728184;
        font: 9px 'Trebuchet MS', sans-serif;
        text-transform: uppercase;
    }

    .credits-panel {
        position: absolute;
        z-index: 10;
        bottom: 65px;
        left: 20px;
        width: min(360px, calc(100vw - 40px));
        padding: 18px;
        border: 1px solid #64512f;
        background: rgb(5 10 12 / 96%);
        color: #96a3a2;
        font: 11px/1.5 'Trebuchet MS', sans-serif;
        box-shadow: 0 8px 30px #000;

        &[hidden] {
            display: none;
        }

        strong {
            color: #e6d7b2;
        }

        p {
            margin-bottom: 0;
        }

        button {
            position: absolute;
            top: 7px;
            right: 9px;
            border: 0;
            background: transparent;
            color: #aaa;
            font-size: 20px;
            cursor: pointer;
        }
    }

    .gear-dialog {
        width: min(960px, calc(100vw - 36px));
        max-height: min(820px, calc(100vh - 36px));
        overflow: auto;
        opacity: 1;
        transform: scale(1);
        padding: 0;
        border: 1px solid #96733c;
        border-radius: 5px;
        background: linear-gradient(145deg, #141b1d, #070b0d 70%);
        color: #c8c4b8;
        box-shadow: 0 24px 90px #000, 0 0 0 2px #2d2111;

        &:not([open]) {
            display: none;
        }

        &[open] {
            display: flex;
            flex-direction: column;
        }

        &::backdrop {
            background: rgb(0 4 7 / 76%);
            backdrop-filter: blur(5px);
        }

        > header {
            position: sticky;
            z-index: 2;
            top: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 17px 20px;
            border-bottom: 1px solid #473a25;
            background: rgb(10 15 17 / 94%);

            span {
                color: #8a9694;
                font: 700 8px 'Trebuchet MS', sans-serif;
                letter-spacing: 2.5px;
                text-transform: uppercase;
            }

            h2 {
                margin: 2px 0 0;
                color: #68cbff;
                font-size: 22px;
                font-weight: 400;
            }

            button {
                width: 34px;
                height: 34px;
                border: 1px solid #5e4b2b;
                border-radius: 50%;
                background: #17150f;
                color: #d7c69d;
                font-size: 24px;
                line-height: 1;
                cursor: pointer;
            }
        }

        gow-gear-view {
            border: 0;
            background: radial-gradient(circle at center, rgb(24 71 85 / 22%), transparent 48%);

            .gow-gear-panel {
                margin: 0 auto;
            }

            .gow-gear-media-portrait {
                position: relative;
                color: #68cbff;
                background: rgb(14 52 72 / 65%);

                img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    max-width: none;
                    width: 736px;
                    height: 184px;
                    object-fit: fill;
                    image-rendering: pixelated;
                }
            }

            a {
                text-decoration: none;
            }
        }

        > footer {
            position: sticky;
            bottom: 0;
            padding: 10px 20px;
            border-top: 1px solid #3e3525;
            background: rgb(8 12 13 / 96%);
            color: #717e7c;
            font: 9px 'Trebuchet MS', sans-serif;
            letter-spacing: 1px;
            text-align: center;
            text-transform: uppercase;

            kbd {
                width: 22px;
                min-width: 22px;
                height: 22px;
                margin-right: 6px;
                padding: 0;
                font-size: 9px;
            }
        }
    }

    .leaderboard-dialog {
        width: min(760px, calc(100vw - 36px));
        max-height: min(780px, calc(100vh - 36px));
        overflow: hidden;
        opacity: 1;
        transform: scale(1);
        padding: 0;
        border: 1px solid #77848a;
        border-radius: 5px;
        background: linear-gradient(145deg, #141b1d, #070b0d 70%);
        color: #c8c4b8;
        box-shadow: 0 24px 90px #000, 0 0 0 2px #20272a;
        font: 700 8px 'Trebuchet MS', sans-serif !important;

        &:not([open]) {
            display: none;
        }

        &::backdrop {
            background: rgb(0 4 7 / 76%);
            backdrop-filter: blur(5px);
        }

        > header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 17px 20px;
            border-bottom: 1px solid #3c484e;
            background: rgb(10 15 17 / 94%);

            span {
                color: #8a9694;
                letter-spacing: 2.5px;
                text-transform: uppercase;
                font-size: 10px;
            }

            h2 {
                margin: 2px 0 0;
                color: #68cbff;
                font-size: 25px;
                font-weight: 400;
            }

            button {
                width: 34px;
                height: 34px;
                border: 1px solid #556168;
                border-radius: 50%;
                background: #111719;
                color: #d9e0e3;
                font-size: 24px;
                line-height: 1;
                cursor: pointer;
            }
        }

        .leaderboard-content {
            min-height: 0;
            max-height: min(660px, calc(100vh - 130px));
            overflow-y: auto;
            padding: 18px;
        }

        .leaderboard-status {
            margin: 36px 12px;
            color: #98a5a8;
            font: 16px 'Trebuchet MS', sans-serif;
            letter-spacing: 1px;
            text-align: center;
        }

        .leaderboard-list {
            display: grid;
            gap: 9px;
        }

        .leaderboard-card {
            display: grid;
            grid-template-columns: 54px minmax(0, 1fr) minmax(100px, auto) minmax(120px, auto);
            align-items: center;
            gap: 16px;
            min-height: 72px;
            padding: 12px 16px;
            border: 1px solid #344147;
            border-radius: 4px;
            background: linear-gradient(100deg, rgb(40 53 58 / 75%), rgb(12 18 21 / 92%));
            box-shadow: inset 0 0 0 1px rgb(255 255 255 / 3%);

            &:nth-child(-n + 3) {
                border-color: #737f84;
                background: linear-gradient(100deg, rgb(65 75 78 / 72%), rgb(12 18 21 / 92%));
            }

            &.current-user {
                border-color: #d69b28;
                background: linear-gradient(100deg, rgb(117 70 17 / 78%), rgb(28 20 10 / 94%));
                box-shadow: inset 0 0 0 1px rgb(255 210 98 / 18%), 0 0 14px rgb(214 155 40 / 18%);

                .leaderboard-rank,
                .leaderboard-account,
                .leaderboard-level strong {
                    color: #ffd15c;
                }
            }

            .leaderboard-rank {
                color: #9ba5aa;
                font-size: 25px;
                font-weight: 400;
            }

            .leaderboard-account {
                overflow: hidden;
                color: #f1ead9;
                font-size: 18px;
                font-weight: 400;
                text-overflow: ellipsis;
                white-space: nowrap;
                width: fit-content;

                &[href] {
                    text-decoration: none;
                    transition: color 160ms ease, text-shadow 160ms ease;

                    &:hover,
                    &:focus-visible {
                        color: #68cbff;
                        text-shadow: 0 0 12px rgb(84 200 255 / 45%);
                    }
                }
            }

            .leaderboard-level,
            .leaderboard-when {
                display: flex;
                flex-direction: column;
                gap: 3px;

                small {
                    color: #758488;
                    font: 700 8px 'Trebuchet MS', sans-serif;
                    letter-spacing: 1.5px;
                }
            }

            .leaderboard-level strong {
                color: #68cbff;
                font-size: 22px;
                font-weight: 400;
            }

            .leaderboard-when nhea-duration {
                color: #d4dcde;
                font: 14px 'Trebuchet MS', sans-serif;
            }
        }

        .leaderboard-login {
            display: flex;
            flex-shrink: 0;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 14px 18px;
            border-top: 1px solid #3c484e;
            background: rgb(10 15 17 / 96%);
            font: 14px 'Trebuchet MS', sans-serif;

            &[hidden] {
                display: none;
            }

            span {
                color: #98a5a8;
            }

            a {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 9px 13px;
                border: 1px solid #3685b5;
                border-radius: 3px;
                background: linear-gradient(#176796, #104668);
                color: #effaff;
                font-weight: 700;
                text-decoration: none;
                white-space: nowrap;

                &:hover,
                &:focus-visible {
                    border-color: #68cbff;
                    background: linear-gradient(#2684b9, #145a81);
                    box-shadow: 0 0 16px rgb(84 200 255 / 25%);
                }
            }
        }
    }

    .pause-screen {
        position: fixed;
        inset: 0;
        z-index: 8;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgb(1 5 7 / 58%);
        color: #e9d49e;
        opacity: 1;
        text-align: center;
        backdrop-filter: blur(2px);
        transform: scale(1);

        &,
        * {
            font-family: 'LifeCraft', Georgia, serif;
        }

        &[open] {
            display: flex;
        }

        &::backdrop {
            background: transparent;
        }

        h2 {
            margin: 0 0 30px;
            font-size: clamp(42px, 7vw, 78px);
            font-weight: 400;
            letter-spacing: 9px;
            text-shadow: 0 4px 12px #000;
            transform-origin: center;
            animation: splash-title-in 850ms cubic-bezier(.2, .75, .25, 1) both;
        }

        .pause-actions {
            display: flex;
            flex-direction: column;
            gap: 14px;
            width: min(340px, calc(100vw - 40px));

            button {
                padding: 14px 22px;
                border: 1px solid #879196;
                border-radius: 3px;
                background: linear-gradient(#30383c, #14191b);
                color: #e4eaec;
                font-size: 16px;
                letter-spacing: 2px;
                cursor: pointer;
                box-shadow: 0 3px 0 #050708, inset 0 0 0 1px #202629;

                &:hover,
                &:focus-visible {
                    border-color: #d9e0e3;
                    background: linear-gradient(#465158, #20282c);
                    box-shadow: 0 3px 0 #050708, 0 0 18px rgb(137 151 158 / 25%);
                }
            }
        }

        p {
            margin: 24px 0 0;
            color: #879499;
            font-size: 13px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
    }
}

@keyframes rune-pulse {
    50% { opacity: .55; transform: scale(1.04) rotate(5deg); }
}

@keyframes splash-title-in {
    0% { opacity: 0; filter: blur(5px); transform: translateY(14px) scale(.94); }
    65% { opacity: 1; filter: blur(0); transform: translateY(-2px) scale(1.015); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes splash-killstone-settle {
    0% { color: #d8f4ff; text-shadow: 0 0 28px rgb(84 200 255 / 85%), 0 5px 12px #000; transform: translateY(7px); }
    100% { color: #68cbff; text-shadow: 0 4px 12px #000; transform: translateY(0); }
}

@keyframes start-screen-out {
    0% { opacity: 1; backdrop-filter: blur(10px); }
    100% { opacity: 0; backdrop-filter: blur(0); }
}

@keyframes announce {
    0% { opacity: 0; transform: translate(-50%, 12px) scale(.9); }
    18%, 55% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -18px) scale(1.05); }
}

@keyframes slot-cast {
    45% { filter: brightness(2.2); transform: scale(1.08); }
}

@media (max-width: 800px) {
    .killstone-game {
        .game-hud {
            grid-template-columns: 1fr 1fr;
            padding: 14px;
        }

        .brand-panel {
            display: none;
        }

        .health-panel {
            min-width: 280px;
        }

        .score-panel {
            gap: 15px;
        }

        .score-panel span:nth-child(2) {
            display: none;
        }

        .action-bar {
            gap: 2px;
            padding: 5px;

            .action-slot {
                width: min(8.4vw, 52px);
            }
        }

        .action-dock > p,
        .credits-toggle,
        .fullscreen-toggle,
        .sound-toggle {
            display: none;
        }

        .gear-dialog {
            width: calc(100vw - 16px);
            max-height: calc(100vh - 16px);

            gow-gear-view {
                .gow-gear-panel {
                    grid-template-columns: 1fr 1fr;
                    padding-inline: 12px;
                }

                .gow-gear-info {
                    display: none;
                }
            }
        }

        .leaderboard-dialog {
            width: calc(100vw - 16px);

            > header h2 {
                font-size: 19px;
            }

            .leaderboard-card {
                grid-template-columns: 42px minmax(0, 1fr) auto;
                gap: 10px;

                .leaderboard-when {
                    grid-column: 2 / -1;
                }
            }

            .leaderboard-login {
                align-items: stretch;
                flex-direction: column;
                gap: 10px;
                text-align: center;

                a {
                    justify-content: center;
                }
            }
        }
    }
}

@media (hover: none) and (pointer: coarse) {
    .killstone-game {
        .mobile-controller {
            display: flex;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .killstone-game .start-screen h2,
    .killstone-game .start-screen h2 strong,
    .killstone-game .pause-screen h2 {
        animation: none;
    }
}

