/* ============================================================
   css/festival.css - 「2026 中秋：月下团圆」活动样式
   覆盖：① 赏月小动画（cinematic） ② 积分兑换商城 ③ 活动面板
        ④ 图鉴节日成就标签 ⑤ 任务面板里的节日配色
   主题色跟随猫猫餐厅奶油底 + 暖棕 + 粉橘的既有调性。
   ============================================================ */

/* ---------- ① 赏月小动画 ---------- */
.gb-fest-cine {
    position: fixed; inset: 0; z-index: 9500;
    background: linear-gradient(#0b1030 0%, #1a2050 46%, #2c2460 72%, #4a2f56 100%);
    opacity: 0; transition: opacity 1.2s ease;
    display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden; cursor: pointer;
    user-select: none; -webkit-user-select: none;
}
.gb-fest-cine.show { opacity: 1; }
.gb-fest-cine.bye { opacity: 0; }
.gb-fest-cine .fc-night { position: absolute; inset: 0; }

/* 月亮：从窗沿缓缓升起 */
.gb-fest-cine .fc-moon {
    position: absolute; left: 68%; top: 88%;
    width: 16vmin; height: 16vmin; border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #fffdf2 0%, #fdf0c0 55%, #f0d88e 100%);
    box-shadow: 0 0 6vmin 2vmin rgba(255, 243, 200, 0.35), 0 0 16vmin 6vmin rgba(255, 243, 200, 0.15);
    animation: fc-moonrise 7s ease-out forwards;
}
@keyframes fc-moonrise {
    0%   { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(2vmin, -52vmin) scale(1); }
}
.gb-fest-cine .fc-stars i {
    position: absolute; width: 3px; height: 3px; border-radius: 50%;
    background: #fff8dc; opacity: 0.9;
    animation: fc-twinkle 2.4s ease-in-out infinite;
}
@keyframes fc-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }

/* 前景 SVG 场景（灯笼串 + 团圆桌 + 真猫一排） */
.gb-fest-cine .fc-fore {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 2.2s ease 1.6s;
}
.gb-fest-cine.show .fc-fore { opacity: 1; }
.gb-fest-cine.bye .fc-fore { transition: opacity 0.5s ease; opacity: 0; }
.gb-fest-cine .fc-breath { animation: fc-breath 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fc-breath { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.24; } }

