@font-face {
    font-family: "CodersCrux";
    src: url("/assets/fonts/coders_crux.ttf") format("truetype"),
         url("/assets/fonts/coders_crux.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-0: #2f3132;
    --bg-1: #2f3132;
    --panel: rgba(47, 49, 50, 0.88);
    --panel-strong: rgba(47, 49, 50, 0.96);
    --line: rgba(255, 173, 91, 0.35);
    --text: #ffd7af;
    --muted: #ffc78f;
    --accent: #ffad5b;
    --accent-soft: #ffb067;
    --accent-2: #ffad5b;
    --good: #52d98a;
    --bad: #ff6d6d;
    --warn: #ffd45f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "CodersCrux";
    color: var(--text);
    background: linear-gradient(140deg, rgba(47, 49, 50, 0.96), rgba(47, 49, 50, 0.94)),
                url("/site_media/theme/Background.png") center / cover no-repeat fixed;
}

main a,
main a:visited {
    color: #ffad5b;
}

.background-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
    background-image: url("/site_media/theme/Solid.png");
    background-size: 42px 42px;
    background-repeat: repeat;
    animation: drift 16s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(28px); }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    background: rgba(47, 49, 50, 0.96);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.brand span {
    font-family: "CodersCrux";
    letter-spacing: 1px;
    font-size: 1.25rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffad5b;
    text-decoration: none;
    padding: 0.34rem 0.68rem;
    height: 40px;
    font-size: 27px !important;
    line-height: 1;
    border-radius: 10px;
    border: 1px solid #5e5e5e;
    background: #444444;
    transition: all 140ms ease;
}

.nav-link:visited {
    color: #ffad5b;
}

.nav-link:hover {
    color: #ffbf7d;
    border-color: #7a7a7a;
    background: #4d4d4d;
}

.nav-link.active {
    color: #ffad5b;
    background: #555555;
    border-color: #8b8b8b;
}

.page-wrap {
    width: min(1120px, 95vw);
    margin: 1.1rem auto 3rem;
    display: grid;
    gap: 1rem;
}

.panel,
.hero {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(56, 58, 59, 0.92), var(--panel));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.38);
    padding: 1.2rem;
}

.hero {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    background-image: linear-gradient(135deg, rgba(47, 49, 50, 0.94), rgba(47, 49, 50, 0.82)),
                      url("/site_media/steam/Background.png");
    background-size: cover;
    background-position: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent-soft);
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1 {
    font-family: "CodersCrux";
    letter-spacing: 1px;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 4.6vw, 3rem);
}

.hero-copy {
    color: var(--text);
    max-width: 65ch;
}

.cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
    max-width: 560px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    padding: 0.6rem 0.95rem;
    line-height: 1;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 120ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #ffad5b;
    background: #444444;
    border-color: #5e5e5e;
    box-shadow: none;
}

.btn-secondary {
    color: #ffad5b;
    background: #444444;
    border-color: #5e5e5e;
}

.btn-danger {
    color: #ffad5b;
    background: #444444;
    border-color: #5e5e5e;
}

.release-badge {
    margin-top: 1rem;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 46, 0.35);
    background: rgba(255, 140, 46, 0.08);
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.hero-art {
    position: relative;
}

.hero-showcase {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.17);
}

.stat-grid,
.feature-grid,
.shot-grid,
.legend-grid,
.tri-grid {
    display: grid;
    gap: 0.8rem;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    background: var(--panel-strong);
    border-radius: 14px;
    border: 1px solid rgba(255, 173, 91, 0.35);
    padding: 0.85rem;
}

.stat-label {
    color: var(--muted);
    margin: 0;
    font-size: 0.85rem;
}

.stat-value {
    margin: 0.4rem 0 0;
    font-family: "CodersCrux";
    font-size: 1.4rem;
    letter-spacing: 0.04em;
}

.stat-id-value {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.05;
}

.stat-icon-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.player-skin-tile {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid rgba(255, 173, 91, 0.55);
    background: rgba(0, 0, 0, 0.32);
    image-rendering: pixelated;
    object-fit: contain;
}

.panel-note {
    color: var(--muted);
}

.status-online {
    color: var(--good) !important;
}

.status-offline {
    color: var(--bad) !important;
}

.status-unknown {
    color: var(--warn) !important;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 173, 91, 0.3);
    background: linear-gradient(160deg, rgba(63, 65, 66, 0.9), rgba(52, 54, 55, 0.94));
    transition: transform 140ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card img {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
}

.media-card img,
.media-card video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 173, 91, 0.3);
}

.highlights-checker {
    display: grid;
    gap: 0.9rem;
}

.highlight-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: stretch;
}

.highlight-row.is-reverse .highlight-copy {
    order: 2;
}

.highlight-row.is-reverse .highlight-media {
    order: 1;
}

.highlight-copy,
.highlight-media {
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 0;
    background: linear-gradient(160deg, rgba(63, 65, 66, 0.9), rgba(52, 54, 55, 0.94));
}

.highlight-copy {
    border-radius: 14px;
}

.highlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.9rem;
    text-align: center;
}

.highlight-copy h3 {
    margin-bottom: 0.45rem;
}

.highlight-copy p {
    margin: 0;
}

.highlight-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 534px;
    margin-inline: auto;
    padding: 0;
}

.highlight-media img,
.highlight-media video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    object-fit: cover;
}

.highlight-media img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.video-shell {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 173, 91, 0.35);
}

.video-shell video {
    display: block;
    width: 100%;
}

.video-shell iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.shot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shot-card {
    margin: 0;
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(56, 58, 59, 0.92);
}

.shot-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shot-clickable {
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease;
}

.shot-clickable:hover,
.shot-clickable:focus {
    transform: scale(1.02);
    opacity: 0.92;
    outline: none;
}

.shot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(26, 27, 27, 0.92);
    display: none;
    place-items: center;
    padding: 2.5rem 1.1rem;
}

.shot-lightbox.is-open {
    display: grid;
}

[hidden] {
    display: none !important;
}

.shot-lightbox img {
    width: min(92vw, 1400px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 173, 91, 0.5);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
}

.shot-stage {
    position: relative;
    width: min(92vw, 1400px);
}

.shot-stage img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.shot-hitzone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22%;
    min-width: 64px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 91;
}

.shot-hitzone.left {
    left: 0;
}

.shot-hitzone.right {
    right: 0;
}

.shot-nav {
    position: fixed;
    border-radius: 10px;
    border: 1px solid #5e5e5e;
    background: #444444;
    color: #ffad5b;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    z-index: 95;
}

