@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    text-autospace: normal;
    font-family: 'Minecraft', sans-serif;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.card {
    width: 100%;
    max-width: 600px;
    padding: 24px;
    text-align: center;
}

.control-panel {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.toggle-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
}

footer {
    text-align: center;
    padding: 16px;
    color: var(--mdui-color-text-secondary);
}

.hint-text {
    color: var(--mdui-color-primary);
    margin: 16px 0;
}

.question-type {
    font-size: 14px;
    color: var(--mdui-color-text-secondary);
    margin-bottom: 8px;
}

.chinese-word {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.result-message {
    font-size: 20px;
    min-height: 24px;
    margin: 16px 0;
}

/* 指南页面卡片靠左对齐 */
.guide-card {
    text-align: left !important;
    max-width: 800px;
}

    /* 移动端 FAB 控制：默认隐藏，进入 mobile-mode 时显示并固定到左右下角 */
    #show-fab, #next-fab {
        display: none;
    }

    body.mobile-mode #seg-group {
        display: none !important;
    }

    body.mobile-mode #show-fab,
    body.mobile-mode #next-fab {
        display: inline-block;
        position: fixed;
        bottom: 20px;
        z-index: 1200;
    }

    #show-fab.mobile-left { left: 20px; }
    #next-fab.mobile-right { right: 20px; }
