:root {
    color-scheme: dark;
    --ground: #101116;
    --panel: #1b1d24;
    --line: #383b45;
    --muted: #b6b9c3;
    --accent: #ffba68;
    --ink: #f3f4f7;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --bs-body-bg: var(--ground);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: radial-gradient(ellipse at 50% 12rem, #24252e 0%, transparent 64%), var(--ground);
}
main { flex: 1 0 auto; }
a { color: inherit; }
a:hover, .accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.muted, time { color: var(--muted); }
.skip { position: absolute; z-index: 20; top: .7rem; left: .7rem; padding: .6rem 1rem; background: var(--ground); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead { background: #101116f5; border-bottom: 1px solid var(--line); }
.nav-layout, .nav-menu, .nav-links, .nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-layout { min-height: 76px; gap: clamp(1.3rem, 4vw, 4rem); }
.nav-menu { flex: 1; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; text-decoration: none; font-weight: 900; line-height: 1.05; letter-spacing: .06em; }
.brand small { display: block; color: var(--muted); font: 600 .55rem/1.6 var(--mono); letter-spacing: .2em; }
.brand-home { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.brand-home img { flex: none; width: clamp(2.75rem, 6vw, 3.5rem); height: auto; animation: logo-hop .65s ease-in-out; }
.brand-home small { font-size: .68rem; }
.nav-links a { text-decoration: none; white-space: nowrap; color: var(--muted); padding: .6rem .25rem; font-size: .9rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.menu-button.steel { display: none; }
.steel {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 42px; padding: .52rem .9rem; border-radius: 6px; border: 1px solid #5b606b;
    background: linear-gradient(112deg, transparent 36%, #ffffff28 50%, transparent 64%) 135% 0 / 240% 100% no-repeat,
        linear-gradient(#444852, #262a32 49%, #1c1e25 51%, #2b2e37);
    box-shadow: inset 0 1px #ffffff18, 0 3px 8px #0005;
    font-weight: 750; color: #f4f5f8; line-height: 1.2; text-decoration: none;
    transition: background-position .55s, border-color .2s, color .2s;
}
.steel svg, .text-link svg, .card-link svg, .hero-strip svg { width: 17px; height: 17px; flex: none; }
.steel:hover, .steel:focus-visible { color: #fff; border-color: var(--accent); background-position: -35% 0, 0 0; }
.steel[aria-current] { color: var(--accent); border-color: #b47e45; }
.steel.primary {
    color: #21160c; border-color: #ffcb82;
    background: linear-gradient(112deg, transparent 36%, #fff8dc94 50%, transparent 64%) 135% 0 / 240% 100% no-repeat,
        linear-gradient(#ffdc9e, #f8b662 49%, #e8a24e 51%, #f9b86f);
}
.steel.primary:hover, .steel.primary:focus-visible { color: #21160c; background-position: -35% 0, 0 0; }
.hero {
    position: relative; isolation: isolate; overflow: hidden; min-height: 535px; margin-top: clamp(1rem, 4vw, 2.8rem);
    display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
    border: 1px solid #49454a; border-radius: 14px; box-shadow: 0 24px 70px #0005;
    background: radial-gradient(ellipse at 76% 45%, #63422673, transparent 42%),
        repeating-linear-gradient(119deg, transparent 0 120px, #ffffff06 121px 122px, transparent 123px 148px),
        linear-gradient(130deg, #24262e, #131419 55%, #252329);
}
.hero-copy { position: relative; z-index: 2; align-self: center; min-width: 0; padding: clamp(1.4rem, 4.5vw, 4rem); }
.hero h1 {
    font-size: clamp(3rem, 6.7vw, 6.5rem); font-weight: 950; letter-spacing: -.075em;
    line-height: .96; margin: 1.25rem 0 1.25rem; overflow-wrap: anywhere;
}
.hero h1 strong { font-weight: inherit; color: #d6d8df; background: linear-gradient(#fff 12%, #cbd0d9 53%, #9da3af 56%, #f0f0f3 94%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .accent { -webkit-text-fill-color: var(--accent); }
.hero-copy p { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #cdd0d9; max-width: 29rem; margin-bottom: 1.8rem; overflow-wrap: anywhere; }
.eyebrow, .tag, .art-index, .hero-strip, .footer > div > span {
    font: 700 .73rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.signal { display: inline-block; vertical-align: .12em; width: .47rem; height: .47rem; border-radius: 50%; background: #ffc37a; margin-right: .25rem; animation: pulse 2.6s ease-out infinite; }
.divider { color: #9c9eaa; margin-inline: .35rem; }
.hero-art {
    position: relative; display: grid; place-items: center; min-height: 350px; align-self: center; margin-inline: 0 1.5rem;
    background: repeating-linear-gradient(0deg, #e0a15e0c 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, #e0a15e0c 0 1px, transparent 1px 24px);
    mask-image: radial-gradient(ellipse 75% 82% at center, #000 58%, transparent 100%);
}
.art-axis { position: absolute; background: #e0a15e3d; z-index: -1; }
.axis-x { height: 1px; width: 95%; }
.axis-y { width: 1px; height: 95%; }
.orbit { position: absolute; height: auto; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.orbit-one { width: min(91%, 365px); border: 1px dashed #ca93587a; animation: orbit 70s linear infinite; }
.orbit-two { width: min(78%, 310px); border: 1px solid #a87b4d96; box-shadow: 0 0 28px #e99e4625, inset 0 0 35px #e99e4622; animation: orbit 25s linear infinite reverse; }
.orbit-two::before, .orbit-two::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #ffae57; left: calc(50% - 4px); top: -4px; }
.orbit-two::after { top: auto; bottom: -4px; }
.orbit-three { width: min(67%, 262px); border: 2px dotted #e5a56449; }
.badge-shell { width: clamp(120px, 18vw, 216px); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 12px 12px #0009) drop-shadow(0 0 20px #ffa34b38); }
.badge-shell img { display: block; width: 100%; height: auto; }
.art-index { position: absolute; bottom: 1%; right: 12%; padding: .25rem .4rem; background: #1d1b1d; color: #d2bca4; font-size: .56rem; }
.hero-strip { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; padding: .68rem clamp(1rem, 4.5vw, 4rem); background: #141518df; border-top: 1px solid #49454a; color: #c6c7cf; gap: .5rem; }
.hero-strip svg, .hero-strip b, .footer b, .art-index b { color: var(--accent); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { from { box-shadow: 0 0 0 0 #ffc37aad; } 70%, to { box-shadow: 0 0 0 8px #ffc37a00; } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes logo-hop {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    72% { transform: translateY(0); }
    86% { transform: translateY(-2px); }
}
.feed { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: 1.2rem; }
.section-head h2, .page-head h1 { margin: .25rem 0 0; font-weight: 900; letter-spacing: -.047em; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.text-link, .card-link { display: inline-flex; gap: .4rem; align-items: center; font-weight: 750; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.intel-card, .panel, .notice {
    border: 1px solid var(--line); border-radius: 11px;
    background: linear-gradient(146deg, #252731, #1a1c24 53%, #17191f); padding: clamp(.9rem, 2.2vw, 1.5rem);
}
.intel-card { position: relative; display: flex; flex-direction: column; min-height: 235px; transition: transform .24s, border-color .24s, box-shadow .24s; }
.intel-card:hover, .intel-card:focus-within { transform: translateY(-4px); border-color: #a87545; box-shadow: 0 10px 24px #0005; }
.intel-card h3 { font-weight: 850; font-size: clamp(1.22rem, 2vw, 1.5rem); margin: .45rem 0; overflow-wrap: anywhere; }
.intel-card h3 a { text-decoration: none; }
.intel-card p { color: var(--muted); overflow-wrap: anywhere; }
.intel-card time { font: .72rem var(--mono); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .95rem; }
.icon-box { color: var(--accent); display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #996f48; border-radius: 7px; background: linear-gradient(#554130, #2c2625); }
.tag { display: inline-block; background: #362a25; border: 1px solid #795534; border-radius: 4px; padding: .17rem .4rem; font-size: .64rem; }
.card-link { font-size: .87rem; margin-top: auto; }
.footer { padding: 1.35rem 0; border-top: 1px solid var(--line); background: #101116; }
.footer > div > span, .footer a:not(.brand) { color: var(--muted); }
.inner { padding: clamp(2rem, 6vw, 4rem) 0; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.form-panel, .article { max-width: 44rem; }
.form-panel:not(.editor) { max-width: 34rem; }
.account-panel { max-width: none; }
.form-panel label { display: block; font-weight: 700; margin: 1rem 0 .4rem; }
.form-panel .text-link { display: flex; }
.form-panel dd, .article { overflow-wrap: anywhere; }
.article-text { white-space: pre-wrap; line-height: 1.7; }
.profile-avatar { flex: none; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.profile-heading .profile-avatar { width: clamp(5.25rem, 25.5vw, 6.75rem); height: auto; aspect-ratio: 1; }
.profile-heading > div { min-width: 0; }
.avatar-picker summary { cursor: pointer; font-weight: 800; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(7.5rem, 27vw, 9.25rem)), 1fr)); gap: .55rem; }
.avatar-option.steel { flex-direction: column; justify-content: flex-start; min-width: 0; padding: .5rem; text-align: center; font-size: .85rem; }
.avatar-option .profile-avatar { width: 75%; max-width: 6rem; height: auto; aspect-ratio: 1; }
.avatar-insignia { color: #ffba68; background: radial-gradient(at 50% 20%, #444852, #17191f 75%); }
.avatar-insignia use { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.avatar-plate { fill: #16191d; stroke: currentColor; stroke-opacity: .55; }
.avatar-tone-1 { color: #c4d48a; }
.avatar-tone-2 { color: #9dccef; }
.avatar-tone-3 { color: #ffad9d; }
.avatar-tone-4 { color: #dfc5fb; }
.avatar-tone-5 { color: #88ded2; }
.profile-photo { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.community-form label { display: block; margin-block: .5rem; }
.community-form .steel { margin: .25rem .25rem .25rem 0; }
.chat-history { max-height: 28rem; overflow: auto; }
.chat-history article { border-bottom: 1px solid var(--line); padding: .5rem 0; overflow-wrap: anywhere; }
.chat-history p { margin: .25rem 0 0; white-space: pre-wrap; }
.forum-video { display: block; width: min(100%, 56rem); max-height: 32rem; background: #101116; }
.form-control, .form-select { background-color: #121319; color: var(--ink); border-color: #565b66; }
.form-control:focus, .form-select:focus { background-color: #121319; color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 .2rem #e8a24e35; }
.search { max-width: 20rem; }
.notice { border-left: 4px solid var(--accent); }
.notice.warning { background: #382723; }
.security-alert { position: fixed; z-index: 1030; inset: auto 1rem 1rem auto; width: min(25rem, calc(100% - 2rem)); box-shadow: 0 8px 30px #0008; }
.panel h2 { font-size: 1.2rem; font-weight: 800; }
.metric strong { display: block; font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 900; overflow-wrap: anywhere; }
.table { --bs-table-bg: transparent; }
.table th { white-space: nowrap; }
.table-responsive:focus-within { outline: 1px solid #5c626e; }
.traffic-chart { display: block; width: 100%; height: 130px; fill: var(--accent); border-bottom: 1px solid var(--line); }
.stats-list { list-style: none; margin: 0; padding: 0; }
.stats-list li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); text-transform: capitalize; }
@media (max-width: 991.98px) { .nav-layout, .nav-links, .nav-actions { gap: .65rem; } }
@media (max-width: 767.98px) {
    .nav-layout { flex-wrap: wrap; justify-content: space-between; gap: 0; padding-block: .8rem; min-height: 64px; }
    :not(.no-js) .menu-button.steel { display: inline-flex; }
    .nav-menu { flex: 0 0 100%; flex-direction: column; align-items: stretch; margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .5rem; }
    :not(.no-js) .nav-menu:not(.is-open) { display: none; }
    .nav-links, .nav-actions { flex-wrap: wrap; }
    .hero { display: flex; flex-direction: column; min-height: 0; }
    .hero-copy { align-self: stretch; padding-bottom: .25rem; }
    .hero h1 { font-size: clamp(2.8rem, 10.6vw, 5rem); }
    .hero-art { min-height: clamp(235px, 60vw, 320px); width: min(80%, 340px); margin: 0 auto .5rem; }
    .orbit-one { width: min(91%, 285px); }
    .orbit-two { width: min(78%, 240px); }
    .orbit-three { width: min(67%, 200px); }
    .badge-shell { width: clamp(108px, 36vw, 155px); }
    .hero-strip { width: 100%; }
}
@media (max-width: 359px) { .hero-strip span:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