.shot-nav.close {
    top: 1.1rem;
    right: 1.1rem;
}

.shot-nav.prev {
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
}

.shot-nav.next {
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

.community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.community-pill {
    text-decoration: none;
    color: #ffad5b;
    background: #444444;
    border: 1px solid #5e5e5e;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
}

.community-pill:hover {
    background: #4d4d4d;
}

.community-pill:visited {
    color: #ffad5b;
}

.tri-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-card {
    border: 1px solid rgba(255, 173, 91, 0.35);
    border-radius: 14px;
    padding: 0.9rem;
    background: linear-gradient(150deg, rgba(60, 62, 63, 0.95), rgba(50, 52, 53, 0.96));
}

.contact-methods {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.contact-row {
    display: grid;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.35fr) minmax(94px, 0.28fr);
    gap: 0.5rem;
    align-items: center;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-ui {
    position: relative;
    width: 100%;
}

.custom-select-enhanced .custom-select-native {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.custom-select-trigger {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 173, 91, 0.45);
    color: #ffad5b;
    background: #3b3d3e;
    padding: 0.55rem 0.75rem;
    height: 44px;
    font-family: "CodersCrux";
    font-size: 24px !important;
    line-height: 1.1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    cursor: pointer;
}

.custom-select-trigger:focus {
    outline: 2px solid rgba(255, 173, 91, 0.55);
    border-color: rgba(255, 173, 91, 0.9);
}

.custom-select-trigger:disabled {
    opacity: 0.65;
    cursor: default;
}

.custom-select-trigger.field-error {
    border-color: rgba(255, 109, 109, 0.9) !important;
    outline: 2px solid rgba(255, 109, 109, 0.45);
}

.custom-select-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow {
    width: 0;
    height: 0;
    border-left: 0.28rem solid transparent;
    border-right: 0.28rem solid transparent;
    border-top: 0.36rem solid #ffad5b;
    flex: 0 0 auto;
    transition: transform 120ms ease;
}

.custom-select.is-open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.24rem);
    z-index: 45;
    border: 1px solid rgba(255, 173, 91, 0.45);
    border-radius: 12px;
    background: linear-gradient(170deg, rgba(67, 69, 70, 0.98), rgba(54, 56, 57, 0.98));
    padding: 0.26rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
    display: none;
}

.custom-select.is-open .custom-select-menu {
    display: block;
}

.custom-select.is-open-up .custom-select-menu {
    top: auto;
    bottom: calc(100% + 0.24rem);
}

.custom-select-options {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: 0.14rem;
    padding: 0.06rem;
}

.custom-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ffcf9a;
    text-align: left;
    font-family: "CodersCrux", monospace;
    font-size: 24px !important;
    line-height: 1.05;
    padding: 0.36rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 40px;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.custom-select-option:hover,
.custom-select-option:focus {
    background: rgba(255, 173, 91, 0.22);
    color: #ffe5ca;
    outline: none;
}

.custom-select-option.is-selected {
    background: rgba(255, 173, 91, 0.18);
    color: #ffe5ca;
}

.custom-select-option.is-disabled,
.custom-select-option:disabled {
    opacity: 0.45;
    cursor: default;
}

.contact-row-error {
    border: 1px solid rgba(255, 109, 109, 0.75);
    border-radius: 10px;
    padding: 0.35rem;
    background: rgba(127, 40, 40, 0.18);
}

