/* ==========================================================================
   《物理 OL：火种重燃》全局外壳样式表 (css/core-shell.css)
   22章全系统共用：色彩Token、顶栏、主工作区、林老师指导卡、通用精工控件、弹窗系统
   ========================================================================== */
:root {
    --bg-workshop: #EAE3D2;
    --bg-paper: #F7F3E8;
    --bg-card: #FFFDF9;
    --ink: #222629;
    --ink-soft: #4B5563;
    --ink-muted: #6B7280;
    --vermilion: #E05A47;
    --vermilion-dark: #B93B29;
    --cobalt: #2563EB;
    --cobalt-light: #DBEAFE;
    --sage: #16804A;
    --sage-light: #DCFCE7;
    --mustard: #F2B749;
    --mustard-light: #FEF3C7;
    --shadow-hard: 3px 3px 0px #222629;
    --shadow-hard-lg: 5px 5px 0px #222629;
    --font-sans: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Consolas", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-workshop);
    color: var(--ink);
    font-family: var(--font-sans);
    user-select: none;
    -webkit-user-select: none;
}

.game-shell {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-workshop);
    background-image: radial-gradient(#C8BFA8 1.2px, transparent 1.2px);
    background-size: 20px 20px;
}

/* ==================== 顶部手作工坊关卡导航栏 ==================== */
.top-nav {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: #FFFDF9;
    border-bottom: 2.5px solid var(--ink);
    z-index: 30;
    gap: 8px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mustard);
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-title {
    font-size: 16.5px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-sub {
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 700;
    white-space: nowrap;
}

/* 章节关卡因果进度节点 */
.stage-pipeline {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 4px;
    cursor: grab;
    scroll-behavior: smooth;
}
.stage-pipeline:active {
    cursor: grabbing;
}
.stage-pipeline::-webkit-scrollbar {
    display: none;
}

.stage-node {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 9px;
    background: #F3EFE4;
    border: 2px solid var(--ink);
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 2px 2px 0px var(--ink);
    transition: transform 0.12s ease, background 0.12s ease;
    flex-shrink: 0;
}

.stage-node:hover {
    background: #FFFDF9;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--ink);
}

.stage-node.active {
    background: var(--mustard);
    color: var(--ink);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--ink);
}

.stage-node.cleared {
    background: var(--sage-light);
    border-color: var(--ink);
    color: var(--sage);
}

.stage-node .idx {
    min-width: 19px;
    height: 19px;
    padding: 0 3px;
    border-radius: 5px;
    background: #FFFDF9;
    border: 1.5px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 900;
    color: var(--ink);
    flex-shrink: 0;
}

.stage-node.active .idx {
    background: var(--vermilion);
    color: #fff;
}

.stage-node.cleared .idx {
    background: var(--sage);
    color: #fff;
}

.stage-node.locked {
    background: #E6E1D6;
    border-style: dashed;
    border-color: #8C857B;
    color: #7A746B;
    box-shadow: 1px 1px 0px #8C857B;
    opacity: 0.78;
    cursor: not-allowed;
}

.stage-node.locked:hover {
    background: #E6E1D6;
    transform: none;
    box-shadow: 1px 1px 0px #8C857B;
}

.stage-node.locked .idx {
    background: #D6CFC2;
    border-color: #7A746B;
    color: #5C564E;
}

.pipe-link {
    width: 5px;
    height: 3px;
    background: #C4B9A5;
    flex-shrink: 0;
}

.pipe-link.lit {
    background: var(--sage);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    padding: 6px 10px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    background: #FFFDF9;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--ink);
    transition: all 0.12s;
    font-family: inherit;
    white-space: nowrap;
}

.action-btn:hover {
    background: #F3EFE4;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--ink);
}

.action-btn.gold {
    background: var(--mustard);
    color: var(--ink);
}

/* ==================== 主体工作区：左主舞台 + 右侧林老师指导与操控台 ==================== */
.main-workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    position: relative;
}

.stage-viewport-area {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 12px 14px;
    gap: 10px;
}

/* 顶部任务与实时操作手指路标栏 */
.mission-banner {
    min-height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 14px;
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow-hard);
    z-index: 15;
}

