:root[data-theme=light] {
    --bg-primary: #fdfbf7;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --accent-color: #dc2626;
    --link-hover: #b91c1c;
    --bt-color-1: #D4AF37;
    --bt-color-2: #B8860B
}

:root[data-theme=dark] {
    --bg-primary: #0a0d15;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --accent-color: #ef4444;
    --link-hover: #fca5a5;
    --bt-color-1: #D4AF37;
    --bt-color-2: #B8860B
}

*, *::before, *::after {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary)
}

.bt-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0
}

.bt-hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative
}

.bt-hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--border-color);
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 18px;
    text-transform: uppercase
}

.bt-hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0 0 16px
}

.bt-hero-title span {
    background: linear-gradient(135deg, var(--bt-color-1), var(--bt-color-2));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text
}

.bt-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.7
}

.bt-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center
}

/* ===== Buttons ===== */
.bt-btn-primary, .bt-btn-ghost {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s
}

.bt-btn-primary {
    background: var(--bt-color-1);
    color: #fff
}

.bt-btn-primary:hover {
    opacity: .85
}

.bt-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary)
}

.bt-btn-ghost:hover {
    background: var(--border-color)
}

/* ===== Sections ===== */
.bt-lp-section {
    border-top: 1px solid var(--border-color);
    padding: 36px 0 40px
}

.bt-page.bt-result-only > .bt-lp-section {
    display: none
}

.bt-lp-container {
    max-width: 1080px;
    margin: 0 auto
}

.bt-section-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px
}

.bt-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px
}

.bt-section-desc {
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.7;
    margin: 0 0 24px
}

/* ===== Intro Cards ===== */
.bt-intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

@media (max-width: 768px) {
    .bt-intro-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.bt-intro-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 18px;
    background: var(--bg-primary)
}

.bt-intro-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px
}

.bt-intro-icon {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--border-color)
}

.bt-intro-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0
}

.bt-intro-card p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0
}


.bt-bagua-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px
}

@media (max-width: 767px) {
    .bt-bagua-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.bt-bagua-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    background: var(--bg-primary);
    transition: transform .2s
}

.bt-bagua-card:hover {
    transform: translateY(-2px)
}

.bt-bagua-symbol {
    font-size: 2rem;
    margin-bottom: 6px
}

.bt-bagua-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem
}

.bt-bagua-han {
    color: var(--q-color);
    font-size: .88rem;
    font-weight: 600;
    margin: 4px 0
}

.bt-bagua-direction, .bt-bagua-element, .bt-bagua-family {
    font-size: .82rem;
    color: var(--text-secondary)
}

/* ===== Ngũ Hành ===== */
.bt-wuxing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

@media (max-width: 640px) {
    .bt-wuxing-grid {
        grid-template-columns: 1fr
    }
}

.bt-wuxing-box {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: var(--bg-primary)
}

.bt-wuxing-label {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: .03em
}

.bt-wuxing-sinh {
    color: #22c55e
}

.bt-wuxing-khac {
    color: #ef4444
}

.bt-wuxing-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bt-wuxing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--text-primary)
}

.bt-wx-from {
    font-weight: 700;
    min-width: 42px
}

.bt-wx-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
    min-width: 20px;
    text-align: center
}

.bt-wx-to {
    font-weight: 700;
    min-width: 42px
}

.bt-wx-desc {
    color: var(--text-secondary);
    font-size: .85rem
}

.bt-dir-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

@media (max-width: 640px) {
    .bt-dir-wrap {
        grid-template-columns: 1fr
    }
}

.bt-dir-group {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bt-dir-group-title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .03em
}

.bt-dir-good-title {
    color: #22c55e
}

.bt-dir-bad-title {
    color: #ef4444
}

.bt-dir-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bt-direction-card {
    border-radius: 12px;
    padding: 16px 18px
}

.bt-dir-good {
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .2)
}

.bt-dir-bad {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .2)
}

.bt-direction-han {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px
}

.bt-direction-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary)
}

.bt-direction-desc {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px
}

.bt-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.bt-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-primary)
}

.bt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bt-color-1);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    flex-shrink: 0
}

.bt-step-item h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px
}

.bt-step-item p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0
}

/* ===== Applications ===== */
.bt-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

@media (max-width: 640px) {
    .bt-app-grid {
        grid-template-columns: 1fr
    }
}