.contact-remove-btn {
    width: 100%;
    height: 40px;
    font-size: 24px !important;
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

.contact-remove-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

label {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 173, 91, 0.45);
    color: #ffad5b;
    background: #3b3d3e;
    padding: 0.55rem 0.65rem;
    font: inherit;
    line-height: 1;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
select {
    height: 44px;
}

select {
    font-family: "CodersCrux", monospace !important;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1.8rem;
    background-image:
        linear-gradient(45deg, transparent 50%, #ffad5b 50%),
        linear-gradient(135deg, #ffad5b 50%, transparent 50%);
    background-position:
        calc(100% - 0.85rem) calc(50% + 0.12rem),
        calc(100% - 0.55rem) calc(50% + 0.12rem);
    background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
    background-repeat: no-repeat;
}

/* Keep dropdown menus readable across browsers; Firefox often ignores custom glyph rendering for option fonts. */
body select,
body option,
body optgroup {
    font-size: 24px !important;
    line-height: 1.1;
}

@supports (-moz-appearance: none) {
    body select,
    body option,
    body optgroup {
        font-size: 24px !important;
    }
}

option {
    background: #3b3d3e;
    color: #ffad5b;
    font-family: "CodersCrux", monospace !important;
}

optgroup {
    font-family: "CodersCrux", monospace !important;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(255, 173, 91, 0.55);
    border-color: rgba(255, 173, 91, 0.9);
}

.field-error {
    border-color: rgba(255, 109, 109, 0.9) !important;
    outline: 2px solid rgba(255, 109, 109, 0.45);
}

.feed-list,
.chat-list {
    display: grid;
    gap: 0.7rem;
}

.feed-item,
.chat-item {
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 12px;
    background: rgba(56, 58, 59, 0.9);
    padding: 0.8rem;
}

.feed-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.feed-head h3 {
    margin: 0;
}

.meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.pill {
    border-radius: 999px;
    font-size: 0.74rem;
    padding: 0.22rem 0.5rem;
    background: rgba(98, 226, 255, 0.12);
    border: 1px solid rgba(98, 226, 255, 0.4);
}

.status-open { border-color: rgba(128, 189, 255, 0.4); }
.status-in_progress { border-color: rgba(255, 212, 95, 0.75); background: rgba(255, 212, 95, 0.12); }
.status-done { border-color: rgba(82, 217, 138, 0.75); background: rgba(82, 217, 138, 0.12); }
.status-wont_fix,
.status-rejected { border-color: rgba(255, 109, 109, 0.75); background: rgba(255, 109, 109, 0.12); }
.status-planned { border-color: rgba(255, 176, 103, 0.75); background: rgba(255, 176, 103, 0.12); }

.wiki-layout {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 260px minmax(0, 1fr);
}

.wiki-admin-layout {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 300px minmax(0, 1fr);
}

.wiki-admin-main {
    display: grid;
    gap: 0.9rem;
}

.wiki-sidebar {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 14px;
    padding: 0.8rem;
    background: rgba(56, 58, 59, 0.92);
}

.wiki-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.wiki-sidebar ul ul {
    margin-top: 0.35rem;
    margin-left: 1rem;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(255, 173, 91, 0.3);
}

.wiki-search-form {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.wiki-search-results {
    margin-bottom: 0.7rem;
}

.wiki-search-results ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.45rem;
}

.wiki-search-results li p {
    margin: 0.15rem 0 0;
}

.wiki-sidebar a {
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    display: block;
    padding: 0.42rem 0.58rem;
    border: 1px solid transparent;
}

.wiki-sidebar a:hover {
    border-color: rgba(255, 173, 91, 0.38);
    color: var(--text);
}

.wiki-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    color: var(--muted);
}

.wiki-breadcrumb a {
    color: #ffbd7c;
    text-decoration: underline;
    text-decoration-color: rgba(255, 173, 91, 0.55);
    text-underline-offset: 3px;
}

.wiki-breadcrumb a:hover {
    color: #ffe0bb;
}

.active-wiki-link {
    border-color: rgba(255, 140, 46, 0.6) !important;
    background: rgba(255, 140, 46, 0.12);
    color: #ffddb9 !important;
}

.wiki-content {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 14px;
    background: rgba(56, 58, 59, 0.9);
    padding: 1rem;
}

.wiki-rich {
    line-height: 1.35;
}

.wiki-rich ul {
    margin: 0.45rem 0 0.45rem 1.2rem;
}

.wiki-rich blockquote {
    margin: 0.7rem 0;
    padding: 0.55rem 0.75rem;
    border-left: 3px solid rgba(255, 173, 91, 0.55);
    background: rgba(255, 173, 91, 0.08);
    border-radius: 8px;
}

.wiki-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-bottom: 0.55rem;
    align-items: center;
}

.wiki-editor-toolbar .wiki-toolbar-row {
    width: auto;
    display: contents;
}

.wiki-editor-toolbar .wiki-toolbar-row-main .btn {
    min-width: 68px;
}

.wiki-editor-toolbar .btn {
    min-width: 64px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.wiki-editor-toolbar .bbcode-color-select {
    max-width: 158px;
    min-width: 132px;
    margin: 0;
}

.wiki-editor-toolbar .bbcode-size-select {
    max-width: 136px;
    min-width: 112px;
    margin: 0;
}

.wiki-editor-toolbar .bbcode-color-custom {
    min-width: 176px;
    max-width: 220px;
    flex: 1 1 190px;
}

.wiki-editor-toolbar .bbcode-size-custom {
    width: 112px;
}

.wiki-editor-toolbar .bbcode-custom-hidden {
    display: none !important;
}

.wiki-editor-help {
    margin-top: 0.3rem;
}

.wiki-bbcode-example {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffad5b;
    font-family: "CodersCrux";
    font-size: 24px !important;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.wiki-upload-box {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: rgba(56, 58, 59, 0.88);
    display: grid;
    gap: 0.45rem;
}

.wiki-preview-wrap {
    margin-top: 0.6rem;
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 12px;
    background: rgba(56, 58, 59, 0.88);
    padding: 0.75rem;
}

#wiki-content-preview,
#wiki-content-canvas {
    min-height: 120px;
}

/* Unified one-box public wiki layout */
.wiki-onebox {
    padding: 0;
}

.wiki-onebox-inner {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.wiki-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border-bottom: 1px solid rgba(255, 173, 91, 0.24);
    padding-bottom: 0.55rem;
}

.wiki-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.wiki-search-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
}

.wiki-search-inline-home {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(63, 65, 66, 0.9), rgba(52, 54, 55, 0.94));
    padding: 0.5rem;
}

.wiki-search-inline-home input[type="text"] {
    background: rgba(255, 173, 91, 0.04);
    border: 1px solid rgba(255, 173, 91, 0.26);
    border-radius: 10px;
}

.wiki-section {
    padding: 0.1rem 0;
}

.wiki-section > h3 {
    margin: 0.95rem 0 0.6rem;
}

.wiki-home-layout {
    display: grid;
    gap: 1.15rem;
    margin-top: 0.25rem;
}

.wiki-home-block {
    border: 1px solid rgba(255, 173, 91, 0.28);
    border-radius: 14px;
    background: rgba(255, 173, 91, 0.04);
    padding: 0.88rem;
}

.wiki-home-block > h2 {
    margin: 0 0 0.65rem;
    font-size: 35px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffdcb6;
}

.wiki-home-sections {
    border-color: rgba(255, 173, 91, 0.3);
    background: rgba(255, 173, 91, 0.04);
}

.wiki-home-recent {
    border-color: rgba(255, 173, 91, 0.3);
    background: rgba(255, 173, 91, 0.04);
}

.wiki-hub-grid,
.wiki-node-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wiki-hub-card,
.wiki-node-card {
    display: grid;
    gap: 0.25rem;
    text-decoration: none;
    color: #ffd7af;
    border: 1px solid rgba(255, 173, 91, 0.28);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.06);
    padding: 0.6rem;
}

.wiki-hub-card:hover,
.wiki-node-card:hover {
    border-color: rgba(255, 173, 91, 0.48);
    background: rgba(255, 173, 91, 0.12);
}

.wiki-node-card span,
.wiki-hub-card .meta {
    color: #ffbd7c;
}

.wiki-category-view > h3 {
    color: #9ff0c2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wiki-category-view .wiki-node-grid {
    gap: 0.72rem;
}

.wiki-category-view .wiki-node-card {
    border-color: rgba(82, 217, 138, 0.45);
    background: linear-gradient(160deg, rgba(82, 217, 138, 0.1), rgba(82, 217, 138, 0.04));
}

.wiki-category-view .wiki-node-card:hover {
    border-color: rgba(82, 217, 138, 0.65);
    background: linear-gradient(160deg, rgba(82, 217, 138, 0.16), rgba(82, 217, 138, 0.08));
}

.wiki-category-view .wiki-node-card strong {
    color: #cbffe2;
    text-decoration: underline;
    text-decoration-color: rgba(82, 217, 138, 0.55);
    text-underline-offset: 3px;
}

.wiki-category-view .wiki-node-card span {
    color: #a7ebc5;
}

.wiki-category-list {
    display: grid;
    gap: 0.78rem;
}

.wiki-category-item {
    border: 1px solid rgba(255, 173, 91, 0.26);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.05);
    padding: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.wiki-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.wiki-category-head h3,
.wiki-category-head h4 {
    margin: 0;
}

.wiki-category-head h3 a,
.wiki-category-head h4 a {
    color: #ffd7af;
    text-decoration: none;
    font-size: 34px !important;
    letter-spacing: 0.03em;
}

