:root {
    --bg-deep: #050507;
    --bg-soft: #0b0b0f;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --surface-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #a7a7ae;
    --text-muted: #77777f;
    --line: rgba(255, 255, 255, 0.17);
    --line-strong: rgba(255, 255, 255, 0.34);
    --white: #ffffff;
    --shadow-deep: rgba(0, 0, 0, 0.44);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: all 0.28s var(--ease-out);
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 88% 7%, rgba(255, 255, 255, 0.105), transparent 27%),
        radial-gradient(circle at 5% 82%, rgba(158, 158, 168, 0.085), transparent 27%),
        linear-gradient(145deg, #030305 0%, var(--bg-soft) 48%, var(--bg-deep) 100%);
    font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(16px);
}

body::before {
    top: -18%;
    right: -12%;
    width: 54vw;
    height: 54vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}

body::after {
    bottom: -22%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(144, 144, 154, 0.1), transparent 70%);
}

::selection {
    color: #050507;
    background: rgba(255, 255, 255, 0.9);
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* Shared liquid-glass surface */
.glass-card,
.bento-item,
.level-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow:
        0 18px 55px var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 18px 2px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
}

.glass-card::before,
.bento-item::before,
.level-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.glass-card::after,
.bento-item::after,
.level-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 48%, rgba(255, 255, 255, 0.18));
}

/* Navigation */
.navbar {
    position: fixed;
    z-index: 1000;
    top: 16px;
    left: 50%;
    width: min(1120px, calc(100% - 32px));
    height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(9, 9, 13, 0.68);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    transform: translateX(-50%);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 14%;
    left: 14%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    pointer-events: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 0 10px 0 18px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    min-width: 142px;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.nav-logo img {
    height: 34px;
    width: auto;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 14px rgba(0, 0, 0, 0.22);
    filter: grayscale(1) contrast(1.12);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    color: var(--text-primary);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.58;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-links a[aria-current="page"]:not(.nav-cta) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.nav-links a[aria-current="page"]:not(.nav-cta)::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

.nav-cta {
    min-height: 38px !important;
    margin-left: 8px;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 12px !important;
    color: #050507 !important;
    background: #f5f5f7;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 24px rgba(255, 255, 255, 0.1), inset 0 1px 0 var(--white);
    text-shadow: none;
    opacity: 1 !important;
}

.nav-cta:hover {
    color: #050507 !important;
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 32px rgba(255, 255, 255, 0.22), inset 0 1px 0 var(--white);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Home hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 112px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-content > img {
    width: 180px;
    height: auto;
    margin-bottom: 40px;
    filter: grayscale(1) drop-shadow(0 0 24px rgba(255, 255, 255, 0.22)) !important;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #e8e8eb;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-title {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.hero-title span {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #8d8d96 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .accent-text {
    background: linear-gradient(180deg, #ededf0 0%, #66666f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* Page rhythm */
.page-main {
    padding-top: 132px;
}

.page-section {
    padding-bottom: 108px;
}

.page-section + .page-section {
    padding-top: 16px;
}

.section-title {
    position: relative;
    margin-bottom: 54px;
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin: 22px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    opacity: 0.7;
}

/* Bento layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: 24px;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 40px;
    border-radius: 28px;
    text-align: left;
    transition: var(--transition);
}

.bento-item:hover,
.level-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 0 20px rgba(255, 255, 255, 0.06);
    transform: translateY(-7px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
}

.bento-medium {
    grid-column: span 2;
}

.bento-item .icon {
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    color: var(--white);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.24));
}

.bento-large .icon {
    position: absolute;
    top: 48px;
    left: 48px;
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    color: #e8e8ec;
}

.bento-item h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.feature-list {
    padding: 0;
    margin-top: 24px;
    color: var(--text-secondary);
    list-style: none;
    font-size: 15px;
}

.feature-list li + li {
    margin-top: 8px;
}

.bento-item ul,
.level-card ul {
    color: var(--text-secondary) !important;
}

.card-featured {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.card-featured h3 {
    color: var(--text-primary);
}

/* CTA cards */
.cta-section {
    padding-bottom: 120px;
    text-align: center;
}

.cta-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.card-copy {
    width: 100%;
    text-align: center;
}

.card-copy h3 {
    margin-bottom: 12px;
}

.card-copy p {
    margin-bottom: 30px;
}

/* Assessment levels */
.level-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.level-card {
    min-width: 0;
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.level-card h4 {
    margin-bottom: 12px;
    color: #d7d7dc;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.level-card h3 {
    color: var(--text-primary);
    font-size: 25px;
}

.level-card p {
    margin-top: 16px;
    color: var(--text-secondary);
}

.level-card ul {
    padding: 0;
    margin-top: 24px;
    list-style: none;
    font-size: 15px;
}

.level-card li + li {
    margin-top: 8px;
}

.level-card--elite {
    border-color: rgba(255, 255, 255, 0.38);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
}

.config-grid {
    margin-bottom: 0;
}

.config-card {
    min-height: 210px;
    padding: 40px;
}

.config-card h3 {
    color: var(--text-primary);
    font-size: 20px;
}

.rules-card {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.085);
}

.rules-card > h3 {
    margin-bottom: 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.rule-title {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.rules-grid p {
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn:active,
.nav-cta:active {
    transform: scale(0.97);
}

.btn-main {
    color: #050507;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 var(--white);
}

.btn-main:hover {
    color: #050507;
    background: var(--white);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 255, 255, 0.15), inset 0 1px 0 var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 26px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 0 26px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.56);
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* Reveal motion */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        height: 60px;
        border-radius: 19px;
    }

    .nav-container {
        padding: 0 9px 0 13px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        right: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        width: min(260px, calc(100vw - 24px));
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 19px;
        background: rgba(9, 9, 13, 0.86);
        gap: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.96);
        transform-origin: top right;
        transition: transform 0.3s var(--ease-out), opacity 0.3s ease, visibility 0.3s;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(24px) saturate(140%);
        -webkit-backdrop-filter: blur(24px) saturate(140%);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        justify-content: flex-start;
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 15px;
    }

    .nav-links a[aria-current="page"]:not(.nav-cta)::after {
        right: auto;
        bottom: 50%;
        left: 5px;
        width: 3px;
        height: 18px;
        transform: translateY(50%);
    }

    .nav-cta {
        justify-content: center !important;
        margin: 7px 0 0;
        border-radius: 12px !important;
    }

    .nav-logo img {
        height: 30px;
    }

    .hero {
        min-height: auto;
        padding: 148px 0 88px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        padding: 0 16px;
        margin-bottom: 32px;
        font-size: 16px;
    }

    .hero-content > img {
        width: 120px !important;
        margin-bottom: 24px !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 24px;
        gap: 16px;
    }

    .btn {
        width: 100%;
    }

    .page-main {
        padding-top: 112px;
    }

    .page-section {
        padding-bottom: 84px;
    }

    .section-title {
        margin-bottom: 40px;
        font-size: 36px;
    }

    .bento-grid,
    .config-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 84px;
    }

    .bento-item,
    .config-card {
        width: 100%;
        padding: 32px 24px;
    }

    .bento-large {
        min-height: 330px;
    }

    .bento-large .icon {
        position: static;
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }

    .level-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .level-card {
        padding: 32px 24px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-section {
        padding-bottom: 88px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .container,
    .nav-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .hero-title {
        font-size: 36px;
    }
}

/* Ambient background */
body {
    position: relative;
    isolation: isolate;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.ambient-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    contain: paint;
    background: radial-gradient(circle 360px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(255, 255, 255, 0.075), transparent 72%);
}

.ambient-grid,
.ambient-stars,
.ambient-orb {
    position: absolute;
    pointer-events: none;
}

.ambient-grid {
    inset: -35%;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 72%, transparent 100%);
    transform: perspective(800px) rotateX(58deg) rotateZ(-10deg) translateY(-12%);
    animation: grid-drift 22s linear infinite;
}

.ambient-stars {
    inset: 0;
    opacity: 0.42;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.5px);
    background-position: 12% 20%, 68% 48%;
    background-size: 170px 170px, 230px 230px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 78%, transparent);
    animation: star-drift 26s ease-in-out infinite alternate;
}

.ambient-orb {
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.48;
    mix-blend-mode: screen;
    will-change: transform;
}

.ambient-orb--one {
    top: 8%;
    right: 12%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 68%);
    animation: orb-float-one 12s ease-in-out infinite alternate;
}

.ambient-orb--two {
    bottom: 4%;
    left: 8%;
    width: 330px;
    height: 330px;
    background: radial-gradient(circle at 62% 40%, rgba(174, 174, 186, 0.28), transparent 70%);
    animation: orb-float-two 15s ease-in-out infinite alternate;
}

.ambient-orb--three {
    top: 48%;
    left: 43%;
    width: 170px;
    height: 170px;
    opacity: 0.2;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 70%);
    animation: orb-pulse 8s ease-in-out infinite;
}