.bt-app-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: var(--bg-primary)
}

.bt-app-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px
}

.bt-app-rule {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 8px
}

.bt-app-card p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0
}

/* ===== History ===== */
.bt-history-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

@media (max-width: 768px) {
    .bt-history-list {
        grid-template-columns: 1fr
    }
}

.bt-history-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 18px;
    background: var(--bg-primary)
}

.bt-history-item span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 10px
}

.bt-history-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px
}

.bt-history-item p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0
}

.bt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bt-faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary)
}

.bt-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    font-size: .95rem;
    user-select: none
}

button.bt-faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left
}

.bt-faq-chevron {
    transition: transform .2s;
    font-size: .8rem;
    color: var(--text-secondary)
}

.bt-faq-item.open .bt-faq-chevron {
    transform: rotate(180deg)
}

.bt-faq-a {
    display: none;
    padding: 0 18px 16px;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.7
}

.bt-faq-item.open .bt-faq-a {
    display: block
}

/* ===== Mệnh Quái ===== */
.bt-form-wrap {
    max-width: 1120px;
    margin: 0 auto 36px;
}

.bt-form-title {
    text-align: center;
    margin: 0 0 20px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.bt-form-inline {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 30px;
    border-radius: 16px;
}

.bt-form-group-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.bt-label-inline {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
    color: var(--text-primary);
}

.bt-label-inline span {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0;
}

.bt-label-inline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px
}

.bt-input-inline, .bt-select-inline {
    padding: 12px 14px;
    border: 1px solid rgba(184, 138, 43, .2);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.bt-input-inline.is-error,
.bt-select-inline.is-error {
    border-color: var(--accent-color);
}

.bt-input-inline {
    min-width: 180px;
    font-size: 16px;
}

.bt-compass-input-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 6px
}

.bt-compass-input-row .bt-input-inline {
    width: 100%;
    min-width: 0
}

.bt-btn-compass {
    min-width: 58px;
    padding: 0 12px;
    border: 1px solid rgba(184, 138, 43, .45);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer
}

.bt-btn-compass:disabled {
    cursor: wait;
    opacity: .65
}

.bt-btn-compass:focus-visible {
    outline: 2px solid #b8862c;
    outline-offset: 2px
}

.bt-select-inline {
    min-width: 130px;
    font-size: 16px;
}

.bt-btn-submit-inline {
    padding: 12px 22px;
    background: linear-gradient(180deg, #c88f2a, #a86d12);
    color: #fff;
    border: 1px solid #8f5d0e;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(168, 109, 18, .18);
    font-size: 15px;
}

.bt-error-inline {
    color: #b91c1c;
    font-size: 14px;
    text-align: left;
    width: 100%;
    display: inline-block;
    margin-left: 8px;
    margin-top: 8px;
}

.bt-input-err-msg {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: var(--accent-color);
    font-size: 13px;
    line-height: 1.35;
}


@media (max-width: 767px) {
    .bt-btn-submit-inline, .bt-form-group-inline {
        width: 100%;
        margin-top: 8px;
    }

    .bt-form-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px 0 8px;
        text-align: left;
    }

    .bt-form-inline > div {
        width: 100%;
    }

    .bt-label-inline {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .bt-input-inline, .bt-select-inline {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .bt-select-inline {
        min-width: 100%;
        height: 45px;
    }

    .bt-btn-submit-inline {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
    }
}

/* ===== Bat Trach result from btr HTML artboard ===== */
.bt-result-container {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.bt-result-shell {
    width: 100%;
    max-width: 1120px;
    margin: 34px auto 0;
}

.bt-result-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto
}

.bt-result-tab {
    margin-bottom: -1px;
    padding: 12px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, border-color .2s
}

.bt-result-tab:hover {
    color: var(--text-primary)
}

.bt-result-tab:focus-visible {
    outline: 2px solid #b8862c;
    outline-offset: -2px
}

.bt-result-tab.active {
    border-bottom-color: #b8862c;
    color: #b8862c
}

.bt-result-tab-pane {
    display: none
}

.bt-result-tab-pane.active {
    display: block;
    animation: bt-result-tab-in .35s ease-out
}

@keyframes bt-result-tab-in {
    from {
        opacity: 0;
        transform: translateY(8px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bt-interpretation {
    max-width: 100%;
    margin: 0 auto;
    color: var(--text-primary)
}

.bt-interpret-section {
    padding: 12px 0 30px;
    border-bottom: 1px solid var(--border-color)
}

.bt-interpret-section + .bt-interpret-section {
    padding-top: 30px
}

.bt-interpret-section > h2,
.bt-interpret-heading h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.35
}

.bt-interpret-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px
}

.bt-interpret-heading p {
    margin: 5px 0 0;
    color: var(--text-secondary);
    font-size: .92rem
}

.bt-interpret-gua {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    place-items: center;
    border: 1px solid #b8862c;
    border-radius: 50%;
    color: #9c6718;
    font-size: 36px
}

.bt-interpret-summary {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color)
}

.bt-interpret-summary article {
    padding: 18px;
    border-right: 1px solid var(--border-color)
}

.bt-interpret-summary article:last-child {
    border-right: 0
}

.bt-interpret-summary h3,
.bt-interpret-direction h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: .98rem;
    line-height: 1.35
}

.bt-interpret-summary p,
.bt-interpret-direction p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.65
}