.wiki-category-head h3 a:hover,
.wiki-category-head h4 a:hover {
    color: #ffcf9a;
}

.wiki-category-open {
    align-self: center;
    min-width: 170px;
}

.wiki-category-summary {
    margin: 0;
    color: #ffcf9a;
    font-size: 24px !important;
}

.wiki-category-overview {
    margin: 0;
}

.wiki-category-overview a {
    color: #ffcf9a;
}

.wiki-category-overview a:hover {
    color: #ffd7af;
}

.wiki-category-article-list {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.2rem;
}

.wiki-category-article-list li {
    margin: 0;
}

.wiki-category-article-list a {
    color: #ffd7af;
    text-decoration: none;
    font-size: 27px !important;
}

.wiki-category-article-list a:hover {
    color: #ffcf9a;
    text-decoration: underline;
}

.wiki-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wiki-mini-link {
    text-decoration: none;
    color: #ffcf9a;
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 999px;
    background: rgba(255, 173, 91, 0.08);
    padding: 0.2rem 0.5rem;
}

.wiki-mini-link:hover {
    background: rgba(255, 173, 91, 0.15);
    border-color: rgba(255, 173, 91, 0.48);
}

.wiki-results-list {
    display: grid;
    gap: 0.7rem;
}

.wiki-result-card {
    border: 1px solid rgba(255, 173, 91, 0.26);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.05);
    padding: 0.6rem;
}

.wiki-home-recent .wiki-result-card {
    border-left: 3px solid rgba(255, 173, 91, 0.56);
}

.wiki-result-card h3,
.wiki-result-card h4 {
    margin: 0 0 0.2rem;
}

.wiki-result-card p {
    margin: 0.2rem 0 0;
    color: #ffcf9a;
}

.wiki-article-content {
    margin-top: 0.35rem;
}

.wiki-tree-details {
    border: 1px solid rgba(82, 217, 138, 0.45);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(82, 217, 138, 0.11), rgba(82, 217, 138, 0.04));
    padding: 0.5rem 0.65rem;
    box-shadow: inset 0 0 0 1px rgba(82, 217, 138, 0.12);
}

.wiki-tree-details-home {
    border-style: solid;
}

.wiki-tree-details > summary {
    cursor: pointer;
    color: #9ff0c2;
    font-size: 30px !important;
    letter-spacing: 0.04em;
}

.wiki-tree-details-home > summary {
    color: #9ff0c2;
}

.wiki-tree-scroll {
    max-height: none;
    overflow: visible;
    margin-top: 0.4rem;
    padding-right: 0.2rem;
}

.wiki-user-tree {
    list-style: none;
    margin: 0;
    padding-left: 0.25rem;
    display: grid;
    gap: 0.22rem;
}

.wiki-user-tree .wiki-user-tree {
    border-left: 1px dashed rgba(82, 217, 138, 0.35);
    margin-left: 0;
    padding-left: 0.45rem;
}

.wiki-tree-item {
    display: flex;
    align-items: flex-start;
    gap: 0.28rem;
    flex-wrap: nowrap;
}

.wiki-user-tree-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-height: 1.05em;
    min-width: 0;
    flex: 0 0 auto;
    padding-left: 0;
    width: auto;
    max-width: 100%;
}

.wiki-tree-item[data-depth="0"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-0, auto);
    width: var(--wiki-col-0, auto);
}

.wiki-tree-item[data-depth="1"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-1, auto);
    width: var(--wiki-col-1, auto);
}

.wiki-tree-item[data-depth="2"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-2, auto);
    width: var(--wiki-col-2, auto);
}

.wiki-tree-item[data-depth="3"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-3, auto);
    width: var(--wiki-col-3, auto);
}

.wiki-tree-item[data-depth="4"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-4, auto);
    width: var(--wiki-col-4, auto);
}

.wiki-tree-item[data-depth="5"] > .wiki-user-tree-row {
    flex-basis: var(--wiki-col-5, auto);
    width: var(--wiki-col-5, auto);
}

.wiki-tree-item > .wiki-user-tree {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.wiki-user-tree-link {
    color: #c5f7db;
    text-decoration: underline;
    text-decoration-color: rgba(82, 217, 138, 0.5);
    text-underline-offset: 2px;
    white-space: nowrap;
}

.wiki-user-tree-link:visited {
    color: #c5f7db;
}

.wiki-user-tree-link:hover {
    color: #e0ffec;
}

.wiki-tree-details-home .wiki-user-tree-link {
    color: #c5f7db;
}

.wiki-tree-details-home .wiki-user-tree-link:hover {
    color: #e0ffec;
}

.wiki-tree-kind {
    margin-left: 0.45rem;
    opacity: 0.92;
    color: #9feec4;
    font-size: 20px;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .wiki-tree-item {
        display: block;
    }

    .wiki-user-tree-row {
        flex: 1 1 auto;
    }

    .wiki-tree-item > .wiki-user-tree {
        margin-top: 0.08rem;
    }
}

/* Wiki builder visual sync with new one-box wiki layout */
.wiki-builder-shell {
    padding: 0;
}

.wiki-builder-shell .wiki-onebox-inner {
    padding: 1rem;
}

.wiki-builder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.wiki-builder-tabs .btn {
    min-width: 130px;
}

.wiki-builder-tabs .btn.is-active {
    background: #565656;
    border-color: #8b8b8b;
}

.wiki-builder-tabs .btn.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.wiki-builder-shell .wiki-admin-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: start;
}

.wiki-builder-shell .wiki-sidebar {
    box-shadow: none;
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 14px;
    background: rgba(255, 173, 91, 0.06);
    padding: 0.85rem;
}

.wiki-builder-shell .wiki-sidebar a {
    background: rgba(255, 173, 91, 0.04);
    border: 1px solid rgba(255, 173, 91, 0.2);
}

.wiki-builder-shell .wiki-sidebar a:hover {
    transform: none;
    background: rgba(255, 173, 91, 0.12);
}

.wiki-builder-shell .active-wiki-link {
    border-color: transparent !important;
    background: transparent !important;
    color: #a9f7a9 !important;
    box-shadow: none !important;
    text-decoration: underline;
    text-decoration-color: rgba(169, 247, 169, 0.8);
    text-underline-offset: 3px;
}

.wiki-builder-shell .wiki-admin-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
}

.wiki-builder-shell #wiki-page-tree {
    max-height: 46vh;
    overflow: auto;
}

.wiki-builder-shell .wiki-admin-main {
    display: grid;
    gap: 0.8rem;
}

