/* ── Dragon page layout ── */
.dragon-page .quarto-title-block {
    display: none;
}

.dragon-page #title-block-header {
    display: none;
}

/* ── Custom Landing Header ── */
.home-header {
    margin: 0 0 1.5rem 0;
}

.home-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #e8f1ff;
    letter-spacing: 0.02em;
}

.home-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    color: #8ff6ff;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    opacity: 0.8;
}

.dragon-quote {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    z-index: 2;
    margin: 0;
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
    font-size: 0.85rem;
    color: #d2e1fb;
    opacity: 0.6;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.dragon-beliefs {
    margin: 2.5rem 0 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
}

.dragon-beliefs p,
.dragon-beliefs li {
    color: #d2e1fb;
}

.dragon-beliefs p {
    margin-bottom: 1rem;
}

.dragon-beliefs ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dragon-beliefs li {
    color: #d2e1fb;
    position: relative;
    padding-left: 1.5rem;
}

.dragon-beliefs li::before {
    content: "/>";
    position: absolute;
    left: 0;
    color: rgba(158, 248, 255, 0.6);
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.9rem;
}


/* ── Visualization container ── */
.dragon-container {
    position: relative;
    margin: 0 0 2.5rem;
    border: 1px solid rgba(98, 242, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(4, 8, 18, 0.85);
    height: 420px;
}

#dragon-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: default;
}

/* ── Speed Controls ── */
.dragon-controls {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dragon-container:hover .dragon-controls {
    opacity: 1;
}

.dragon-controls button {
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid rgba(98, 242, 255, 0.3);
    color: #62f2ff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dragon-controls button:hover {
    background: rgba(98, 242, 255, 0.15);
    color: #fff;
    border-color: rgba(98, 242, 255, 0.6);
}

/* ── Assembly tooltip — follows cursor ── */
.asm-tooltip {
    position: fixed;
    padding: 0.9rem 1.1rem;
    background: rgba(4, 8, 18, 0.92);
    border: 1px solid rgba(98, 242, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.25s ease;
}

.asm-tooltip.visible {
    opacity: 1;
}

.asm-tooltip pre {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.72rem;
    line-height: 1.75;
    white-space: pre;
}

.asm-tooltip code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--fg-muted);
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.72rem;
}

.asm-tooltip .asm-instr {
    color: #ff6bcb;
}

.asm-tooltip .asm-reg {
    color: #69f3ff;
}

.asm-tooltip .asm-num {
    color: #caa0ff;
}

.asm-tooltip .asm-label {
    color: #9dff6d;
}

.asm-tooltip .asm-op {
    color: #70ffe4;
}

@media (max-width: 700px) {

    .dragon-quote {
        right: 0.7rem;
        bottom: 0.55rem;
        font-size: 0.9rem;
        padding: 0.25rem 0.45rem;
    }

    .dragon-container {
        height: 320px;
    }

    .asm-tooltip {
        display: none;
    }
}