.bt-interpret-group-note {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.65
}

.bt-interpret-house-summary {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.6
}

.bt-interpret-house-summary.is-compatible {
    color: #0b6036
}

.bt-interpret-house-summary.is-incompatible,
.bt-interpret-house-warning {
    color: #9e271b
}

.bt-interpret-house-warning {
    margin: 10px 0 0;
    font-size: .88rem;
    line-height: 1.5
}

.bt-interpret-direction-list {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin-top: 14px
}

.bt-interpret-direction {
    padding: 17px 0 18px;
    border-top: 1px solid var(--border-color)
}

.bt-interpret-direction header {
    margin: 0
}

.bt-interpret-direction.is-good h3 {
    color: #0b6036
}

.bt-interpret-direction.is-bad h3 {
    color: #9e271b
}

.bt-interpret-direction header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600
}

.bt-interpret-guidance strong {
    color: var(--text-primary)
}

.bt-interpret-disclaimer {
    margin-top: 28px;
    padding: 8px 20px;
    border-left: 3px solid #b8862c;
    background: rgba(184, 134, 44, .08);
    font-size: 15px;
}

:root[data-theme=dark] .bt-interpret-gua,
:root[data-theme=dark] .bt-result-tab.active {
    color: #d4af37
}

:root[data-theme=dark] .bt-interpret-direction.is-good header span,
:root[data-theme=dark] .bt-interpret-direction.is-good h3 {
    color: #72d5a0
}

:root[data-theme=dark] .bt-interpret-direction.is-bad header span,
:root[data-theme=dark] .bt-interpret-direction.is-bad h3 {
    color: #f08b84
}

@media (max-width: 768px) {
    .bt-interpret-summary,
    .bt-interpret-direction-list {
        grid-template-columns:1fr
    }

    .bt-interpret-summary article {
        border-right: 0;
        border-bottom: 1px solid var(--border-color)
    }

    .bt-interpret-summary article:last-child {
        border-bottom: 0
    }

}

.bt-result-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    margin-top: 30px;
}