.wiki-builder-shell .form-card {
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 14px;
    background: rgba(255, 173, 91, 0.06);
    padding: 0.9rem;
}

.wiki-builder-shell .wide-form {
    max-width: none;
}

.wiki-builder-shell .btn {
    height: 42px;
    padding: 0.25rem 0.7rem;
    font-size: 24px !important;
}

.wiki-builder-shell .custom-select-trigger,
.wiki-builder-shell input[type="text"],
.wiki-builder-shell input[type="search"],
.wiki-builder-shell input[type="password"],
.wiki-builder-shell input[type="email"],
.wiki-builder-shell input[type="number"],
.wiki-builder-shell select {
    height: 42px;
    font-size: 24px !important;
}

.wiki-builder-shell .wiki-editor-toolbar {
    position: sticky;
    top: var(--wiki-sticky-top, 76px);
    z-index: 7;
    margin-bottom: 0.6rem;
    padding: 0.32rem;
    border: 1px solid rgba(255, 173, 91, 0.28);
    border-radius: 12px;
    background: rgba(47, 49, 50, 0.96);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 0.26rem;
}

.wiki-builder-shell .wiki-editor-toolbar .btn {
    height: 36px;
    min-width: 62px;
    padding: 0.1rem 0.46rem;
}

.wiki-builder-shell .wiki-editor-toolbar .custom-select-trigger,
.wiki-builder-shell .wiki-editor-toolbar input[type="text"],
.wiki-builder-shell .wiki-editor-toolbar input[type="number"] {
    height: 36px;
}

.wiki-builder-shell .wiki-editor-toolbar .bbcode-color-custom {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: none;
}

.wiki-builder-shell .wiki-editor-toolbar #wiki-toggle-view-btn {
    margin-left: 0;
    white-space: nowrap;
}

.wiki-builder-shell .wiki-editor-toolbar .bbcode-color-select {
    min-width: 122px;
    max-width: 146px;
}

.wiki-builder-shell .wiki-editor-toolbar .bbcode-size-select {
    min-width: 106px;
    max-width: 126px;
}

.wiki-builder-shell .wiki-editor-toolbar .bbcode-size-custom {
    width: 98px;
}

.wiki-builder-shell #wiki-content-editor {
    min-height: 430px;
    overflow-y: hidden;
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    resize: none;
}

.wiki-builder-shell #wiki-content-preview,
.wiki-builder-shell #wiki-content-canvas {
    max-height: 54vh;
}

.wiki-meta-details {
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.05);
    padding: 0.45rem 0.6rem 0.2rem;
    margin-bottom: 0.65rem;
}

.wiki-editor-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    align-items: start;
}

.wiki-editor-pane,
.wiki-visual-pane {
    border: 1px solid rgba(255, 173, 91, 0.28);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.04);
    padding: 0.6rem;
}

.wiki-visual-pane {
    position: relative;
}

.wiki-editor-pane.is-hidden,
.wiki-visual-pane.is-hidden {
    display: none;
}

#wiki-content-canvas {
    min-height: 240px;
    border: 1px solid rgba(255, 173, 91, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.16);
    white-space: pre-wrap;
}

#wiki-content-canvas[contenteditable="true"] {
    cursor: text;
}

.wiki-meta-details summary {
    cursor: pointer;
    color: #ffcf9a;
    margin-bottom: 0.45rem;
}

.wiki-builder-shell .wiki-upload-box input[type="file"] {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffd7af;
}

.wiki-builder-shell .wiki-upload-box input[type="file"]::file-selector-button {
    border-radius: 10px;
    border: 1px solid #5e5e5e;
    background: #444444;
    color: #ffad5b;
    padding: 0.22rem 0.72rem;
    margin-right: 0.55rem;
    height: 42px;
    font-family: "CodersCrux";
    font-size: 24px !important;
    cursor: pointer;
}

.wiki-builder-shell .wiki-upload-box input[type="file"]::-webkit-file-upload-button {
    border-radius: 10px;
    border: 1px solid #5e5e5e;
    background: #444444;
    color: #ffad5b;
    padding: 0.22rem 0.72rem;
    margin-right: 0.55rem;
    height: 42px;
    font-family: "CodersCrux";
    font-size: 24px !important;
    cursor: pointer;
}

/* Advanced Wiki visual redesign */
.wiki-hero-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 173, 91, 0.45);
    background:
        radial-gradient(1200px 260px at 0% -20%, rgba(255, 173, 91, 0.18), transparent 55%),
        radial-gradient(900px 220px at 100% -10%, rgba(255, 125, 70, 0.14), transparent 55%),
        linear-gradient(165deg, rgba(63, 65, 66, 0.96), rgba(47, 49, 50, 0.94));
}

.wiki-hero-panel::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 180px;
    height: 180px;
    border-radius: 24px;
    border: 1px solid rgba(255, 173, 91, 0.25);
    background: linear-gradient(145deg, rgba(255, 173, 91, 0.18), rgba(255, 173, 91, 0.02));
    transform: rotate(15deg);
    pointer-events: none;
}

.wiki-shell-panel {
    border-color: rgba(255, 173, 91, 0.42);
    background: linear-gradient(165deg, rgba(57, 59, 60, 0.97), rgba(47, 49, 50, 0.95));
}

.wiki-layout,
.wiki-admin-layout {
    gap: 1rem;
}

.wiki-sidebar {
    box-shadow: inset 0 1px 0 rgba(255, 173, 91, 0.1), 0 14px 22px rgba(0, 0, 0, 0.25);
}

.wiki-sidebar-public,
.wiki-admin-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 106px);
    overflow: auto;
}

#wiki-page-tree {
    max-height: 58vh;
    overflow: auto;
    padding-right: 0.2rem;
}

.wiki-sidebar h2 {
    margin-bottom: 0.45rem;
}

.wiki-sidebar ul {
    gap: 0.34rem;
}

.wiki-sidebar a {
    background: rgba(255, 173, 91, 0.04);
    border: 1px solid rgba(255, 173, 91, 0.2);
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.wiki-sidebar a:hover {
    transform: translateX(2px);
    background: rgba(255, 173, 91, 0.13);
}

.wiki-search-form {
    padding: 0.58rem;
    border: 1px solid rgba(255, 173, 91, 0.24);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.05);
}

.wiki-search-form .btn {
    width: 100%;
}

.wiki-search-results {
    border: 1px solid rgba(255, 173, 91, 0.24);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.04);
    padding: 0.55rem;
}