.mission-tag {
    display: none;
}

/* 舞台顶部醒目“当前第X步操作手指路标” */
.step-pointer-pill {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--mustard-light);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: pulse-pointer 2s ease-in-out infinite;
}

.step-pointer-pill.all-ready {
    background: var(--sage-light);
    color: var(--sage);
    border-color: var(--sage);
}

@keyframes pulse-pointer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

.mission-right-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wave-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wave-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    background: #F3EFE4;
    border: 1.5px solid var(--ink);
    color: var(--ink-muted);
    transition: all 0.12s ease;
    user-select: none;
    white-space: nowrap;
}

.wave-pill.active {
    background: var(--cobalt);
    color: #ffffff;
    box-shadow: 2px 2px 0px var(--ink);
}

.wave-pill.done {
    background: var(--sage);
    color: #ffffff;
    cursor: pointer;
}

.wave-pill.done:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px var(--ink);
}

.wave-pill.unlocked-frontier {
    background: var(--mustard-light);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    cursor: pointer;
}

.wave-pill.locked {
    background: #E8E3D9;
    border: 1.5px dashed #8C857B;
    color: #827B70;
    opacity: 0.75;
    cursor: not-allowed;
}

/* 核心物理舞台容器 */
.viewport-host {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
    border-radius: 18px;
    border: 2.5px solid var(--ink);
    box-shadow: var(--shadow-hard-lg);
    background: #FFFDF9;
    overflow: hidden;
    touch-action: none;
}

#stage-views-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.stage-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    touch-action: none;
}

.stage-view.active {
    display: flex;
}

/* ==================== 实时物理后果演出层 & 舞台底部检定浮层 ==================== */
.consequence-fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 48;
}

@keyframes mech-shake-warn {
    0%, 100% { transform: translate3d(0, 0, 0); }
    15% { transform: translate3d(-7px, 4px, 0) rotate(-0.4deg); }
    30% { transform: translate3d(7px, -5px, 0) rotate(0.4deg); }
    45% { transform: translate3d(-5px, -3px, 0); }
    60% { transform: translate3d(5px, 4px, 0); }
    75% { transform: translate3d(-3px, 2px, 0); }
}

@keyframes mech-pulse-ok {
    0% { transform: scale(1); }
    35% { transform: scale(1.008); }
    100% { transform: scale(1); }
}

.viewport-host.shake-warn {
    animation: mech-shake-warn 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.viewport-host.shake-ok {
    animation: mech-pulse-ok 0.42s ease-out;
}

.stage-feedback-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.48) 100%);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 14px 18px;
    z-index: 60;
}

.stage-feedback-overlay.show {
    display: flex;
    animation: pop-in 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-card {
    width: min(740px, 96%);
    background: rgba(255, 253, 249, 0.97);
    border: 3px solid var(--ink);
    border-radius: 18px;
    box-shadow: 6px 6px 0px var(--ink);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    position: relative;
}

.feedback-card.ok {
    background: rgba(246, 254, 249, 0.98);
    border-color: var(--ink);
}

.feedback-card.warn {
    background: rgba(255, 251, 235, 0.98);
    border-color: var(--ink);
}

.feedback-npc-img {
    width: 92px;
    height: 108px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--mustard-light);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 2.5px 2.5px 0px var(--ink);
    padding-top: 4px;
}

.feedback-card.ok .feedback-npc-img {
    background: var(--sage-light);
}

.feedback-body {
    flex: 1;
    min-width: 0;
}

.feedback-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.feedback-stamp {
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    border: 2px solid var(--sage);
    color: var(--sage);
    background: #ffffff;
    transform: rotate(-2deg);
}

.feedback-card.warn .feedback-stamp {
    border-color: var(--vermilion);
    color: var(--vermilion);
}

.feedback-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--ink);
}

.feedback-desc {
    font-size: 13px;
    line-height: 1.48;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 10px;
}

.feedback-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== 右侧林老师场外指导 + 分步打勾清单 + 器械台 (.tactical-sidebar) ==================== */
.tactical-sidebar {
    width: 420px;
    flex-shrink: 0;
    height: 100%;
    background: #F5EFE2;
    border-left: 2.5px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 8px 11px;
    overflow-y: auto;
    z-index: 20;
}