/* Page loading overlay */
.page-loader {
    position: fixed;
    z-index: 5000;
    inset: 0;
    contain: paint;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.085), transparent 24%),
        #050507;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.page-loader__inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    width: min(220px, 70vw);
}

.page-loader__mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 34px rgba(255, 255, 255, 0.12);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.08em;
    animation: loader-breathe 1.2s ease-in-out infinite alternate;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.page-loader__line {
    width: 100%;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-loader__line span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    animation: loader-progress 1.15s var(--ease-out) infinite;
}

.page-loader__label {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

body.is-loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Pointer-responsive cards */
[data-tilt] {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --card-x: 50%;
    --card-y: 50%;
    transform-style: preserve-3d;
}

[data-tilt].is-tilting {
    will-change: transform;
}

[data-tilt]:hover {
    background: radial-gradient(circle at var(--card-x) var(--card-y), rgba(255, 255, 255, 0.11), transparent 42%), var(--surface-hover);
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px);
}

.card-featured[data-tilt]:hover {
    background: radial-gradient(circle at var(--card-x) var(--card-y), rgba(255, 255, 255, 0.14), transparent 44%), linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
}

@keyframes grid-drift {
    from { transform: perspective(800px) rotateX(58deg) rotateZ(-10deg) translate3d(0, -12%, 0); }
    to { transform: perspective(800px) rotateX(58deg) rotateZ(-10deg) translate3d(72px, -6%, 0); }
}

@keyframes star-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 12px, 0) scale(1.03); }
}

@keyframes orb-float-one {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-46px, 34px, 0) scale(1.12); }
}

@keyframes orb-float-two {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(42px, -28px, 0) scale(1.08); }
}

@keyframes orb-pulse {
    0%, 100% { opacity: 0.12; transform: scale(0.88); }
    50% { opacity: 0.28; transform: scale(1.12); }
}

@keyframes loader-breathe {
    from { transform: translateY(0) scale(0.96); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 24px rgba(255, 255, 255, 0.08); }
    to { transform: translateY(-5px) scale(1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 42px rgba(255, 255, 255, 0.2); }
}

@keyframes loader-progress {
    from { transform: translateX(-130%); }
    to { transform: translateX(300%); }
}

/* Hidden tabs are not visible, so their decorative animation can wait. */
html.page-hidden .ambient-grid,
html.page-hidden .ambient-stars,
html.page-hidden .ambient-orb,
html.page-hidden .page-loader__mark,
html.page-hidden .page-loader__line span {
    animation-play-state: paused;
}

/* User-controlled reduced motion: full motion remains the default. */
html.reduce-motion {
    scroll-behavior: auto;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
}

html.reduce-motion body::before,
html.reduce-motion body::after {
    filter: blur(8px);
    opacity: 0.72;
}

html.reduce-motion .ambient-background {
    background: radial-gradient(circle 280px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(255, 255, 255, 0.045), transparent 72%);
}

html.reduce-motion .ambient-grid,
html.reduce-motion .ambient-stars,
html.reduce-motion .ambient-orb,
html.reduce-motion .page-loader__mark,
html.reduce-motion .page-loader__line span {
    animation: none;
}

html.reduce-motion .ambient-grid {
    opacity: 0.14;
}

html.reduce-motion .ambient-stars {
    opacity: 0.24;
}

html.reduce-motion .ambient-orb {
    filter: blur(8px);
    opacity: 0.26;
    mix-blend-mode: screen;
}

html.reduce-motion .glass-card,
html.reduce-motion .bento-item,
html.reduce-motion .level-card,
html.reduce-motion .navbar,
html.reduce-motion .nav-links,
html.reduce-motion .hero-tag,
html.reduce-motion .btn-secondary,
html.reduce-motion .page-loader__mark {
    backdrop-filter: blur(14px) saturate(112%);
    -webkit-backdrop-filter: blur(14px) saturate(112%);
}

html.reduce-motion [data-tilt] {
    transform-style: flat;
    will-change: auto;
}

html.reduce-motion [data-tilt]:hover {
    transform: translateY(-4px);
}

/* Shared site preference controls injected by script.js. */
.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;
}

.nav-links {
    margin-left: auto;
}

.site-preferences {
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 6px;
}

.preference-button-wrap {
    position: relative;
    display: inline-flex;
}

.preference-button-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: min(250px, calc(100vw - 32px));
    height: 10px;
    pointer-events: auto;
}

/* CSS.gg icons: play-pause, sun and moon, embedded from the official Vanilla CSS definitions. */
.cssgg-icon {
    flex: 0 0 auto;
    color: currentColor;
}

.gg-play-pause {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 8px;
    height: 10px;
    border-left: 3px solid;
    border-right: 3px solid;
}

.gg-sun {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs, 1));
    width: 24px;
    height: 24px;
    background:
        linear-gradient(to bottom, currentColor 4px, transparent 0) no-repeat 5px -6px / 2px 6px,
        linear-gradient(to bottom, currentColor 4px, transparent 0) no-repeat 5px 14px / 2px 6px,
        linear-gradient(to bottom, currentColor 4px, transparent 0) no-repeat -8px 5px / 6px 2px,
        linear-gradient(to bottom, currentColor 4px, transparent 0) no-repeat 14px 5px / 6px 2px;
    border: 6px solid transparent;
    border-radius: 100%;
    box-shadow: inset 0 0 0 2px;
}

.gg-sun::after,
.gg-sun::before {
    content: '';
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 24px;
    height: 2px;
    border-right: 4px solid;
    border-left: 4px solid;
    left: -6px;
    top: 5px;
}

.gg-sun::before {
    transform: rotate(-45deg);
}

.gg-sun::after {
    transform: rotate(45deg);
}

.preference-toggle .gg-play-pause {
    --ggs: 1.35;
}

.preference-toggle .gg-sun {
    --ggs: 0.88;
}

.preference-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-primary);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: var(--transition);
}

.preference-toggle:hover,
.preference-toggle:focus-visible,
.preference-toggle[aria-pressed="true"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    outline: none;
}

.preference-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.preference-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1005;
    width: min(250px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(9, 9, 13, 0.9);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 12px;
    line-height: 1.55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s var(--ease-out), visibility 0.22s;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.preference-button-wrap:hover .preference-tooltip,
.preference-button-wrap:focus-within .preference-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        margin-left: auto;
    }

    .site-preferences {
        margin-left: 6px;
        gap: 4px;
    }

    .preference-tooltip {
        width: min(240px, calc(100vw - 24px));
    }
}

/* Light theme: color-only overrides; layout, spacing and effects remain unchanged. */
html.theme-light {
    color-scheme: light;
    --bg-deep: #e9ecef;
    --bg-soft: #f6f7f8;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.72);
    --surface-hover: rgba(255, 255, 255, 0.78);
    --text-primary: #171a20;
    --text-secondary: #515963;
    --text-muted: #7a838e;
    --line: rgba(26, 32, 40, 0.16);
    --line-strong: rgba(26, 32, 40, 0.32);
    --white: #11151a;
    --shadow-deep: rgba(30, 37, 46, 0.18);
}

html.theme-light body {
    background:
        radial-gradient(circle at 88% 7%, rgba(255, 255, 255, 0.92), transparent 27%),
        radial-gradient(circle at 5% 82%, rgba(158, 168, 180, 0.18), transparent 27%),
        linear-gradient(145deg, #e3e6ea 0%, var(--bg-soft) 48%, var(--bg-deep) 100%);
}

html.theme-light body::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.78), transparent 68%);
}

html.theme-light body::after {
    background: radial-gradient(circle, rgba(143, 151, 161, 0.2), transparent 70%);
}

html.theme-light ::selection {
    color: #f8fafc;
    background: rgba(37, 43, 51, 0.78);
}

html.theme-light .glass-card,
html.theme-light .bento-item,
html.theme-light .level-card {
    box-shadow:
        0 18px 55px var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        inset 0 -1px 0 rgba(24, 30, 38, 0.08),
        inset 0 0 18px 2px rgba(255, 255, 255, 0.42);
}

html.theme-light .glass-card::before,
html.theme-light .bento-item::before,
html.theme-light .level-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
}

html.theme-light .glass-card::after,
html.theme-light .bento-item::after,
html.theme-light .level-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), transparent 48%, rgba(37, 44, 52, 0.18));
}