.wiki-result-item {
    border: 1px solid rgba(255, 173, 91, 0.2);
    border-radius: 10px;
    background: rgba(255, 173, 91, 0.04);
    padding: 0.4rem 0.5rem;
}

.wiki-article {
    border-color: rgba(255, 173, 91, 0.4);
    background: linear-gradient(165deg, rgba(60, 62, 63, 0.98), rgba(49, 51, 52, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 173, 91, 0.09), 0 16px 26px rgba(0, 0, 0, 0.3);
}

.wiki-article-head {
    margin-bottom: 0.72rem;
    padding-bottom: 0.62rem;
    border-bottom: 1px solid rgba(255, 173, 91, 0.26);
}

.wiki-breadcrumb {
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.48rem;
    border-radius: 9px;
    border: 1px solid rgba(255, 173, 91, 0.2);
    background: rgba(255, 173, 91, 0.04);
}

.wiki-rich h1,
.wiki-rich h2,
.wiki-rich h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.45rem;
    color: #ffdcb8;
}

.wiki-rich h2,
.wiki-rich h3 {
    border-bottom: 1px solid rgba(255, 173, 91, 0.22);
    padding-bottom: 0.2rem;
}

.wiki-rich a {
    color: #ffc27e;
    text-decoration: underline;
    text-decoration-color: rgba(255, 173, 91, 0.55);
    text-underline-offset: 3px;
}

.wiki-rich img,
.wiki-rich video {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.wiki-admin-card {
    border-color: rgba(255, 173, 91, 0.4);
    background: linear-gradient(165deg, rgba(61, 63, 64, 0.96), rgba(50, 52, 53, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 173, 91, 0.1), 0 14px 22px rgba(0, 0, 0, 0.28);
}

.wiki-editor-form {
    max-width: none;
}

.wiki-editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 0.5rem;
    border: 1px solid rgba(255, 173, 91, 0.28);
    border-radius: 12px;
    background: rgba(47, 49, 50, 0.95);
}

.wiki-editor-textarea {
    min-height: 460px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(19, 19, 19, 0.35), rgba(19, 19, 19, 0.22)),
        repeating-linear-gradient(
            0deg,
            rgba(255, 173, 91, 0.03) 0,
            rgba(255, 173, 91, 0.03) 36px,
            transparent 36px,
            transparent 72px
        );
}

.wiki-upload-box {
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 173, 91, 0.34);
    background: linear-gradient(155deg, rgba(255, 173, 91, 0.06), rgba(255, 173, 91, 0.02));
}

.wiki-preview-wrap {
    border-color: rgba(255, 173, 91, 0.34);
    background: linear-gradient(160deg, rgba(57, 59, 60, 0.95), rgba(51, 53, 54, 0.95));
}

#wiki-content-preview,
#wiki-content-canvas {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0.2rem;
}

.wiki-main-icon {
    width: 44px;
    height: 44px;
    image-rendering: pixelated;
}

.wiki-media {
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 173, 91, 0.3);
}

.wiki-editable-media {
    display: inline-block;
    position: relative;
    cursor: move;
    margin: 0.25rem 0.3rem 0.35rem 0;
    vertical-align: top;
}

.wiki-editable-media,
.wiki-editable-media * {
    user-select: none;
}

.wiki-editable-media img {
    display: block;
}

.wiki-rich video.wiki-media {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.wiki-editable-media video.wiki-media {
    display: block;
}

.wiki-hard-break {
    pointer-events: none;
}

.wiki-spoiler {
    position: relative;
    display: inline-block;
    border: 1px dashed rgba(255, 173, 91, 0.55);
    border-radius: 10px;
    background: rgba(25, 26, 27, 0.72);
    padding: 0.12rem 0.34rem;
    color: transparent !important;
    text-shadow: none !important;
    cursor: help;
}

.wiki-spoiler.wiki-spoiler-block {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 0.32rem 0.4rem;
}

.wiki-spoiler::after {
    content: "Spoiler (hover)";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcf9a;
    font-size: 24px !important;
    line-height: 1;
    border-radius: inherit;
    background: rgba(25, 26, 27, 0.72);
    pointer-events: none;
    white-space: nowrap;
    padding: 0.05rem 0.3rem;
}

.wiki-spoiler:not(:hover):not(:focus-within) * {
    opacity: 0 !important;
}

.wiki-spoiler:hover,
.wiki-spoiler:focus-within {
    color: inherit !important;
    background: rgba(25, 26, 27, 0.15);
}

.wiki-spoiler:hover::after,
.wiki-spoiler:focus-within::after {
    display: none;
}

.wiki-spoiler:hover *,
.wiki-spoiler:focus-within * {
    opacity: 1 !important;
}

.wiki-rich,
#wiki-content-canvas {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.wiki-table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0.45rem 0;
}

.wiki-table th,
.wiki-table td {
    border: 1px solid rgba(255, 173, 91, 0.45);
    padding: 0.35rem 0.45rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.05;
    min-height: 30px;
    min-width: 84px;
    position: relative;
}

.wiki-table th {
    background: rgba(255, 173, 91, 0.15);
    color: #ffe3c2;
}

.wiki-table td.is-selected-cell,
.wiki-table th.is-selected-cell {
    outline: 2px solid rgba(82, 217, 138, 0.7);
    outline-offset: -2px;
    background: rgba(82, 217, 138, 0.14);
}

.wiki-editable-media.is-selected {
    outline: 2px dashed rgba(255, 173, 91, 0.85);
    outline-offset: 2px;
}

.wiki-media-resize-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    bottom: -7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 173, 91, 0.9);
    background: rgba(255, 173, 91, 0.95);
    cursor: nwse-resize;
    padding: 0;
}

.wiki-media-reflow-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    left: -7px;
    top: -7px;
    border-radius: 4px;
    border: 1px solid rgba(82, 217, 138, 0.95);
    background: rgba(82, 217, 138, 0.95);
    cursor: grab;
    padding: 0;
}

.wiki-media-reflow-handle::before {
    content: "+";
    display: block;
    color: #1f2122;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
}

.wiki-media-reflow-handle:active {
    cursor: grabbing;
}

.wiki-media-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border: 1px solid rgba(255, 173, 91, 0.34);
    border-radius: 12px;
    background: rgba(255, 173, 91, 0.06);
    padding: 0.55rem;
    margin-bottom: 0.55rem;
}

.wiki-inline-media-tools {
    position: absolute;
    z-index: 6;
    display: grid;
    gap: 0.35rem;
    align-items: center;
    border: 1px solid rgba(255, 173, 91, 0.55);
    border-radius: 10px;
    background: rgba(47, 49, 50, 0.96);
    padding: 0.35rem;
}