.tactical-sidebar::-webkit-scrollbar {
    width: 6px;
}
.tactical-sidebar::-webkit-scrollbar-thumb {
    background: #B8B09F;
    border-radius: 6px;
}

/* 移动端控制台顶部双切页签（PC/平板默认隐藏，手机端显示） */
.mobile-console-tabs {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex-shrink: 0;
}

.mobile-console-tab {
    padding: 6px 10px;
    border-radius: 9px;
    border: 2px solid var(--ink);
    background: #EFE9DA;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.mobile-console-tab.active {
    background: var(--mustard);
    color: var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
}

.mobile-step-badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: #FFFDF9;
    border: 1.5px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 900;
    color: var(--ink);
}

.mobile-step-badge.done {
    background: var(--sage);
    color: #fff;
    border-color: var(--sage);
}

/* 林老师指导大卡片 + 《石纪元》式本章大国重器造物合体槽 */
.mentor-guide-card {
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 7px 9px;
    box-shadow: var(--shadow-hard);
}

.forge-blueprint-strip {
    background: linear-gradient(90deg, #1E293B 0%, #0F172A 100%);
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    padding: 5px 8px;
    margin-bottom: 6px;
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forge-bp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 900;
    color: #FDE68A;
    gap: 6px;
    white-space: nowrap;
}

.forge-bp-slots {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.forge-bp-slots::-webkit-scrollbar {
    display: none;
}

.forge-part-chip {
    flex: 1;
    min-width: 0;
    padding: 2px 5px;
    border-radius: 6px;
    border: 1px dashed #475569;
    background: rgba(30, 41, 59, 0.75);
    color: #94A3B8;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.15s ease;
}

.forge-part-chip.active {
    background: #FEF3C7;
    border: 1.5px solid #F59E0B;
    color: #1E293B;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.forge-part-chip.forged {
    background: #DCFCE7;
    border: 1.5px solid #16A34A;
    color: #065F46;
    font-weight: 900;
}

.craft-part-svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.forge-part-chip:hover .craft-part-svg {
    transform: scale(1.22);
}
.craft-part-svg.lit {
    filter: drop-shadow(0 0 2.5px rgba(16, 185, 129, 0.65));
}

.forge-explore-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #F4EFE3;
    border: 1.5px solid var(--ink);
}

.forge-explore-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.forge-step-pill {
    padding: 2px 7px;
    border-radius: 999px;
    border: 1.5px solid #94A3B8;
    background: #FFFDF9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 900;
    white-space: nowrap;
}

.forge-step-pill.current {
    background: var(--mustard-light);
    border-color: var(--ink);
    color: var(--ink);
}

.forge-step-pill.done {
    background: var(--sage);
    border-color: var(--ink);
    color: #FFFDF9;
}

.mentor-top-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 6px;
}

.mentor-portrait-box {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(180deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid var(--ink);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 2px 2px 0px var(--ink);
}

.mentor-portrait-box img {
    width: 84px;
    height: 88px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin-top: 2px;
}

.mentor-name-tag {
    width: 100%;
    background: var(--ink);
    color: #FFFDF9;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    padding: 2px 0;
    white-space: nowrap;
}

.mentor-speech-bubble {
    flex: 1;
    min-width: 0;
    background: #F8F5EC;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    padding: 6px 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mentor-bubble-title {
    font-size: 11.5px;
    font-weight: 900;
    color: var(--vermilion);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mentor-bubble-text {
    font-size: 12px;
    line-height: 1.36;
    color: var(--ink);
    font-weight: 700;
}

.mentor-formula-tag {
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--mustard-light);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 1-2-3 分步实时打勾清单 */
.step-checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 9px;
    background: #F4F1E8;
    border: 1.5px solid #C8C1B2;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.step-item.current {
    background: var(--mustard-light);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-weight: 900;
    box-shadow: 2px 2px 0px var(--ink);
}

.step-item.done {
    background: var(--sage-light);
    border: 1.5px solid var(--sage);
    color: var(--sage);
    font-weight: 800;
}

.step-badge {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 900;
    flex-shrink: 0;
    color: var(--ink);
}

.step-item.current .step-badge {
    background: var(--vermilion);
    color: #ffffff;
}

.step-item.done .step-badge {
    background: var(--sage);
    border-color: var(--sage);
    color: #ffffff;
}

.step-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-status-tag {
    font-size: 10.5px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.step-item.current .step-status-tag {
    background: var(--vermilion);
    color: #fff;
}

.step-item.done .step-status-tag {
    background: var(--sage);
    color: #fff;
}

/* ==================== 右侧通用手账卡片与精工控件 ==================== */
#sidebar-dynamic {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tac-card {
    background: var(--bg-card);
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: var(--shadow-hard);
}

.tac-card.gold-border {
    background: #FFFDF9;
}

.tac-card-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px dashed #D6CFC2;
    padding-bottom: 4px;
    white-space: nowrap;
}

