/* ===== 汉诺塔 ===== */
#hnApp .hn-hero { text-align: center; padding: 12px 10px 0; }
#hnApp .hn-hero h1 { font-size: 30px; font-weight: 800; color: var(--c-text); margin-bottom: 10px; }
#hnApp .hn-hero p { font-size: 15px; color: var(--c-text-sub); line-height: 1.7; }

#hnApp .hn-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; }
#hnApp .hn-tab {
    border: 2px solid var(--c-primary); background: transparent; color: var(--c-primary);
    border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background .15s, color .15s;
}
#hnApp .hn-tab.is-on { background: var(--c-primary); color: #fff; }

#hnApp .hn-panel {
    max-width: 660px; margin: 0 auto; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 22px 18px; box-shadow: var(--shadow-md); text-align: center;
}
#hnApp .hn-hud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
#hnApp .hn-chip {
    background: var(--c-surface-soft); border: 1px solid var(--c-border); border-radius: 999px;
    padding: 7px 14px; font-size: 14px; font-weight: 700; color: var(--c-text-sub);
}
#hnApp .hn-chip b { color: var(--c-primary); font-size: 17px; }

#hnApp .hn-tip {
    display: inline-block; margin-bottom: 12px; padding: 8px 16px; border-radius: 999px;
    background: var(--c-primary-soft); border: 1px solid var(--c-border);
    font-size: 14px; font-weight: 700; color: var(--c-primary);
}

#hnApp .hn-stage { max-width: 520px; margin: 0 auto; }
#hnApp .hn-stage svg { width: 100%; height: auto; display: block; }
#hnApp .hn-hit { cursor: pointer; }
#hnApp .hn-peg.sel { stroke: var(--c-primary); stroke-width: 4; }
#hnApp .hn-move { animation: hnFly .28s ease; }
@keyframes hnFly { 0% { opacity: .35; } 100% { opacity: 1; } }

#hnApp .hn-msg { font-size: 17px; font-weight: 800; min-height: 26px; margin-top: 14px; color: var(--c-text); }
#hnApp .hn-msg.ok { color: var(--c-primary); }
#hnApp .hn-msg.bad { color: #e03131; }

#hnApp .hn-ctrl { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
#hnApp .hn-btn {
    border: none; border-radius: 999px; padding: 12px 20px; font-size: 15px; font-weight: 700;
    color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--c-primary), var(--c-accent-cyan));
    box-shadow: var(--shadow-md);
}
#hnApp .hn-btn.gray { background: var(--c-surface-2); color: var(--c-text); box-shadow: none; border: 1px solid var(--c-border); }
#hnApp .hn-btn:disabled { opacity: .5; cursor: default; }

#hnApp .hn-stat {
    max-width: 660px; margin: 18px auto 0; background: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: 14px 18px; box-shadow: var(--shadow-md); text-align: center;
    font-size: 14px; line-height: 1.9; color: var(--c-text-sub);
}
#hnApp .hn-stat b { color: var(--c-primary); font-size: 17px; }

#hnApp .hn-ai, #hnApp .hn-info { max-width: 720px; margin: 30px auto 0; }
#hnApp .hn-ai h2, #hnApp .hn-info h2 { font-size: 20px; font-weight: 800; color: var(--c-text); margin-bottom: 10px; }
#hnApp .hn-ai p { font-size: 14px; color: var(--c-text-sub); line-height: 1.8; margin-bottom: 14px; }
#hnApp .hn-ai-row { display: flex; gap: 10px; flex-wrap: wrap; }
#hnApp .hn-out {
    margin-top: 14px; background: var(--c-surface-soft); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); padding: 16px 18px;
    font-size: 15px; line-height: 1.85; color: var(--c-text); white-space: pre-wrap;
}
#hnApp .hn-info ul { list-style: disc; padding-left: 22px; margin-bottom: 24px; }
#hnApp .hn-info li { font-size: 14px; line-height: 1.9; color: var(--c-text-sub); margin-bottom: 8px; }
#hnApp .hn-info li b { color: var(--c-text); }

@media (max-width: 560px) {
    #hnApp .hn-hero h1 { font-size: 24px; }
}