.wiki-inline-media-size,
.wiki-inline-media-align {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.wiki-inline-media-tools label {
    margin: 0;
}

.wiki-inline-media-tools input[type="number"] {
    width: 90px;
    height: 36px;
    font-size: 22px !important;
}

.wiki-inline-media-tools .btn {
    height: 36px;
    padding: 0.15rem 0.5rem;
    font-size: 22px !important;
}

.wiki-inline-media-align .btn {
    min-width: 82px;
}

.wiki-inline-media-align .btn.is-active {
    border-color: rgba(82, 217, 138, 0.75);
    color: #52d98a;
}

.wiki-inline-table-tools {
    position: fixed;
    z-index: 50;
    display: grid;
    gap: 0.24rem;
    border: 1px solid rgba(255, 173, 91, 0.55);
    border-radius: 10px;
    background: rgba(47, 49, 50, 0.96);
    padding: 0.28rem;
    width: auto;
    max-width: min(760px, calc(100vw - 14px));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.wiki-inline-table-tools .wiki-table-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.24rem;
    min-width: 0;
}

.wiki-inline-table-tools .wiki-table-tools-row-main {
    overflow: visible;
    padding-bottom: 0;
}

.wiki-inline-table-tools .wiki-table-tools-row-settings {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    justify-content: stretch;
    width: 100%;
}

.wiki-inline-table-tools .btn {
    height: 32px;
    padding: 0.08rem 0.3rem;
    font-size: 18px !important;
    min-width: 60px;
}

.wiki-inline-table-tools .wiki-table-align-buttons {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

.wiki-inline-table-tools .wiki-table-align-buttons .btn {
    min-width: 0;
    flex: 1 1 0;
}

.wiki-inline-table-tools .wiki-table-align-buttons .btn.is-active {
    border-color: rgba(82, 217, 138, 0.75);
    color: #52d98a;
}

.wiki-media-tools strong {
    grid-column: 1 / -1;
}

.wiki-media-tools .inline-actions {
    grid-column: 1 / -1;
}

#wiki-content-editor.wiki-drop-target {
    border-color: rgba(82, 217, 138, 0.9) !important;
    box-shadow: 0 0 0 2px rgba(82, 217, 138, 0.35);
}

#wiki-content-canvas.wiki-drop-target {
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(82, 217, 138, 0.35) inset;
}

pre {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 173, 91, 0.3);
    background: rgba(18, 18, 18, 0.6);
    padding: 0.7rem;
    width: fit-content;
    max-width: 100%;
}

pre,
code {
    font-family: "CodersCrux", monospace !important;
}

.wiki-code-block {
    white-space: pre-wrap;
    word-break: break-word;
}

#wiki-content-canvas .wiki-code-resizable {
    min-width: 160px;
    resize: horizontal;
}

.legend-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legend-item {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 12px;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(56, 58, 59, 0.92);
}

.legend-item img {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
}

.wide-form {
    max-width: 760px;
}

.narrow-panel {
    max-width: 540px;
    margin-inline: auto;
}

.single-form-card {
    max-width: 840px;
    margin-inline: auto;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.inline-form {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
}

.compact-item {
    padding: 0.7rem;
}

.plain-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.5rem;
}

.plain-list a {
    color: #ffad5b;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.ach-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    overflow: visible;
    padding: 0.34rem 0.4rem;
}

.ach-item-session {
    border-color: #dc6c36;
}

.ach-item img,
.ach-fallback {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: block;
    border-radius: 7px;
    image-rendering: auto;
}

.ach-fallback {
    display: grid;
    place-items: center;
    background: rgba(255, 173, 91, 0.15);
    color: #ffcf9a;
    font-size: 22px !important;
}

.ach-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(24, 24, 24, 0.96);
    color: #ffd7af;
    border: 1px solid rgba(255, 173, 91, 0.6);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 34px !important;
    line-height: 1.25;
    min-width: 240px;
    max-width: 520px;
    text-align: left;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
    z-index: 20;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
}

.ach-item:hover .ach-tooltip,
.ach-item:focus-within .ach-tooltip {
    opacity: 1;
}

.ach-name {
    display: block;
    margin-top: 0;
    text-align: left;
    color: #ffcf9a;
    font-size: 24px !important;
    line-height: 1.1;
    min-height: 0;
}

.steam-profile-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.steam-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid rgba(255, 173, 91, 0.65);
    display: block;
}

.player-skin-avatar {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

.stats-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-split-card {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(56, 58, 59, 0.9);
}

.stat-split-card h2 {
    margin-bottom: 0.45rem;
}

.server-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 0.8rem;
}

.server-json-link {
    margin: -0.2rem 0 0.45rem;
    color: var(--muted);
    font-size: 19px !important;
}

.server-json-link a {
    color: #ffbd7c;
    text-decoration: underline dotted rgba(255, 173, 91, 0.9);
    text-underline-offset: 3px;
    font-size: 19px !important;
}

.sort-direction-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding-inline: 0;
    font-size: 18px !important;
}

.server-toolbar label {
    margin: 0;
    min-width: 260px;
    flex: 1 1 260px;
}

.server-toolbar select,
.server-toolbar input {
    height: 32px;
    font-size: 24px !important;
    padding: 0.15rem 0.45rem;
}

.server-toolbar .btn {
    font-size: 24px !important;
    padding: 0.1rem 0.3rem;
}

.server-list-compact {
    border: 1px solid rgba(255, 173, 91, 0.32);
    border-radius: 14px;
    background: rgba(56, 58, 59, 0.92);
    max-height: 62vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.server-list-compact > p {
    margin: 0;
    padding: 0.6rem 0.75rem;
}

.server-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(74px, 0.85fr) minmax(56px, 0.5fr) minmax(78px, 0.64fr) minmax(220px, 1.7fr) minmax(180px, 1.1fr);
    gap: 0.4rem;
    align-items: center;
    padding: 0.5rem 0.58rem;
    min-height: 74px;
    border-bottom: 1px solid rgba(255, 173, 91, 0.22);
    font-size: 24px !important;
}

.server-row:last-child {
    border-bottom: 0;
}

.server-row.head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(68, 68, 68, 0.98);
    border-bottom: 1px solid rgba(255, 173, 91, 0.45);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.server-row.head span {
    color: #ffbd7c;
    min-width: 0;
}

.server-row.head span:nth-child(6) {
    padding-left: 0;
}

.server-row > * {
    min-width: 0;
}