/* 读数仪表盘矩阵 */
.oled-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.oled-box {
    background: #F4F0E4;
    border: 1.5px solid var(--ink);
    border-radius: 9px;
    padding: 4px 8px;
    min-width: 0;
}

.oled-box.full {
    grid-column: 1 / -1;
}

.oled-lbl {
    font-size: 10.5px;
    color: var(--ink-soft);
    font-weight: 700;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oled-val {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 900;
    color: var(--cobalt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oled-val.gold { color: #B45309; }
.oled-val.green { color: var(--sage); }
.oled-val.rose { color: var(--vermilion); }

/* 五位一体精密滑块组件 */
.precision-control {
    margin-bottom: 7px;
}
.precision-control:last-child {
    margin-bottom: 0;
}

.pc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.pc-pill {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--cobalt-light);
    border: 1.5px solid var(--ink);
    color: var(--cobalt);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.pc-track-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-step-btn {
    min-width: 28px;
    width: auto;
    height: 28px;
    padding: 0 6px;
    border-radius: 8px;
    border: 2px solid var(--ink);
    background: #FFFDF9;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: 0.12s;
}

.pc-step-btn:hover {
    background: var(--mustard);
    transform: translate(-1px, -1px);
}

.pc-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60A5FA, #F59E0B, #E05A47);
    border: 1.5px solid var(--ink);
    outline: none;
    cursor: pointer;
}

.pc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFDF9;
    border: 2.5px solid var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
    cursor: grab;
}

.pc-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 5px;
}

.pc-chip {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 4px 6px;
    border-radius: 8px;
    background: #F4F0E4;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: 0.12s;
}

.pc-chip:hover, .pc-chip.active {
    background: var(--mustard);
    color: var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
    transform: translate(-1px, -1px);
}

/* 实体手账大按钮 */
.tac-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 11px;
    border: 2px solid var(--ink);
    background: var(--vermilion);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--ink);
    transition: all 0.12s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.tac-btn:hover {
    background: #EB6653;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--ink);
}

.tac-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--ink);
}

.tac-btn.cyan {
    background: var(--cobalt);
    color: #fff;
}

.tac-btn.ghost {
    background: #F4F0E4;
    color: var(--ink);
}

.tac-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.tac-feedback {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 800;
    display: none;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0px var(--ink);
}

.tac-feedback.ok {
    display: block;
    background: var(--sage-light);
    color: #064E3B;
}

.tac-feedback.warn {
    display: block;
    background: var(--mustard-light);
    color: #78350F;
}

