/* codex: 2026-09-22 拆分弹窗系统样式（规则、皮肤、设置、胜利通关及提示），保持单文件<=500行 */

/* 浮动夸奖轻提示 */
.praise-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6f00;
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.4);
    z-index: 9999;
    display: none;
    pointer-events: none;
}

/* 模态弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: white;
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: #2e7d32;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #757575;
}

/* 规则弹窗图解与文字 */
.rule-img-preview {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.rule-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #37474f;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 表情包皮肤选择网格 */
.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.skin-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.skin-card.active, .skin-card:hover {
    border-color: #2e7d32;
    background: #f1f8e9;
}

.skin-preview-row {
    font-size: 1.8rem;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* 难度设置表单 */
.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.setting-group select, .setting-group input[type="number"] {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

/* 胜利结算卡片 */
.win-content {
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.win-trophy {
    font-size: 3.5rem;
}

.win-badge {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f57f17;
}

.win-stars {
    font-size: 2.2rem;
}

.win-text {
    font-size: 1rem;
    color: #37474f;
    line-height: 1.6;
}
