/* ============================================
   彩蛋 — 纯对话框 + 全屏礼花覆盖层
   样式自包含，不污染 style.css
   ============================================ */

/* gadget 子面板显隐：style.css 未定义该规则，
   多面板并存时需在此补齐（不影响单面板旧行为） */
.gadget-tab-content {
    display: none;
}

.gadget-tab-content.active {
    display: block;
}

/* 全屏礼花覆盖层：默认不拦截页面指针事件，仅关闭按钮可点 */
#easter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(15, 18, 30, 0.55);
    pointer-events: none;
}

#easter-overlay canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#easter-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(42px, 8vw, 88px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(255, 217, 61, 0.45),
        0 0 80px rgba(255, 159, 69, 0.35);
    white-space: nowrap;
}

#easter-title.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#easter-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s;
}

#easter-close:hover {
    background: rgba(0, 0, 0, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    #easter-title {
        transition: opacity 0.4s ease;
        transform: translate(-50%, -50%) scale(1);
    }
}
