/* GlitchMod thread workspace — loaded only for discussion detail pages. */
body.forum-theme.forum-thread-experience {
    --thread-accent: #12b9df;
    --thread-accent-strong: #087ea6;
    --thread-lime: #a9ed4f;
    --thread-panel: var(--forum-surface, #fff);
    --thread-panel-soft: var(--forum-surface-soft, #f4f8fb);
    --thread-panel-raised: var(--forum-surface-raised, #f8fbfd);
    --thread-line: var(--forum-line, #d9e6ef);
    --thread-heading: var(--forum-heading, #132438);
    --thread-copy: var(--forum-text, #425b70);
    --thread-muted: var(--forum-muted, #6c8193);
    --thread-shadow: 0 18px 46px rgba(11, 42, 60, .085);
}

body.forum-theme.forum-thread-experience .forum-thread-page {
    min-height: 100vh;
    padding: 1.25rem 0 5rem;
    color: var(--thread-copy);
    background:
        radial-gradient(circle at 92% 2%, rgba(18, 185, 223, .085), transparent 28rem),
        radial-gradient(circle at 3% 20%, rgba(128, 104, 242, .055), transparent 24rem),
        var(--forum-page-bg, #f5f8fa);
}

body.forum-theme.forum-thread-experience .forum-thread-shell {
    width: 100%;
    max-width: 1320px;
}

body.forum-theme.forum-thread-experience .forum-breadcrumbs {
    display: flex;
    overflow: hidden;
    min-height: 38px;
    align-items: center;
    flex-wrap: nowrap;
    gap: .5rem;
    margin: 0 0 .75rem;
    padding: 0 .2rem;
    color: var(--thread-muted);
    font-size: .75rem;
    white-space: nowrap;
}

body.forum-theme.forum-thread-experience .forum-breadcrumbs a,
body.forum-theme.forum-thread-experience .forum-breadcrumbs span {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.forum-theme.forum-thread-experience .forum-breadcrumbs a {
    flex: 0 0 auto;
    color: var(--thread-muted);
    font-weight: 850;
    text-decoration: none;
}

body.forum-theme.forum-thread-experience .forum-breadcrumbs a:hover { color: var(--thread-accent-strong); }
body.forum-theme.forum-thread-experience .forum-breadcrumbs i { flex: 0 0 auto; font-size: .52rem; opacity: .55; }

body.forum-theme.forum-thread-experience .forum-thread-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 .8rem;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    border: 1px solid rgba(122, 219, 245, .15);
    border-radius: 1.35rem;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(117, 93, 239, .31), transparent 20rem),
        radial-gradient(circle at 8% 120%, rgba(31, 197, 228, .2), transparent 25rem),
        linear-gradient(125deg, #030a12, #081a28 60%, #103a4c);
    box-shadow: 0 22px 58px rgba(4, 27, 42, .21);
}

body.forum-theme.forum-thread-experience .forum-thread-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, #000, transparent 82%);
    content: '';
    pointer-events: none;
}

body.forum-theme.forum-thread-experience .forum-thread-hero::after {
    position: absolute;
    z-index: -1;
    top: -10rem;
    right: -5rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(164, 235, 252, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(105, 216, 241, .025), 0 0 0 8rem rgba(105, 216, 241, .018);
    content: '';
    pointer-events: none;
}

body.forum-theme.forum-thread-experience .forum-thread-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    margin: 0;
}

body.forum-theme.forum-thread-experience .forum-thread-head__content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1.15rem;
}

body.forum-theme.forum-thread-experience .forum-thread-head__copy { min-width: 0; }

body.forum-theme.forum-thread-experience .forum-thread-head__boxart {
    position: relative;
    width: 88px;
    height: 118px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: .85rem;
    background: rgba(255,255,255,.07);
    box-shadow: 0 14px 30px rgba(0,0,0,.3);
}

body.forum-theme.forum-thread-experience .forum-thread-head__boxart img { width: 100%; height: 100%; object-fit: cover; }
body.forum-theme.forum-thread-experience .forum-thread-head__boxart-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: #7ce5fb; font-size: 1.5rem; }

.forum-thread-head__kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .7rem;
}

.forum-thread-head__kicker > span,
body.forum-theme.forum-thread-experience .forum-thread-head__game {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: .35rem;
    padding: .25rem .5rem;
    border: 1px solid rgba(116, 219, 245, .2);
    border-radius: 999px;
    color: #a8eafa;
    background: rgba(67, 200, 233, .08);
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.forum-thread-head__kicker > .is-open { color: #aef080; border-color: rgba(169, 237, 79, .24); background: rgba(169, 237, 79, .07); }
.forum-thread-head__kicker > .is-locked { color: #ffc1c8; border-color: rgba(255, 139, 151, .25); background: rgba(255, 104, 121, .08); }
.forum-thread-head__kicker > .is-pinned { color: #ffdc7a; border-color: rgba(255, 211, 99, .25); background: rgba(255, 196, 52, .08); }

body.forum-theme.forum-thread-experience .forum-thread-head__game {
    margin: 0 0 .45rem;
    color: #b9ebf8;
}

body.forum-theme.forum-thread-experience .forum-thread-head__game:hover { color: #fff; border-color: rgba(255,255,255,.4); }

body.forum-theme.forum-thread-experience .forum-thread-head h1 {
    max-width: 900px;
    margin: 0;
    color: #f6fbfd !important;
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    font-weight: 950;
    letter-spacing: -.052em;
    line-height: 1.03;
    text-wrap: balance;
}

body.forum-theme.forum-thread-experience .forum-thread-head__context {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: .65rem 0 0;
    color: #b3cbd6 !important;
    font-size: .76rem;
    font-weight: 750;
}

body.forum-theme.forum-thread-experience .forum-thread-head__context i { color: #70def5; }

body.forum-theme.forum-thread-experience .forum-thread-head__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin: .85rem 0 0;
    color: #9fb4c0 !important;
    font-size: .72rem;
    font-weight: 720;
}

body.forum-theme.forum-thread-experience .forum-thread-head__meta span { display: inline-flex; align-items: center; gap: .35rem; }
body.forum-theme.forum-thread-experience .forum-thread-head__meta i { color: #64d9f3; }

body.forum-theme.forum-thread-experience .forum-thread-head__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    width: 230px;
}

body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    margin: 0;
    padding: .55rem .72rem;
    border-radius: .65rem;
    font-size: .74rem;
    font-weight: 900;
    white-space: nowrap;
}

body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn-light {
    border-color: var(--thread-lime);
    color: #0b1605;
    background: var(--thread-lime);
}

body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn-info {
    border-color: #62dcf7;
    color: #06151c;
    background: #62dcf7;
}

.forum-thread-head__moderation {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    gap: .45rem;
}

body.forum-theme.forum-thread-experience .forum-thread-tools {
    position: sticky;
    z-index: 30;
    top: 82px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: .65rem;
    min-height: 64px;
    margin: 0 0 .85rem;
    padding: .55rem .65rem;
    border: 1px solid var(--thread-line);
    border-radius: .9rem;
    background: var(--thread-panel);
    box-shadow: 0 12px 34px rgba(10, 40, 58, .1);
}

.forum-thread-tools__search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: 0 .72rem;
    border: 1px solid var(--thread-line);
    border-radius: .65rem;
    color: var(--thread-muted);
    background: var(--thread-panel-soft);
}

.forum-thread-tools__search:focus-within {
    border-color: color-mix(in srgb, var(--thread-accent) 64%, var(--thread-line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--thread-accent) 10%, transparent);
}

.forum-thread-tools__search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--thread-heading);
    background: transparent;
    font-size: .79rem;
    font-weight: 750;
}

.forum-thread-tools__search input::placeholder { color: var(--thread-muted); }
.forum-thread-tools__search kbd {
    min-width: 20px;
    padding: .16rem .32rem;
    border: 1px solid var(--thread-line);
    border-bottom-width: 2px;
    border-radius: .35rem;
    color: var(--thread-muted);
    background: var(--thread-panel);
    box-shadow: none;
    font: 800 .62rem/1 sans-serif;
    text-align: center;
}

.forum-thread-tools__sort {
    display: flex;
    padding: .2rem;
    border: 1px solid var(--thread-line);
    border-radius: .65rem;
    background: var(--thread-panel-soft);
}

.forum-thread-tools__sort a {
    min-height: 32px;
    padding: .45rem .58rem;
    border-radius: .48rem;
    color: var(--thread-muted);
    font-size: .7rem;
    font-weight: 900;
    text-decoration: none;
}

.forum-thread-tools__sort a:hover { color: var(--thread-heading); }
.forum-thread-tools__sort a.is-active { color: #06141b; background: #69daf4; box-shadow: 0 5px 12px rgba(18, 185, 223, .18); }

body.forum-theme.forum-thread-experience .forum-thread-tools__actions { display: flex; align-items: center; gap: .3rem; }
body.forum-theme.forum-thread-experience .forum-thread-tools__actions :where(a, button) {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .45rem .62rem;
    border: 1px solid var(--thread-line);
    border-radius: .58rem;
    color: var(--thread-copy);
    background: var(--thread-panel-soft);
    font-size: .71rem;
    font-weight: 900;
    text-decoration: none;
}

body.forum-theme.forum-thread-experience .forum-thread-tools__actions :where(a, button):hover { border-color: var(--thread-accent); color: var(--thread-accent-strong); }
body.forum-theme.forum-thread-experience .forum-thread-tools__actions .is-primary { border-color: var(--thread-accent); color: #fff; background: var(--thread-accent-strong); }
body.forum-theme.forum-thread-experience .forum-thread-tools__status { position: absolute; right: .7rem; bottom: -.95rem; color: var(--thread-accent-strong); font-size: .58rem; font-weight: 850; }

.forum-thread-search-status {
    min-height: 0;
    margin: -.35rem 0 .55rem;
    padding: 0 .2rem;
    color: var(--thread-accent-strong) !important;
    font-size: .72rem;
    font-weight: 800;
}

.forum-thread-search-status:empty { display: none; }

body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 1.15rem;
}

body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-content {
    width: 100%;
    min-width: 0;
}

body.forum-theme.forum-thread-experience .forum-post {
    position: relative;
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr);
    overflow: visible;
    margin: 0 0 1rem;
    border: 1px solid var(--thread-line);
    border-radius: .95rem;
    color: var(--thread-copy);
    background: var(--thread-panel);
    box-shadow: var(--thread-shadow) !important;
    contain: none;
    content-visibility: visible;
    contain-intrinsic-size: none;
    scroll-margin-top: 9rem;
}

body.forum-theme.forum-thread-experience .forum-post--op {
    border-color: color-mix(in srgb, var(--thread-accent) 35%, var(--thread-line));
    box-shadow: 0 18px 46px rgba(14, 116, 146, .1) !important;
}

body.forum-theme.forum-thread-experience .forum-post.is-current-post {
    border-color: var(--thread-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--thread-accent) 10%, transparent), var(--thread-shadow) !important;
}

body.forum-theme.forum-thread-experience .forum-post__author {
    display: block;
    padding: 1.15rem .9rem;
    border-right: 1px solid var(--thread-line);
    background:
        radial-gradient(circle at 50% 0, color-mix(in srgb, var(--thread-accent) 10%, transparent), transparent 7rem),
        var(--thread-panel-soft) !important;
    border-radius: calc(.95rem - 1px) 0 0 calc(.95rem - 1px);
    text-align: center;
}

body.forum-theme.forum-thread-experience .forum-post__avatar {
    display: block;
    width: 3.9rem;
    height: 3.9rem;
    margin: 0 auto .65rem;
    border: 3px solid var(--thread-panel);
    border-radius: .85rem;
    outline: 0;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(12, 48, 68, .15);
}

body.forum-theme.forum-thread-experience .forum-post__username {
    display: block;
    overflow: hidden;
    color: var(--thread-heading) !important;
    font-size: .88rem;
    font-weight: 950;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.forum-theme.forum-thread-experience .forum-post__joined { margin-top: .45rem; color: var(--thread-muted); font-size: .65rem; }
body.forum-theme.forum-thread-experience .forum-post__rank { justify-content: center; margin-top: .45rem; color: var(--thread-accent-strong) !important; font-size: .62rem; }

body.forum-theme.forum-thread-experience .forum-post__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .3rem;
    margin-top: .55rem;
}

body.forum-theme.forum-thread-experience .forum-post__stats > span {
    min-width: 0;
    padding: .5rem .25rem;
    border: 1px solid var(--thread-line);
    border-radius: .48rem;
    color: var(--thread-muted);
    background: var(--thread-panel);
    font-size: .58rem;
    text-align: center;
}

body.forum-theme.forum-thread-experience .forum-post__stats strong { display: block; color: var(--thread-heading) !important; font-size: .72rem; }
body.forum-theme.forum-thread-experience .forum-gamer-ids { gap: .25rem; margin-top: .5rem; }
body.forum-theme.forum-thread-experience .forum-gamer-id { padding: .38rem .42rem; font-size: .59rem; }

body.forum-theme.forum-thread-experience .forum-post__main { min-width: 0; }
body.forum-theme.forum-thread-experience .forum-post__top {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid var(--thread-line);
    color: var(--thread-muted) !important;
    background: var(--thread-panel-raised) !important;
    border-radius: 0 calc(.95rem - 1px) 0 0;
    font-size: .69rem;
}

body.forum-theme.forum-thread-experience .forum-post__date { display: flex; min-width: 0; align-items: center; gap: .55rem; }
body.forum-theme.forum-thread-experience .forum-post__date > span:not(.forum-post__kind) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.forum-theme.forum-thread-experience .forum-post__date > small { color: var(--thread-muted); font-size: .59rem; font-weight: 850; text-transform: uppercase; }

body.forum-theme.forum-thread-experience .forum-post__kind {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .45rem;
    border-radius: 999px;
    color: var(--thread-accent-strong);
    background: color-mix(in srgb, var(--thread-accent) 11%, var(--thread-panel));
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.forum-theme.forum-thread-experience .forum-post__top-actions { display: flex; align-items: center; gap: .3rem; }
body.forum-theme.forum-thread-experience .forum-post__quote,
body.forum-theme.forum-thread-experience .forum-post__permalink,
body.forum-theme.forum-thread-experience .forum-post__number {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    padding: .35rem .48rem;
    border: 1px solid var(--thread-line);
    border-radius: .5rem;
    color: var(--thread-muted);
    background: var(--thread-panel);
    font-size: .65rem;
    font-weight: 900;
    text-decoration: none;
}

body.forum-theme.forum-thread-experience .forum-post__permalink { width: 30px; padding: 0; }
body.forum-theme.forum-thread-experience .forum-post__quote:hover,
body.forum-theme.forum-thread-experience .forum-post__permalink:hover,
body.forum-theme.forum-thread-experience .forum-post__number:hover { border-color: var(--thread-accent); color: var(--thread-accent-strong); }

body.forum-theme.forum-thread-experience .forum-post__body {
    min-height: 120px;
    padding: clamp(1.2rem, 2.4vw, 1.75rem);
    color: var(--thread-copy) !important;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

body.forum-theme.forum-thread-experience .forum-post__body :where(p, ul, ol, pre, blockquote) { margin-bottom: 1rem; }
body.forum-theme.forum-thread-experience .forum-post__body > :first-child { margin-top: 0; }
body.forum-theme.forum-thread-experience .forum-post__body > :last-child { margin-bottom: 0; }

body.forum-theme.forum-thread-experience .forum-post__signature {
    margin: 0 clamp(1.05rem, 2.2vw, 1.55rem) 1rem;
    padding-top: .7rem;
    border-top: 1px dashed var(--thread-line) !important;
}

body.forum-theme.forum-thread-experience .forum-post__controls { border-color: var(--thread-line); }

body.forum-theme.forum-thread-experience .forum-thread-empty {
    margin-bottom: .8rem;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--thread-line);
    border-radius: .95rem;
    color: var(--thread-muted);
    background: var(--thread-panel-soft);
    text-align: center;
}

body.forum-theme.forum-thread-experience .forum-reply {
    overflow: hidden;
    margin: 1rem 0 0;
    border: 1px solid color-mix(in srgb, var(--thread-accent) 24%, var(--thread-line));
    border-radius: 1rem;
    background: var(--thread-panel);
    box-shadow: var(--thread-shadow) !important;
    scroll-margin-top: 8rem;
}

body.forum-theme.forum-thread-experience .forum-reply__head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--thread-line);
    background: var(--thread-panel-raised) !important;
}

body.forum-theme.forum-thread-experience .forum-reply__head img { width: 2.45rem; height: 2.45rem; border-radius: .68rem; object-fit: cover; }
body.forum-theme.forum-thread-experience .forum-reply__head > span { display: grid; }
body.forum-theme.forum-thread-experience .forum-reply__head strong { color: var(--thread-heading) !important; font-size: .82rem; }
body.forum-theme.forum-thread-experience .forum-reply__head small { margin-top: .12rem; color: var(--thread-muted); font-size: .65rem; }
body.forum-theme.forum-thread-experience .forum-reply__body { padding: 1rem; }
body.forum-theme.forum-thread-experience .forum-reply textarea { min-height: 210px; resize: vertical; color: var(--thread-heading); background: var(--thread-panel-soft); font-size: .94rem; line-height: 1.65; }
body.forum-theme.forum-thread-experience .forum-reply textarea:focus { border-color: var(--thread-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--thread-accent) 12%, transparent); }
body.forum-theme.forum-thread-experience .forum-bbcode-toolbar { border-color: var(--thread-line); background: var(--thread-panel-raised); }
body.forum-theme.forum-thread-experience .forum-bbcode-toolbar button { color: var(--thread-muted); }
body.forum-theme.forum-thread-experience .forum-bbcode-help { color: var(--thread-muted); }
body.forum-theme.forum-thread-experience .forum-reply__status { min-height: 1rem; margin-top: .5rem; color: var(--thread-accent-strong); font-size: .68rem; font-weight: 800; }
body.forum-theme.forum-thread-experience .forum-reply__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; }
body.forum-theme.forum-thread-experience .forum-reply__count { color: var(--thread-muted); font-size: .66rem; }

body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-sidebar {
    position: static;
    display: grid;
    gap: .8rem;
    min-width: 0;
}

.forum-thread-rail-card {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--thread-line);
    border-radius: .9rem;
    color: var(--thread-copy);
    background: var(--thread-panel);
    box-shadow: var(--thread-shadow);
}

.forum-thread-rail-card > header {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: .6rem;
    min-height: 58px;
    padding: .6rem .7rem;
    border-bottom: 1px solid var(--thread-line);
    background: var(--thread-panel-raised);
}

.forum-thread-rail-card > header > span,
.forum-thread-rail-card > summary > span {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: .58rem;
    color: var(--thread-accent-strong);
    background: color-mix(in srgb, var(--thread-accent) 10%, var(--thread-panel));
    font-size: .75rem;
}

.forum-thread-rail-card > header div { min-width: 0; }
.forum-thread-rail-card > header small,
.forum-thread-rail-card > header h2 { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.forum-thread-rail-card > header small { color: var(--thread-muted); font-size: .58rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.forum-thread-rail-card > header h2 { margin-top: .08rem; color: var(--thread-heading) !important; font-size: .8rem; font-weight: 950; }

.forum-thread-map nav {
    display: grid;
    overflow: auto;
    max-height: 310px;
    padding: .35rem;
    scrollbar-width: thin;
}

.forum-thread-map nav a {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    min-height: 47px;
    padding: .32rem .4rem;
    border-radius: .52rem;
    color: inherit;
    text-decoration: none;
}

.forum-thread-map nav a:hover,
.forum-thread-map nav a.is-active { color: inherit; background: var(--thread-panel-soft); }
.forum-thread-map nav a.is-active .forum-thread-map__number { color: #06151c; background: #67d9f3; }

.forum-thread-map__number {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: .46rem;
    color: var(--thread-accent-strong);
    background: color-mix(in srgb, var(--thread-accent) 10%, var(--thread-panel));
    font-size: .58rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.forum-thread-map nav a > span:last-child { display: grid; min-width: 0; }
.forum-thread-map nav strong,
.forum-thread-map nav small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-thread-map nav strong { color: var(--thread-heading); font-size: .7rem; font-weight: 900; }
.forum-thread-map nav small { margin-top: .08rem; color: var(--thread-muted); font-size: .58rem; }

.forum-thread-map__reply {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-top: 1px solid var(--thread-line);
    color: #07150a;
    background: var(--thread-lime);
    font-size: .7rem;
    font-weight: 950;
    text-decoration: none;
}

.forum-thread-map__reply:hover { color: #07150a; filter: brightness(1.035); }

.forum-thread-details { margin: 0; padding: .15rem .7rem; border-top: 1px solid var(--thread-line); }
.forum-thread-details > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--thread-line); }
.forum-thread-details > div:last-child { border-bottom: 0; }
.forum-thread-details dt { color: var(--thread-muted); font-size: .65rem; font-weight: 750; }
.forum-thread-details dd { margin: 0; color: var(--thread-heading); font-size: .65rem; font-weight: 900; text-align: right; }
.forum-thread-details dd i { margin-right: .2rem; }
.forum-thread-details dd.is-open { color: #15865d; }
.forum-thread-details dd.is-locked { color: #b34a5a; }

.forum-thread-participants { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 1px; background: var(--thread-line); }
.forum-thread-participants a { display: grid; min-width: 0; justify-items: center; padding: .65rem .35rem; color: inherit; background: var(--thread-panel); text-align: center; text-decoration: none; }
.forum-thread-participants a:hover { background: var(--thread-panel-soft); }
.forum-thread-participants img { width: 2.35rem; height: 2.35rem; border: 2px solid var(--thread-panel); border-radius: .68rem; object-fit: cover; box-shadow: 0 4px 10px rgba(10, 42, 58, .13); }
.forum-thread-participants span { display: grid; min-width: 0; width: 100%; margin-top: .35rem; }
.forum-thread-participants strong,
.forum-thread-participants small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-thread-participants strong { color: var(--thread-heading); font-size: .65rem; font-weight: 900; }
.forum-thread-participants small { margin-top: .08rem; color: var(--thread-muted); font-size: .55rem; }

.forum-thread-context-links,
.forum-related-threads { display: grid; padding: .3rem; }
.forum-thread-context-links > a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; min-height: 52px; padding: .35rem .4rem; border-radius: .55rem; color: inherit; text-decoration: none; }
.forum-thread-context-links > a:hover { color: inherit; background: var(--thread-panel-soft); }
.forum-thread-context-links > a > span:first-child { display: grid; width: 2.2rem; height: 2.2rem; overflow: hidden; place-items: center; border-radius: .55rem; color: var(--thread-accent-strong); background: color-mix(in srgb, var(--thread-accent) 10%, var(--thread-panel)); }
.forum-thread-context-links > a > span:nth-child(2) { display: grid; min-width: 0; }
.forum-thread-context-links small,
.forum-thread-context-links strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-thread-context-links small { color: var(--thread-muted); font-size: .55rem; font-weight: 850; text-transform: uppercase; }
.forum-thread-context-links strong { margin-top: .08rem; color: var(--thread-heading); font-size: .68rem; font-weight: 900; }
.forum-thread-context-links > a > i { color: var(--thread-muted); font-size: .62rem; }
.forum-thread-context-links__cover img { width: 100%; height: 100%; object-fit: cover; }

.forum-related-threads a { display: grid; gap: .1rem; padding: .58rem .5rem; border-bottom: 1px solid var(--thread-line); color: inherit; text-decoration: none; }
.forum-related-threads a:last-child { border-bottom: 0; }
.forum-related-threads a:hover { border-radius: .5rem; background: var(--thread-panel-soft); }
.forum-related-threads strong { display: -webkit-box; overflow: hidden; color: var(--thread-heading); font-size: .68rem; font-weight: 900; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.forum-related-threads small { color: var(--thread-muted); font-size: .55rem; }

:where(.forum-thread-rail-card--controls, .forum-thread-rail-card--danger) > summary {
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: .65rem .7rem;
    cursor: pointer;
    list-style: none;
    background: var(--thread-panel-raised);
}

:where(.forum-thread-rail-card--controls, .forum-thread-rail-card--danger) > summary::-webkit-details-marker { display: none; }
.forum-thread-rail-card--danger > summary > span { color: #b34a5a; background: color-mix(in srgb, #e45e70 10%, var(--thread-panel)); }
.forum-thread-rail-card--controls > summary strong,
.forum-thread-rail-card--danger > summary strong { color: var(--thread-heading); font-size: .7rem; font-weight: 900; }
.forum-thread-rail-card--controls > summary > i,
.forum-thread-rail-card--danger > summary > i { color: var(--thread-muted); font-size: .65rem; transition: transform .18s ease; }
.forum-thread-rail-card--controls[open] > summary > i,
.forum-thread-rail-card--danger[open] > summary > i { transform: rotate(180deg); }
.forum-thread-rail-card--controls > div,
.forum-thread-rail-card--danger > div { padding: .7rem; border-top: 1px solid var(--thread-line); }
.forum-thread-rail-card--controls .form-select {
    border-color: var(--thread-line);
    color: var(--thread-heading);
    background-color: var(--thread-panel-soft);
    font-size: .68rem;
    font-weight: 750;
}
.forum-thread-rail-card--controls .btn,
.forum-thread-rail-card--danger .btn { width: 100%; font-size: .68rem; font-weight: 900; }
.forum-thread-rail-card--danger p { margin: 0 0 .6rem; color: var(--thread-muted) !important; font-size: .65rem; line-height: 1.55; }

body.forum-theme.forum-thread-experience.forum-focus-mode > main.forum-thread-page .forum-thread-sidebar { display: none; }
body.forum-theme.forum-thread-experience.forum-focus-mode > main.forum-thread-page .forum-thread-layout { grid-template-columns: minmax(0, 1fr); }
body.forum-theme.forum-thread-experience.forum-focus-mode .forum-thread-shell { max-width: 1080px; }
body.forum-theme.forum-thread-experience.forum-focus-mode [data-forum-focus] { border-color: var(--thread-accent) !important; color: var(--thread-accent-strong) !important; background: color-mix(in srgb, var(--thread-accent) 10%, var(--thread-panel)) !important; }

@media (max-width: 1199.98px) {
    body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-layout { grid-template-columns: minmax(0, 1fr) 280px; }
    body.forum-theme.forum-thread-experience .forum-thread-tools { grid-template-columns: minmax(0, 1fr) auto; }
    body.forum-theme.forum-thread-experience .forum-thread-tools__sort { display: none; }
    body.forum-theme.forum-thread-experience .forum-post { grid-template-columns: 142px minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
    body.forum-theme.forum-thread-experience .forum-thread-head { grid-template-columns: minmax(0, 1fr); }
    body.forum-theme.forum-thread-experience .forum-thread-head__actions { display: flex; width: 100%; flex-wrap: wrap; }
    body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn { flex: 1 1 120px; }
    .forum-thread-head__moderation { display: flex; grid-column: auto; }
    .forum-thread-head__moderation .btn { width: 42px; flex: 0 0 42px !important; }
    body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-layout { grid-template-columns: minmax(0, 1fr); }
    body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.forum-theme.forum-thread-experience .forum-thread-map { grid-row: span 2; }
}

@media (max-width: 767.98px) {
    body.forum-theme.forum-thread-experience .forum-thread-page { padding-top: .65rem; padding-bottom: 3.5rem; }
    body.forum-theme.forum-thread-experience .forum-thread-hero { padding: 1rem; border-radius: 1rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head__content { align-items: flex-start; }
    body.forum-theme.forum-thread-experience .forum-thread-head__boxart { width: 66px; height: 90px; border-radius: .68rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head h1 { font-size: clamp(1.45rem, 7vw, 2rem); }
    body.forum-theme.forum-thread-experience .forum-thread-head__meta { gap: .4rem .75rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head__meta span:last-child { display: inline-flex; }

    body.forum-theme.forum-thread-experience .forum-thread-tools {
        position: static;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .5rem;
        min-height: 0;
    }

    .forum-thread-tools__search { grid-column: 1; }
    body.forum-theme.forum-thread-experience .forum-thread-tools__actions { grid-column: 2; }
    body.forum-theme.forum-thread-experience .forum-thread-tools__actions :where(a, button) { width: 38px; padding: 0; }
    body.forum-theme.forum-thread-experience .forum-thread-tools__actions :where(a, button) span { display: none; }

    body.forum-theme.forum-thread-experience .forum-post {
        grid-template-columns: minmax(0, 1fr);
        border-radius: .85rem;
        content-visibility: visible;
        scroll-margin-top: 1rem;
    }

    body.forum-theme.forum-thread-experience .forum-post__author {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: .65rem;
        padding: .65rem .75rem;
        border-right: 0;
        border-bottom: 1px solid var(--thread-line);
        border-radius: calc(.85rem - 1px) calc(.85rem - 1px) 0 0;
        text-align: left;
    }

    body.forum-theme.forum-thread-experience .forum-post__avatar { width: 2.65rem; height: 2.65rem; margin: 0; border-radius: .65rem; }
    body.forum-theme.forum-thread-experience .forum-post__author > div { min-width: 0; }
    body.forum-theme.forum-thread-experience .forum-post__joined,
    body.forum-theme.forum-thread-experience .forum-post__stats,
    body.forum-theme.forum-thread-experience .forum-gamer-ids { display: none; }
    body.forum-theme.forum-thread-experience .forum-post__rank { justify-content: flex-start; margin-top: .22rem; }
    body.forum-theme.forum-thread-experience .forum-post__body { min-height: 0; padding: 1rem; font-size: .95rem; }
    body.forum-theme.forum-thread-experience .forum-post__signature { margin-right: 1rem; margin-left: 1rem; }
    body.forum-theme.forum-thread-experience > main.forum-thread-page .forum-thread-sidebar { grid-template-columns: minmax(0, 1fr); }
    body.forum-theme.forum-thread-experience .forum-thread-map { grid-row: auto; }
}

@media (max-width: 575.98px) {
    body.forum-theme.forum-thread-experience .forum-thread-shell { padding-right: .7rem; padding-left: .7rem; }
    body.forum-theme.forum-thread-experience .forum-breadcrumbs { margin-bottom: .45rem; font-size: .6rem; }
    body.forum-theme.forum-thread-experience .forum-breadcrumbs span { max-width: 35vw; }
    body.forum-theme.forum-thread-experience .forum-thread-head__content { gap: .7rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head__boxart { width: 54px; height: 74px; }
    .forum-thread-head__kicker { margin-bottom: .45rem; }
    .forum-thread-head__kicker > span { min-height: 21px; padding: .2rem .38rem; font-size: .47rem; }
    .forum-thread-head__kicker > span:first-child { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.forum-theme.forum-thread-experience .forum-thread-head__game,
    body.forum-theme.forum-thread-experience .forum-thread-head__context { display: none; }
    body.forum-theme.forum-thread-experience .forum-thread-head__meta { margin-top: .6rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head__meta span:nth-child(2),
    body.forum-theme.forum-thread-experience .forum-thread-head__meta span:nth-child(4) { display: none; }
    body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn { min-height: 40px; flex-basis: 0; padding: .45rem; }
    body.forum-theme.forum-thread-experience .forum-thread-head__actions .btn span { display: none; }
    .forum-thread-head__moderation .btn { width: 40px; }
    .forum-thread-tools__search kbd { display: none; }
    body.forum-theme.forum-thread-experience .forum-thread-tools { padding: .45rem; border-radius: .75rem; }
    body.forum-theme.forum-thread-experience .forum-post__top { padding: .5rem .6rem; }
    body.forum-theme.forum-thread-experience .forum-post__top { border-radius: 0; }
    body.forum-theme.forum-thread-experience .forum-post__date > span:not(.forum-post__kind),
    body.forum-theme.forum-thread-experience .forum-post__date > small { display: none; }
    body.forum-theme.forum-thread-experience .forum-post__quote { width: 30px; padding: 0; font-size: 0; }
    body.forum-theme.forum-thread-experience .forum-post__quote i { font-size: .65rem; }
    body.forum-theme.forum-thread-experience .forum-reply__body { padding: .7rem; }
    body.forum-theme.forum-thread-experience .forum-reply__footer { align-items: stretch; flex-direction: column; }
    body.forum-theme.forum-thread-experience .forum-reply__footer .btn { width: 100%; }
}

html[data-theme="dark"] body.forum-theme.forum-thread-experience {
    --thread-accent: #62dbf6;
    --thread-accent-strong: #72e1f8;
    --thread-lime: #a9ed4f;
    --thread-shadow: 0 18px 46px rgba(0, 0, 0, .23);
}

html[data-theme="dark"] body.forum-theme.forum-thread-experience .forum-thread-page {
    background:
        radial-gradient(circle at 92% 2%, rgba(59, 206, 239, .07), transparent 28rem),
        radial-gradient(circle at 3% 20%, rgba(128, 104, 242, .07), transparent 24rem),
        var(--forum-page-bg, #07111b) !important;
}

html[data-theme="dark"] body.forum-theme.forum-thread-experience .forum-thread-tools__sort a.is-active,
html[data-theme="dark"] body.forum-theme.forum-thread-experience .forum-thread-map nav a.is-active .forum-thread-map__number { color: #06141b; }

html[data-theme="dark"] body.forum-theme.forum-thread-experience .forum-thread-details dd.is-open { color: #79e1b5; }
html[data-theme="dark"] body.forum-theme.forum-thread-experience .forum-thread-details dd.is-locked { color: #ff9cac; }

body.forum-theme.forum-thread-experience .forum-post__report { position: relative; }
body.forum-theme.forum-thread-experience .forum-post__report > summary {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--thread-line);
    border-radius: .5rem;
    color: var(--thread-muted);
    cursor: pointer;
    list-style: none;
}
body.forum-theme.forum-thread-experience .forum-post__report > summary::-webkit-details-marker { display: none; }
body.forum-theme.forum-thread-experience .forum-post__report[open] > summary,
body.forum-theme.forum-thread-experience .forum-post__report > summary:hover { color: #e24b63; border-color: rgba(226, 75, 99, .45); }
body.forum-theme.forum-thread-experience .forum-post__report form {
    position: absolute;
    z-index: 30;
    top: calc(100% + .45rem);
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 2rem));
    gap: .65rem;
    padding: .85rem;
    border: 1px solid var(--thread-line);
    border-radius: .8rem;
    background: var(--thread-panel);
    box-shadow: var(--thread-shadow);
    text-align: left;
}
body.forum-theme.forum-thread-experience .forum-post__report label { display: grid; gap: .25rem; color: var(--thread-muted); font-size: .7rem; font-weight: 700; }
body.forum-theme.forum-thread-experience .forum-post__report :where(.form-select, .form-control) {
    border-color: var(--thread-line);
    color: var(--thread-heading);
    background-color: var(--thread-panel-soft);
}
body.forum-theme.forum-thread-experience .forum-post__report .btn { justify-self: end; }

@media (prefers-reduced-motion: reduce) {
    body.forum-theme.forum-thread-experience :where(.forum-thread-rail-card, .forum-post, .forum-thread-tools, .forum-thread-head__actions .btn) { scroll-behavior: auto; transition: none; }
}
