/* ═════════════════════════════════════════════════════════
   开屏锁屏、星星热力日历与每日战报
   由原 style.css 按顺序拆出（P4.2），规则逐行原样搬移。层叠顺序靠 templates/layout/head.html
   中 01→10 的引用顺序保证，之后才加载 fonts.css 与 css/ui.css；新样式优先写进 css/ui.css。
   ═════════════════════════════════════════════════════════ */
    /* ══════════ 开屏安全锁屏界面样式 ══════════ */
    .lock-screen-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: linear-gradient(135deg, var(--c-indigo-700) 0%, var(--c-indigo-900) 50%, var(--c-indigo-950) 100%);
      z-index: 999999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .lock-screen-overlay.unlocked {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .lock-card {
      background: var(--c-white);
      width: 100%;
      max-width: 380px;
      border-radius: 28px;
      padding: 32px 24px 24px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      text-align: center;
      animation: lockCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes lockCardPop {
      0% { transform: scale(0.92); opacity: 0; }
      100% { transform: scale(1); opacity: 1; }
    }

    .lock-brand h2 {
      font-size: 1.45rem;
      font-weight: 900;
      color: var(--c-indigo-950);
      margin: 8px 0 4px;
      letter-spacing: -0.5px;
    }

    .lock-brand p {
      font-size: 0.86rem;
      color: var(--c-slate-500);
      margin-bottom: 20px;
    }

    .lock-pin-dots {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin: 12px 0 16px;
    }

    .pin-dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid var(--c-slate-300);
      background: var(--c-slate-50);
      transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pin-dot.filled {
      background: var(--primary);
      border-color: var(--primary);
      transform: scale(1.15);
      box-shadow: 0 0 12px var(--theme-today-ring, var(--primary));
    }

    .lock-status-msg {
      min-height: 24px;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--c-red-500);
      margin-bottom: 12px;
      transition: all 0.2s;
    }

    .lock-status-msg.success {
      color: var(--c-emerald-500);
    }

    .lock-keypad {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      max-width: 290px;
      margin: 0 auto;
    }

    .lock-key {
      height: 56px;
      border-radius: 18px;
      border: 1px solid var(--c-slate-200);
      background: var(--c-slate-50);
      font-size: 1.45rem;
      font-weight: 700;
      color: var(--c-slate-800);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.1s ease;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .lock-key:active {
      background: var(--c-slate-200);
      transform: scale(0.94);
    }

    .lock-key:disabled,
    .pin-key:disabled,
    .btn-disabled {
      opacity: 0.38 !important;
      cursor: not-allowed !important;
      pointer-events: none !important;
      box-shadow: none !important;
      transform: none !important;
    }

    .lock-key-text {
      font-size: 0.92rem;
      color: var(--c-slate-500);
      font-weight: 600;
    }

    .lock-footer {
      margin-top: 22px;
      padding-top: 14px;
      border-top: 1px solid var(--c-slate-100);
    }

    .lock-link {
      font-size: 0.82rem;
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      cursor: pointer;
    }

    .lock-link:hover {
      text-decoration: underline;
    }

    .shake-anim {
      animation: lockShake 0.4s ease-in-out;
    }

    @keyframes lockShake {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-8px); }
      40%, 80% { transform: translateX(8px); }
    }

    /* ══════════ 🌟 黄金能量星星热力日历与每日战报样式 ══════════ */
    .points-today-pill.clickable {
      cursor: pointer;
      border: 1.5px solid var(--c-yellow-300);
      background: linear-gradient(135deg, var(--c-yellow-50) 0%, var(--c-yellow-200) 100%);
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 14px;
      color: var(--c-yellow-800);
      font-weight: 800;
    }

    .points-today-pill.clickable:hover {
      transform: translateY(-1px) scale(1.03);
      box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
      border-color: var(--c-yellow-500);
    }

    /* 首页近 7 天星星微走势卡片 */
    .star-mini-strip-card {
      margin-top: 14px;
      background: linear-gradient(135deg, var(--c-white) 0%, var(--c-amber-50) 100%);
      border: 1.5px solid var(--c-yellow-200);
      border-radius: var(--radius-lg);
      padding: 12px 14px;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
    }

    .star-mini-strip-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(245, 158, 11, 0.16);
      border-color: var(--c-yellow-300);
    }

    .star-mini-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }

    .star-mini-title {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--c-amber-800);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .star-mini-title .streak-flame {
      font-size: 1.15rem;
      display: inline-block;
      animation: flamePulse 1.2s infinite alternate;
    }

    .star-mini-sub {
      font-size: 0.75rem;
      color: var(--c-amber-700);
      font-weight: 600;
    }

    .star-mini-more {
      font-size: 0.85rem;
      color: var(--c-amber-600);
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .star-mini-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 6px;
    }

    .star-mini-day-cell {
      background: var(--c-white);
      border: 1.5px solid var(--c-slate-100);
      border-radius: 12px;
      padding: 6px 2px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      transition: all 0.2s;
    }

    .star-mini-day-cell .wday {
      font-size: 0.75rem;
      color: var(--c-slate-500);
      font-weight: 700;
    }

    .star-mini-day-cell .star-icon {
      font-size: 1.1rem;
      line-height: 1.2;
    }

    .star-mini-day-cell .pts {
      font-size: 0.75rem;
      font-weight: 800;
      color: var(--c-slate-400);
    }

    .star-mini-day-cell.level-1 {
      background: var(--c-yellow-50);
      border-color: var(--c-yellow-200);
    }
    .star-mini-day-cell.level-1 .pts { color: var(--c-amber-700); }

    .star-mini-day-cell.level-2 {
      background: var(--c-amber-100);
      border-color: var(--c-yellow-300);
      box-shadow: 0 2px 6px rgba(234, 179, 8, 0.15);
    }
    .star-mini-day-cell.level-2 .pts { color: var(--c-amber-800); }

    .star-mini-day-cell.level-3 {
      background: linear-gradient(135deg, var(--c-yellow-200) 0%, var(--c-yellow-300) 100%);
      border-color: var(--c-yellow-500);
      box-shadow: 0 3px 8px rgba(234, 179, 8, 0.25);
    }
    .star-mini-day-cell.level-3 .pts { color: var(--c-amber-900); font-weight: 900; }

    .star-mini-day-cell.is-today {
      outline: 2.5px solid var(--theme-today-ring);
      outline-offset: -1px;
    }
    /* 今天 / 空白日要压过上面的 level-N 配色：放在它们之后（同等优先级，后者生效） */
    .star-mini-day-cell.is-today {
      border: 2.5px solid var(--theme-today-ring, var(--primary));
      background: var(--primary-light, var(--c-purple-50));
      color: var(--primary);
      font-weight: 800;
    }
    .star-mini-day-cell.empty-day {
      background: var(--c-slate-50);
      border: 1.5px dashed var(--c-slate-300);
      color: var(--c-slate-400);
    }

    /* 🌟 星星热力日历模态框 */
    .star-calendar-modal-content {
      max-width: 600px;
      width: 95%;
      padding: 22px;
      background: var(--c-white);
      border-radius: 24px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    }

    .star-cal-header-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      margin-bottom: 14px;
      flex-wrap: wrap;
      gap: 8px;
    }

    .star-cal-month-nav {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cal-nav-btn {
      background: var(--c-slate-100);
      border: 1px solid var(--c-slate-300);
      color: var(--c-slate-700);
      font-weight: 700;
      font-size: 0.8rem;
      padding: 5px 12px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .cal-nav-btn:hover {
      background: var(--c-slate-200);
      color: var(--c-slate-900);
    }

    .cal-current-month-text {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--c-slate-800);
    }

    .star-cal-streak-badge {
      background: linear-gradient(135deg, var(--c-orange-50) 0%, var(--c-orange-100) 100%);
      border: 1.5px solid var(--c-orange-200);
      color: var(--c-orange-700);
      padding: 5px 14px;
      border-radius: 16px;
      font-size: 0.85rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 6px rgba(194, 65, 12, 0.1);
    }

    .star-cal-streak-badge .flame-icon {
      font-size: 1.2rem;
      animation: flamePulse 1s infinite alternate;
    }

    /* 月度战果总览卡片 */
    .star-cal-month-summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      background: var(--c-slate-50);
      border: 1px solid var(--c-slate-200);
      border-radius: 16px;
      padding: 12px 14px;
      margin-bottom: 16px;
      text-align: center;
    }

    .cal-stat-item .val {
      font-size: 1.2rem;
      font-weight: 900;
      color: var(--c-amber-600);
      line-height: 1.2;
    }

    .cal-stat-item .lbl {
      font-size: 0.75rem;
      color: var(--c-slate-500);
      margin-top: 2px;
      font-weight: 600;
    }

    /* 星期表头 */
    .star-calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--c-slate-500);
      margin-bottom: 8px;
    }

    /* 日历网格 */
    .star-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 6px;
      margin-bottom: 16px;
    }

    .star-day-cell {
      background: var(--c-white);
      border: 1.5px solid var(--c-slate-200);
      border-radius: 16px;
      min-height: 62px;
      padding: 6px 3px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
      position: relative;
    }

    .star-day-cell:hover:not(.is-future) {
      transform: translateY(-4px) scale(1.08);
      z-index: 5;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    }

    .star-day-cell .day-num {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--c-slate-600);
      line-height: 1;
    }

    .star-day-cell .star-symbol {
      font-size: 1.38rem;
      line-height: 1.1;
      margin: 2px 0;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    .star-day-cell .earned-tag {
      font-size: 0.75rem;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.05);
      color: var(--c-slate-400);
    }

    /* 🥚 蛋仔派对巅峰排位 0~7 阶专属果冻质感与马卡龙色系 */
    /* 0阶: 温泉咸鱼蛋 (0分) */
    .star-day-cell.level-0 {
      background: linear-gradient(135deg, var(--c-slate-50) 0%, var(--c-sky-100) 100%);
      border-color: var(--c-sky-200);
    }
    .star-day-cell.level-0 .earned-tag {
      background: rgba(2, 132, 199, 0.1);
      color: var(--c-sky-600);
    }

    /* 1阶: 鹌鹑蛋 (1-5分) */
    .star-day-cell.level-1 {
      background: linear-gradient(135deg, var(--c-yellow-50) 0%, var(--c-yellow-200) 100%);
      border-color: var(--c-yellow-300);
    }
    .star-day-cell.level-1 .earned-tag {
      background: rgba(180, 83, 9, 0.12);
      color: var(--c-amber-700);
    }

    /* 2阶: 鸽子蛋 (6-12分) */
    .star-day-cell.level-2 {
      background: linear-gradient(135deg, var(--c-orange-50) 0%, var(--c-orange-200) 100%);
      border-color: var(--c-orange-300);
    }
    .star-day-cell.level-2 .earned-tag {
      background: rgba(194, 65, 12, 0.15);
      color: var(--c-orange-700);
    }

    /* 3阶: 鸡蛋 (13-20分) */
    .star-day-cell.level-3 {
      background: linear-gradient(135deg, var(--c-yellow-100) 0%, var(--c-yellow-300) 60%, var(--c-yellow-500) 100%);
      border-color: var(--c-yellow-600);
      box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
    }
    .star-day-cell.level-3 .earned-tag {
      background: var(--c-yellow-700);
      color: var(--c-white);
      font-weight: 900;
    }

    /* 4阶: 鹅蛋 (21-28分) */
    .star-day-cell.level-4 {
      background: linear-gradient(135deg, var(--c-emerald-50) 0%, var(--c-emerald-200) 60%, var(--c-emerald-300) 100%);
      border-color: var(--c-emerald-400);
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    }
    .star-day-cell.level-4 .earned-tag {
      background: var(--c-emerald-800);
      color: var(--c-emerald-50);
      font-weight: 900;
    }

    /* 5阶: 鸵鸟蛋 (29-35分) */
    .star-day-cell.level-5 {
      background: linear-gradient(135deg, var(--c-purple-50) 0%, var(--c-purple-200) 60%, var(--c-purple-300) 100%);
      border-color: var(--c-purple-400);
      box-shadow: 0 3px 10px rgba(168, 85, 247, 0.28);
    }
    .star-day-cell.level-5 .earned-tag {
      background: var(--c-purple-800);
      color: var(--c-purple-50);
      font-weight: 900;
    }

    /* 6阶: 恐龙蛋 (36-42分) */
    .star-day-cell.level-6 {
      background: linear-gradient(135deg, var(--c-lime-100) 0%, var(--c-lime-500) 50%, var(--c-lime-700) 100%);
      border-color: var(--c-lime-600);
      box-shadow: 0 4px 14px rgba(101, 163, 13, 0.35);
    }
    .star-day-cell.level-6 .earned-tag {
      background: var(--c-lime-900);
      color: var(--c-lime-50);
      font-weight: 900;
    }

    /* 7阶巅峰: 巅峰凤凰蛋 (43+分) */
    .star-day-cell.level-7 {
      background: linear-gradient(135deg, var(--c-yellow-200) 0%, var(--c-amber-500) 45%, var(--c-orange-600) 100%);
      border-color: var(--c-amber-500);
      box-shadow: 0 0 16px rgba(245, 158, 11, 0.65), inset 0 0 8px rgba(255, 255, 255, 0.5);
      animation: phoenixPulseGlow 2.2s ease-in-out infinite alternate;
    }
    .star-day-cell.level-7 .earned-tag {
      background: var(--c-orange-900);
      color: var(--c-yellow-200);
      font-weight: 900;
      border: 1px solid var(--c-yellow-200);
    }

    @keyframes phoenixPulseGlow {
      0% {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.4);
        transform: scale(1);
      }
      100% {
        box-shadow: 0 0 20px rgba(234, 88, 12, 0.8), 0 0 30px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.7);
        transform: scale(1.03);
      }
    }

    /* 单月最高纪录勋章 */
    .star-day-cell .best-record-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background: linear-gradient(135deg, var(--c-red-500), var(--c-amber-500));
      color: var(--c-white);
      font-size: 0.75rem;
      font-weight: 900;
      padding: 1px 4px;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
      line-height: 1.1;
      pointer-events: none;
      z-index: 6;
      border: 1px solid var(--c-white);
    }

    .star-day-cell.is-today {
      outline: 2.5px solid var(--theme-today-ring, var(--primary));
      outline-offset: -1px;
    }
    .star-day-cell.is-today .day-num::after {
      content: "今";
      font-size: 0.75rem;
      background: var(--theme-today-ring, var(--primary));
      color: var(--c-white);
      padding: 1px 3px;
      border-radius: 4px;
      margin-left: 2px;
    }

    .star-day-cell.is-future {
      opacity: 0.35;
      cursor: default;
      background: var(--c-slate-100);
      border-color: var(--c-slate-200);
    }

    .star-day-cell.empty-placeholder {
      visibility: hidden;
      cursor: default;
    }

    /* 图例说明 */
    .star-calendar-legend {
      background: linear-gradient(135deg, var(--c-slate-50) 0%, var(--c-slate-100) 100%);
      border-radius: 16px;
      padding: 12px 14px;
      border: 1px solid var(--c-slate-200);
    }

    .legend-title {
      font-size: 0.76rem;
      color: var(--c-slate-600);
      font-weight: 800;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .legend-items {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 0.75rem;
      color: var(--c-slate-700);
      font-weight: 600;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--c-white);
      padding: 3px 8px;
      border-radius: 20px;
      border: 1px solid var(--c-slate-200);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    /* 🎉 当日战报通关卡模态框 */
    .battle-report-modal-content {
      max-width: 480px;
      width: 95%;
      padding: 0;
      border-radius: 26px;
      overflow: hidden;
      background: var(--c-white);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .battle-report-header {
      position: relative;
      background: var(--theme-banner-gradient);
      padding: 26px 18px 20px;
      text-align: center;
      color: var(--c-white);
    }

    .battle-badge-container {
      margin-bottom: 8px;
    }

    .battle-big-icon {
      font-size: 3.8rem;
      line-height: 1;
      display: inline-block;
      animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    }

    .battle-date-tag {
      font-size: 0.8rem;
      opacity: 0.85;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .battle-title-banner {
      font-size: 1.45rem;
      font-weight: 900;
      margin: 4px 0 6px;
      letter-spacing: 1px;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .battle-pts-highlight {
      display: inline-block;
      background: rgba(255, 255, 255, 0.22);
      backdrop-filter: blur(8px);
      padding: 4px 16px;
      border-radius: 20px;
      font-size: 0.95rem;
      font-weight: 700;
      border: 1px solid rgba(255, 255, 255, 0.35);
      margin-bottom: 8px;
    }

    .battle-pts-highlight strong {
      font-size: 1.25rem;
      color: var(--c-yellow-200);
      margin: 0 2px;
    }

    .battle-quote {
      font-size: 0.82rem;
      opacity: 0.9;
      line-height: 1.4;
      max-width: 380px;
      margin: 0 auto;
    }

    /* 心愿推进条 */
    .battle-wish-section {
      background: var(--c-fuchsia-50);
      border: 1.5px solid var(--c-fuchsia-200);
      border-radius: 16px;
      margin: 14px 16px 8px;
      padding: 12px 14px;
    }

    .battle-wish-header {
      display: flex;
      justify-content: space-between;
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--c-fuchsia-800);
      margin-bottom: 6px;
    }

    .battle-wish-contrib {
      background: var(--c-fuchsia-100);
      color: var(--c-fuchsia-700);
      padding: 1px 8px;
      border-radius: 10px;
      font-size: 0.75rem;
    }

    .battle-wish-target-text {
      font-size: 0.75rem;
      color: var(--c-fuchsia-900);
      font-weight: 600;
    }

    /* 战利品明细清单 */
    .battle-loot-container {
      padding: 8px 16px 4px;
    }

    .battle-loot-title {
      font-size: 0.85rem;
      font-weight: 800;
      color: var(--c-slate-800);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .battle-loot-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 220px;
      overflow-y: auto;
      padding-right: 2px;
    }

    .loot-item-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--c-slate-50);
      border: 1px solid var(--c-slate-200);
      border-radius: 12px;
      padding: 8px 12px;
      font-size: 0.82rem;
    }

    .loot-item-desc {
      font-weight: 600;
      color: var(--c-slate-700);
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .loot-item-delta {
      font-weight: 900;
      font-size: 0.9rem;
      margin-left: 8px;
    }

    .loot-item-delta.positive {
      color: var(--c-emerald-600);
    }

    .loot-item-delta.negative {
      color: var(--c-red-500);
    }

    @keyframes flamePulse {
      0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4)); }
      100% { transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7)); }
    }

    @keyframes badgePop {
      0% { transform: scale(0.4) rotate(-15deg); opacity: 0; }
      100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }
