/* =========================================================
   动画教程弹窗专属样式 (日系卡片交互)
   Extracted from style.css
========================================================= */

.modal-card.tut-card {
    max-width: 360px;
    max-height: 90vh;
    padding: 14px 16px 16px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.tut-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #E2DACB;
    padding-bottom: 8px;
}

.tut-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

/* 棋子水平滚动切换栏 */
.tut-tab-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
}

.tut-tab-bar::-webkit-scrollbar {
    display: none;
}

.tut-tab-btn {
    flex: 0 0 auto;
    border: none;
    background: var(--bg-color);
    color: var(--text-main);
    padding: 5px 9px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.tut-tab-btn.active {
    background: var(--piece-black);
    color: var(--piece-white);
    box-shadow: 1px 1px 0px #1E1C1B;
}

.tut-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* 演示动画画布视窗 */
.tut-preview-box {
    width: 100%;
    height: 190px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tut-preview-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 规则文字与操作区 */
.tut-desc-box {
    font-size: 0.76rem;
    line-height: 1.55;
    color: var(--text-main);
    background: var(--bg-color);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    min-height: 130px;
    max-height: 130px;
    overflow-y: auto;
}

.tut-confirm-btn {
    width: 100%;
    padding: 9px 0;
    font-size: 0.85rem;
}