/* Forum v2 (/forum, templates/forum/*.php), on the .dhm bronze tokens of dungeon-hardmode.20261015.css.
 * One warm near-black + bronze palette; Discord shows only as a small monochrome mark. */

.fx {
    --fx-card: linear-gradient(180deg, rgba(31, 28, 23, 0.72), rgba(18, 17, 15, 0.86));
    --fx-card-solid: #17150f;
    --fx-hover: rgba(213, 182, 129, 0.055);
    --fx-radius: 6px;
    font-size: 1rem;
}
.fx a { color: #e6d3a8; text-decoration: none; }
.fx a:hover { color: #fff1cf; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-muted { color: var(--dhm-muted); }
.fx-small { font-size: 0.82rem; line-height: 1.5; }
.fx-label {
    margin: 2.4rem 0 0.9rem !important;
    color: #c5a776;
    font: 600 0.72rem/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.fx-label::after { content: ""; flex: 1; height: 1px; background: var(--dhm-line); }

/* Buttons */
.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 1.15rem;
    border: 1px solid rgba(185, 160, 116, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: #dcc9a2 !important;
    font: 600 0.86rem/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.fx-btn:hover { border-color: rgba(220, 193, 139, 0.7); color: #fff3d6 !important; }
.fx-btn--primary {
    border-color: rgba(220, 193, 139, 0.6) !important;
    background: linear-gradient(120deg, #5b4631, #2a2722);
    color: #f6e8c8 !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 6px 22px rgba(0, 0, 0, 0.25);
}
.fx-btn--primary:hover { background: linear-gradient(120deg, #6b5338, #302c26); }
.fx-btn--small { padding: 0.42rem 0.8rem; font-size: 0.78rem; }
.fx-btn .fx-dmark { width: 16px; height: 16px; }
.fx-link { padding: 0; border: 0 !important; background: none; color: var(--dhm-muted); font-size: 0.8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-link:hover { color: #e6d3a8; }
.fx-inline { display: inline; margin: 0; }

.fx-dmark { width: 14px; height: 14px; flex: none; vertical-align: -2px; color: #b9a98c; }
.fx-dmark--inline { width: 12px; height: 12px; margin-left: 0.3rem; opacity: 0.75; }

/* Flash + preview notes */
.fx-flash, .fx-preview-note {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--dhm-line);
    border-left: 3px solid var(--dhm-gold);
    border-radius: 4px;
    background: rgba(213, 182, 129, 0.06);
    color: #e9dcc0;
    font-size: 0.92rem;
}
.fx-flash--err { border-left-color: #c98a7a; background: rgba(160, 80, 60, 0.1); color: #f0d4cb; }

/* Hero (front page) */
.fx-hero {
    position: relative;
    display: grid;
    margin-top: 0.25rem;
    border: 1px solid rgba(185, 160, 116, 0.28);
    border-radius: 8px;
    overflow: hidden;
    background: #0e0d0b;
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.45), inset 0 0 0 5px rgba(185, 160, 116, 0.12), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.fx-hero__art { grid-area: 1 / 1; display: block; }
.fx-hero__art img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 72% 50%; }
.fx-hero::after {
    content: "";
    grid-area: 1 / 1;
    background: linear-gradient(90deg, rgba(10, 9, 7, 0.92) 0%, rgba(10, 9, 7, 0.78) 34%, rgba(10, 9, 7, 0.1) 62%, transparent 80%),
        linear-gradient(0deg, rgba(10, 9, 7, 0.5), transparent 40%);
    pointer-events: none;
}
.fx-hero__text {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: 520px;
    padding: 2.6rem 2.6rem 2.4rem;
}
.fx-hero h1 { margin-top: 0.55rem !important; color: var(--dhm-title) !important; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.03em !important; }
.fx-hero__lede { margin-top: 1rem !important; color: #d4ccbb; font-size: 1rem; line-height: 1.65; }
.fx-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.fx-search { display: flex; gap: 0; margin-top: 1.4rem; max-width: 440px; }
.fx-search input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(185, 160, 116, 0.3);
    border-right: 0;
    border-radius: 4px 0 0 4px !important;
    background: rgba(8, 8, 7, 0.78) !important;
    color: #efe6d2 !important;
    font-size: 0.95rem;
}
.fx-search button {
    padding: 0 1.05rem;
    border: 1px solid rgba(185, 160, 116, 0.3);
    border-radius: 0 4px 4px 0 !important;
    background: rgba(213, 182, 129, 0.12);
    color: #e9d6ac;
    font: 600 0.82rem/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.fx-search button:hover { background: rgba(213, 182, 129, 0.2); }
.fx-search--small { margin-top: 0; max-width: 240px; }
.fx-search--small input { border-right: 1px solid rgba(185, 160, 116, 0.3); border-radius: 4px !important; padding: 0.5rem 0.8rem; font-size: 0.86rem; }
.fx-search--wide { max-width: 640px; }

/* Facts strip */
.fx-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.4rem 0 0;
    border-top: 1px solid var(--dhm-line);
    border-bottom: 1px solid var(--dhm-line);
}
.fx-facts div { padding: 1rem 0.5rem; text-align: center; }
.fx-facts div + div { border-left: 1px solid var(--dhm-line-soft); }
.fx-facts dt { color: var(--dhm-muted); font: 600 0.66rem/1.3 Arial, Helvetica, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.fx-facts dd { margin: 0.35rem 0 0; color: var(--dhm-title); font: 400 1.5rem/1.1 Georgia, "Times New Roman", serif; }

/* Boards */
.fx-board-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dhm-line-soft); }
.fx-board {
    position: relative;
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) 5.5rem minmax(0, 17rem);
    gap: 1.1rem;
    align-items: center;
    padding: 1.15rem 0.9rem 1.15rem 0.4rem;
    border-bottom: 1px solid var(--dhm-line-soft);
    transition: background 0.15s ease;
}
.fx-board:hover { background: var(--fx-hover); }
.fx-board__icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto;
    border: 1px solid rgba(213, 182, 129, 0.22); border-radius: 12px;
    background: radial-gradient(circle at 50% 40%, rgba(213, 182, 129, 0.16), rgba(10, 9, 7, 0.65) 70%);
    box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.06), 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.fx-board__icon img { width: auto; height: auto; max-width: 38px; max-height: 38px; transform: scale(1.2); image-rendering: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.fx-board:hover .fx-board__icon { border-color: rgba(213, 182, 129, 0.5); transform: translateY(-1px); }
.fx-board__num { color: rgba(213, 182, 129, 0.34); font: italic 400 1.6rem/1 Georgia, "Times New Roman", serif; text-align: center; }
.fx-board h2 { font-size: 1.32rem !important; line-height: 1.2; color: var(--dhm-title) !important; }
.fx-board h2 a { color: #f1e6d0; }
.fx-board h2 a::after { content: ""; position: absolute; inset: 0; }
.fx-board h2 a:hover { color: #fff3d6; }
.fx-board__main p { margin-top: 0.25rem !important; color: #a9a294; font-size: 0.9rem; line-height: 1.5; }
.fx-board__main .fx-board__shared { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem !important; color: #9d927d; font-size: 0.74rem; letter-spacing: 0.04em; }
.fx-board__count { text-align: center; }
.fx-board__count b { display: block; color: #e9dcc0; font: 400 1.3rem/1 Georgia, "Times New Roman", serif; }
.fx-board__count span { color: var(--dhm-muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.fx-board__latest { position: relative; z-index: 1; min-width: 0; font-size: 0.86rem; line-height: 1.45; }
.fx-board__latest a { display: block; overflow: hidden; color: #d8c7a2; text-overflow: ellipsis; white-space: nowrap; }
.fx-board__latest span { color: var(--dhm-muted); font-size: 0.78rem; }

/* Page head (category, compose, search) */
.fx-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; color: var(--dhm-muted); font-size: 0.82rem; }
.fx-crumbs a { color: #bba680; }
.fx-crumbs span[aria-hidden] { color: rgba(185, 160, 116, 0.35); }
.fx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; padding: 1.2rem 0 1.5rem; border-bottom: 1px solid var(--dhm-line); }
.fx-head__text { flex: 1 1 420px; min-width: 0; }
.fx-head h1 { color: var(--dhm-title) !important; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.025em !important; }
.fx-head__lede { max-width: 640px; margin-top: 0.75rem !important; color: #bdb5a5; line-height: 1.6; }
.fx-head__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.fx-shared { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.8rem !important; color: #a99d86; font-size: 0.82rem; }

.fx-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1rem 0 0.2rem; }
.fx-filter a {
    padding: 0.32rem 0.75rem;
    border: 1px solid var(--dhm-line);
    border-radius: 999px;
    color: #b8ab92;
    font-size: 0.8rem;
}
.fx-filter a span { margin-left: 0.25rem; color: var(--dhm-muted); font-size: 0.72rem; }
.fx-filter a:hover { border-color: rgba(213, 182, 129, 0.45); color: #ead9b4; }
.fx-filter a[aria-current] { border-color: rgba(213, 182, 129, 0.6); background: rgba(213, 182, 129, 0.1); color: #f1e2bf; }

/* Thread rows */
.fx-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4.6rem 4.6rem 8.5rem;
    gap: 1rem;
    margin-top: 1.1rem;
    padding: 0 0.9rem 0.5rem calc(0.9rem + 38px + 0.9rem);
    color: var(--dhm-muted);
    font: 600 0.64rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.fx-list-head span:not(:first-child) { text-align: center; }
.fx-list-head span:last-child { text-align: right; }
.fx-threads { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dhm-line-soft); }
.fx-thread {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 4.6rem 4.6rem 8.5rem;
    gap: 0 1rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--dhm-line-soft);
    transition: background 0.15s ease;
}
.fx-thread:hover { background: var(--fx-hover); }
.fx-thread.is-pinned { background: rgba(213, 182, 129, 0.035); }
.fx-thread.is-hidden { opacity: 0.55; }
.fx-thread__title { color: #efe4cc; font: 400 1.06rem/1.35 Georgia, "Times New Roman", serif; }
.fx-thread__title a { color: #efe4cc; }
.fx-thread__title a::after { content: ""; position: absolute; inset: 0; }
.fx-thread__title a:hover { color: #fff3d6; }
.fx-thread__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; margin-top: 0.22rem !important; color: var(--dhm-muted); font-size: 0.78rem; line-height: 1.5; }
.fx-thread__meta > * { display: inline-flex; align-items: center; }
.fx-thread__cat { position: relative; z-index: 1; color: #c5a776 !important; }
.fx-thread__stat { text-align: center; line-height: 1.15; }
.fx-thread__stat b { display: block; color: #ddd0b4; font: 400 1.05rem/1.1 Georgia, "Times New Roman", serif; }
.fx-thread__stat span { color: var(--dhm-muted); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fx-thread__last { display: flex; flex-direction: column; align-items: flex-end; color: #b8ad97; font-size: 0.8rem; line-height: 1.35; text-align: right; }
.fx-thread__last span { max-width: 100%; overflow: hidden; color: var(--dhm-muted); font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }

.fx-tag {
    padding: 0.04rem 0.45rem;
    border: 1px solid rgba(185, 160, 116, 0.24);
    border-radius: 3px;
    color: #b7a684;
    font: 600 0.62rem/1.6 Arial, Helvetica, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.fx-flag {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.02rem 0.4rem;
    border-radius: 3px;
    background: rgba(213, 182, 129, 0.12);
    color: #dcc597;
    font: 600 0.6rem/1.6 Arial, Helvetica, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: 0.15em;
}
.fx-flag--warn { background: rgba(170, 90, 70, 0.18); color: #e7b9aa; }

/* Avatars */
.fx-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(185, 160, 116, 0.32);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #3a3127, #17140f);
    color: #e2cd9d;
    font: 400 1.15rem/1 Georgia, "Times New Roman", serif;
}
.fx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fx-avatar--sm { width: 38px; height: 38px; font-size: 1rem; }
.fx-avatar--lg { width: 56px; height: 56px; font-size: 1.4rem; }

.fx-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0.2rem 0; font-size: 0.86rem; }
.fx-pager__at { color: var(--dhm-muted); }

.fx-empty { margin-top: 1.4rem; padding: 2.4rem 1rem; border: 1px dashed var(--dhm-line); border-radius: var(--fx-radius); text-align: center; color: var(--dhm-muted); }
.fx-empty__title { margin-bottom: 0.4rem !important; color: #e3d5b6; font: 400 1.25rem/1.3 Georgia, "Times New Roman", serif; }
.fx-empty--page { margin: 3rem auto; max-width: 560px; }
.fx-empty--page .fx-btn { margin-top: 1rem; }

/* Thread page */
.fx-topic { padding: 1rem 0 1.3rem; border-bottom: 1px solid var(--dhm-line); }
.fx-topic h1 { max-width: 900px; color: var(--dhm-title) !important; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em !important; }
.fx-topic__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem; margin-top: 0.85rem; color: var(--dhm-muted); font-size: 0.82rem; }
.fx-topic__discord { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.24rem 0.65rem; border: 1px solid var(--dhm-line); border-radius: 999px; color: #c9b993 !important; }
.fx-topic__discord:hover { border-color: rgba(213, 182, 129, 0.5); }

.fx-posts { margin-top: 0.4rem; }
.fx-post {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem 0.2rem 1.1rem;
    border-bottom: 1px solid var(--dhm-line-soft);
    scroll-margin-top: 90px;
}
.fx-post:target { background: linear-gradient(90deg, rgba(213, 182, 129, 0.07), transparent 70%); }
.fx-post.is-hidden { opacity: 0.6; }
.fx-post--first { padding-top: 1.6rem; }
.fx-post__main { min-width: 0; }
.fx-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; font-size: 0.82rem; color: var(--dhm-muted); }
.fx-post__name { color: #efe2c4; font: 400 1.04rem/1.2 Georgia, "Times New Roman", serif; }
.fx-role { padding: 0.04rem 0.42rem; border: 1px solid rgba(213, 182, 129, 0.45); border-radius: 3px; color: var(--dhm-gold); font: 600 0.6rem/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.fx-post__alias { color: #8f897d; font-size: 0.76rem; }
.fx-via { display: inline-flex; align-items: center; gap: 0.28rem; color: #9d927d !important; font-size: 0.74rem; }
.fx-via .fx-dmark { width: 13px; height: 13px; }
.fx-post__time { color: var(--dhm-muted) !important; }
.fx-post__time:hover { color: #d6c29a !important; }
.fx-post__edited { font-style: italic; }
.fx-post__hidden { margin-top: 0.5rem !important; }
.fx-post__reply-to { margin-top: 0.4rem !important; color: var(--dhm-muted); font-size: 0.8rem; }

/* Post body typography */
.fx-body { margin-top: 0.55rem; color: #d6d0c4; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.fx-body > * + * { margin-top: 0.75rem !important; }
.fx-body p { margin: 0; }
.fx-body a { color: #e3c98f; text-decoration: underline; text-decoration-color: rgba(227, 201, 143, 0.35); text-underline-offset: 3px; }
.fx-body a:hover { text-decoration-color: currentColor; }
.fx-body strong { color: #f1e7d2; font-weight: 700; }
.fx-body .fm-h { color: #f1e6d0 !important; font-size: 1.2rem !important; line-height: 1.3; }
.fx-body h4.fm-h { font-size: 1.06rem !important; }
.fx-body h2, .fx-body h3 { color: #f1e6d0 !important; font-size: 1.2rem !important; }
.fx-body .fm-sub { color: var(--dhm-muted); font-size: 0.8rem; }
.fx-body ul, .fx-body ol { margin: 0; padding-left: 1.3rem; }
.fx-body ul { list-style: disc; }
.fx-body ol { list-style: decimal; }
.fx-body li { margin: 0.18rem 0; line-height: 1.6; }
.fx-body li::marker { color: rgba(213, 182, 129, 0.6); }
.fx-body blockquote { margin: 0; padding: 0.15rem 0 0.15rem 0.95rem; border-left: 2px solid rgba(213, 182, 129, 0.4); color: #b9b1a2; }
.fx-body code { padding: 0.08rem 0.35rem; border: 1px solid var(--dhm-line-soft); border-radius: 3px; background: rgba(0, 0, 0, 0.35); color: #eedcb1; font-size: 0.86em; white-space: pre-wrap; }
.fx-body pre { max-width: 100%; margin: 0; padding: 0.8rem 0.95rem; overflow-x: auto; border: 1px solid var(--dhm-line-soft); border-radius: 4px; background: rgba(0, 0, 0, 0.4); }
.fx-body pre code { padding: 0; border: 0; background: none; white-space: pre; font-size: 0.84rem; }
.fx-body img { max-width: 100%; height: auto; border-radius: 4px; }
.fx-body img.fm-img { display: block; max-height: 520px; width: auto; border: 1px solid var(--dhm-line); }
.fx-body img.fm-emoji { display: inline; width: 22px; height: 22px; vertical-align: -5px; border: 0; }
.fx-body hr { border: 0; border-top: 1px solid var(--dhm-line); }
.fx-body .fm-mention { padding: 0 0.25rem; border-radius: 3px; background: rgba(213, 182, 129, 0.1); color: #e8d3a2; }
.fx-body .fm-spoiler { border-radius: 3px; background: #2b2721; color: transparent; cursor: pointer; transition: color 0.15s ease; }
.fx-body .fm-spoiler.is-open, .fx-body .fm-spoiler:focus { background: rgba(43, 39, 33, 0.6); color: inherit; }
.fx-body time { color: #d9c9a6; }

.fx-attach { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.fx-attach__img { display: block; max-width: min(100%, 420px); border: 1px solid var(--dhm-line); border-radius: 4px; overflow: hidden; background: #0c0b09; }
.fx-attach__img img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; }
.fx-attach__file { display: inline-flex; gap: 0.5rem; padding: 0.45rem 0.8rem; border: 1px solid var(--dhm-line); border-radius: 4px; font-size: 0.84rem; }
.fx-attach__file span { color: var(--dhm-muted); }

.fx-post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.3rem; margin-top: 0.9rem; }
.fx-act {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid transparent !important;
    border-radius: 4px;
    background: none;
    color: #9b937f !important;
    font: 600 0.76rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    list-style: none;
}
.fx-act::-webkit-details-marker { display: none; }
.fx-act:hover { border-color: var(--dhm-line) !important; color: #e6d3a8 !important; }
.fx-act b { color: #d9c69a; font-weight: 700; }
.fx-act--static { cursor: default; }
.fx-act--static:hover { border-color: transparent !important; color: #9b937f !important; }
.fx-thumb {
    width: 13px;
    height: 13px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12zm20-11a2 2 0 0 0-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6C6.2 8 6 8.5 6 9v10a2 2 0 0 0 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21h4V9H2v12zm20-11a2 2 0 0 0-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6C6.2 8 6 8.5 6 9v10a2 2 0 0 0 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fx-act--helpful[aria-pressed="true"] { border-color: rgba(213, 182, 129, 0.45) !important; background: rgba(213, 182, 129, 0.1); color: #f0dcae !important; }

.fx-pop { position: relative; display: inline-block; }
.fx-pop__body {
    position: absolute;
    z-index: 20;
    left: 0;
    top: calc(100% + 6px);
    display: grid;
    gap: 0.45rem;
    width: min(300px, 80vw);
    padding: 0.85rem;
    border: 1px solid rgba(185, 160, 116, 0.32);
    border-radius: 6px;
    background: #15130f;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-size: 0.82rem;
}
.fx-pop__body label { color: #cbbd9e; }
.fx-pop__body input { padding: 0.45rem 0.6rem; font-size: 0.86rem; }

.fx-modbox { margin-top: 1rem; border: 1px solid var(--dhm-line); border-radius: 6px; background: rgba(0, 0, 0, 0.2); }
.fx-modbox summary { padding: 0.65rem 0.9rem; color: #c5a776; font: 600 0.72rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.fx-modbox__grid { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 0.9rem 0.8rem; }
.fx-modbox__grid form { display: flex; gap: 0.35rem; align-items: center; }
.fx-modbox__grid input, .fx-modbox__grid select { padding: 0.38rem 0.55rem; font-size: 0.82rem; }
.fx-modbox > .fx-small { padding: 0 0.9rem 0.8rem; }

/* Reply + compose */
.fx-reply { scroll-margin-top: 90px; }
.fx-gate { padding: 1.1rem 1.2rem; border: 1px solid var(--dhm-line); border-radius: 6px; background: rgba(0, 0, 0, 0.2); color: #cfc6b3; }
.fx-compose { display: grid; gap: 0.9rem; }
.fx-compose__quoting { color: var(--dhm-muted); font-size: 0.82rem; }
.fx-compose__quoting button { margin-left: 0.4rem; }
.fx-compose__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; }
.fx-compose__bar p { flex: 1 1 260px; }
.fx-mute { margin-top: 0.8rem; text-align: right; }

.fx-editor { border: 1px solid rgba(185, 160, 116, 0.28); border-radius: 6px; background: rgba(10, 10, 9, 0.6); overflow: hidden; }
.fx-editor:focus-within { border-color: rgba(213, 182, 129, 0.55); }
.fx-editor__tabs { flex-wrap: wrap; align-items: center; gap: 0.15rem; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--dhm-line-soft); background: rgba(0, 0, 0, 0.25); }
.fx-editor__tabs:not([hidden]) { display: flex; }
.fx-editor__tabs > button { padding: 0.3rem 0.7rem; border: 0 !important; border-radius: 4px; background: none; color: #9b937f; font: 600 0.78rem/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.fx-editor__tabs > button[aria-selected="true"] { background: rgba(213, 182, 129, 0.12); color: #f0dfb8; }
.fx-editor__tools { display: flex; flex-wrap: wrap; gap: 0.1rem; margin-left: auto; }
.fx-editor__tools button, .fx-editor__upload {
    min-width: 2rem;
    padding: 0.28rem 0.5rem;
    border: 0 !important;
    border-radius: 4px;
    background: none;
    color: #a99f88;
    font: 600 0.78rem/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-align: center;
}
.fx-editor__tools button:hover, .fx-editor__upload:hover { background: rgba(213, 182, 129, 0.1); color: #f0dfb8; }
.fx-editor textarea {
    display: block;
    width: 100%;
    min-height: 9rem;
    padding: 0.85rem 0.95rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ebe3d3 !important;
    font: 0.98rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    resize: vertical;
    outline: none !important;
}
.fx-editor__preview { min-height: 9rem; margin: 0; padding: 0.85rem 0.95rem; }
.fx-editor__status { padding: 0 0.95rem; color: var(--dhm-muted); font-size: 0.78rem; }
.fx-editor__status:empty { display: none; }
.fx-editor.is-dragging { border-color: var(--dhm-gold); background: rgba(213, 182, 129, 0.06); }

.fx-field { display: grid; gap: 0.4rem; margin: 0; border: 0; padding: 0; }
.fx-field > span, .fx-field > legend { color: #c5a776; font: 600 0.7rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.fx-field legend small { color: var(--dhm-muted); letter-spacing: 0.05em; text-transform: none; }
.fx-field input[type="text"] { padding: 0.7rem 0.9rem; font-size: 1.02rem; }
.fx-cats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.5rem; }
.fx-cats legend { margin-bottom: 0.4rem; }
.fx-cat-opt { position: relative; display: block; cursor: pointer; }
.fx-cat-opt input { position: absolute; opacity: 0; }
.fx-cat-opt span { display: grid; gap: 0.15rem; height: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--dhm-line); border-radius: 5px; transition: border-color 0.15s ease, background 0.15s ease; }
.fx-cat-opt b { color: #e9dcc0; font: 400 1rem/1.25 Georgia, "Times New Roman", serif; }
.fx-cat-opt small { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--dhm-muted); font-size: 0.72rem; }
.fx-cat-opt input:checked + span { border-color: rgba(213, 182, 129, 0.65); background: rgba(213, 182, 129, 0.08); }
.fx-cat-opt input:focus-visible + span { outline: 1px solid rgba(213, 182, 129, 0.6); outline-offset: 2px; }
.fx-tagpick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fx-tagpick legend { width: 100%; margin-bottom: 0.4rem; }
.fx-tagopt { position: relative; cursor: pointer; }
.fx-tagopt input { position: absolute; opacity: 0; }
.fx-tagopt span { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--dhm-line); border-radius: 999px; color: #b8ab92; font-size: 0.82rem; }
.fx-tagopt input:checked + span { border-color: rgba(213, 182, 129, 0.6); background: rgba(213, 182, 129, 0.1); color: #f1e2bf; }
.fx-tagopt input:focus-visible + span { outline: 1px solid rgba(213, 182, 129, 0.6); outline-offset: 2px; }
.fx-compose--page { margin-top: 1.4rem; }

/* Search results + moderation */
.fx-results { margin: 0; padding: 0; list-style: none; }
.fx-results li { padding: 1rem 0.2rem; border-bottom: 1px solid var(--dhm-line-soft); }
.fx-results__title { color: #efe4cc !important; font: 400 1.12rem/1.35 Georgia, "Times New Roman", serif; }
.fx-results__snip { margin-top: 0.35rem !important; color: #a9a294; font-size: 0.9rem; line-height: 1.55; }
.fx-modlist { margin: 0; padding: 0; list-style: none; }
.fx-modlist li { display: grid; gap: 0.35rem; padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--dhm-line-soft); font-size: 0.9rem; }
.fx-modlist--log li { display: block; font-size: 0.84rem; }
.fx-modlist__reason { color: #e2d4b4; font-style: italic; }

.fx-latest { margin-top: 0.4rem; }
.fx-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 2.6rem; padding-top: 0.4rem; border-top: 1px solid var(--dhm-line); }
.fx-foot p:not(.fx-label) { color: #a9a294; font-size: 0.9rem; line-height: 1.65; }
.fx-foot .fx-label { margin-top: 1.2rem !important; }

/* Tablet */
@media (max-width: 900px) {
    .fx-board { grid-template-columns: 2.4rem minmax(0, 1fr) 4.5rem; }
    .fx-board__latest { grid-column: 2 / -1; }
    .fx-thread { grid-template-columns: 38px minmax(0, 1fr) 4.2rem 6.5rem; }
    .fx-thread__stat--helpful { display: none; }
    .fx-list-head { grid-template-columns: minmax(0, 1fr) 4.2rem 6.5rem; }
    .fx-list-head span:nth-child(3) { display: none; }
}

/* Phone */
@media (max-width: 640px) {
    .fx.dhm { width: calc(100% - 28px); }
    .fx-hero { border-radius: 6px; }
    .fx-hero__art img { min-height: 0; height: 190px; object-position: 78% 40%; }
    .fx-hero::after { background: linear-gradient(0deg, rgba(10, 9, 7, 1) 0%, rgba(10, 9, 7, 0.92) 42%, rgba(10, 9, 7, 0.15) 70%, transparent 100%); }
    .fx-hero__art { grid-area: 1 / 1; }
    .fx-hero__text { grid-area: 1 / 1; align-self: end; max-width: none; padding: 7.5rem 1.15rem 1.3rem; }
    .fx-hero h1 { font-size: 40px; }
    .fx-hero__lede { font-size: 0.94rem; }
    .fx-search { max-width: none; }
    .fx-hero__actions .fx-btn { flex: 1 1 auto; justify-content: center; }
    .fx-facts dd { font-size: 1.2rem; }
    .fx-facts dt { font-size: 0.58rem; letter-spacing: 0.14em; }
    .fx-board { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.8rem; padding: 1rem 0.2rem; }
    .fx-board__num { display: none; }
    .fx-board { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
    .fx-board__icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
    .fx-board__icon img { transform: none; max-width: 30px; max-height: 30px; }
    .fx-board__icon { align-self: start; margin-top: 0.2rem; }
    .fx-board h2 { font-size: 1.18rem !important; }
    .fx-board__count b { font-size: 1.1rem; }
    .fx-board__latest { grid-column: 2 / -1; }
    .fx-list-head { display: none; }
    .fx-thread { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0 0.75rem; padding: 0.85rem 0.15rem; align-items: start; }
    .fx-thread .fx-avatar--sm { width: 34px; height: 34px; }
    .fx-thread__stat--helpful, .fx-thread__last { display: none; }
    .fx-thread__stat { padding-top: 0.15rem; }
    .fx-head { padding-bottom: 1.1rem; }
    .fx-head__actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    .fx-head__actions .fx-search--small { flex: 1; max-width: none; }
    .fx-post { grid-template-columns: 34px minmax(0, 1fr); gap: 0.7rem; padding: 1.15rem 0 0.9rem; }
    .fx-post .fx-avatar { width: 34px; height: 34px; font-size: 0.95rem; }
    .fx-body { font-size: 0.97rem; }
    .fx-editor__tools { margin-left: 0; width: 100%; }
    .fx-foot { grid-template-columns: 1fr; gap: 0; }
    .fx-compose__bar .fx-btn--primary { width: 100%; justify-content: center; }
    .fx-pop__body { left: auto; right: -40px; }
    .fx-modbox__grid form { flex-wrap: wrap; }
}
.fx [hidden] { display: none !important; }

/* The site theme gives every form button a bronze border (!important); quiet buttons here keep theirs transparent. */
body.reborn-site-theme:not(.reborn-home-theme) #site-page-content > .fx { margin-bottom: 4.5rem; }
body.reborn-site-theme:not(.reborn-home-theme) .fx button:is(.fx-act, .fx-link, [data-fx-tab], [data-fx-wrap], [data-fx-line], [data-fx-link]) { border-color: transparent !important; }
body.reborn-site-theme:not(.reborn-home-theme) .fx button.fx-act:hover { border-color: var(--dhm-line) !important; }
body.reborn-site-theme:not(.reborn-home-theme) .fx button.fx-act--helpful[aria-pressed="true"] { border-color: rgba(213, 182, 129, 0.45) !important; }
.fx-field input[type="text"] { border: 1px solid rgba(185, 160, 116, 0.3) !important; }
.fx-post__foot { margin-left: -0.55rem; }
body.reborn-site-theme:not(.reborn-home-theme) .fx .fx-body h4.fm-h {
    margin-top: 1.3rem !important;
    color: #c5a776 !important;
    font: 600 0.72rem/1.4 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
}
body.reborn-site-theme:not(.reborn-home-theme) .fx .fx-body h3.fm-h { font-size: 1.25rem !important; }

/* The opening post reads as the thread's page: a quiet framed card. */
.fx-post--first {
    margin-top: 1.2rem;
    padding: 1.5rem 1.4rem 1.1rem;
    border: 1px solid var(--dhm-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(38, 33, 26, 0.6), rgba(18, 17, 15, 0.25));
}
.fx-post--first .fx-body { font-size: 1.04rem; }
.fx-post--first + .fx-post { border-top: 0; }
.fx-post--staff .fx-post__name { color: #e9cf96; }
@media (max-width: 640px) {
    .fx-post--first { padding: 1.1rem 0.9rem 0.9rem; }
}