.gb-fest-cine .fc-cap {
    position: absolute; bottom: 13%; left: 0; right: 0;
    text-align: center; color: #fdf3dc; font-size: 1.15rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.1em;
    z-index: 3;
}
.gb-fest-cine .fc-cap.pop { animation: fc-cap-pop 0.5s ease; }
@keyframes fc-cap-pop { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.gb-fest-cine .fc-continue {
    position: absolute; bottom: 4.5%; left: 0; right: 0;
    text-align: center; color: rgba(253, 243, 220, 0.75);
    font-size: 0.85rem; letter-spacing: 0.2em;
    z-index: 3;
}

/* ---------- ② 积分兑换商城 ---------- */
.ma-shop .ma-shop-score { text-align: center; font-size: 1.05rem; margin: 0 0 6px; }
.ma-shop .ma-shop-score b { color: #d9722c; font-size: 1.25rem; }
.ma-note { font-size: 0.82rem; color: #9a7a58; margin: 4px 0 10px; line-height: 1.55; }
.ma-note b { color: #c0563c; }
.ma-shop-list { display: flex; flex-direction: column; gap: 8px; }
.ma-shop-item {
    display: flex; align-items: center; gap: 10px;
    background: #fff8ec; border: 1.5px solid #f0dcb8; border-radius: 12px;
    padding: 9px 12px;
}
.ma-shop-item.got { opacity: 0.62; }
.ma-shop-item .mi-ico { font-size: 1.4rem; }
.ma-shop-item .mi-name { flex: 1; font-weight: 600; color: #5c4026; }
.ma-shop-item .mi-done { color: #4c8a4c; font-size: 0.85rem; }
.ma-shop-item .mi-buy { min-width: 76px; }
.ma-shop-item .mi-buy[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- ③ 活动面板 ---------- */
.ma-panel .ma-head {
    text-align: center; font-size: 1.2rem; color: #5c4026; margin-bottom: 2px;
}
.ma-panel .ma-head span { color: #d9722c; font-weight: 700; }
.ma-panel .ma-score { text-align: center; color: #9a7a58; margin: 0 0 10px; }
.ma-panel .ma-score b { color: #d9722c; font-size: 1.15rem; }
.ma-panel .ma-sec {
    margin: 12px 0 6px; padding: 3px 10px;
    background: #fdeeda; border-radius: 8px;
    color: #b06a2c; font-weight: 700; font-size: 0.88rem;
}
.ma-panel .ma-quest {
    background: #fff8ec; border: 1.5px solid #f0dcb8; border-radius: 12px;
    padding: 8px 12px; margin-bottom: 8px; font-size: 0.88rem;
}
.ma-panel .ma-quest > b { color: #5c4026; }
.ma-panel .ma-qst { float: right; font-size: 0.78rem; color: #b06a2c; }
.ma-panel .ma-obj { color: #8a6a48; margin-top: 3px; font-size: 0.82rem; }
.ma-panel .ma-obj.done { color: #4c8a4c; }
/* 「↻ 重新申领」自救按钮：小号幽灵款，卡死时才用 */
.ma-panel .ma-reset {
    display: inline-block; margin-top: 6px; padding: 2px 10px;
    font-size: 0.76rem; color: #a06a3e; background: transparent;
    border: 1px dashed #d8b98c; border-radius: 999px; cursor: pointer;
}
.ma-panel .ma-reset:hover { background: #f8ecd8; color: #7c4a20; border-style: solid; }
.ma-panel .ma-watch { display: block; width: 100%; margin: 10px 0 4px; font-size: 1rem; }
.ma-panel .ma-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-panel .ma-mat {
    background: #fff8ec; border: 1.5px solid #f0dcb8; border-radius: 10px;
    padding: 4px 10px; font-size: 0.82rem; color: #8a6a48;
}
.ma-panel .ma-mat.ok { border-color: #a8d0a8; color: #4c8a4c; }
.ma-panel .ma-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ma-panel .ma-col {
    background: #f7f3ea; border-radius: 10px; padding: 4px 10px;
    font-size: 0.8rem; color: #b8a888;
}
.ma-panel .ma-col.got { background: #fff3d6; color: #b06a2c; }
.ma-panel .ma-achs { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-panel .ma-ach {
    background: #f7f3ea; border-radius: 10px; padding: 4px 10px;
    font-size: 0.8rem; color: #b8a888;
}
.ma-panel .ma-ach.got { background: #fff3d6; color: #b06a2c; }
.ma-panel .ma-ach.hidden { color: #c8b8a0; font-style: italic; }

/* ---------- ④ 图鉴：节日成就标签 ---------- */
.ach-row .ach-fest {
    display: inline-block; margin-top: 3px;
    font-style: normal; font-size: 0.72rem;
    color: #b06a2c; background: #fdeeda;
    border-radius: 6px; padding: 1px 7px;
}

/* ---------- ⑤ 活动入口按钮（top-bar 内，与其它 tool-btn 同款） ---------- */
#btn-fest { animation: fest-pulse 2.6s ease-in-out infinite; }
@keyframes fest-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242, 176, 60, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(242, 176, 60, 0); }
}

/* ---------- ⑥ 月光相册（拍立得缩略图墙 + 大图灯箱） ---------- */
.ma-album-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.ma-photo {
    background: #fffdf7; border: 1px solid #e2d0b4; border-radius: 8px;
    padding: 6px 6px 8px; text-align: center; cursor: pointer;
    box-shadow: 0 2px 6px rgba(84, 52, 24, 0.12);
    transition: transform 0.15s ease;
}
.ma-photo:hover { transform: translateY(-2px) rotate(-1deg); }
.ma-photo-img svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.ma-photo-cap { display: block; font-size: 0.78rem; color: #5c4026; margin-top: 4px; }
.ma-photo-date { display: block; font-size: 0.68rem; color: #b09478; }
.ma-lightbox {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(20, 16, 34, 0.82);
    display: flex; align-items: center; justify-content: center;
    padding: 18px; cursor: zoom-out;
}
.ma-lightbox-inner {
    background: #fffdf7; border-radius: 10px;
    padding: 10px 10px 12px; max-width: min(680px, 94vw);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ma-lightbox-inner svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.ma-lightbox-cap { display: block; text-align: center; color: #5c4026; font-size: 0.85rem; margin-top: 6px; }
@media (max-width: 480px) {
    .ma-album-grid { grid-template-columns: 1fr; }
}

/* 窄屏适配 */
@media (max-width: 480px) {
    .gb-fest-cine .fc-cap { font-size: 1rem; }
    .ma-panel .ma-obj, .ma-panel .ma-quest { font-size: 0.8rem; }
    .ma-moon-entry { width: 92px !important; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .gb-fest-cine .fc-moon { animation-duration: 1.2s; }
    #btn-fest { animation: none; }
    .ma-moon-entry { animation: none; }
    .ma-kitty { animation: none; }
}

/* ---------- ⑦ 餐厅窗外月亮入口（任务4阶段出现，结束后恢复） ---------- */
.ma-moon-entry {
    position: absolute; top: 2.5%; right: 4%;
    width: 118px; height: 118px;
    background: none; border: none; padding: 0;
    cursor: pointer; z-index: 40;
    animation: ma-moon-float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 240, 190, 0.55));
    transition: transform 0.15s ease;
}
.ma-moon-entry:hover { transform: scale(1.07); }
.ma-moon-entry:active { transform: scale(0.96); }
.ma-moon-entry svg { width: 100%; height: 100%; display: block; }
.ma-moon-entry .ma-moon-hint {
    position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
    white-space: nowrap; font-size: 0.78rem; font-weight: 700;
    color: #fff8e0; background: rgba(90, 58, 30, 0.82);
    border: 1.5px solid #e8b45e; border-radius: 999px;
    padding: 3px 12px; pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
@keyframes ma-moon-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -6px; }
}

/* ---------- ⑧ 小猫现身（丢月饼剧情起，最终剧情后离开） ---------- */
.ma-kitty {
    position: absolute; left: 7%; bottom: 14%;
    width: 11%; min-width: 86px; max-width: 150px;
    z-index: 26;
    cursor: pointer;
    animation: ma-kitty-in 1.4s ease both;
    transition: opacity 2.4s ease, transform 2.4s ease;
}
.ma-kitty.bye { opacity: 0; transform: translateX(-46px); }
.ma-kitty .ma-kitty-cat svg { width: 100%; height: auto; display: block; }
.ma-kitty .ma-kitty-box {
    width: 46%; margin: -8% auto 0;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}
.ma-kitty .ma-kitty-box svg { width: 100%; height: auto; display: block; }
@keyframes ma-kitty-in {
    0%   { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: none; }
}

/* ---------- ⑥ 剧情选择分支按钮（story.js choices 行渲染） ---------- */
.gb-story-choices { display: flex; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.gb-story-choice {
    flex: 1 1 40%; min-width: 140px;
    border: 2px solid #e8b45e; border-radius: 12px;
    background: #fff6e0; color: #6b4a2b;
    font-size: 0.95rem; font-weight: 600;
    padding: 10px 12px; cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}
.gb-story-choice:hover { background: #ffefc4; transform: translateY(-1px); }
.gb-story-choice:active { transform: scale(0.97); }

/* ============================================================
   🇨🇳 2026 国庆 · 狗宝的国庆大冒险（nd-*）
   视觉基调：暖白/奶油打底，红金点缀，绿蓝辅助 —— 不做红色满屏。
   ============================================================ */

/* ---------- 主面板 ---------- */
.gb-modal.nd-panel .gb-modal-card { max-width: 520px; }
.nd-panel .nd-ended {
    background: linear-gradient(135deg, #fdf3dd, #fbe8cf);
    border: 1.5px solid #ecd2a4; border-radius: 12px;
    padding: 14px 12px; text-align: center; margin-bottom: 10px;
    color: #8a5c28; font-weight: 700; line-height: 1.6;
}
.nd-panel .nd-ended small { font-weight: 400; color: #a8814e; }
.nd-panel .nd-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.nd-panel .nd-head-art { width: 46%; border-radius: 10px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(60,40,20,.18); }
.nd-panel .nd-head-txt b { display: block; color: #b23434; font-size: 1.02rem; margin-bottom: 6px; }
.nd-panel .nd-badge-n { color: #8a6a3c; font-size: 0.92rem; }
.nd-panel .nd-badge-n em { font-style: normal; color: #c9822a; font-weight: 800; font-size: 1.1rem; }

.nd-panel .nd-go {
    display: block; width: 100%; border: none; cursor: pointer;
    background: linear-gradient(135deg, #d84545, #c23a3a);
    color: #fff4e0; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em;
    padding: 13px 0; border-radius: 12px; margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(180,60,50,.32);
    transition: transform .12s ease, box-shadow .12s ease;
}
.nd-panel .nd-go:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(180,60,50,.4); }
.nd-panel .nd-go:active { transform: scale(.98); }

.nd-panel .nd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.nd-panel .nd-tile {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: #fdf6e8; border: 1.5px solid #eed9ac; border-radius: 10px;
    padding: 9px 4px 7px; cursor: pointer; font-size: 1.25rem; position: relative;
    transition: transform .12s ease, background .12s ease;
}
.nd-panel .nd-tile span { font-size: 0.74rem; color: #7a5a34; font-weight: 700; }
.nd-panel .nd-tile i { font-style: normal; font-size: 0.68rem; color: #b08a50; }
.nd-panel .nd-tile:hover { transform: translateY(-2px); background: #ffefce; }

.nd-panel .nd-sec {
    font-size: 0.8rem; font-weight: 800; color: #a87838; letter-spacing: 0.08em;
    margin: 14px 0 6px; padding-left: 2px;
}
/* 准备度 */
.nd-panel .nd-ready-bar {
    height: 14px; background: #f3e4c2; border-radius: 8px; overflow: hidden;
    border: 1px solid #e8d2a0; position: relative;
}
.nd-panel .nd-ready-bar i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #e8b23e, #d84545);
    border-radius: 8px; transition: width .6s ease;
}
.nd-panel .nd-ready-line { margin-top: 6px; color: #8a6a3c; font-size: 0.85rem; line-height: 1.5; }
.nd-panel .nd-ready-line b { color: #b23434; }
.nd-panel .nd-ready-line small { color: #a88a5c; }
/* 每日任务 */
.nd-panel .nd-daily-item {
    display: flex; align-items: center; gap: 8px;
    background: #fdf6e8; border: 1px solid #eed9ac; border-radius: 9px;
    padding: 7px 10px; margin-bottom: 6px; font-size: 0.88rem;
}
.nd-panel .nd-daily-item.got { opacity: 0.72; }
.nd-panel .nd-daily-item .di-label { flex: 1; color: #6a4c28; }
.nd-panel .nd-daily-item .di-prog { color: #b08a50; font-weight: 700; font-size: 0.8rem; }
.nd-panel .nd-daily-item .di-ok { color: #4d8a4a; font-size: 0.8rem; font-weight: 700; }
.nd-panel .nd-daily-item .di-claim { padding: 4px 12px; font-size: 0.8rem; }
/* 主线速览 */
.nd-panel .nd-q {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 4px; border-bottom: 1px dashed #eed9ac; font-size: 0.88rem;
}
.nd-panel .nd-q b { color: #5c4026; font-weight: 700; flex: 1; }
.nd-panel .nd-q .nd-qst { font-size: 0.75rem; color: #b06a2c; white-space: nowrap; }
.nd-panel .nd-q .nd-mini { padding: 3px 10px; font-size: 0.78rem; }
.nd-panel .nd-q.REWARD_CLAIMED, .nd-panel .nd-q.COMPLETED { opacity: 0.75; }
.nd-panel .nd-finale-btn {
    display: block; width: 100%; margin: 12px 0 4px; padding: 11px 0;
    font-size: 1rem; font-weight: 800;
    background: linear-gradient(135deg, #e8a02e, #d84545);
    border: none; border-radius: 12px; color: #fff6dd; cursor: pointer;
    box-shadow: 0 3px 10px rgba(200,120,40,.35);
    animation: nd-glow 2.2s ease-in-out infinite;
}
@keyframes nd-glow { 0%,100% { box-shadow: 0 3px 10px rgba(200,120,40,.35);} 50% { box-shadow: 0 4px 18px rgba(220,140,50,.6);} }
.nd-panel .nd-achs { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-panel .nd-ach {
    font-size: 0.75rem; color: #a88a5c; background: #f8efdb;
    border: 1px solid #eadbb2; border-radius: 999px; padding: 3px 10px;
}
.nd-panel .nd-ach.got { color: #b23434; background: #fdeede; border-color: #eec3a2; font-weight: 700; }

/* ---------- 旅行地图（活动专属视图） ---------- */
.nd-ov {
    position: fixed; inset: 0; z-index: 500; /* 高于 #top-bar(400)，低于 gb-modal(600)/toast(1200)——弹层内容不再被顶栏图标遮挡 */
    background: rgba(40, 26, 16, 0.55);
    opacity: 0; transition: opacity .25s ease;
    overflow-y: auto; display: flex; align-items: flex-start; justify-content: center;
    padding: 4vh 12px;
}
.nd-ov.show { opacity: 1; }
.nd-travel { background: transparent; }
.ndt-wrap { width: min(720px, 96vw); }
.ndt-title {
    text-align: center; color: #fff2d8; font-weight: 800; font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(60,30,10,.5); margin-bottom: 10px;
}
.ndt-badges {
    font-size: 0.9rem; background: rgba(255,244,214,.18); border-radius: 999px;
    padding: 3px 12px; margin-left: 8px;
}
.ndt-map {
    position: relative; width: 100%; aspect-ratio: 10/7;
    background: #fdf6e4; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 30px rgba(40,20,8,.4);
    border: 3px solid #fff;
}
.ndt-terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.ndt-node {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    background: rgba(255,252,242,.94); border: 2px solid #e0c48a;
    border-radius: 12px; padding: 6px 9px 5px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(120,80,30,.22);
    transition: transform .13s ease; z-index: 2;
}
.ndt-node:hover { transform: translate(-50%, -50%) scale(1.08); z-index: 3; }
.ndt-node .ndt-ico { font-size: 1.2rem; line-height: 1; }
.ndt-node .ndt-name { font-size: 0.68rem; font-weight: 800; color: #6a4c28; white-space: nowrap; }
.ndt-node.lock { opacity: 0.55; filter: saturate(0.4); }
.ndt-node.venue { border-color: #d84545; }
.ndt-dot {
    position: absolute; top: -4px; right: -4px; width: 11px; height: 11px;
    background: #e85a5a; border-radius: 50%; border: 2px solid #fff;
    animation: nd-dot 1.6s ease-in-out infinite;
}
@keyframes nd-dot { 0%,100% { transform: scale(1);} 50% { transform: scale(1.35);} }
.ndt-check {
    position: absolute; top: -5px; left: -5px; font-style: normal;
    background: #4d8a4a; color: #fff; font-size: 0.6rem; font-weight: 800;
    width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.ndt-back { display: block; margin: 12px auto 0; }

/* ---------- 地点详情 ---------- */
.ndl-wrap, .nde-wrap {
    width: min(480px, 94vw); margin: 0 auto;
    background: #fffaf0; border-radius: 16px; padding: 16px;
    box-shadow: 0 8px 30px rgba(40,20,8,.4);
}
.ndl-head, .nde-head { font-weight: 800; font-size: 1.08rem; color: #b23434; margin-bottom: 8px; }
.ndl-desc { color: #8a6a44; font-size: 0.9rem; line-height: 1.65; margin: 0 0 10px; }
.ndl-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 0.82rem; color: #7a5a34; }
.ndl-status span { background: #f8efdb; border-radius: 999px; padding: 3px 10px; border: 1px solid #eadbb2; }
.ndl-status .ndl-ev { background: #fdeede; border-color: #eec3a2; color: #b06a2c; font-weight: 700; }
.ndl-status .ndl-ev.dim { opacity: 0.65; font-weight: 400; }
.ndl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ndl-btns .gb-btn { flex: 1; min-width: 120px; }

/* ---------- 探索翻找 ---------- */
.nde-intro { color: #8a6a44; font-size: 0.88rem; line-height: 1.6; margin: 0 0 10px; }
.nde-ev { margin-bottom: 10px; }
.nde-ev-card {
    background: linear-gradient(135deg, #fdeede, #fdf3dd);
    border: 1.5px solid #eec3a2; border-radius: 12px; padding: 10px 12px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nde-ev-card b { color: #b23434; flex-basis: 100%; }
.nde-ev-card span { flex: 1; font-size: 0.84rem; color: #8a6a44; }
.nde-sec { font-size: 0.78rem; font-weight: 800; color: #a87838; letter-spacing: 0.08em; margin: 12px 0 6px; }
.nde-spots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nde-spot {
    display: flex; align-items: center; gap: 8px;
    background: #fdf6e8; border: 1.5px dashed #d8bc8a; border-radius: 10px;
    padding: 10px 10px; cursor: pointer; font-size: 0.86rem; color: #6a4c28;
    transition: transform .12s ease, background .12s ease;
}
.nde-spot:hover { transform: translateY(-2px); background: #ffefce; }
.nde-spot.open { border-style: solid; background: #f4ead2; opacity: 0.8; }
.nde-spot .sp-ico { font-size: 1.1rem; }
.nde-dim { color: #b09a70; font-size: 0.84rem; }
.nde-wrap .gb-btn, .ndl-wrap .gb-btn { margin-top: 6px; }
#nde-back, #ndl-back { display: block; margin: 12px auto 0; }

/* ---------- 事件运行（轻选择） ---------- */
.nd-evov { align-items: center; }
.nd-ev-card {
    width: min(440px, 92vw); background: #fffaf0; border-radius: 16px;
    padding: 18px 16px; box-shadow: 0 8px 30px rgba(40,20,8,.4);
}
.nd-ev-tag { font-size: 0.78rem; font-weight: 800; color: #a87838; letter-spacing: 0.06em; margin-bottom: 8px; }
.nd-ev-text { color: #6a4c28; font-size: 0.95rem; line-height: 1.7; white-space: pre-line; margin: 0 0 12px; }
.nd-ev-choices { display: flex; flex-direction: column; gap: 8px; }
.nd-ev-choices .gb-btn { text-align: left; }

/* ---------- 背包 / 纪念册 ---------- */
.gb-modal.nd-bag .gb-modal-card, .gb-modal.nd-album .gb-modal-card { max-width: 540px; }
.nd-bag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nd-bag-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: #fdf6e8; border: 1.5px solid #eed9ac; border-radius: 10px; padding: 10px 6px;
    text-align: center; min-height: 76px; justify-content: center;
}
.nd-bag-item .bi-ico { font-size: 1.4rem; opacity: 0.35; }
.nd-bag-item.got .bi-ico { opacity: 1; }
.nd-bag-item .bi-name { font-size: 0.75rem; font-weight: 700; color: #6a4c28; }
.nd-bag-item .bi-src { font-size: 0.62rem; color: #b09a70; line-height: 1.3; }
.nd-note { color: #a88a5c; font-size: 0.82rem; line-height: 1.6; margin: 10px 0 0; }

.nda-progress { text-align: center; color: #8a6a3c; font-size: 0.9rem; margin-bottom: 8px; }
.nda-progress b { color: #c9822a; }
.nda-full { color: #4d8a4a; font-weight: 800; }
.nda-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nda-tab {
    border: 1.5px solid #eadbb2; background: #fdf6e8; color: #8a6a3c;
    border-radius: 999px; padding: 4px 14px; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.nda-tab.on { background: #d84545; border-color: #d84545; color: #fff4e0; }
.nda-page {
    background: linear-gradient(160deg, #fffdf4, #fdf3dd);
    border: 1.5px solid #ecd2a4; border-radius: 12px; padding: 12px;
}
.nda-page.hidden-page { background: linear-gradient(160deg, #fff9e8, #fdf0c8); border-color: #e0b868; }
.nda-page-head { font-weight: 800; color: #b23434; margin-bottom: 10px; font-size: 0.95rem; }
.nda-done { font-size: 0.72rem; color: #4d8a4a; font-weight: 700; }
.nda-item { display: flex; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed #e8d2a0; align-items: flex-start; }
.nda-item:last-child { border-bottom: none; }
.nda-item .ai-ico { font-size: 1.5rem; opacity: 0.3; line-height: 1.2; }
.nda-item.got .ai-ico { opacity: 1; }
.nda-item .ai-txt b { color: #5c4026; font-size: 0.9rem; }
.nda-item .ai-txt p { margin: 2px 0; color: #b06a2c; font-size: 0.84rem; font-style: italic; }
.nda-item .ai-txt small { color: #a88a5c; font-size: 0.76rem; line-height: 1.5; display: block; }
.nda-item.big { align-items: center; }
.nda-note2 { text-align: center; color: #a87838; font-style: italic; margin: 12px 0 2px; font-size: 0.86rem; }

/* ---------- 幸运签 ---------- */
.gb-modal.nd-slip .gb-modal-card { max-width: 440px; }
.nd-slip-pick { display: flex; justify-content: center; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.nd-slip-card {
    width: 58px; height: 82px; border-radius: 8px; cursor: pointer;
    background: linear-gradient(160deg, #fdeede, #f8ddb8);
    border: 1.5px solid #e0b868; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 2px 6px rgba(160,100,30,.25);
    transition: transform .15s ease;
}
.nd-slip-card:hover { transform: translateY(-6px) rotate(-2deg); }

/* ---------- 寻宝 ---------- */
.gb-modal.nd-hunt .gb-modal-card { max-width: 420px; }
.nd-hunt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.nd-hunt-cell {
    aspect-ratio: 1; font-size: 1.15rem; background: #eef3dc;
    border: 1.5px solid #d4e0b0; border-radius: 8px; cursor: pointer;
    transition: transform .1s ease;
}
.nd-hunt-cell:hover { transform: scale(1.06); background: #f4f8e4; }
.nd-hunt-cell:disabled { cursor: default; opacity: 0.85; }
.nd-hunt-cell.hit { background: #fde8b0; border-color: #e0b050; }
.nd-hunt-cell.miss { opacity: 0.55; }

/* ---------- 烟花小游戏 ---------- */
.ndfw-wrap {
    width: min(480px, 94vw); margin: 0 auto; text-align: center;
    background: linear-gradient(180deg, #232a4a, #3a3358 60%, #4a3a50);
    border-radius: 18px; padding: 20px 16px; position: relative; overflow: hidden;
    box-shadow: 0 10px 40px rgba(20,10,30,.5);
}
.ndfw-head { color: #ffe9b8; font-weight: 800; font-size: 1.15rem; }
.ndfw-info { color: #d8cfa8; font-size: 0.85rem; margin: 6px 0; }
.ndfw-info b { color: #ffd98c; }
.ndfw-prompt { color: #b8b0d8; font-size: 0.78rem; margin-bottom: 8px; }
.ndfw-key {
    font-size: 3rem; font-weight: 900; color: #fff;
    width: 90px; height: 90px; line-height: 90px; margin: 6px auto;
    background: rgba(255,255,255,.08); border: 2px solid rgba(255,233,184,.5);
    border-radius: 18px; text-shadow: 0 0 18px rgba(255,220,140,.8);
}
.ndfw-bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin: 8px 30px; }
.ndfw-bar i { display: block; height: 100%; background: #ffd98c; border-radius: 4px; }
.ndfw-btns { display: flex; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.ndfw-btn {
    width: 54px; height: 54px; font-size: 1.5rem; font-weight: 800;
    color: #ffe9b8; background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,233,184,.4); border-radius: 12px; cursor: pointer;
}
.ndfw-btn:active { transform: scale(0.92); background: rgba(255,233,184,.25); }
.ndfw-sky { position: absolute; inset: 0; pointer-events: none; }
.ndfw-band { color: #ffd98c; font-size: 1.2rem; font-weight: 800; margin: 8px 0; }
.ndfw-wrap .nd-note { color: #c8bfa0; }
.ndfw-wrap .gb-btn.ghost { color: #d8cfa8; border-color: rgba(255,255,255,.3); margin-top: 10px; }
/* 烟花爆裂（通用） */
.ndfw-burst { position: absolute; width: 6px; height: 6px; }
.ndfw-burst i {
    position: absolute; left: 0; top: 0; width: 3px; height: 26px; border-radius: 3px;
    background: var(--fc, #ffd98c); transform-origin: center -22px; top: 22px;
    animation: ndfw-ray 1.1s ease-out forwards;
}
.ndfw-burst i:nth-child(1) { transform: rotate(0deg); } .ndfw-burst i:nth-child(2) { transform: rotate(30deg); }
.ndfw-burst i:nth-child(3) { transform: rotate(60deg); } .ndfw-burst i:nth-child(4) { transform: rotate(90deg); }
.ndfw-burst i:nth-child(5) { transform: rotate(120deg); } .ndfw-burst i:nth-child(6) { transform: rotate(150deg); }
.ndfw-burst i:nth-child(7) { transform: rotate(180deg); } .ndfw-burst i:nth-child(8) { transform: rotate(210deg); }
.ndfw-burst i:nth-child(9) { transform: rotate(240deg); } .ndfw-burst i:nth-child(10) { transform: rotate(270deg); }
.ndfw-burst i:nth-child(11) { transform: rotate(300deg); } .ndfw-burst i:nth-child(12) { transform: rotate(330deg); }
@keyframes ndfw-ray { 0% { opacity: 1; scale: 0.4; } 70% { opacity: 1; } 100% { opacity: 0; scale: 1.25; } }

/* ---------- 最终庆典 ---------- */
.nd-finale {
    position: fixed; inset: 0; z-index: 500; /* 全屏庆典：盖住顶栏（与 .nd-ov 同层，DOM 后者在上面） */
    background: #141a30;
    opacity: 0; transition: opacity .8s ease; overflow: hidden;
}
.nd-finale.show { opacity: 1; }
.ndf-sky { position: absolute; inset: 0; }
.ndf-stars i {
    position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%;
    opacity: 0.6; animation: ndf-tw 2.4s ease-in-out infinite;
}
.ndf-stars i:nth-child(odd) { animation-delay: 1.2s; }
@keyframes ndf-tw { 0%,100% { opacity: .25; } 50% { opacity: .9; } }
.ndf-flags { position: absolute; top: 4%; left: 0; width: 100%; height: 30px; }
.ndf-flags svg { width: 100%; height: 100%; }
.ndf-balloons { position: absolute; bottom: 24%; left: 4%; width: 90px; height: 60px; }
.ndf-balloons svg { width: 100%; height: 100%; }
.ndf-stage { position: absolute; bottom: 0; left: 0; width: 100%; text-align: center; }
.ndf-stage svg { width: min(680px, 96vw); }
.ndf-chars { position: absolute; bottom: 8%; left: 0; width: 100%; height: 150px; }
.ndf-char { position: absolute; bottom: 0; width: 86px; height: 86px; transform-origin: bottom center; }
.ndf-char svg { width: 100%; height: 100%; }
.ndf-char.pop { animation: ndf-pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes ndf-pop { from { transform: translateY(24px) scale(.6); opacity: 0; } to { opacity: 1; } }
.ndf-cap {
    position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%);
    width: min(560px, 90vw); text-align: center; color: #f4e8c8; font-size: 1.02rem;
    line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.ndf-cap .ndf-big { font-size: 1.35rem; font-weight: 900; color: #ffe9b8; }
.ndf-fw { position: absolute; inset: 0 0 30% 0; pointer-events: none; }
.ndf-burst { position: absolute; }
.ndf-skip {
    position: absolute; top: 18px; right: 18px; color: #d8cfa8; font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 14px;
    cursor: pointer; z-index: 2;
}
.gb-modal.nd-finale-panel .gb-modal-card { max-width: 460px; }
.nd-photo-card {
    border: 10px solid #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(60,40,20,.3);
    transform: rotate(-1.2deg); background: #fff; margin: 6px 0 10px;
}
.nd-photo-card svg { display: block; width: 100%; }

/* ---------- 商店 / 交换 ---------- */
.gb-modal.nd-shop .gb-modal-card, .gb-modal.nd-swap .gb-modal-card { max-width: 480px; }
.nd-swap-row {
    background: #fdf6e8; border: 1px solid #eed9ac; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px; font-size: 0.88rem;
}
.nd-swap-row.done { opacity: 0.7; }
.nd-swap-row .sw-npc { font-weight: 800; color: #b23434; }
.nd-swap-row .sw-line { color: #6a4c28; }
.nd-swap-row .sw-items { display: flex; gap: 8px; align-items: center; margin: 6px 0; color: #8a6a3c; flex-wrap: wrap; }
.nd-swap-row .sw-items .ok { color: #4d8a4a; font-weight: 700; }
.nd-swap-row .mi-done { color: #4d8a4a; font-weight: 700; }

/* ---------- P2 打磨（2026-09-30）：缺失类的专属样式 + 视觉统一 ---------- */
/* 结束态磁贴：不可点、降饱和，一眼看出「已结束」而非「还没做」 */
.nd-panel .nd-tile:disabled {
    cursor: default; filter: grayscale(.55); opacity: .62;
    transform: none !important; background: #f3ecd9;
}
.nd-panel .nd-tile:disabled i { color: #a89a80; }
/* 国庆主线列表：容器卡片化，行间分隔更清晰 */
.nd-panel .nd-quests {
    display: flex; flex-direction: column; gap: 6px;
    background: rgba(255, 250, 236, .6); border: 1px solid #f0e2c0;
    border-radius: 10px; padding: 8px; margin-top: 2px;
}
/* 事件选项按钮：整行可点 + 悬停右移小箭头提示 */
.nd-ev-choices .nd-ev-c {
    width: 100%; justify-content: flex-start; position: relative;
    background: #fffaf0; border-color: #e8d5a8;
}
.nd-ev-choices .nd-ev-c::after { content: '▸'; position: absolute; right: 12px; opacity: 0; transition: opacity .12s ease; color: #c98a2c; }
.nd-ev-choices .nd-ev-c:hover::after { opacity: 1; }
/* 「继续 ▸」居中收尾，形成明确的节奏收束 */
.nd-ev-card .nd-ev-next { display: block; margin: 0 auto; min-width: 132px; text-align: center; }

@media (max-width: 480px) {
    .nd-panel .nd-tiles { grid-template-columns: repeat(3, 1fr); }
    .nde-spots { grid-template-columns: 1fr 1fr; }
    .ndf-chars { height: 110px; }
    .ndf-char { width: 66px; height: 66px; }
}

/* ============================================================
   NDArt 手绘 SVG 图标适配（js/art/nd-art.js）
   ============================================================ */
.nda-i { width: 1.15em; height: 1.15em; vertical-align: -0.22em; display: inline-block; }

/* 主面板 */
.nd-panel .nd-tile .nda-i { width: 27px; height: 27px; }
.nd-panel .nd-tile { font-size: 1.25rem; }
.nd-panel .nd-sec .nda-i { width: 15px; height: 15px; vertical-align: -0.2em; }
.nd-panel .nd-go .nda-i { width: 18px; height: 18px; vertical-align: -0.3em; }
.nd-panel .nd-badge-n .nda-i { width: 14px; height: 14px; vertical-align: -0.2em; }
.nd-panel .nd-ready-line .nda-i { width: 17px; height: 17px; vertical-align: -0.28em; }
.nd-panel .nd-finale-btn .nda-i { width: 17px; height: 17px; vertical-align: -0.3em; }
.nd-ended .nda-i { width: 18px; height: 18px; vertical-align: -0.3em; }

/* 主线状态芯片（替代 emoji 状态字） */
.nd-panel .nd-q .nd-qst { padding: 1px 8px 2px; border-radius: 999px; font-weight: 700; letter-spacing: 0.02em; }
.nd-qst.s-avail  { color: #3e7a46; background: #e4f2d8; }
.nd-qst.s-doing  { color: #2e6a8a; background: #ddebf4; }
.nd-qst.s-ready  { color: #b26316; background: #fdeecb; }
.nd-qst.s-claim  { color: #b23434; background: #fbdeda; }
.nd-qst.s-done   { color: #8a8377; background: #efe9dc; }
.nd-qst.s-lock   { color: #a09a8e; background: #eee9df; }

/* 每日任务 / 成就 */
.nd-daily-item .di-ico .nda-i { width: 22px; height: 22px; vertical-align: -0.4em; }
.nd-ach .nda-i { width: 14px; height: 14px; vertical-align: -0.2em; }

/* 旅行地图 / 地点详情 / 探索 */
.ndt-node .ndt-ico .nda-i { width: 27px; height: 27px; display: block; margin: 0 auto 2px; }
.ndt-title .nda-i { width: 18px; height: 18px; vertical-align: -0.3em; }
.ndt-badges .nda-i { width: 14px; height: 14px; vertical-align: -0.2em; }
.ndl-head .nda-i, .nde-head .nda-i { width: 20px; height: 20px; vertical-align: -0.32em; }
.ndl-status span.ok { color: #3e7a46; font-weight: 700; }
.ndl-ev .nda-i { width: 14px; height: 14px; vertical-align: -0.2em; }
.nd-ev-tag .nda-i { width: 14px; height: 14px; vertical-align: -0.22em; }
.nde-ev-card b .nda-i { width: 15px; height: 15px; vertical-align: -0.22em; }

/* 背包 / 纪念册 / 幸运签 / 商店 / 交换 */
.nd-bag-item .bi-ico .nda-i { width: 30px; height: 30px; vertical-align: -0.5em; }
.nda-item .ai-ico .nda-i { width: 32px; height: 32px; vertical-align: -0.55em; }
.nda-progress .nda-i { width: 15px; height: 15px; vertical-align: -0.22em; }
.nda-page-head .nda-i { width: 16px; height: 16px; vertical-align: -0.25em; }
.nd-slip-card .nda-i { width: 34px; height: 34px; }
.nda-item.big .ai-ico .nda-i { width: 30px; height: 30px; }
.ma-shop-item .mi-ico .nda-i { width: 28px; height: 28px; vertical-align: -0.5em; }
.ma-shop-score .nda-i { width: 17px; height: 17px; vertical-align: -0.28em; }
.nd-swap-row .sw-items .nda-i { width: 16px; height: 16px; vertical-align: -0.25em; }

/* 寻宝棋盘 / 烟花 / 纪念照 */
.nd-hunt-cell { display: flex; align-items: center; justify-content: center; }
.nd-hunt-cell .nda-i { width: 62%; height: 62%; }
.ndfw-head .nda-i { width: 18px; height: 18px; vertical-align: -0.3em; }
.nd-note .nda-i { width: 14px; height: 14px; vertical-align: -0.22em; }
.ndf-big .nda-i { width: 17px; height: 17px; vertical-align: -0.28em; }

/* toast / 通用按钮 */
#float-msg .nda-i { width: 17px; height: 17px; vertical-align: -0.3em; }
.gb-btn .nda-i { width: 15px; height: 15px; vertical-align: -0.26em; }

/* ============================================================
   猫猫食堂 · 国庆宴席（2026-10-01 引导补强）
   活动面板里的五步进度卡 + 餐厅顶栏的 🇨🇳 宴席徽章
   ============================================================ */
.nd-panel .nd-feast { display: flex; flex-direction: column; gap: 6px; }
.nd-panel .nd-feast-step {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 7px 10px; border-radius: 10px;
    background: rgba(255, 244, 214, 0.55);
    border: 1px solid rgba(214, 158, 84, 0.25);
}
.nd-panel .nd-feast-step .fs-n {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #a4763a;
    background: rgba(214, 158, 84, 0.22);
}
.nd-panel .nd-feast-step.done .fs-n { color: #fff6e6; background: rgba(111, 145, 82, 0.92); }
.nd-panel .nd-feast-step.cur .fs-n { color: #fff6e6; background: rgba(200, 103, 47, 0.94); }
.nd-panel .nd-feast-step .fs-t { flex: 1; min-width: 0; }
.nd-panel .nd-feast-step .fs-t b { display: block; font-size: 0.86rem; color: #6a4c28; }
.nd-panel .nd-feast-step.done .fs-t b { text-decoration: line-through; opacity: 0.62; }
.nd-panel .nd-feast-step .fs-t small { display: block; margin-top: 2px;
    font-size: 0.74rem; line-height: 1.55; color: #8a6a42; }
.nd-panel .nd-feast-step.cur { background: rgba(255, 236, 190, 0.85);
    border-color: rgba(200, 103, 47, 0.55); }
.nd-panel .nd-feast-step.cur .fs-t b { color: #b0562a; }

/* 餐厅顶栏 🇨🇳 徽章：和 rs2-chip 同底，红金描边突出 + 可点 */
.rs2-chip.nd { cursor: pointer; border-color: rgba(200, 103, 47, 0.65);
    background: linear-gradient(180deg, rgba(255, 236, 190, 0.92), rgba(255, 214, 150, 0.85));
    color: #a0431c; font-weight: 700; }
.rs2-chip.nd:hover { filter: brightness(1.04); }

/* 纪念册里的纪念照页（2026-10-01）：可点，悬停轻微放大提示可交互 */
.nda-photo-thumb { cursor: pointer; max-width: 320px; margin: 10px auto 0; transition: transform .15s ease; }
.nda-photo-thumb:hover { transform: scale(1.02); }