.bt-btn-download,
.bt-btn-download-result {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #8f651f;
    border-radius: 12px;
    background: linear-gradient(180deg, #d8b25c, #b8862c);
    color: #fff9e7;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(90, 63, 14, .18), inset 0 1px 0 rgba(255, 255, 255, .28);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    user-select: none;
}

.bt-btn-download:hover,
.bt-btn-download-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(90, 63, 14, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.bt-btn-download:disabled,
.bt-btn-download-result:disabled {
    opacity: .72;
    cursor: wait;
    transform: none;
}

.bt-btn-download-icon {
    font-size: 16px;
    line-height: 1;
}

.bt-download-error {
    font-size: 14px;
    color: #9e271b;
    background: rgba(255, 248, 230, .92);
    border: 1px solid rgba(158, 39, 27, .25);
    border-radius: 10px;
    padding: 10px 12px;
}

.bt-report-scale-wrap {
    width: 100%;
    overflow: hidden;
}

.bt-report-capture {
    transform-origin: top left;
}

.btr-poster {
    --paper: #f4ead0;
    --paper2: #fff8e8;
    --ink: #2f230f;
    --gold: #b9872d;
    --gold2: #e7c46d;
    --green: #0b6036;
    --green2: #0d4d2d;
    --red: #ad291f;
    --red2: #7c1915;
    --dark: #062e24;
    width: 1120px;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 7%, rgba(255, 255, 255, .72), transparent 25%),
    radial-gradient(circle at 85% 73%, rgba(168, 112, 29, .07), transparent 24%),
    repeating-linear-gradient(0deg, rgba(103, 67, 18, .018) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #fffaf0 0%, #f1e2bd 50%, #fff8e6 100%);
    border: 4px double var(--gold);
    padding: 20px;
    color: var(--ink);
    transform: scale(var(--bt-report-scale, 1));
}

.btr-poster:before, .btr-poster:after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 20
}

.btr-poster:before {
    inset: 9px;
    border: 2px solid rgba(178, 125, 37, .85)
}

.btr-poster:after {
    inset: 15px;
    border: 1px solid rgba(178, 125, 37, .5)
}

.btr-corner {
    position: absolute;
    width: 58px;
    height: 58px;
    z-index: 21
}

.btr-tl {
    left: 5px;
    top: 5px;
    border-left: 7px double var(--gold);
    border-top: 7px double var(--gold)
}

.btr-tr {
    right: 5px;
    top: 5px;
    border-right: 7px double var(--gold);
    border-top: 7px double var(--gold)
}

.btr-bl {
    left: 5px;
    bottom: 5px;
    border-left: 7px double var(--gold);
    border-bottom: 7px double var(--gold)
}

.btr-br {
    right: 5px;
    bottom: 5px;
    border-right: 7px double var(--gold);
    border-bottom: 7px double var(--gold)
}

.btr-scroll {
    position: absolute;
    top: 36px;
    width: 58px;
    padding: 10px 6px;
    text-align: center;
    border: 2px solid var(--gold);
    background: rgba(255, 249, 232, .9);
    font-size: 25px;
    line-height: 1.15;
    z-index: 3;
    writing-mode: vertical-rl
}

.btr-scroll.btr-left {
    left: 27px
}

.btr-scroll.btr-right {
    right: 27px
}

.btr-scroll small {
    display: block;
    color: #b9291f;
    font-size: 18px;
    margin-top: 7px
}

.btr-hero {
    width: 78%;
    margin: 0 auto 14px;
    min-height: 185px;
    display: grid;
    grid-template-columns:150px 1fr;
    align-items: center;
    gap: 26px;
    padding: 22px 34px;
    background: linear-gradient(180deg, #08382c, #06291f);
    border: 5px double var(--gold2);
    box-shadow: inset 0 0 0 4px #174b3c, 0 4px 0 rgba(74, 46, 8, .2);
    position: relative;
    z-index: 2
}

.btr-hero:before, .btr-hero:after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--gold2)
}

.btr-hero:before {
    left: 8px;
    top: 8px;
    border-left: 3px solid;
    border-top: 3px solid
}

.btr-hero:after {
    right: 8px;
    bottom: 8px;
    border-right: 3px solid;
    border-bottom: 3px solid
}

.btr-gua {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold2);
    display: grid;
    place-items: center;
    color: #fff3d2;
    font-size: 72px;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .025)
}

.btr-hero-content {
    min-width: 0
}

.btr-hero-title {
    color: #e7c46d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 9px;
    text-transform: uppercase
}

.btr-hero-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap
}

.btr-kicker {
    color: #f0d184;
    font-size: 30px;
    font-weight: 700
}

.btr-main-title {
    color: #f9dda0;
    font-size: 1.8rem;
    line-height: .95;
    font-weight: 700;
    text-transform: uppercase;
}

.btr-subtitle {
    color: #efc970;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 11px
}

.btr-subtitle span {
    color: #d8b65f;
    font-weight: 600
}

.btr-info {
    width: 86%;
    margin: 0 auto 14px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--gold);
    background: rgba(255, 251, 239, .88);
    padding: 13px 17px 12px
}

.btr-info-grid {
    display: grid;
    grid-template-columns:1.5fr 1fr 1fr .7fr;
    border-bottom: 1px solid rgba(94, 58, 10, .38);
    padding-bottom: 11px
}

.btr-info-item {
    padding: 0 14px;
    border-right: 1px solid rgba(94, 58, 10, .35)
}

.btr-info-item:last-child {
    border-right: 0
}

.btr-info-label {
    color: #765521;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.btr-info-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 4px;
    overflow-wrap: anywhere
}

.btr-note {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 18px;
    line-height: 1.4;
    padding: 10px 14px 0
}