html.theme-light .navbar {
    border-color: rgba(25, 31, 39, 0.18);
    background: rgba(255, 255, 255, 0.64);
    box-shadow:
        0 18px 50px rgba(38, 45, 54, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -1px 0 rgba(28, 34, 42, 0.08);
}

html.theme-light .navbar::before {
    background: linear-gradient(90deg, transparent, rgba(30, 36, 44, 0.32), transparent);
}

html.theme-light .nav-links a:hover {
    background: rgba(24, 30, 38, 0.07);
}

html.theme-light .nav-links a[aria-current="page"]:not(.nav-cta) {
    background: rgba(24, 30, 38, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 4px 16px rgba(38, 45, 54, 0.1);
}

html.theme-light .nav-links a[aria-current="page"]:not(.nav-cta)::after {
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(37, 43, 51, 0.24);
}

html.theme-light .nav-cta {
    color: #f7f8fa !important;
    background: #252b32;
    border-color: #252b32;
    box-shadow: 0 8px 22px rgba(38, 45, 54, 0.18), 0 0 24px rgba(38, 45, 54, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html.theme-light .nav-cta:hover {
    color: #ffffff !important;
    background: #11151a;
    border-color: #11151a;
    box-shadow: 0 10px 28px rgba(38, 45, 54, 0.24), 0 0 32px rgba(38, 45, 54, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html.theme-light .mobile-menu-btn,
html.theme-light .preference-toggle {
    border-color: transparent;
    color: var(--text-primary);
    background: transparent;
    box-shadow: none;
}

html.theme-light .mobile-menu-btn:hover,
html.theme-light .preference-toggle:hover,
html.theme-light .preference-toggle:focus-visible,
html.theme-light .preference-toggle[aria-pressed="true"] {
    color: #11151a;
    background: rgba(37, 43, 51, 0.08);
    border-color: transparent;
}

html.theme-light .preference-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 43, 51, 0.14);
}

html.theme-light .preference-tooltip {
    border-color: rgba(25, 31, 39, 0.18);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(38, 45, 54, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html.theme-light .hero-content > img,
html.theme-light .nav-logo img {
    filter: grayscale(1) contrast(1.05) drop-shadow(0 0 18px rgba(52, 60, 69, 0.16)) !important;
}

html.theme-light .hero-tag {
    border-color: rgba(25, 31, 39, 0.18);
    color: #3d4650;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(38, 45, 54, 0.1);
}

html.theme-light .hero-title span {
    background: linear-gradient(180deg, #15191f 0%, #58616c 100%);
}

html.theme-light .hero-title .accent-text {
    background: linear-gradient(180deg, #3c454f 0%, #8b949e 100%);
}

html.theme-light .card-featured {
    border-color: rgba(25, 31, 39, 0.26);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(221, 225, 230, 0.5));
}

html.theme-light .level-card--elite {
    border-color: rgba(25, 31, 39, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(221, 225, 230, 0.54));
}

html.theme-light .bento-item:hover,
html.theme-light .level-card:hover {
    background: var(--surface-hover);
    box-shadow: 0 24px 65px rgba(38, 45, 54, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 0 20px rgba(255, 255, 255, 0.48);
}

html.theme-light .btn-main {
    color: #171a20;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(38, 45, 54, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html.theme-light .btn-main:hover {
    color: #11151a;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(38, 45, 54, 0.18), 0 0 22px rgba(38, 45, 54, 0.1), inset 0 1px 0 #ffffff;
}

html.theme-light .btn-secondary {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(25, 31, 39, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 26px rgba(38, 45, 54, 0.1);
}

html.theme-light .btn-secondary:hover {
    color: #11151a;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(25, 31, 39, 0.42);
    box-shadow: 0 0 26px rgba(38, 45, 54, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html.theme-light .footer {
    border-top-color: rgba(25, 31, 39, 0.14);
    background: rgba(255, 255, 255, 0.2);
}

html.theme-light .ambient-background {
    background: radial-gradient(circle 360px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(52, 60, 69, 0.08), transparent 72%);
}

html.theme-light .ambient-grid {
    background-image:
        linear-gradient(rgba(52, 60, 69, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 60, 69, 0.1) 1px, transparent 1px);
}

html.theme-light .ambient-stars {
    background-image:
        radial-gradient(circle, rgba(52, 60, 69, 0.52) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(52, 60, 69, 0.3) 0 1px, transparent 1.5px);
}

html.theme-light .ambient-orb--one {
    background: radial-gradient(circle at 35% 30%, rgba(118, 128, 139, 0.3), transparent 68%);
}

html.theme-light .ambient-orb--two {
    background: radial-gradient(circle at 62% 40%, rgba(118, 128, 139, 0.22), transparent 70%);
}

html.theme-light .ambient-orb--three {
    background: radial-gradient(circle, rgba(118, 128, 139, 0.28), transparent 70%);
}

html.theme-light .page-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.8), transparent 24%),
        #e9ecef;
}

html.theme-light .page-loader__mark {
    border-color: rgba(25, 31, 39, 0.26);
    color: #171a20;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 34px rgba(38, 45, 54, 0.12);
}

html.theme-light .page-loader__line {
    background: rgba(37, 43, 51, 0.12);
}

html.theme-light .page-loader__line span {
    background: linear-gradient(90deg, transparent, #252b32, transparent);
}

/* Theme transition and refined light Liquid Glass palette. */
html:not(.theme-light) {
    --theme-wash: rgba(4, 5, 7, 0.94);
}

html.theme-light {
    --bg-deep: #cfd4da;
    --bg-soft: #e1e5e9;
    --surface: rgba(239, 242, 246, 0.46);
    --surface-strong: rgba(246, 248, 250, 0.58);
    --surface-hover: rgba(250, 251, 252, 0.68);
    --text-primary: #1a1f25;
    --text-secondary: #444d58;
    --text-muted: #68727d;
    --line: rgba(27, 34, 42, 0.22);
    --line-strong: rgba(27, 34, 42, 0.38);
    --shadow-deep: rgba(35, 43, 52, 0.24);
    --theme-wash: rgba(244, 247, 250, 0.96);
}

html.theme-transitioning::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 6000;
    pointer-events: none;
    background: var(--theme-wash);
    opacity: 0;
    animation: theme-wash 0.52s var(--ease-out) both;
}

@keyframes theme-wash {
    0% { opacity: 0; }
    32% { opacity: 0.13; }
    100% { opacity: 0; }
}

html.theme-transitioning body,
html.theme-transitioning body::before,
html.theme-transitioning body::after,
html.theme-transitioning .navbar,
html.theme-transitioning .glass-card,
html.theme-transitioning .bento-item,
html.theme-transitioning .level-card,
html.theme-transitioning .card-featured,
html.theme-transitioning .level-card--elite,
html.theme-transitioning .hero-tag,
html.theme-transitioning .nav-links a,
html.theme-transitioning .nav-cta,
html.theme-transitioning .mobile-menu-btn,
html.theme-transitioning .preference-toggle,
html.theme-transitioning .preference-tooltip,
html.theme-transitioning .btn-main,
html.theme-transitioning .btn-secondary,
html.theme-transitioning .footer,
html.theme-transitioning .ambient-background,
html.theme-transitioning .ambient-grid,
html.theme-transitioning .ambient-stars,
html.theme-transitioning .ambient-orb,
html.theme-transitioning .page-loader,
html.theme-transitioning .page-loader__mark,
html.theme-transitioning .page-loader__line {
    transition:
        background 0.5s ease,
        background-color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        color 0.5s ease,
        filter 0.5s ease,
        opacity 0.5s ease;
}

html.theme-light body {
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.42), transparent 26%),
        radial-gradient(circle at 7% 84%, rgba(109, 119, 130, 0.28), transparent 32%),
        linear-gradient(145deg, #c5cbd2 0%, #d5dbe1 46%, #cdd3da 100%);
}

html.theme-light body::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 68%);
}

html.theme-light body::after {
    background: radial-gradient(circle, rgba(100, 110, 121, 0.22), transparent 70%);
}

/* Keep the hero gradient clipped to the title glyphs in light mode. */
html.theme-light .hero-title span,
html.theme-light .hero-title .accent-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.theme-light .glass-card,
html.theme-light .bento-item,
html.theme-light .level-card {
    border-color: rgba(27, 34, 42, 0.24);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.5), rgba(207, 214, 221, 0.34));
    box-shadow:
        0 18px 55px rgba(35, 43, 52, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        inset 0 -1px 0 rgba(25, 32, 40, 0.12),
        inset 0 0 22px 2px rgba(255, 255, 255, 0.26);
}

html.theme-light .glass-card::before,
html.theme-light .bento-item::before,
html.theme-light .level-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
}

html.theme-light .glass-card::after,
html.theme-light .bento-item::after,
html.theme-light .level-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 48%, rgba(37, 44, 52, 0.2));
}

html.theme-light .bento-item:hover,
html.theme-light .level-card:hover {
    background: linear-gradient(145deg, rgba(252, 253, 254, 0.66), rgba(217, 223, 229, 0.48));
    box-shadow:
        0 24px 65px rgba(35, 43, 52, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        inset 0 0 22px rgba(255, 255, 255, 0.34);
}

html.theme-light .navbar {
    border-color: rgba(27, 34, 42, 0.25);
    background: rgba(229, 233, 238, 0.58);
    box-shadow:
        0 18px 50px rgba(35, 43, 52, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -1px 0 rgba(28, 34, 42, 0.12);
    backdrop-filter: blur(28px) saturate(135%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
}

html.theme-light .navbar::before {
    background: linear-gradient(90deg, transparent, rgba(37, 44, 52, 0.36), transparent);
}

html.theme-light .nav-links a:hover {
    background: rgba(27, 34, 42, 0.1);
}

html.theme-light .nav-links a[aria-current="page"]:not(.nav-cta) {
    background: rgba(27, 34, 42, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 16px rgba(35, 43, 52, 0.14);
}

html.theme-light .hero-tag {
    border-color: rgba(27, 34, 42, 0.24);
    color: #303943;
    background: rgba(239, 242, 246, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 24px rgba(35, 43, 52, 0.15);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

html.theme-light .card-featured {
    border-color: rgba(27, 34, 42, 0.3);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.62), rgba(202, 209, 216, 0.46));
}

html.theme-light .level-card--elite {
    border-color: rgba(27, 34, 42, 0.34);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.66), rgba(202, 209, 216, 0.5));
}

html.theme-light .preference-tooltip {
    border-color: rgba(27, 34, 42, 0.24);
    background: rgba(224, 229, 234, 0.8);
    box-shadow: 0 18px 38px rgba(35, 43, 52, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

html.theme-light .ambient-background {
    background: radial-gradient(circle 360px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(58, 67, 77, 0.12), transparent 72%);
}

html.theme-light .ambient-grid {
    background-image:
        linear-gradient(rgba(52, 61, 71, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 61, 71, 0.14) 1px, transparent 1px);
}

html.theme-light .ambient-stars {
    background-image:
        radial-gradient(circle, rgba(52, 61, 71, 0.62) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(52, 61, 71, 0.38) 0 1px, transparent 1.5px);
}

html.theme-light .ambient-orb--one {
    background: radial-gradient(circle at 35% 30%, rgba(91, 101, 112, 0.34), transparent 68%);
}

html.theme-light .ambient-orb--two {
    background: radial-gradient(circle at 62% 40%, rgba(91, 101, 112, 0.28), transparent 70%);
}

html.theme-light .ambient-orb--three {
    background: radial-gradient(circle, rgba(91, 101, 112, 0.34), transparent 70%);
}

html.theme-light .page-loader {
    background:
        radial-gradient(circle at 50% 42%, rgba(248, 250, 252, 0.56), transparent 24%),
        #cfd4da;
}

/* Final light theme visual tuning: cool gray glass, stronger contrast, less white wash. */
html.theme-light {
    --bg-deep: #c3c9d0;
    --bg-soft: #d6dbe0;
    --surface: rgba(242, 244, 247, 0.38);
    --surface-strong: rgba(247, 249, 251, 0.48);
    --surface-hover: rgba(250, 251, 252, 0.58);
    --text-primary: #272e36;
    --text-secondary: #4b5661;
    --text-muted: #707a84;
    --line: rgba(30, 38, 47, 0.24);
    --line-strong: rgba(30, 38, 47, 0.38);
    --shadow-deep: rgba(34, 42, 51, 0.28);
}

html.theme-light body {
    background:
        radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.2), transparent 25%),
        radial-gradient(circle at 7% 84%, rgba(89, 100, 111, 0.28), transparent 32%),
        linear-gradient(145deg, #bbc2c9 0%, #d4d9df 46%, #c5ccd3 100%);
}

html.theme-light body::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

html.theme-light body::after {
    background: radial-gradient(circle, rgba(84, 95, 106, 0.24), transparent 70%);
}

html.theme-light .navbar {
    border-color: rgba(30, 38, 47, 0.3);
    background: rgba(232, 236, 240, 0.46);
    box-shadow:
        0 20px 52px rgba(34, 42, 51, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(28, 35, 43, 0.14);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

html.theme-light .glass-card,
html.theme-light .bento-item,
html.theme-light .level-card {
    border-color: rgba(30, 38, 47, 0.28);
    background: linear-gradient(145deg, rgba(246, 248, 250, 0.42), rgba(171, 181, 191, 0.28));
    box-shadow:
        0 18px 55px rgba(34, 42, 51, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(25, 32, 40, 0.14),
        inset 0 0 22px 2px rgba(255, 255, 255, 0.24);
}

html.theme-light .glass-card::before,
html.theme-light .bento-item::before,
html.theme-light .level-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
}

html.theme-light .glass-card::after,
html.theme-light .bento-item::after,
html.theme-light .level-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 48%, rgba(34, 42, 51, 0.22));
}

html.theme-light .bento-item:hover,
html.theme-light .level-card:hover {
    background: linear-gradient(145deg, rgba(250, 251, 252, 0.58), rgba(190, 198, 206, 0.42));
    box-shadow:
        0 24px 65px rgba(34, 42, 51, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        inset 0 0 22px rgba(255, 255, 255, 0.3);
}

html.theme-light .nav-logo img {
    border-color: rgba(30, 38, 47, 0.22);
    background: rgba(248, 250, 252, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 4px 14px rgba(34, 42, 51, 0.18);
}

html.theme-light .hero-title {
    text-shadow: 0 8px 30px rgba(34, 42, 51, 0.2);
}

html.theme-light .hero-title span {
    background: linear-gradient(180deg, #252c34 0%, #69747f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.theme-light .hero-title .accent-text {
    background: linear-gradient(180deg, #414b55 0%, #909aa3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.theme-light .hero-tag {
    border-color: rgba(30, 38, 47, 0.28);
    color: #39434d;
    background: rgba(242, 245, 248, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 24px rgba(34, 42, 51, 0.18);
}

html.theme-light .btn-main {
    color: #f7f9fb;
    background: linear-gradient(145deg, #4b5661 0%, #29323b 100%);
    border-color: rgba(28, 35, 43, 0.5);
    box-shadow: 0 12px 28px rgba(34, 42, 51, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html.theme-light .btn-main:hover {
    color: #ffffff;
    background: linear-gradient(145deg, #58636e 0%, #202830 100%);
    box-shadow: 0 16px 34px rgba(34, 42, 51, 0.34), 0 0 22px rgba(34, 42, 51, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html.theme-light .btn-secondary {
    color: #303943;
    background: rgba(244, 247, 249, 0.36);
    border-color: rgba(30, 38, 47, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 26px rgba(34, 42, 51, 0.16);
}

html.theme-light .btn-secondary:hover {
    color: #202830;
    background: rgba(250, 251, 252, 0.56);
    border-color: rgba(30, 38, 47, 0.46);
    box-shadow: 0 0 26px rgba(34, 42, 51, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html.theme-light .ambient-background {
    background: radial-gradient(circle 360px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(66, 76, 86, 0.14), transparent 72%);
}

html.theme-light .ambient-grid {
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(49, 58, 68, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 58, 68, 0.18) 1px, transparent 1px);
}

html.theme-light .ambient-stars {
    opacity: 0.52;
    background-image:
        radial-gradient(circle, rgba(49, 58, 68, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(49, 58, 68, 0.44) 0 1px, transparent 1.5px);
}

html.theme-light .ambient-orb--one {
    background: radial-gradient(circle at 35% 30%, rgba(89, 100, 111, 0.38), transparent 68%);
}

html.theme-light .ambient-orb--two {
    background: radial-gradient(circle at 62% 40%, rgba(89, 100, 111, 0.32), transparent 70%);
}

html.theme-light .ambient-orb--three {
    background: radial-gradient(circle, rgba(89, 100, 111, 0.38), transparent 70%);
}

/* Final light-mode color correction for hard-coded content icons and labels. */
html.theme-light .bento-item .icon,
html.theme-light .bento-large .icon,
html.theme-light .level-card .icon,
html.theme-light .config-card .icon {
    color: #36414c;
    filter: drop-shadow(0 0 12px rgba(30, 38, 47, 0.14));
}

html.theme-light .level-card h4 {
    color: #4d5863;
}

html.theme-light .section-title::after {
    background: linear-gradient(90deg, transparent, #4b5661, transparent);
    box-shadow: 0 0 10px rgba(34, 42, 51, 0.18);
}

html.theme-light .preference-toggle .cssgg-icon {
    color: #34404b;
}

/* Balance light background with the dark theme composition. */
html.theme-light body {
    background:
        radial-gradient(circle at 88% 7%, rgba(255, 255, 255, 0.14), transparent 27%),
        radial-gradient(circle at 5% 82%, rgba(81, 91, 102, 0.2), transparent 27%),
        linear-gradient(145deg, #aeb5bd 0%, #c2c8cf 48%, #b5bdc5 100%);
}

html.theme-light body::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

html.theme-light body::after {
    background: radial-gradient(circle, rgba(75, 86, 97, 0.2), transparent 70%);
}

html.theme-light .ambient-background {
    background: radial-gradient(circle 360px at var(--pointer-x, 50vw) var(--pointer-y, 32vh), rgba(58, 68, 78, 0.1), transparent 72%);
}

html.theme-light .ambient-grid {
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(43, 52, 62, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 52, 62, 0.14) 1px, transparent 1px);
}

html.theme-light .ambient-stars {
    opacity: 0.44;
    background-image:
        radial-gradient(circle, rgba(43, 52, 62, 0.56) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(43, 52, 62, 0.32) 0 1px, transparent 1.5px);
}

html.theme-light .ambient-orb--one {
    background: radial-gradient(circle at 35% 30%, rgba(81, 91, 102, 0.3), transparent 68%);
}

html.theme-light .ambient-orb--two {
    background: radial-gradient(circle at 62% 40%, rgba(81, 91, 102, 0.24), transparent 70%);
}

html.theme-light .ambient-orb--three {
    background: radial-gradient(circle, rgba(81, 91, 102, 0.3), transparent 70%);
}

/* Statistics page */
.statistics-page {
    padding-bottom: 120px;
}

.statistics-intro {
    padding-top: 28px;
    padding-bottom: 54px;
    text-align: center;
}

.page-kicker {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-title {
    color: var(--text-primary);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.05;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.page-lead {
    max-width: 620px;
    margin: 22px auto 0;
    color: var(--text-secondary);
    font-size: 17px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.statistics-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 238px;
    padding: 30px;
    border-radius: 24px;
    transition: var(--transition);
}

.statistics-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 0 20px rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.statistics-card--members {
    border-color: var(--line-strong);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
}

.statistics-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.statistics-card__icon svg {
    width: 22px;
    height: 22px;
}

.statistics-card__label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.statistics-card__value {
    display: block;
    margin-top: 8px;
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.statistics-card__value--compact {
    font-size: clamp(25px, 2.4vw, 36px);
    letter-spacing: -0.045em;
}

.statistics-card__caption {
    min-height: 24px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.statistics-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    margin-top: 24px;
}

.statistics-panel {
    min-width: 0;
    padding: 34px;
    border-radius: 26px;
}

.statistics-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.statistics-panel__heading .page-kicker {
    margin-bottom: 8px;
}

.statistics-panel__heading h2 {
    color: var(--text-primary);
    font-size: 27px;
    letter-spacing: -0.035em;
}

.statistics-panel__heading > svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--white);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.22));
}

.statistics-panel > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.statistics-list {
    margin-top: 26px;
}

.statistics-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.statistics-list dt {
    color: var(--text-muted);
    font-size: 13px;
}

.statistics-list dd {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.statistics-panel--cta {
    display: flex;
    flex-direction: column;
}

.statistics-panel--cta .btn {
    align-self: flex-start;
    margin-top: auto;
}

.statistics-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.statistics-actions p {
    color: var(--text-muted);
    font-size: 13px;
}

.statistics-refresh {
    padding: 12px 18px;
    font-size: 14px;
}

.statistics-refresh svg {
    width: 16px;
    height: 16px;
}

.statistics-refresh:disabled {
    cursor: wait;
    opacity: 0.58;
}

html.theme-light .statistics-card__icon {
    border-color: rgba(30, 38, 47, 0.22);
    color: #36414c;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

html.theme-light .statistics-panel__heading > svg {
    color: #36414c;
    filter: drop-shadow(0 0 12px rgba(30, 38, 47, 0.14));
}

@media (max-width: 980px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .statistics-intro {
        padding-top: 12px;
        padding-bottom: 40px;
    }

    .page-title {
        font-size: 42px;
    }

    .page-lead {
        font-size: 16px;
    }

    .statistics-grid,
    .statistics-detail-grid {
        grid-template-columns: 1fr;
    }

    .statistics-card {
        min-height: 210px;
    }

    .statistics-panel {
        padding: 28px 24px;
    }

    .statistics-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .statistics-refresh {
        width: 100%;
    }
}

/* Final responsive pass */
.container,
.nav-container,
.statistics-card,
.statistics-panel {
    min-width: 0;
}

.page-lead,
.statistics-card__caption,
.statistics-panel > p,
.statistics-actions p {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .nav-logo {
        min-width: 0;
        gap: 7px;
        font-size: 16px;
        white-space: nowrap;
    }

    .nav-logo img {
        height: 30px;
        padding: 4px;
    }

    .nav-links {
        top: 76px;
        right: 12px;
        width: min(280px, calc(100vw - 24px));
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links a {
        flex: 0 0 auto;
    }

    .site-preferences {
        gap: 3px;
        margin-left: 4px;
    }

    .preference-toggle {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .preference-toggle .gg-play-pause {
        --ggs: 1.2;
    }

    .preference-toggle .gg-sun {
        --ggs: 0.78;
    }

    .preference-tooltip {
        right: 0;
        max-width: calc(100vw - 24px);
        white-space: normal;
    }

    .statistics-intro,
    .statistics-card,
    .statistics-panel {
        overflow-wrap: anywhere;
    }

    .statistics-card__value--compact {
        font-size: clamp(24px, 8vw, 34px);
    }

    .statistics-list > div {
        align-items: flex-start;
    }

    .statistics-list dd {
        max-width: 60%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .navbar {
        width: calc(100% - 16px);
        top: 8px;
        height: 56px;
    }

    .nav-container {
        padding-right: 7px;
        padding-left: 9px;
    }

    .nav-logo {
        gap: 5px;
        font-size: 15px;
    }

    .nav-logo img {
        height: 27px;
        padding: 3px;
        border-radius: 9px;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .site-preferences {
        gap: 1px;
        margin-left: 2px;
    }

    .preference-toggle {
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    .preference-toggle .gg-play-pause {
        --ggs: 1.05;
    }

    .preference-toggle .gg-sun {
        --ggs: 0.7;
    }

    .nav-links {
        top: 70px;
        right: 8px;
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 82px);
    }

    .hero {
        padding-top: 132px;
    }

    .hero-content > img {
        width: 108px !important;
    }

    .hero-btns {
        padding-right: 18px;
        padding-left: 18px;
    }

    .page-title {
        font-size: 38px;
    }

    .statistics-intro {
        padding-right: 18px;
        padding-left: 18px;
    }

    .statistics-card {
        padding: 26px 22px;
    }

    .statistics-panel {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 360px) {
    .nav-logo {
        font-size: 14px;
    }

    .nav-logo img {
        height: 25px;
    }

    .mobile-menu-btn {
        width: 35px;
        height: 35px;
    }

    .preference-toggle {
        width: 32px;
        height: 32px;
    }

    .site-preferences {
        margin-left: 1px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .bento-item:hover,
    .level-card:hover,
    .statistics-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    html.theme-light .nav-links {
        border-color: rgba(30, 38, 47, 0.24);
        background: rgba(225, 230, 235, 0.82);
        box-shadow: 0 20px 45px rgba(34, 42, 51, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    html.theme-light .nav-links a:hover {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.34);
    }
}

/* Partnership notice layout */
.partnership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.partnership-card {
    min-height: 100%;
    padding: 34px;
}

.partnership-card--wide {
    grid-column: 1 / -1;
}

.partnership-card .icon {
    position: static;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
}

.partnership-card h3 {
    margin-bottom: 0;
}

.partnership-list {
    padding: 0;
    margin: 22px 0 0;
    color: var(--text-secondary);
    list-style: none;
    font-size: 15px;
    line-height: 1.7;
}

.partnership-list li + li {
    margin-top: 12px;
}

.partnership-list strong {
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .partnership-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .partnership-card,
    .partnership-card--wide {
        width: 100%;
        padding: 30px 24px;
    }
}

@media (max-width: 420px) {
    .partnership-card,
    .partnership-card--wide {
        padding: 26px 20px;
    }

    .partnership-list {
        font-size: 14px;
    }
}

/* MJ helper bot page */
.bot-page {
    padding-bottom: 120px;
}

.bot-hero {
    padding-top: 12px;
    padding-bottom: 70px;
    text-align: center;
}

.bot-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    box-shadow: 0 18px 42px var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.bot-hero__icon svg {
    width: 38px;
    height: 38px;
}

.bot-hero__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-hero__subtitle {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 600;
}

.bot-hero__description {
    max-width: 680px;
    margin: 18px auto 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.bot-features-section {
    padding-bottom: 80px;
}

.bot-section-heading {
    text-align: center;
}

.bot-section-heading .section-title {
    margin-bottom: 44px;
}

.bot-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(230px, auto);
    gap: 18px;
}

.bot-feature-card {
    min-width: 0;
    min-height: 230px;
    padding: 30px;
    border-radius: 24px;
}

.bot-feature-card .icon {
    position: static;
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
}

.bot-feature-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.bot-feature-card p {
    font-size: 14px;
    line-height: 1.75;
}

.bot-feature-card--featured {
    border-color: var(--line-strong);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
}

.bot-usage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    margin-top: 4px;
}

.bot-usage-card {
    min-width: 0;
    padding: 34px;
    border-radius: 26px;
}

.bot-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.bot-panel-heading .page-kicker {
    margin-bottom: 8px;
}

.bot-panel-heading h2 {
    color: var(--text-primary);
    font-size: 28px;
    letter-spacing: -0.04em;
}

.bot-panel-heading > svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--white);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.22));
}

.bot-usage-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.bot-command {
    display: block;
    padding: 18px 20px;
    margin: 22px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-family: 'Inter', 'Noto Sans TC', monospace;
    font-size: 20px;
    line-height: 1.4;
}

.bot-command code,
.bot-permission-note code {
    color: inherit;
    font-family: inherit;
}

.bot-usage-card--join {
    display: flex;
    flex-direction: column;
}

.bot-usage-card--join .bot-invite-button {
    align-self: flex-start;
    margin-top: 26px;
}

.bot-usage-card--join .btn-secondary {
    align-self: flex-start;
    margin-top: 18px;
}

.bot-permission-note {
    margin-top: 24px;
}

.bot-permission-note .bento-item {
    min-height: 0;
    padding: 30px 34px;
}

.bot-permission-note .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
}

.bot-permission-note h3 {
    font-size: 22px;
}

.bot-permission-note p {
    max-width: 820px;
}

html.theme-light .bot-hero__icon,
html.theme-light .bot-panel-heading > svg {
    color: #36414c;
    filter: drop-shadow(0 0 12px rgba(30, 38, 47, 0.14));
}

html.theme-light .bot-command {
    color: #36414c;
    background: rgba(60, 70, 80, 0.1);
    border-color: rgba(30, 38, 47, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

@media (max-width: 1100px) {
    .bot-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bot-page {
        padding-bottom: 88px;
    }

    .bot-hero {
        padding-top: 4px;
        padding-bottom: 54px;
    }

    .bot-hero__icon {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .bot-hero__subtitle {
        font-size: 19px;
    }

    .bot-hero__description {
        padding: 0 10px;
        font-size: 15px;
    }

    .bot-features-section {
        padding-bottom: 60px;
    }

    .bot-section-heading .section-title {
        margin-bottom: 34px;
    }

    .bot-feature-grid,
    .bot-usage-grid {
        grid-template-columns: 1fr;
    }

    .bot-feature-card {
        min-height: 0;
        padding: 28px 24px;
    }

    .bot-usage-card {
        padding: 28px 24px;
    }

    .bot-usage-card--join .bot-invite-button,
    .bot-usage-card--join .btn-secondary {
        width: 100%;
    }

    .bot-permission-note .bento-item {
        padding: 28px 24px;
    }
}

@media (max-width: 420px) {
    .bot-hero__subtitle {
        font-size: 18px;
    }

    .bot-feature-card,
    .bot-usage-card,
    .bot-permission-note .bento-item {
        padding-right: 20px;
        padding-left: 20px;
    }

    .bot-panel-heading h2 {
        font-size: 24px;
    }
}

/* MJ helper Wiki page */
.bot-wiki-link {
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.bot-wiki-link p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.bot-wiki-link .btn {
    align-self: flex-start;
}

.bot-wiki-link .btn svg {
    width: 16px;
    height: 16px;
}

.wiki-page {
    padding-bottom: 120px;
}

.wiki-hero {
    padding-top: 10px;
    padding-bottom: 64px;
    text-align: center;
}

.wiki-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    box-shadow: 0 18px 42px var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.wiki-hero__icon svg {
    width: 34px;
    height: 34px;
}

.wiki-hero__subtitle {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 600;
}

.wiki-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.wiki-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.wiki-sidebar {
    position: sticky;
    top: 100px;
    padding: 26px 22px;
    border-radius: 22px;
}

.wiki-sidebar h2 {
    margin-bottom: 18px;
    color: var(--text-primary);
    font-size: 23px;
    letter-spacing: -0.035em;
}

.wiki-toc {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wiki-toc a {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.wiki-toc a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.wiki-content {
    min-width: 0;
}

.wiki-section {
    min-width: 0;
    padding: 34px;
    margin-bottom: 20px;
    border-radius: 26px;
    scroll-margin-top: 100px;
}

.wiki-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.wiki-section__heading .page-kicker {
    margin-bottom: 8px;
}

.wiki-section__heading h2 {
    color: var(--text-primary);
    font-size: 28px;
    letter-spacing: -0.04em;
}

.wiki-section__heading > svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--white);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.22));
}

.wiki-section > p,
.wiki-columns p,
.wiki-step p,
.wiki-faq p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.wiki-section > p + p {
    margin-top: 12px;
}

.wiki-section code,
.wiki-command-inline code,
.wiki-command-block code,
.wiki-step code,
.wiki-note code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-family: 'Inter', 'Noto Sans TC', monospace;
    font-size: 0.92em;
}

.wiki-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.wiki-quick-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.wiki-quick-grid a:hover {
    color: var(--text-primary);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.wiki-quick-grid svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.wiki-command-inline,
.wiki-note {
    padding: 15px 17px;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.055);
    font-size: 14px;
    line-height: 1.7;
}

.wiki-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.wiki-chip-list span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
}

.wiki-step-list {
    display: grid;
    gap: 14px;
}

.wiki-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.wiki-step:first-child {
    padding-top: 0;
    border-top: 0;
}

.wiki-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.wiki-step h3,
.wiki-columns h3 {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 17px;
}

.wiki-command-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wiki-command-group {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.wiki-command-group--owner {
    grid-column: 1 / -1;
}

.wiki-command-group h3 {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 17px;
}

.wiki-command-group ul,
.wiki-list {
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    list-style: none;
}

.wiki-command-group li,
.wiki-list li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.75;
}

.wiki-command-group li::before,
.wiki-list li::before {
    content: '';
    position: absolute;
    top: 0.78em;
    left: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
}

.wiki-command-group li + li,
.wiki-list li + li {
    margin-top: 6px;
}

.wiki-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.wiki-list--columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 24px;
    margin-top: 22px;
}

.wiki-list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 22px;
}

.wiki-list--inline li {
    flex: 0 1 auto;
}

.wiki-command-block {
    display: inline-block;
    padding: 14px 18px;
    margin: 20px 0 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Inter', 'Noto Sans TC', monospace;
    font-size: 16px;
}

.wiki-faq {
    display: grid;
    gap: 10px;
}

.wiki-faq details {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.wiki-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
}

.wiki-faq summary::-webkit-details-marker {
    display: none;
}

.wiki-faq summary::after {
    content: '+';
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 400;
}

.wiki-faq details[open] summary::after {
    content: '−';
}

.wiki-faq details > p {
    padding: 0 19px 18px;
}

.wiki-section--footer-note {
    text-align: center;
}

.wiki-section--footer-note > svg {
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    color: var(--white);
}

.wiki-section--footer-note h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 25px;
}

.wiki-section--footer-note a {
    display: inline-block;
    margin-top: 18px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

html.theme-light .wiki-hero__icon,
html.theme-light .wiki-section__heading > svg,
html.theme-light .wiki-section--footer-note > svg {
    color: #36414c;
    filter: drop-shadow(0 0 12px rgba(30, 38, 47, 0.14));
}

html.theme-light .wiki-quick-grid a,
html.theme-light .wiki-command-group,
html.theme-light .wiki-faq details {
    background: rgba(255, 255, 255, 0.16);
}

html.theme-light .wiki-command-block {
    color: #36414c;
    background: rgba(60, 70, 80, 0.1);
}

@media (max-width: 980px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-sidebar {
        position: static;
    }

    .wiki-toc {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bot-wiki-link .btn {
        width: 100%;
    }

    .wiki-page {
        padding-bottom: 88px;
    }

    .wiki-hero {
        padding-top: 4px;
        padding-bottom: 48px;
    }

    .wiki-hero__actions {
        flex-direction: column;
        padding: 0 18px;
    }

    .wiki-hero__actions .btn {
        width: 100%;
    }

    .wiki-sidebar {
        padding: 22px 18px;
    }

    .wiki-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wiki-section {
        padding: 28px 24px;
    }

    .wiki-quick-grid,
    .wiki-command-groups,
    .wiki-columns {
        grid-template-columns: 1fr;
    }

    .wiki-command-group--owner {
        grid-column: auto;
    }

    .wiki-list--columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .wiki-hero__subtitle {
        font-size: 18px;
    }

    .wiki-sidebar,
    .wiki-section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wiki-toc {
        grid-template-columns: 1fr;
    }

    .wiki-step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .wiki-step__number {
        width: 34px;
        height: 34px;
    }
}


/* MJ helper official landing page — scoped additions */
.bot-official {
    padding-top: 102px;
    padding-bottom: 96px;
}

.bot-official__hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    align-items: center;
    gap: clamp(32px, 6vw, 86px);
    max-width: 1220px;
    min-height: 590px;
    padding-top: 28px;
    padding-bottom: 76px;
}

.bot-official__hero-copy {
    position: relative;
    z-index: 1;
}

.bot-official__hero-copy .page-kicker,
.bot-official__section-heading .page-kicker,
.bot-official__trust .page-kicker,
.bot-official__faq .page-kicker,
.bot-official__final-cta .page-kicker {
    margin-bottom: 14px;
}

.bot-official__title {
    color: var(--text-primary);
    background: linear-gradient(180deg, #ffffff 0%, #a3a3ad 88%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(66px, 9vw, 112px);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.99;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.bot-official__tagline {
    margin-top: 24px;
    color: var(--text-primary);
    font-size: clamp(20px, 2.5vw, 29px);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.45;
}

.bot-official__intro {
    max-width: 590px;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.bot-official__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.bot-official__actions .btn {
    min-height: 54px;
    padding: 15px 23px;
    font-size: 15px;
}

.bot-official__text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.bot-official__text-link:hover {
    color: var(--text-primary);
}

.bot-official__text-link svg {
    width: 14px;
    height: 14px;
}

.bot-official__hero-art {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
    isolation: isolate;
}

.bot-official__hero-art::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    width: min(34vw, 410px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 242, 247, 0.17), rgba(156, 160, 171, 0.08) 42%, transparent 72%);
    filter: blur(8px);
    transform: translate(-50%, -50%);
}

.bot-official__orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.bot-official__orbit--outer {
    width: min(35vw, 400px);
    aspect-ratio: 1;
    transform: rotate(-22deg) scaleY(0.76);
}

.bot-official__orbit--inner {
    width: min(29vw, 330px);
    aspect-ratio: 1;
    border-color: rgba(255, 255, 255, 0.1);
    transform: rotate(36deg) scaleY(0.72);
}

.bot-official__identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 310px);
    padding: 34px 28px 30px;
    border-radius: 32px;
    text-align: center;
    transform: rotate(-3deg);
}

.bot-official__avatar-frame {
    overflow: hidden;
    width: 116px;
    height: 116px;
    border: 1px solid var(--line-strong);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.bot-official__avatar-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-official__identity-label {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.bot-official__identity-name {
    margin-top: 4px;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.bot-official__identity-line {
    width: 44px;
    height: 1px;
    margin: 17px 0 15px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.bot-official__identity-tags,
.bot-official__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bot-official__identity-tags {
    justify-content: center;
}

.bot-official__identity-tags span,
.bot-official__chips span {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.055);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.bot-official__float {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    color: var(--text-primary);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    box-shadow: 0 16px 38px var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.bot-official__float svg {
    width: 22px;
    height: 22px;
}

.bot-official__float--one {
    top: 17%;
    right: 3%;
    transform: rotate(9deg);
}

.bot-official__float--two {
    bottom: 15%;
    left: 2%;
    transform: rotate(-10deg);
}

.bot-official__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 920px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.bot-official__proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 14px;
    text-align: center;
}

.bot-official__proof-item + .bot-official__proof-item {
    border-left: 1px solid var(--line);
}

.bot-official__proof-value {
    color: var(--text-primary);
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 750;
    letter-spacing: -0.045em;
}

.bot-official__proof-label {
    color: var(--text-muted);
    font-size: 11px;
}

.bot-official__section {
    padding-top: 104px;
    scroll-margin-top: 105px;
}

.bot-official__section-heading {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.bot-official__section-heading .section-title {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 48px);
}

.bot-official__section-lead {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.bot-official__feature-grid {
    grid-auto-rows: minmax(290px, auto);
    gap: 16px;
}

.bot-official__feature {
    display: flex;
    flex-direction: column;
    min-height: 290px;
    padding: 26px;
    border-radius: 22px;
}

.bot-official__feature .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: #f1f1f4;
}

.bot-official__feature-kicker {
    margin-bottom: 7px;
    color: var(--text-muted) !important;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.bot-official__feature h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.bot-official__feature > p:not(.bot-official__feature-kicker) {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.bot-official__chips {
    gap: 6px;
    margin-top: auto;
    padding-top: 17px;
}

.bot-official__chips span {
    padding: 4px 8px;
    font-size: 9px;
}

.bot-official__trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.82fr);
    align-items: center;
    gap: 48px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 28px;
}

.bot-official__trust h2,
.bot-official__faq h2 {
    color: var(--text-primary);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.35;
}

.bot-official__trust-heading > p:last-child,
.bot-official__faq-heading > p:not(.page-kicker) {
    margin-top: 13px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.bot-official__trust-points {
    display: grid;
    gap: 16px;
}

.bot-official__trust-points > div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.bot-official__trust-points > div > svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.bot-official__trust-points span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bot-official__trust-points strong {
    color: var(--text-primary);
    font-size: 13px;
}

.bot-official__trust-points small {
    color: var(--text-muted);
    font-size: 11px;
}

.bot-official__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.bot-official__step {
    position: relative;
    min-height: 225px;
    padding: 25px;
    border-radius: 22px;
}

.bot-official__step-number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.bot-official__step > svg {
    width: 28px;
    height: 28px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.bot-official__step h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 17px;
}

.bot-official__step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

.bot-official__step code,
.bot-official__faq code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    font-family: 'Inter', 'Noto Sans TC', monospace;
    font-size: 0.92em;
}

.bot-official__admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 19px;
    color: var(--text-muted);
    font-size: 11px;
}

.bot-official__admin-shortcuts code {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.035);
    font-size: 10px;
}

.bot-official__faq {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(26px, 5vw, 50px);
    border-radius: 28px;
}

.bot-official__faq-heading .btn {
    min-height: 46px;
    margin-top: 21px;
    padding: 12px 17px;
    font-size: 13px;
}

.bot-official__faq-list {
    border-top: 1px solid var(--line);
}

.bot-official__faq-list details {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.bot-official__faq-list summary {
    position: relative;
    padding-right: 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.bot-official__faq-list summary::-webkit-details-marker {
    display: none;
}

.bot-official__faq-list summary::after {
    content: '+';
    position: absolute;
    top: -2px;
    right: 2px;
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s var(--ease-out);
}

.bot-official__faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.bot-official__faq-list details p {
    max-width: 690px;
    padding: 12px 26px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.bot-official__final-cta {
    padding-top: 90px;
    text-align: center;
}

.bot-official__final-cta .bento-item {
    align-items: center;
    max-width: 920px;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 60px);
    border-radius: 30px;
}

.bot-official__final-cta h2 {
    color: var(--text-primary);
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 750;
    letter-spacing: -0.05em;
}

.bot-official__final-cta .bento-item > p:not(.page-kicker) {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.bot-official__actions--center {
    justify-content: center;
}

html.theme-light .bot-official__title {
    background-image: linear-gradient(180deg, #171b20 0%, #626c77 94%);
}

html.theme-light .bot-official__orbit {
    border-color: rgba(27, 34, 42, 0.17);
}

html.theme-light .bot-official__hero-art::before {
    background: radial-gradient(circle, rgba(79, 90, 102, 0.18), rgba(121, 131, 142, 0.08) 42%, transparent 72%);
}

html.theme-light .bot-official__float {
    color: #36414c;
}

html.theme-light .bot-official__identity-tags span,
html.theme-light .bot-official__chips span,
html.theme-light .bot-official__admin-shortcuts code,
html.theme-light .bot-official__step code,
html.theme-light .bot-official__faq code {
    background: rgba(255, 255, 255, 0.34);
}

html.theme-light .bot-official__feature .icon {
    color: #36414c;
}

@media (max-width: 980px) {
    .bot-official__hero {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
        gap: 22px;
    }

    .bot-official__trust {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .bot-official {
        padding-top: 87px;
        padding-bottom: 72px;
    }

    .bot-official__hero {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 0;
        padding-top: 32px;
        padding-bottom: 48px;
        text-align: center;
    }

    .bot-official__hero-copy {
        max-width: 650px;
        margin: 0 auto;
    }

    .bot-official__title {
        font-size: clamp(62px, 15vw, 92px);
    }

    .bot-official__intro {
        margin-right: auto;
        margin-left: auto;
        font-size: 15px;
    }

    .bot-official__actions {
        justify-content: center;
    }

    .bot-official__hero-art {
        min-height: 350px;
        margin-top: -4px;
    }

    .bot-official__orbit--outer {
        width: min(75vw, 350px);
    }

    .bot-official__orbit--inner {
        width: min(63vw, 290px);
    }

    .bot-official__hero-art::before {
        width: min(75vw, 360px);
    }

    .bot-official__identity {
        width: 265px;
        padding: 26px 22px 24px;
    }

    .bot-official__avatar-frame {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .bot-official__section {
        padding-top: 74px;
    }

    .bot-official__section-heading {
        margin-bottom: 29px;
    }

    .bot-official__feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(280px, auto);
    }

    .bot-official__feature {
        min-height: 280px;
        padding: 21px;
    }

    .bot-official__trust,
    .bot-official__faq {
        grid-template-columns: 1fr;
    }

    .bot-official__steps {
        gap: 11px;
    }

    .bot-official__step {
        min-height: 215px;
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .bot-official__proof {
        padding-right: 12px;
        padding-left: 12px;
    }

    .bot-official__proof-item {
        padding-right: 7px;
        padding-left: 7px;
    }

    .bot-official__proof-label {
        font-size: 10px;
    }

    .bot-official__feature-grid,
    .bot-official__steps {
        grid-template-columns: 1fr;
    }

    .bot-official__feature {
        min-height: 0;
        padding: 24px;
    }

    .bot-official__step {
        min-height: 0;
        padding: 23px;
    }

    .bot-official__step > svg {
        margin-bottom: 18px;
    }

    .bot-official__admin-shortcuts {
        gap: 7px;
    }

    .bot-official__actions .btn {
        width: 100%;
    }

    .bot-official__text-link {
        justify-content: center;
    }

    .bot-official__float--one {
        right: -1%;
    }

    .bot-official__float--two {
        left: -1%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bot-official__faq-list summary::after {
        transition: none;
    }
}


/* MJ helper home feature explorer and restrained motion */
.bot-feature-explorer {
    display: grid;
    justify-items: center;
    gap: 13px;
    max-width: 870px;
    margin: 0 auto 28px;
}

.bot-feature-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 620px);
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    color: var(--text-secondary);
    background: linear-gradient(145deg, var(--surface-strong), var(--surface));
    box-shadow: 0 14px 34px var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.bot-feature-search:focus-within {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 16px 38px var(--shadow-deep), 0 0 0 3px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.44);
    transform: translateY(-1px);
}

.bot-feature-search > svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--text-muted);
}

.bot-feature-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.bot-feature-search input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.bot-feature-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.bot-feature-search kbd {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.055);
    font-family: 'Inter', monospace;
    font-size: 11px;
}

.bot-feature-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.bot-feature-filters button {
    min-height: 35px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.bot-feature-filters button:hover {
    border-color: var(--line-strong);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.bot-feature-filters button[aria-pressed="true"] {
    border-color: rgba(255, 255, 255, 0.64);
    color: var(--bg-deep);
    background: var(--text-primary);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.bot-feature-clear {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.bot-feature-clear:hover,
.bot-feature-clear:focus-visible {
    border-color: var(--line-strong);
    color: var(--text-primary);
    background: var(--surface-strong);
}

.bot-feature-clear:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

.bot-feature-clear[hidden] {
    display: none !important;
}

.bot-feature-results {
    min-height: 19px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}

.bot-official__feature[hidden] {
    display: none !important;
}

.bot-feature-empty {
    padding: 22px 14px 4px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.bot-feature-empty[hidden] {
    display: none !important;
}

html.theme-light .bot-feature-search {
    border-color: rgba(27, 34, 42, 0.22);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.66), rgba(211, 217, 224, 0.42));
}

html.theme-light .bot-feature-search:focus-within {
    border-color: rgba(37, 46, 55, 0.5);
    box-shadow: 0 16px 38px rgba(35, 43, 52, 0.2), 0 0 0 3px rgba(37, 46, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html.theme-light .bot-feature-search kbd,
html.theme-light .bot-feature-filters button:not([aria-pressed="true"]) {
    background: rgba(255, 255, 255, 0.3);
}

html.theme-light .bot-feature-filters button[aria-pressed="true"] {
    border-color: #252b32;
    color: #f7f8fa;
    background: #252b32;
}

html.theme-light .bot-feature-clear {
    color: #39434d;
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 520px) {
    .bot-feature-search {
        min-height: 50px;
        gap: 9px;
        padding-right: 12px;
        padding-left: 13px;
    }

    .bot-feature-search input {
        height: 48px;
        font-size: 12px;
    }

    .bot-feature-search kbd {
        display: none;
    }

    .bot-feature-filters {
        gap: 6px;
    }

    .bot-feature-filters button {
        min-height: 33px;
        padding-right: 11px;
        padding-left: 11px;
        font-size: 10px;
    }

    .bot-feature-clear {
        min-height: 34px;
        padding-right: 13px;
        padding-left: 13px;
    }
}

@keyframes bot-hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bot-identity-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
    50% { transform: translate3d(0, -9px, 0) rotate(-1.5deg); }
}

@keyframes bot-chip-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(9deg); }
    50% { transform: translate3d(0, -7px, 0) rotate(12deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .bot-official__hero-copy > * {
        animation: bot-hero-rise 0.68s var(--ease-out) both;
    }

    .bot-official__hero-copy > :nth-child(1) { animation-delay: 0.04s; }
    .bot-official__hero-copy > :nth-child(2) { animation-delay: 0.1s; }
    .bot-official__hero-copy > :nth-child(3) { animation-delay: 0.16s; }
    .bot-official__hero-copy > :nth-child(4) { animation-delay: 0.22s; }
    .bot-official__hero-copy > :nth-child(5) { animation-delay: 0.28s; }

    .bot-official__identity {
        animation: bot-identity-float 7s ease-in-out 1.1s infinite;
    }

    .bot-official__float--one {
        animation: bot-chip-float 5.2s ease-in-out 0.6s infinite;
    }

    .bot-official__float--two {
        animation: bot-chip-float 6s ease-in-out 1.3s infinite reverse;
    }
}

html.reduce-motion .bot-official__hero-copy > *,
html.reduce-motion .bot-official__identity,
html.reduce-motion .bot-official__float--one,
html.reduce-motion .bot-official__float--two {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .bot-official__hero-copy > *,
    .bot-official__identity,
    .bot-official__float--one,
    .bot-official__float--two,
    .bot-feature-filters button,
    .bot-feature-search {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}


/* Home feature detail dialogs and legal pages */
.bot-feature-card__details {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px;
    margin-top: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.075);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bot-feature-card__details svg {
    width: 14px;
    height: 14px;
}

.bot-feature-card__details:hover,
.bot-feature-card__details:focus-visible {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.bot-feature-card__details:focus-visible,
.bot-feature-dialog__close:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

.bot-feature-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(620px, calc(100vw - 32px));
    max-width: 620px;
    max-height: min(82vh, 760px);
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    color: var(--text-primary);
    background: transparent;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
}

.bot-feature-dialog::backdrop {
    background: rgba(5, 5, 8, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bot-feature-dialog__surface {
    position: relative;
    max-height: min(82vh, 760px);
    padding: clamp(25px, 5vw, 38px);
    overflow-y: auto;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(42, 42, 48, 0.97), rgba(18, 18, 22, 0.98));
    backdrop-filter: blur(30px) saturate(135%);
    -webkit-backdrop-filter: blur(30px) saturate(135%);
}

.bot-feature-dialog__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition);
}

.bot-feature-dialog__close:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: rotate(5deg);
}

.bot-feature-dialog__close svg {
    width: 18px;
    height: 18px;
}

.bot-feature-dialog__surface > .page-kicker {
    padding-right: 44px;
}

.bot-feature-dialog__surface > h2 {
    margin: 8px 45px 20px 0;
    color: var(--text-primary);
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: -0.04em;
}

.bot-feature-dialog__content h3 {
    margin: 22px 0 8px;
    color: var(--text-primary);
    font-size: 17px;
}

.bot-feature-dialog__content p,
.bot-feature-dialog__content li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.85;
}

.bot-feature-dialog__content ul {
    display: grid;
    gap: 9px;
    padding-left: 21px;
    margin: 14px 0 22px;
}

.bot-feature-dialog__content li::marker {
    color: var(--text-muted);
}

.bot-feature-dialog__content code {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92em;
}

.bot-feature-dialog__wiki {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.bot-feature-dialog__wiki svg {
    width: 16px;
    height: 16px;
}

.policy-page .wiki-hero .page-lead {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.policy-page .wiki-section > p,
.policy-page .wiki-section > .wiki-list {
    max-width: 820px;
}

.policy-page .wiki-section a,
.wiki-content a {
    color: var(--text-primary);
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
}

.policy-page .wiki-section a:hover,
.wiki-content a:hover {
    text-decoration-color: currentColor;
}

.policy-page .wiki-list {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    margin: 16px 0 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.85;
}

.policy-page .wiki-list li::marker {
    color: var(--text-muted);
}

.policy-page .wiki-list strong {
    color: var(--text-primary);
}

.policy-page .wiki-note {
    color: var(--text-secondary);
    line-height: 1.85;
}

html.theme-light .bot-feature-card__details {
    color: #252b32;
    background: rgba(255, 255, 255, 0.42);
}

html.theme-light .bot-feature-dialog {
    color: #252b32;
}

html.theme-light .bot-feature-dialog__surface {
    background: linear-gradient(145deg, rgba(249, 249, 250, 0.98), rgba(229, 231, 234, 0.98));
}

html.theme-light .bot-feature-dialog__content p,
html.theme-light .bot-feature-dialog__content li {
    color: #515b66;
}

@media (max-width: 768px) {
    .bot-feature-dialog {
        width: calc(100vw - 22px);
        max-height: 86vh;
        border-radius: 19px;
    }

    .bot-feature-dialog__surface {
        max-height: 86vh;
        padding: 25px 22px;
    }

    .bot-feature-dialog__close {
        top: 13px;
        right: 13px;
    }

    .policy-page .wiki-hero {
        padding-bottom: 38px;
    }

    .policy-page .wiki-layout {
        grid-template-columns: 1fr;
    }

    .policy-page .wiki-sidebar {
        position: static;
    }

    .policy-page .wiki-toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .policy-page .wiki-section {
        padding: 25px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bot-feature-card__details,
    .bot-feature-dialog__close,
    .bot-feature-clear {
        transition: none;
    }

    .bot-feature-card__details:hover,
    .bot-feature-dialog__close:hover,
    .bot-feature-clear:hover {
        transform: none;
    }
}
