.etf-hero,
.etf-board-head,
.etf-topic-head,
.etf-search-page,
.etf-member,
.etf-form-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(208, 158, 66, .28);
    background:
        radial-gradient(circle at 14% 0%, rgba(122, 73, 184, .20), transparent 42%),
        linear-gradient(135deg, rgba(12, 11, 16, .97), rgba(5, 5, 6, .96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 224, 152, .06);
}

.etf-hero::before,
.etf-board-head::before,
.etf-form-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .45;
    background-image: linear-gradient(90deg, transparent 49.85%, rgba(218, 171, 84, .06) 50%, transparent 50.15%);
    background-size: 72px 100%;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.etf-hero {
    min-height: 238px;
    margin: 28px 0 18px;
    padding: 48px clamp(24px, 5vw, 72px);
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) minmax(300px, 430px);
    align-items: center;
    gap: 26px;
}

.etf-hero__sigil,
.etf-board-head__icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: #efc86f;
    border: 1px solid rgba(225, 174, 78, .46);
    transform: rotate(45deg);
    background: rgba(14, 10, 18, .84);
    box-shadow: inset 0 0 28px rgba(139, 84, 201, .15), 0 0 32px rgba(218, 160, 62, .08);
}

.etf-hero__sigil svg,
.etf-board-head__icon svg { transform: rotate(-45deg); }

.etf-kicker {
    display: block;
    margin-bottom: 9px;
    color: #d9aa51;
    font: 700 10px/1.2 Inter, sans-serif;
    letter-spacing: .28em;
}

.etf-hero h1,
.etf-board-head h1,
.etf-topic-head h1,
.etf-search-page h1,
.etf-member h1,
.etf-form-shell h1 {
    margin: 0;
    color: #f6f0e3;
    font: 700 clamp(34px, 4vw, 58px)/1 Cinzel, serif;
    letter-spacing: -.03em;
}

.etf-hero p,
.etf-board-head p,
.etf-topic-head p,
.etf-search-page p,
.etf-member p,
.etf-form-shell header p {
    max-width: 650px;
    margin: 14px 0 0;
    color: #aaa49d;
    line-height: 1.7;
}