.btr-note .btr-lotus {
    font-size: 32px;
    color: #8e6420
}

.btr-note-url {
    color: #9c6718;
    font-weight: 700
}

.btr-house {
    width: 86%;
    margin: 0 auto 14px;
    position: relative;
    z-index: 2;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 10px 0 11px
}

.btr-house h2 {
    margin: 0 0 9px;
    color: #765521;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase
}

.btr-house-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

.btr-house-grid > div {
    min-width: 0;
    padding: 0 10px;
    border-right: 1px solid rgba(94, 58, 10, .35)
}

.btr-house-grid > div:last-child {
    border-right: 0
}

.btr-house-grid span,
.btr-house-grid strong {
    display: block;
    text-align: center
}

.btr-house-grid span {
    color: #765521;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase
}

.btr-house-grid strong {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.3
}

.btr-house-grid .is-compatible {
    color: #0b6036
}

.btr-house-grid .is-incompatible {
    color: #9e271b
}

.btr-house-warning {
    margin: 10px 0 0;
    color: #9e271b;
    font-size: 13px;
    text-align: center
}

.btr-diagram-row {
    display: grid;
    grid-template-columns:150px minmax(0, 1fr) 190px;
    gap: 22px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 8px
}

.btr-compass-box {
    text-align: center
}

.btr-compass {
    font-size: 92px;
    color: #9a702b;
    line-height: 1
}

.btr-legend {
    margin-top: 28px;
    border: 2px solid var(--gold);
    background: rgba(255, 249, 232, .86);
    padding: 12px;
    font-size: 18px;
    line-height: 1.45;
    text-align: left
}

.btr-legend-line {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 8px 0
}

.btr-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: 3px;
    flex: 0 0 auto
}

.btr-g {
    background: var(--green)
}

.btr-r {
    background: var(--red)
}

.btr-chart-wrap {
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: visible
}

.btr-chart {
    width: min(600px, 100%);
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 0 rgba(100, 63, 10, .18))
}

.btr-wedge-cat {
    fill: #0b6036
}

.btr-wedge-hung {
    fill: #a92920
}

.btr-du-panel {
    border: 2px solid var(--gold);
    background: rgba(255, 250, 237, .9);
    padding: 12px
}

.btr-du-head {
    margin: -35px 8px 10px;
    background: var(--dark);
    color: #f2d487;
    border: 2px solid var(--gold);
    padding: 3px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.btr-du-row {
    display: grid;
    grid-template-columns:30px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(87, 58, 18, .25);
    font-size: 18px
}

.btr-du-row:last-child {
    border-bottom: 0
}

.btr-du-row.btr-good span:first-child {
    color: var(--green)
}

.btr-du-row.btr-bad span:first-child {
    color: var(--red)
}

.btr-section-title {
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 2px solid var(--gold);
    margin-top: 0;
    padding-top: 6px
}

.btr-section-title h2 {
    font-size: 34px;
    margin: 0 0 5px
}

.btr-section-title p {
    font-size: 18px;
    margin: 0 0 10px
}

.btr-cards {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px;
    align-items: start;
    position: relative;
    z-index: 2
}

.btr-card {
    border: 2px solid var(--gold);
    background: rgba(255, 249, 234, .9);
    padding: 12px;
    min-height: 155px
}

.btr-card-head {
    display: grid;
    grid-template-columns:54px 1fr;
    gap: 10px;
    align-items: start
}

.btr-card-icon {
    font-size: 43px;
    color: #785116;
    line-height: 1
}

.btr-card h3 {
    font-size: 22px;
    margin: 0 0 4px
}

.btr-card p {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 10px
}

.btr-kitchen-note {
    color: #5d4727;
    font-size: 14px !important;
    margin: 0 0 8px !important
}

.btr-pills {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px
}

.btr-pill {
    background: linear-gradient(#176a3e, #0d4c2e);
    color: #fff4cf;
    border: 1px solid #d5b15b;
    border-radius: 5px;
    text-align: center;
    padding: 6px 3px;
    font-size: 14px;
    line-height: 1.18
}

.btr-pill span {
    display: block
}

.btr-pill b {
    display: block;
    font-size: 15px;
    margin-top: 2px
}

.btr-footer {
    text-align: center;
    color: #8e6422;
    font-size: 38px;
    padding-top: 10px;
    position: relative;
    z-index: 2
}
