/* «Дни силы храмов России» (templates/dni_sily.php): всё в области .ds, чтобы не задевать оформление портала */
.ds { --bg: #0b0820; --panel: rgba(17,12,44,.93); --line: rgba(226,184,98,.35); --gold: #e2b862; --gold-hi: #f6dc97; --parch: #e9dfc6; --dim: #a79fbe;
          --sun: #ff9a4a; --violet: #b184ff; --common: #f2c86b; --uncommon: #ff8a3d; --rare: #ff4fd8; }
.ds { position: relative; height: calc(100vh - 72px); height: calc(100dvh - 72px); min-height: 560px; background: var(--bg); color: var(--parch); font: 15px/1.45 Georgia, 'Times New Roman', serif; }
.ds a { color: var(--gold-hi); }
.ds .bnr-map { margin: 10px 0 0; }
.ds #map { position: absolute; inset: 0; background: #0b0820; }
.ds .ezo-night { filter: invert(1) hue-rotate(185deg) brightness(.62) contrast(.95) saturate(.4) sepia(.2); }
.ds .ds-panel { position: absolute; top: 12px; left: 56px; z-index: 1000; width: 340px; max-height: calc(100% - 24px); overflow: auto; background: var(--panel);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(8px); box-shadow: 0 20px 50px -20px #000; }
.ds h1 { font: 700 21px Georgia, serif; color: var(--gold-hi); margin: 0 0 2px; }
.ds .sub { color: var(--dim); font-size: 13px; margin: 0 0 10px; }
.ds h2 { font: 600 12px/1 Georgia, serif; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 14px 0 8px; }
.ds .date { font: 700 26px Georgia, serif; color: #fff; display: flex; align-items: baseline; gap: 10px; }
.ds .date small { font-size: 13px; color: var(--dim); font-weight: 400; }
.ds input[type=range] { width: 100%; accent-color: var(--sun); }
.ds .ds-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ds button { background: #231a55; color: var(--parch); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: 14px Georgia, serif; cursor: pointer; }
.ds button.on { background: var(--gold); color: #1a1030; }
.ds .big { display: flex; align-items: baseline; gap: 8px; }
.ds .big b { font: 700 38px/1 Georgia, serif; color: var(--sun); text-shadow: 0 0 18px rgba(255,154,74,.5); }
.ds .big span { color: var(--dim); font-size: 14px; }
.ds .split { display: flex; gap: 10px; margin: 6px 0 2px; font-size: 13px; flex-wrap: wrap; }
.ds .split i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.ds .feasts { font-size: 14px; color: var(--gold-hi); margin-top: 6px; }
.ds .rarest { font-size: 13px; margin-top: 6px; }
.ds .rarest a { color: var(--parch); cursor: pointer; text-decoration: underline dotted; }
.ds svg.chart { display: block; width: 100%; height: auto; background: #0d0a26; border-radius: 8px; cursor: pointer; }
.ds .ds-panel .k { color: var(--dim); font-size: 13px; margin: 6px 0; }
.ds .dir { display: block; margin: 8px 0 2px; font-size: 14px; }
.ds .dir input { width: 70px; background: #0d0a26; color: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font: 15px Georgia, serif; }
.ds .ptdays { font-size: 14px; margin: 8px 0; }
.ds .ptdays b { color: #7dffb0; }
.ds .ptdays .fe { color: var(--gold-hi); font-size: 13px; }
.ds .pin { width: 18px; height: 18px; border-radius: 50%; background: #7dffb0; border: 3px solid #0b0820; box-shadow: 0 0 0 2px #7dffb0, 0 0 16px #7dffb0; }
.ds .handle { width: 14px; height: 14px; border-radius: 50%; background: #0b0820; border: 3px solid #7dffb0; cursor: grab; }
.ds .placing, .ds .placing .leaflet-interactive { cursor: crosshair !important; }
.ds .tog { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 10px; cursor: pointer; }
.ds .tog input { accent-color: #6fd3ff; }
.ds #neverInfo b { color: #6fd3ff; }
.ds .lore { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(226,184,98,.06); }
.ds .lore summary { cursor: pointer; padding: 7px 10px; color: var(--gold-hi); font-size: 14px; list-style: none; }
.ds .lore summary::before { content: '✦ '; color: var(--sun); }
.ds .lore[open] summary { border-bottom: 1px solid var(--line); }
.ds .lore p { margin: 8px 10px; font-size: 13.5px; line-height: 1.5; }
.ds .lore p b { color: var(--gold-hi); }
.ds .pop .today { display: inline-block; margin: 6px 0 2px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg,#ff9a4a,#ffd27a); color: #1a1030; font-weight: 700; font-size: 13px; box-shadow: 0 0 14px rgba(255,154,74,.6); }
.ds .pop .sleep, .ds .edit .sleep { color: #6fd3ff; }
.ds .pop .ask { margin: 6px 0; color: #d9ccff; }
.ds .edit-btn { margin-top: 8px; font-size: 13px; padding: 4px 11px; }
.ds .edit { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 1100; width: 380px; max-width: calc(100% - 24px);
    background: var(--panel); border: 1px solid #7dffb0; border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(8px); box-shadow: 0 20px 50px -15px #000; }
.ds .edit .ed-t { font-size: 15px; }
.ds .edit .ed-t b { color: #7dffb0; }
.ds .edit .k { color: var(--dim); font-size: 13px; margin: 6px 0; }
.ds .edit input[type=date] { background: #0d0a26; color: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font: 14px Georgia, serif; color-scheme: dark; }
.ds .edit button:disabled { opacity: .5; }
.ds .legend { font-size: 13px; color: var(--dim); }
.ds .legend div { margin: 2px 0; }
.ds .legend span { display: inline-block; width: 26px; vertical-align: middle; margin-right: 6px; }
.ds .note { font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.ds #loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2000; background: rgba(11,8,32,.8); color: var(--gold-hi); font-size: 20px; }
.ds .leaflet-popup-content-wrapper, .ds .leaflet-popup-tip { background: #17113a; color: var(--parch); border: 1px solid var(--line); }
.ds .leaflet-popup-content { margin: 12px 14px; width: 300px !important; }
.ds .leaflet-popup-content a { color: var(--gold-hi); }
.ds .pop b.t { font-size: 16px; color: #fff; }
.ds .pop .k { color: var(--dim); font-size: 13px; }
.ds .pop .ok { color: #7dffb0; }
.ds .pop .no { color: var(--dim); }
.ds .leaflet-bar a { background: #17113a !important; color: var(--parch) !important; border-color: var(--line) !important; }
/* Заряд страны */
.ds .charge { position: absolute; top: 12px; right: 12px; z-index: 1000; width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 14px; backdrop-filter: blur(8px); box-shadow: 0 20px 50px -20px #000; }
.ds .ch-top { display: flex; justify-content: space-between; align-items: baseline; }
.ds .ch-top span { font: 600 12px Georgia, serif; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.ds .ch-top b { font: 700 30px/1 Georgia, serif; color: var(--ch, #ff9a4a); text-shadow: 0 0 16px var(--ch, #ff9a4a); transition: color .3s; }
.ds .ch-lvl { font-size: 13px; color: var(--ch, #ff9a4a); margin: 2px 0 8px; letter-spacing: .04em; }
.ds .ch-bat { position: relative; height: 26px; border: 2px solid rgba(233,223,198,.55); border-radius: 6px; padding: 2px; margin-right: 8px; }
.ds .ch-bat::after { content: ''; position: absolute; right: -8px; top: 7px; width: 5px; height: 8px; background: rgba(233,223,198,.55); border-radius: 0 2px 2px 0; }
.ds .ch-fill { height: 100%; width: 0; border-radius: 3px; transition: width .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
    background: linear-gradient(90deg, #4b2a8f, #b184ff 30%, #ff9a4a 65%, #ffd27a 85%, #fff6e0);
    background-size: 280px 100%; box-shadow: 0 0 14px var(--ch, #ff9a4a); }
.ds .ch-cells { position: absolute; inset: 2px; border-radius: 3px; pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(11,8,32,.85) 13px 16px); }
.ds .ch-peak { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #fff; opacity: .0; transition: left .35s; }
.ds .ch-sub { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.ds .ch-sub b { color: var(--parch); }
.ds .charge.max .ch-fill { animation: surge 0.9s ease-in-out infinite alternate; }
@keyframes surge { from { box-shadow: 0 0 10px #ffd27a; } to { box-shadow: 0 0 28px #fff6e0, 0 0 50px #ff9a4a; } }
@media (max-width: 640px) { .ds .charge { left: 8px; right: 8px; top: 8px; width: auto; } }
@media (max-width: 640px) { .ds .ds-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 50%; } }
@media (max-width: 640px) { .ds { height: calc(100dvh - 60px); } }
/* Текст под картой */
.ds-about { padding: 56px 0 20px; }
.ds-about .prose { max-width: 820px; margin: 0 auto; }