.etf-search { display: flex; gap: 10px; }
.etf-search .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.etf-search input,
.etf-compose input,
.etf-compose textarea,
.etf-report textarea {
    width: 100%;
    border: 1px solid rgba(202, 157, 74, .25);
    border-radius: 0;
    outline: 0;
    background: rgba(3, 3, 5, .72);
    color: #f3eee4;
    font: 500 14px/1.5 Inter, sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.etf-search input { min-width: 0; padding: 14px 16px; }
.etf-search input:focus,
.etf-compose input:focus,
.etf-compose textarea:focus,
.etf-report textarea:focus {
    border-color: rgba(237, 191, 94, .7);
    box-shadow: 0 0 0 3px rgba(214, 157, 57, .08), inset 0 0 24px rgba(118, 72, 169, .05);
}

.etf-notice {
    padding: 24px;
    border: 1px solid rgba(219, 169, 67, .35);
    background: rgba(31, 20, 8, .72);
}
.etf-notice strong { color: #efc86f; }
.etf-notice p { margin: 7px 0 0; color: #bbb2a5; }

.etf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    border: 1px solid rgba(204, 159, 72, .20);
    background: rgba(5, 5, 7, .72);
}
.etf-stats div { padding: 17px 26px; text-align: center; border-right: 1px solid rgba(204, 159, 72, .14); }
.etf-stats div:last-child { border: 0; }
.etf-stats strong { color: #edc56d; font: 700 23px Cinzel, serif; }
.etf-stats span { margin-left: 8px; color: #837d75; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.etf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.etf-main { display: grid; gap: 18px; }
.etf-category,
.etf-panel,
.etf-topic-table {
    border: 1px solid rgba(202, 156, 69, .20);
    background: rgba(7, 7, 9, .86);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .25);
}
.etf-category > header,
.etf-panel > header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    color: #dfb457;
    border-bottom: 1px solid rgba(202, 156, 69, .18);
    background: linear-gradient(90deg, rgba(102, 63, 144, .09), transparent 65%);
}
.etf-category > header h2 { margin: 0; color: #eee7da; font: 700 17px Cinzel, serif; letter-spacing: .04em; }
.etf-category > header p { margin: 4px 0 0; color: #77736e; font-size: 12px; }
.etf-panel > header span { font: 700 10px Inter, sans-serif; letter-spacing: .22em; }

.etf-board-list { display: grid; }
.etf-board {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 112px 20px;
    align-items: center;
    gap: 15px;
    min-height: 92px;
    padding: 15px 21px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    transition: background .2s ease, transform .2s ease;
}
.etf-board:last-child { border-bottom: 0; }
.etf-board:hover { background: linear-gradient(90deg, rgba(112, 68, 156, .12), rgba(213, 158, 58, .035)); }
.etf-board__icon { width: 42px; height: 42px; display: grid; place-items: center; color: #dcb45b; border: 1px solid rgba(220, 174, 84, .24); background: #0c0b0f; transform: rotate(45deg); }
.etf-board__icon svg { transform: rotate(-45deg); }
.etf-board__copy strong { display: block; color: #eee8dc; font: 700 15px Cinzel, serif; }
.etf-board__copy small { display: block; margin-top: 5px; color: #7d7872; line-height: 1.45; }
.etf-board__numbers { color: #746f68; font-size: 10px; line-height: 1.65; text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.etf-board__numbers b { color: #c9bca7; font-weight: 600; }
.etf-board__arrow { color: #c89a45; font-size: 25px; transition: transform .2s ease; }
.etf-board:hover .etf-board__arrow { transform: translateX(3px); }

.etf-aside { display: grid; gap: 18px; position: sticky; top: 140px; }
.etf-latest { display: grid; }
.etf-latest a { padding: 16px 18px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.045); }
.etf-latest a:last-child { border: 0; }
.etf-latest a:hover { background: rgba(111, 69, 154, .09); }
.etf-latest strong { display: block; color: #d8d0c4; font: 600 13px/1.45 Cinzel, serif; }
.etf-latest span { display: block; margin-top: 7px; color: #716c66; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.etf-code p { margin: 0; padding: 20px; color: #989189; font-size: 13px; line-height: 1.75; }
.etf-empty { padding: 23px; color: #837e78; line-height: 1.65; }
.etf-empty--large { padding: 55px 28px; text-align: center; }
.etf-empty a { color: #e1b65d; }

.etf-crumbs { display: flex; align-items: center; gap: 9px; padding: 26px 0 14px; color: #6f6a64; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.etf-crumbs a { color: #a59c90; text-decoration: none; }
.etf-crumbs a:hover { color: #e2b85e; }
.etf-crumbs strong { color: #d2c8b9; font-weight: 600; }

.etf-board-head,
.etf-topic-head,
.etf-search-page,
.etf-member {
    min-height: 168px;
    margin-bottom: 18px;
    padding: 30px clamp(22px, 4vw, 48px);
    display: flex;
    align-items: center;
    gap: 24px;
}
.etf-board-head > div:not(.etf-board-head__icon), .etf-topic-head > div, .etf-search-page > div, .etf-member > div { flex: 1; }
.etf-board-head h1, .etf-topic-head h1, .etf-search-page h1, .etf-member h1 { font-size: clamp(28px, 3vw, 43px); }
.etf-board-head p, .etf-topic-head p, .etf-search-page p, .etf-member p { margin-top: 8px; }
.etf-state { display: inline-flex; padding: 6px 9px; color: #e8bd62; border: 1px solid rgba(222, 172, 75, .36); background: rgba(75, 46, 10, .22); font: 700 9px Inter, sans-serif; letter-spacing: .15em; }
.etf-state.is-locked { color: #aaa39b; border-color: rgba(171, 162, 149, .25); background: rgba(75, 72, 68, .16); }
.etf-topic-head__badges { display: flex; gap: 7px; margin-bottom: 10px; }

.etf-topic-table__header,
.etf-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 155px;
    align-items: center;
}
.etf-topic-table__header { min-height: 45px; color: #9d7937; border-bottom: 1px solid rgba(202, 156, 69, .18); font: 700 9px Inter, sans-serif; letter-spacing: .18em; }
.etf-topic-table__header span:first-child { padding-left: 75px; }
.etf-topic-row {
    grid-template-columns: 48px minmax(0, 1fr) 112px 155px;
    min-height: 86px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    transition: background .2s ease;
}
.etf-topic-row:last-child { border: 0; }
.etf-topic-row:hover { background: rgba(113, 69, 156, .07); }
.etf-topic-row__mark { width: 34px; height: 34px; display: grid; place-items: center; color: #89775a; border: 1px solid rgba(202, 156, 69, .18); }
.etf-topic-row__mark.is-pinned { color: #e1b55a; box-shadow: inset 0 0 18px rgba(218, 158, 56, .08); }
.etf-topic-row__title > a { display: block; color: #e5ddd1; font: 600 14px/1.4 Cinzel, serif; text-decoration: none; }
.etf-topic-row__title > a:hover { color: #efc568; }
.etf-topic-row__title small { display: block; margin-top: 5px; color: #77716a; }
.etf-topic-row__title small a { color: #aa9a84; text-decoration: none; }
.etf-topic-row__count, .etf-topic-row__last { display: flex; flex-direction: column; color: #746e67; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.etf-topic-row__count b, .etf-topic-row__last b { color: #c8bdad; font-size: 12px; font-weight: 600; text-transform: none; }
.etf-topic-table--nested { border: 0; box-shadow: none; }

.etf-posts { display: grid; gap: 14px; }
.etf-post {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    min-height: 210px;
    border: 1px solid rgba(201, 155, 69, .18);
    background: rgba(7, 7, 9, .9);
    box-shadow: 0 18px 48px rgba(0,0,0,.2);
    scroll-margin-top: 140px;
}
.etf-post.is-origin { border-color: rgba(209, 160, 68, .32); }
.etf-post__author { padding: 28px 20px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid rgba(201, 155, 69, .13); background: linear-gradient(180deg, rgba(112,67,153,.08), transparent); }
.etf-avatar { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; color: #edc66f; border: 1px solid rgba(224, 173, 79, .42); background: radial-gradient(circle, rgba(120, 73, 169, .24), rgba(6,6,8,.9) 70%); font: 700 17px Cinzel, serif; transform: rotate(45deg); }
.etf-avatar i { display: block; font-style: normal; transform: rotate(-45deg); }
.etf-post__author > a { margin-top: 4px; color: #dfd6c8; font: 700 13px Cinzel, serif; text-decoration: none; }
.etf-post__author small { margin-top: 7px; color: #867044; font-size: 8px; letter-spacing: .2em; }
.etf-post__body { min-width: 0; padding: 0 25px 18px; display: flex; flex-direction: column; }
.etf-post__body > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; color: #706b65; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.etf-post__body > header a { color: #9a7b45; text-decoration: none; }
.etf-post__content { flex: 1; padding: 24px 0; color: #c7c0b7; font: 400 14px/1.85 Inter, sans-serif; overflow-wrap: anywhere; }
.etf-edited { color: #69645e; font-style: italic; }
.etf-post__body > footer { min-height: 35px; display: flex; align-items: center; gap: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.045); }
.etf-post__body > footer form { margin: 0; }
.etf-like-count { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: #a37f43; font-size: 11px; }
.etf-text-action, .etf-report summary { padding: 0; border: 0; background: none; color: #867f76; font: 700 9px Inter, sans-serif; letter-spacing: .12em; text-decoration: none; cursor: pointer; }
.etf-text-action:hover, .etf-text-action.is-active, .etf-report summary:hover { color: #dfb45a; }
.etf-report { position: relative; }
.etf-report summary { list-style: none; }
.etf-report summary::-webkit-details-marker { display: none; }
.etf-report form { position: absolute; z-index: 8; right: 0; top: 24px; width: min(340px, 78vw); padding: 16px; border: 1px solid rgba(215,165,70,.3); background: #0b0a0d; box-shadow: 0 16px 42px #000; }
.etf-report label { display: block; margin-bottom: 8px; color: #bbb1a4; font-size: 11px; }
.etf-report textarea { padding: 10px; resize: vertical; }
.etf-report .btn { margin-top: 9px; width: 100%; }

.etf-reply, .etf-form-shell { margin: 20px 0 32px; }
.etf-reply { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(202,156,69,.2); background: rgba(7,7,9,.86); }
.etf-reply h2 { margin: 0; color: #eee6da; font: 700 22px Cinzel, serif; }
.etf-reply p { margin: 7px 0 0; color: #817b74; }
.etf-reply .etf-compose { width: 100%; }
.etf-form-shell { padding: clamp(26px, 5vw, 58px); }
.etf-form-shell > header { max-width: 790px; margin-bottom: 30px; }
.etf-compose { display: grid; gap: 11px; }
.etf-compose label { margin-top: 7px; color: #c5bbac; font: 700 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.etf-compose input { padding: 13px 15px; }
.etf-compose textarea { min-height: 150px; padding: 15px; resize: vertical; }
.etf-compose__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 7px; }
.etf-compose__foot > span { color: #6f6963; font-size: 10px; }
.etf-compose__foot > span.is-near-limit { color: #dfa94d; }
.etf-compose__foot > div { display: flex; gap: 8px; }
.etf-member .etf-avatar { flex: 0 0 82px; width: 82px; height: 82px; margin: 0; font-size: 22px; }

@media (max-width: 1080px) {
    .etf-hero { grid-template-columns: auto 1fr; }
    .etf-hero .etf-search { grid-column: 1 / -1; }
    .etf-layout { grid-template-columns: 1fr; }
    .etf-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .etf-hero { min-height: auto; grid-template-columns: 1fr; padding: 30px 22px; text-align: center; }
    .etf-hero__sigil { margin: 0 auto; }
    .etf-hero .etf-search { grid-column: auto; }
    .etf-search { flex-direction: column; }
    .etf-stats { grid-template-columns: 1fr; }
    .etf-stats div { border-right: 0; border-bottom: 1px solid rgba(204,159,72,.14); }
    .etf-board { grid-template-columns: 40px minmax(0, 1fr) 16px; padding: 15px; }
    .etf-board__numbers { display: none; }
    .etf-aside { grid-template-columns: 1fr; }
    .etf-board-head, .etf-topic-head, .etf-search-page, .etf-member { align-items: flex-start; flex-direction: column; }
    .etf-topic-table__header { display: none; }
    .etf-topic-row { grid-template-columns: 38px minmax(0, 1fr); }
    .etf-topic-row__count, .etf-topic-row__last { grid-column: 2; flex-direction: row; gap: 6px; }
    .etf-post { grid-template-columns: 1fr; }
    .etf-post__author { padding: 16px 20px; flex-direction: row; justify-content: flex-start; gap: 13px; border-right: 0; border-bottom: 1px solid rgba(201,155,69,.13); }
    .etf-post__author .etf-avatar { width: 42px; height: 42px; margin: 0; font-size: 13px; }
    .etf-post__author > a, .etf-post__author small { margin: 0; }
    .etf-post__author small { margin-left: auto; }
    .etf-post__body { padding: 0 17px 16px; }
    .etf-post__body > footer { flex-wrap: wrap; }
    .etf-reply { align-items: stretch; flex-direction: column; }
    .etf-compose__foot { align-items: stretch; flex-direction: column; }
    .etf-compose__foot > div { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
    .etf-board, .etf-board__arrow, .etf-search input, .etf-compose input, .etf-compose textarea { transition: none; }
}