/* ==================== 关卡过关弹窗 & 林老师手绘手账脑图弹窗 ==================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(34, 38, 41, 0.55);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 12px;
}

.modal-backdrop.show {
    display: flex;
}

.cutscene-box {
    width: min(720px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: #FFFDF9;
    border: 3px solid var(--ink);
    border-radius: 22px;
    padding: 24px 26px;
    box-shadow: 8px 8px 0px var(--ink);
}

.cutscene-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cutscene-npc {
    width: 148px;
    height: 176px;
    object-fit: contain;
    background: var(--sage-light);
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0px var(--ink);
    flex-shrink: 0;
    padding-top: 8px;
}

.cutscene-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--mustard);
    border: 1.5px solid var(--ink);
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 8px;
}

.cutscene-formula-box {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--sage-light);
    border: 2px solid var(--ink);
    color: #064E3B;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
}

.cutscene-cg-banner {
    width: 100%;
    height: 185px;
    border-radius: 14px;
    border: 2px solid var(--ink);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    background: #0F172A;
    box-shadow: 2px 2px 0 var(--ink);
}

.cutscene-cg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: kenBurnsMove 8s ease-in-out infinite alternate;
}

@keyframes kenBurnsMove {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.07); }
}

.cutscene-cg-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1.5px solid #F59E0B;
    color: #FEF3C7;
    font-size: 11px;
    font-weight: 900;
}

.mindmap-box {
    width: min(1180px, 95vw);
    height: min(760px, 90vh);
    background: #FAF6EE;
    border: 3px solid var(--ink);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--ink);
}

.mindmap-header {
    height: 58px;
    padding: 0 22px;
    background: #FFFDF9;
    border-bottom: 2.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

#mindmap-canvas {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
}

/* ==================== 开场故事序章弹窗 (Interactive Story Prologue) ==================== */
.prologue-box {
    width: min(860px, 95vw);
    max-height: 94vh;
    background: #FFFDF9;
    border: 3px solid var(--ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--ink);
    display: flex;
    flex-direction: column;
}

.prologue-header {
    padding: 10px 18px;
    background: #F4EFE3;
    border-bottom: 2.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.prologue-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.prologue-tag-pill {
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--vermilion);
    border: 1.5px solid var(--ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 900;
    box-shadow: 1px 1px 0 var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
}

.prologue-stage-canvas {
    height: 365px;
    background: #1B1F23;
    border-bottom: 2.5px solid var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prologue-cg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center center;
}

.prologue-cg-img.ken-burns {
    animation: prologueKenBurns 11s ease-in-out infinite alternate;
}

@keyframes prologueKenBurns {
    0%   { transform: scale(1.0) translate(0px, 0px); }
    100% { transform: scale(1.08) translate(-10px, -6px); }
}

.prologue-fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.prologue-cinema-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(27, 31, 35, 0.78);
    border: 1.5px solid rgba(253, 230, 138, 0.85);
    color: #FDE68A;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.prologue-dialog-area {
    padding: 12px 20px;
    background: #FFFDF9;
    display: flex;
    align-items: center;
    gap: 16px;
}

.prologue-npc-avatar {
    width: 84px;
    height: 98px;
    border-radius: 14px;
    border: 2.5px solid var(--ink);
    background: #FEF3C7;
    box-shadow: 3px 3px 0 var(--ink);
    object-fit: contain;
    object-position: center bottom;
    flex-shrink: 0;
    padding-top: 4px;
}

.prologue-dialog-content {
    flex: 1;
    min-width: 0;
}

.prologue-chapter-kicker {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    background: #FEF3C7;
    border: 1.5px solid var(--ink);
    font-size: 11.5px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 4px;
}

.prologue-slide-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 4px;
}

.prologue-slide-text {
    font-size: 13.5px;
    line-height: 1.4;
    color: #374151;
    font-weight: 800;
}

.prologue-footer {
    padding: 10px 20px;
    background: #F4EFE3;
    border-top: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prologue-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prologue-step-dot {
    padding: 5px 11px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: #FFFDF9;
    font-size: 11.5px;
    font-weight: 900;
    color: var(--ink-soft);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.prologue-step-dot.active {
    background: var(--mustard);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.prologue-step-dot.done {
    background: var(--sage-light);
    color: #065F46;
}

.prologue-nav-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ==================== 22章全册目录筛选标签与章节卡片 ==================== */
.curr-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.curr-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.curr-tab {
    padding: 6px 13px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    background: #FAF6EE;
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
    white-space: nowrap;
}

.curr-tab.active {
    background: var(--mustard);
}

.curr-summary-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sage-light);
    border: 1.5px solid var(--ink);
    font-size: 11.5px;
    font-weight: 900;
    color: #065F46;
    white-space: nowrap;
}

.curr-vol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.curr-vol-grid.single-vol {
    grid-template-columns: 1fr;
}

.curr-chap-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.curr-vol-grid.single-vol .curr-chap-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.curr-chap-card {
    padding: 6px 9px;
    border-radius: 9px;
    background: #FFFDF9;
    border: 1.5px solid #C8C1B2;
    font-size: 11.5px;
    line-height: 1.3;
}

.curr-chap-card.unlocked {
    background: #FEF3C7;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

.curr-chap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 3px;
    gap: 6px;
}

.curr-chap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.curr-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    background: #F3EFE6;
    border: 1px solid #C8C1B2;
    font-size: 10.5px;
    font-weight: 800;
    color: #374151;
    white-space: nowrap;
}