.srv-name {
    color: #ffd7af;
    white-space: normal;
    overflow-wrap: anywhere;
}

.srv-meta {
    color: #ffbd7c;
    white-space: nowrap;
}

.srv-country {
    overflow: hidden;
    text-overflow: ellipsis;
}

.srv-address {
    color: #ffcf9a;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.srv-address-btn {
    border: 1px dashed rgba(255, 173, 91, 0.5);
    background: rgba(255, 173, 91, 0.08);
    color: #ffd9b5;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    width: 100%;
    cursor: copy;
    font-family: "CodersCrux";
    font-size: 24px !important;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 173, 91, 0.9);
    line-height: 1.05;
}

.srv-address-btn:hover {
    color: #fff0de;
    background: rgba(255, 173, 91, 0.18);
}

.srv-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-left: 0;
}

.srv-check-btn {
    border: 1px solid #5e5e5e;
    border-radius: 10px;
    background: #444444;
    color: #ffad5b;
    cursor: pointer;
    font-family: "CodersCrux";
    font-size: 22px !important;
    padding: 0.2rem 0.55rem;
}

.srv-check-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.srv-check-result {
    color: #ffcf9a;
    font-size: 22px !important;
    white-space: nowrap;
    display: inline-block;
    min-width: 78px;
    line-height: 1;
}

.copy-toast {
    position: fixed;
    left: 1.1rem;
    top: 1.1rem;
    border: 1px solid #5e5e5e;
    border-radius: 10px;
    background: #444444;
    color: #ffad5b;
    padding: 0.4rem 0.65rem;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
    z-index: 60;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.flash {
    border-radius: 12px;
    border: 1px solid rgba(115, 177, 255, 0.3);
    padding: 0.7rem 0.9rem;
    background: rgba(13, 26, 50, 0.88);
}

.flash-success {
    border-color: rgba(82, 217, 138, 0.5);
    background: rgba(39, 84, 57, 0.35);
}

.flash-error {
    border-color: rgba(255, 109, 109, 0.6);
    background: rgba(107, 37, 37, 0.4);
}

.flash-info {
    border-color: rgba(98, 226, 255, 0.5);
}

.site-footer {
    margin-top: 1.4rem;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 173, 91, 0.28);
    padding: 1.2rem 0 0.8rem;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .feature-grid,
    .tri-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .highlight-row {
        grid-template-columns: 1fr;
    }

    .highlight-row.is-reverse .highlight-copy,
    .highlight-row.is-reverse .highlight-media {
        order: initial;
    }

    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-admin-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar-public,
    .wiki-admin-sidebar {
        position: static;
        max-height: none;
    }

    #wiki-page-tree {
        max-height: none;
    }

    .wiki-editor-toolbar,
    .wiki-builder-shell .wiki-editor-toolbar {
        position: static;
        top: auto;
        z-index: auto;
    }

    .legend-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-link {
        height: 38px;
        padding: 0.3rem 0.6rem;
        font-size: 24px !important;
    }

    .cta-row,
    .release-badge {
        max-width: none;
        width: 100%;
    }

    .server-row {
        grid-template-columns: minmax(150px, 1.6fr) minmax(62px, 0.65fr) minmax(48px, 0.45fr) minmax(64px, 0.55fr) minmax(170px, 1.45fr) minmax(155px, 0.95fr);
    }

    .stat-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) and (min-width: 681px) {
    .site-header {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.72rem 0.95rem;
    }

    .brand {
        justify-self: center;
    }

    .site-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.34rem;
    }

    .nav-link {
        width: 100%;
        height: 35px;
        padding: 0.2rem 0.45rem;
        font-size: 21px !important;
        border-radius: 9px;
    }
}

@media (max-width: 680px) {
    .page-wrap {
        width: min(1120px, 94vw);
    }

    .site-header {
        display: grid;
        justify-content: stretch;
    }

    .site-nav {
        gap: 0.3rem;
        width: 100%;
    }

    .nav-link {
        height: 36px;
        padding: 0.24rem 0.5rem;
        font-size: 22px !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .cta-row {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .feature-grid,
    .tri-grid,
    .shot-grid,
    .legend-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .server-toolbar {
        align-items: stretch;
    }

    .server-toolbar label {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .ach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-split-grid {
        grid-template-columns: 1fr;
    }

    .wiki-topbar {
        align-items: stretch;
    }

    .wiki-search-inline {
        grid-template-columns: 1fr;
    }

    .wiki-search-inline .btn {
        width: 100%;
    }

    .wiki-media-tools {
        grid-template-columns: 1fr;
    }

    .wiki-editor-split {
        grid-template-columns: 1fr;
    }

    .shot-lightbox {
        padding: 0.7rem 0.55rem 4.9rem;
    }

    .shot-stage {
        width: min(94vw, 980px);
    }

    .shot-stage img {
        max-height: calc(100vh - 9.2rem);
    }

    .shot-hitzone {
        width: 13%;
        min-width: 42px;
    }

    .shot-nav {
        padding: 0.35rem 0.6rem;
    }

    .shot-nav.close {
        top: auto;
        right: auto;
        left: 50%;
        bottom: 0.7rem;
        transform: translateX(-50%);
    }

    .shot-nav.prev {
        left: 0.7rem;
        top: auto;
        bottom: 0.7rem;
        transform: none;
    }

    .shot-nav.next {
        right: 0.7rem;
        top: auto;
        bottom: 0.7rem;
        transform: none;
    }
}

@media (max-width: 420px) {
    .ach-grid {
        grid-template-columns: 1fr;
    }
}

/* User-requested readability floor */
body,
p,
a,
li,
h2,
h3,
h4,
h5,
h6,
label,
input,
textarea,
select,
button,
.nav-link,
.eyebrow,
.panel-note,
.meta,
.pill,
.community-pill,
summary,
.stat-label,
.stat-value {
    font-size: 30px !important;
}

input,
textarea,
select,
button {
    font-family: "CodersCrux";
}

/* Keep custom dropdown and wiki toolbar controls visually consistent despite global readability overrides. */
.custom-select-trigger,
.custom-select-option,
.wiki-builder-shell .wiki-editor-toolbar .btn,
.wiki-builder-shell .wiki-editor-toolbar .custom-select-trigger,
.wiki-builder-shell .wiki-editor-toolbar input[type="text"],
.wiki-builder-shell .wiki-editor-toolbar input[type="number"] {
    font-size: 24px !important;
    line-height: 1.05;
}

.custom-select-option {
    color: #ffcf9a !important;
    font-family: "CodersCrux", monospace !important;
}
