.main {
    grid-template-columns: 400px minmax(0, 1fr);
}

.main .extra-panel {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* ---- 设置区 ---- */
.train-form .form-section + .form-section {
    margin-top: 14px;
}

.hint-line {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
}

.kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #f9fafb;
    font-size: 11px;
    font-family: inherit;
    color: #374151;
}

/* ---- 舞台 ---- */
.stage-box {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    background: #fbfcfe;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.stage-box.ok {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.stage-box.bad {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.stage-emoji {
    font-size: 42px;
}

.stage-hint {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.stage-hint.info {
    font-size: 13px;
    color: #9ca3af;
}

.stage-stim {
    font-size: min(26vw, 110px);
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    animation: pop 0.16s ease;
}

.stage-sym {
    font-size: min(26vw, 108px);
    color: #667eea;
    line-height: 1;
    animation: pop 0.16s ease;
}

.stage-img {
    font-size: min(26vw, 110px);
    line-height: 1;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    animation: pop 0.16s ease;
}

.pool-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 84px);
    gap: 10px;
}

.pos-cell {
    height: 84px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: all 0.18s;
}

.pos-cell.hot {
    background: #667eea;
    border-color: #667eea;
}

@keyframes pop {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* ---- 应答按钮 ---- */
.resp-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-top: 4px;
}

.resp-btn {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.resp-btn .rkey {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}

.resp-btn.match:hover,
.resp-btn.match.on {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}

.resp-btn.no:hover,
.resp-btn.no.on {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}

.resp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ---- 进度与实时得分 ---- */
.trail-box {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.trail-box i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
}

.trail-box i.na   { background: #f3f4f6; border-color: #e5e7eb; }
.trail-box i.hit  { background: #16a34a; border-color: #16a34a; }
.trail-box i.err  { background: #ef4444; border-color: #ef4444; }

.live-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    width: 100%;
    max-width: 420px;
}

.live-score b {
    color: #4338ca;
    font-variant-numeric: tabular-nums;
}

/* ---- 结果标记 ---- */
table.schedule td .g  { color: #16a34a; font-weight: 600; }
table.schedule td .r  { color: #ef4444; font-weight: 600; }
table.schedule td .na { color: #9ca3af; }

@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }
}