.curr-chap-card.unlocked .curr-tag {
    background: #FFFDF9;
    border-color: #D97706;
    color: #92400E;
}

/* ==================== 进关自动导学屏 & BOSS战前武器库检阅 & 智能错因诊断弹窗 ==================== */
.briefing-box {
    width: min(940px, 95vw);
    max-height: 92vh;
    background: #FFFDF9;
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: 8px 8px 0px var(--ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.briefing-box.diagnosis-box {
    width: min(860px, 95vw);
}

.briefing-header {
    padding: 12px 20px;
    background: #F4EFE3;
    border-bottom: 2.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.briefing-kicker-pill {
    padding: 4px 11px;
    border-radius: 8px;
    background: var(--cobalt);
    border: 1.5px solid var(--ink);
    color: #FFFDF9;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 1.5px 1.5px 0 var(--ink);
    white-space: nowrap;
}

.briefing-body {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #FAF6EE;
}

.briefing-mentor-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 3px 3px 0 var(--ink);
}

.briefing-mentor-avatar {
    width: 64px;
    height: 74px;
    border-radius: 12px;
    border: 2px solid var(--ink);
    background: #FEF3C7;
    object-fit: contain;
    object-position: center bottom;
    flex-shrink: 0;
}

.briefing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 820px) {
    .briefing-cards-grid {
        grid-template-columns: 1fr;
    }
}

.briefing-kcard {
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.briefing-kcard-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    border: 1.5px solid var(--ink);
}

.briefing-kcard-title {
    font-size: 14.5px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.3;
}

.briefing-kcard-list {
    margin: 0;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #334155;
    font-weight: 700;
    flex: 1;
}

.briefing-kcard-list li {
    margin-bottom: 4px;
}

.briefing-kcard-formula {
    padding: 6px 10px;
    border-radius: 8px;
    background: #FEF3C7;
    border: 1.5px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 900;
    color: #92400E;
    text-align: center;
}

/* 3秒进关直觉口令解锁栏 */
.briefing-gate-box {
    background: #FFFBEB;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 3px 3px 0 var(--ink);
}

.briefing-gate-q {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.briefing-gate-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .briefing-gate-opts {
        grid-template-columns: 1fr;
    }
}

.briefing-gate-opt {
    padding: 9px 12px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    background: #FFFDF9;
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
    text-align: left;
    transition: all 0.12s;
}

.briefing-gate-opt:hover {
    background: #FEF3C7;
    transform: translate(-1px, -1px);
}

.briefing-gate-opt.correct {
    background: #DCFCE7;
    border-color: #16804A;
    color: #065F46;
}

.briefing-gate-opt.wrong {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #991B1B;
}

/* BOSS 战全章公式武器库网格 */
.boss-arsenal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 680px) {
    .boss-arsenal-grid {
        grid-template-columns: 1fr;
    }
}

