/* ============ THEME: 史诗奇幻 (epic fantasy RPG · dark) ============ */
/* 字体：Noto Serif SC（正文/标题）/ Cinzel（标签/数字） */

body[data-theme="epic"] {
  --bg: #1d1610;
  --card: #14100a;
  --primary: #caa044;
  --primary-light: #2a2014;
  --primary-dark: #8a6a28;
  --accent: #a960e0;
  --accent-light: #2a1c33;
  --success: #4fb04f;
  --success-light: #1c2a16;
  --text: #ebdcb8;
  --text-secondary: #c9b894;
  --text-muted: #9c8a64;
  --border: #4a3a1c;
  --danger: #b0463a;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-stack: 'Noto Serif SC', serif;
}
body[data-theme="epic"] {
  background-color: #1d1610;
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(216, 180, 90, 0.1), transparent 55%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 5px);
}

/* dark-theme: neutralize base white backgrounds */
body[data-theme="epic"] .entry-input,
body[data-theme="epic"] .dream-input,
body[data-theme="epic"] .modal-input,
body[data-theme="epic"] .auth-input,
body[data-theme="epic"] .tag-select,
body[data-theme="epic"] .quest-check { background: #0e0b06; color: #ebdcb8; }
body[data-theme="epic"] .entry-input:focus,
body[data-theme="epic"] .dream-input:focus { background: #14100a; border-color: #caa044; }
body[data-theme="epic"] .entry-input::placeholder { color: #8a7a58; }

body[data-theme="epic"] .header { background: #120e08; border-bottom: 1px solid #4a3a1c; }
body[data-theme="epic"] .header h1 { font-weight: 700; color: #caa044; }
body[data-theme="epic"] .header .subtitle { font-family: 'Cinzel', serif; color: #9c8a64; }
body[data-theme="epic"] .streak-badge { background: transparent; color: #caa044; border: 1px solid #6a4e1e; border-radius: 4px; font-family: 'Cinzel', serif; }

body[data-theme="epic"] .hero-card { background: #14100a; color: #ebdcb8; border: 1px solid #6a4e1e; box-shadow: inset 0 0 0 1px rgba(240, 216, 144, 0.12); }
body[data-theme="epic"] .hero-card::after { display: none; }
body[data-theme="epic"] .hero-avatar { background: radial-gradient(circle at 35% 30%, #3a2e1c, #14100a); border: 2px solid #caa044; border-radius: 50%; color: #caa044; box-shadow: 0 0 10px rgba(202, 160, 68, 0.4); }
body[data-theme="epic"] .hero-name { font-weight: 700; }
body[data-theme="epic"] .hero-rank-chip { background: #2a1c33; color: #a960e0; border: 1px solid #4a3458; }
body[data-theme="epic"] .hero-sub { color: #9c8a64; font-family: 'Cinzel', serif; font-size: 11px; }
body[data-theme="epic"] .hero-stat { background: #0e0b06; border: 1px solid #5a4520; }
body[data-theme="epic"] .hero-stat strong { font-family: 'Cinzel', serif; color: #caa044; }
body[data-theme="epic"] .hero-stat span { opacity: 1; color: #9c8a64; }
body[data-theme="epic"] .xp-track { background: #0e0b06; border: 1px solid #5a4520; }
body[data-theme="epic"] .xp-meta { color: #9c8a64; opacity: 1; font-family: 'Cinzel', serif; }
body[data-theme="epic"] .xp-bar { background: #0e0b06; border: 1px solid #6a4e1e; }
body[data-theme="epic"] .xp-bar-fill { background: linear-gradient(180deg, #b06fe0, #7d3fb0); box-shadow: 0 0 8px rgba(169, 96, 224, 0.5); }
body[data-theme="epic"] .xp-bar-fill::after { display: none; }

body[data-theme="epic"] .quote-card { background: transparent; color: #d8c9a4; border-top: 1px solid #4a3a1c; border-bottom: 1px solid #4a3a1c; border-radius: 0; box-shadow: none; padding: 12px 0; text-align: center; }
body[data-theme="epic"] .quote-card::before { display: none; }
body[data-theme="epic"] .quote-author { font-family: 'Cinzel', serif; letter-spacing: .1em; opacity: 1; color: #9c8a64; }

body[data-theme="epic"] .card,
body[data-theme="epic"] .quest-card,
body[data-theme="epic"] .chart-container,
body[data-theme="epic"] .profile-card,
body[data-theme="epic"] .stat-card,
body[data-theme="epic"] .badge-tile,
body[data-theme="epic"] .badge-summary { background: #14100a; border: 1px solid #4a3a1c; }

body[data-theme="epic"] .progress-ring-bg { stroke: #4a3a1c; }
body[data-theme="epic"] .progress-ring-fill { stroke: #caa044; }
body[data-theme="epic"] .progress-center { color: #caa044; font-family: 'Cinzel', serif; }

body[data-theme="epic"] .quest-row { background: #0e0b06; border: 1px solid #4a3a1c; border-left: 3px solid #caa044; }
body[data-theme="epic"] .quest-row.done { background: #1c2a16; }
body[data-theme="epic"] .quest-check { border-color: #6a4e1e; border-radius: 4px; }
body[data-theme="epic"] .quest-row.done .quest-check { background: #caa044; border-color: #caa044; color: #1d1610; }
body[data-theme="epic"] .quest-reward { font-family: 'Cinzel', serif; color: #a960e0; }
body[data-theme="epic"] .quest-row.done .quest-reward { color: #4fb04f; }

body[data-theme="epic"] .entry-number { background: #2a2014; color: #caa044; border: 1px solid #5a4520; }
body[data-theme="epic"] .entry-number.filled { background: #caa044; color: #1d1610; }
body[data-theme="epic"] .entry-add-btn { border-color: #5a4520; color: #9c8a64; border-radius: 4px; }

body[data-theme="epic"] .save-btn,
body[data-theme="epic"] .auth-btn,
body[data-theme="epic"] .modal-btn,
body[data-theme="epic"] .dream-add-btn { background: linear-gradient(180deg, #caa044, #8a6a28); color: #1d1610; border: 1px solid #f2d894; border-radius: 4px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
body[data-theme="epic"] .share-action { background: #14100a !important; color: #caa044; border: 1px solid #6a4e1e; box-shadow: none; font-family: 'Cinzel', serif; letter-spacing: .08em; }

body[data-theme="epic"] .tab-bar { background: #120e08; border-top: 1px solid #4a3a1c; }
body[data-theme="epic"] .tab-item { color: #7a6a48; }
body[data-theme="epic"] .tab-item.active { color: #caa044; }
body[data-theme="epic"] .theme-tile .label { background: rgba(235, 220, 184, 0.92); color: #1d1610; }

body[data-theme="epic"] .jar-card { background: linear-gradient(145deg, #2a2014, #8a6a28); border: 1px solid #6a4e1e; }
body[data-theme="epic"] .stat-value { color: #caa044; font-family: 'Cinzel', serif; }
body[data-theme="epic"] .modal { background: #14100a; border: 1px solid #4a3a1c; }
body[data-theme="epic"] .modal-handle { background: #4a3a1c; }

/* ============ SHARE CARD ============ */
body[data-theme="epic"] .share-card {
  background-color: #1d1610; color: #ebdcb8; font-family: 'Noto Serif SC', serif;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(216, 180, 90, 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 5px);
  border: 3px solid #8a6a28;
  box-shadow: inset 0 0 0 1px rgba(240, 216, 144, 0.25);
}
body[data-theme="epic"] .share-card-header h2 { color: #f2d894; font-weight: 700; }
body[data-theme="epic"] .share-card-header p { font-family: 'Cinzel', serif; letter-spacing: .12em; color: #9c8a64; opacity: 1; }

body[data-theme="epic"] .share-card-stats { gap: 9px; }
body[data-theme="epic"] .share-card-stat { flex: 1; background: #14100a; border: 1px solid #5a4520; border-radius: 3px; padding: 12px 4px; }
body[data-theme="epic"] .share-card-stat .val { font-family: 'Cinzel', serif; color: #f2d894; }
body[data-theme="epic"] .share-card-stat .lbl { color: #9c8a64; opacity: 1; }

body[data-theme="epic"] .share-card-entries { background: transparent; padding: 0; backdrop-filter: none; }
body[data-theme="epic"] .share-card-entry { background: #14100a; border: 1px solid #4a3a1c; padding: 10px 12px; margin-bottom: 7px; align-items: center; }
body[data-theme="epic"] .share-card-entry:nth-child(1) { border-left: 3px solid #e0892f; }
body[data-theme="epic"] .share-card-entry:nth-child(2) { border-left: 3px solid #a960e0; }
body[data-theme="epic"] .share-card-entry:nth-child(3) { border-left: 3px solid #3f8ce0; }
body[data-theme="epic"] .share-card-entry + .share-card-entry { border-top: 1px solid #4a3a1c; }
body[data-theme="epic"] .share-card-num { background: transparent; color: #caa044; border: 1px solid #6a4e1e; border-radius: 3px; font-family: 'Cinzel', serif; }
body[data-theme="epic"] .share-card-tag { background: transparent; font-family: 'Cinzel', serif; padding: 0; }
body[data-theme="epic"] .share-card-entry:nth-child(1) .share-card-tag { color: #e0892f; }
body[data-theme="epic"] .share-card-entry:nth-child(2) .share-card-tag { color: #a960e0; }
body[data-theme="epic"] .share-card-entry:nth-child(3) .share-card-tag { color: #3f8ce0; }

body[data-theme="epic"] .share-card-qr { background: #14100a; border: 1px solid #5a4520; border-radius: 0; }
body[data-theme="epic"] .share-qr-img { border: 2px solid #6a4e1e; background: #e7d6ad; }
body[data-theme="epic"] .share-qr-label { color: #f2d894; }
body[data-theme="epic"] .share-qr-url { color: #9c8a64; opacity: 1; }
body[data-theme="epic"] .share-card-footer { font-family: 'Cinzel', serif; }
body[data-theme="epic"] .share-card-footer .streak { color: #9c8a64; font-weight: 400; }
body[data-theme="epic"] .share-card-footer .brand { color: #9c8a64; opacity: 1; }