.boss-weapon-card {
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 小关 3/3 独立盲测二级渐进锦囊 */
.blind-test-banner {
    background: #FEF2F2;
    border: 1.5px solid #DC2626;
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 11.5px;
    font-weight: 900;
    color: #991B1B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.hint-capsule-btn {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1.5px solid var(--ink);
    background: #F2B749;
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 1.5px 1.5px 0 var(--ink);
    white-space: nowrap;
}

/* ==================== 全局物理公式教科书级上下标排版系统 ==================== */
.phys-term {
    display: inline-block;
    white-space: nowrap;
}

.phys-var {
    font-family: "Times New Roman", "Georgia", "Noto Serif SC", serif;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.phys-sub {
    font-family: "Noto Sans SC", "JetBrains Mono", sans-serif;
    font-style: normal;
    font-size: 0.72em;
    font-weight: 900;
    vertical-align: -0.25em;
    line-height: 0;
    margin-left: 0.5px;
    margin-right: 1px;
}

.phys-sup {
    font-family: "JetBrains Mono", "Noto Sans SC", monospace;
    font-style: normal;
    font-size: 0.72em;
    font-weight: 900;
    vertical-align: 0.35em;
    line-height: 0;
    margin-left: 0.5px;
    margin-right: 1px;
}

/* ==================== 3.0 动态重器总装车间 (Interactive Hangar) & 总工质检签字台 ==================== */
.hangar-cutscene-box {
    width: min(920px, 95vw);
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #FFFDF9;
}

.hangar-top-bar {
    padding: 9px 18px;
    background: #1E293B;
    border-bottom: 2.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.hangar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hangar-kicker-pill {
    padding: 3px 9px;
    border-radius: 7px;
    background: #F59E0B;
    border: 1.5px solid #222629;
    color: #1E293B;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
}

.hangar-machine-name {
    font-size: 14.5px;
    font-weight: 900;
    color: #FDE68A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hangar-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hangar-progress-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: #064E3B;
    border: 1.5px solid #34D399;
    color: #A7F3D0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
}

.hangar-canvas-wrap {
    width: 100%;
    height: 238px;
    background: #0F172A;
    border-bottom: 2.5px solid var(--ink);
    position: relative;
    flex-shrink: 0;
}

.hangar-assembly-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hangar-bottom-grid {
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 14px;
    align-items: stretch;
    overflow-y: auto;
    background: #FAF6EE;
    flex: 1;
}

.hangar-summary-col {
    background: #FFFDF9;
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 10px 13px;
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.hangar-npc-avatar {
    width: 58px !important;
    height: 68px !important;
    border-radius: 12px !important;
    box-shadow: 2px 2px 0 var(--ink) !important;
    padding-top: 3px !important;
}

.cutscene-qc-card {
    background: #FFFBEB;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    padding: 10px 13px;
    box-shadow: 3px 3px 0 var(--ink);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}

.qc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.qc-tag-pill {
    padding: 2px 8px;
    border-radius: 6px;
    background: #E05A47;
    border: 1.5px solid var(--ink);
    color: #FFFDF9;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.qc-status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #FEF3C7;
    border: 1.5px solid #D97706;
    color: #92400E;
    font-size: 10.5px;
    font-weight: 900;
    white-space: nowrap;
}

.qc-status-pill.signed {
    display: none;
}

.qc-question-text {
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 900;
    color: var(--ink);
}

.qc-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.qc-opt-btn {
    padding: 7px 9px;
    border-radius: 9px;
    border: 2px solid var(--ink);
    background: #FFFDF9;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
    transition: all 0.12s ease;
    line-height: 1.3;
}

.qc-opt-btn:hover {
    background: #FEF3C7;
    transform: translate(-1px, -1px);
}

.qc-opt-btn.correct {
    background: #DCFCE7;
    border-color: #16804A;
    color: #065F46;
    box-shadow: 2px 2px 0 #16804A;
}

.qc-opt-btn.wrong {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #991B1B;
}

.qc-feedback-bar {
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.38;
    font-weight: 800;
    border: 1.5px solid var(--ink);
}

.qc-feedback-bar.ok {
    background: #DCFCE7;
    color: #064E3B;
    border-color: #16804A;
}

.qc-feedback-bar.warn {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #DC2626;
}

.qc-stamp-seal {
    display: none;
    padding: 2px 9px;
    border: 2px solid #DC2626;
    border-radius: 7px;
    color: #DC2626;
    background: #FEF2F2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 2px 2px 0 rgba(220, 38, 38, 0.25);
}

.qc-stamp-seal.stamped {
    display: inline-block;
    animation: qcStampIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes qcStampIn {
    0% { transform: rotate(-6deg) scale(1.45); opacity: 0; }
    100% { transform: rotate(-2deg) scale(1); opacity: 1; }
}

.hangar-footer-bar {
    padding: 9px 18px;
    background: #F4EFE3;
    border-top: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.hangar-footer-hint {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



