/* Map marks, burning bases, clan mail (client/mapmarks.js) */
#mm-btn { border-radius: 50%; width: 34px; height: 34px; min-width: 34px; padding: 0; border: 1px solid #c8a46a; background: rgba(20, 30, 24, .85); font-size: 15px; line-height: 1; }

.mm-box { display: grid; gap: 8px; min-width: 0; }
.mm-tabs { margin-bottom: 2px; }
.mm-tabs button { flex: 1 1 0; }
.mm-add { width: 100%; min-height: 44px; font-weight: 800; white-space: normal; }
.mm-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; background: #0f1712; border: 1px solid var(--line); }
.mm-ic { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; border: 2px solid var(--c, #6aa8e0); background: color-mix(in srgb, var(--c, #6aa8e0) 28%, #10160f); }
.mm-mid { display: grid; gap: 2px; min-width: 0; min-height: 44px; padding: 2px 4px; text-align: left; border: 0; background: none; box-shadow: none; color: inherit; align-content: center; }
.mm-mid b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-mid small { font-size: 12px; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.mm-mid small b { display: inline; font-size: 12px; color: #ffd98a; }
.mm-btns { display: flex; gap: 4px; }
.mm-sm { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 10px; font-size: 16px; }
.mm-foot { margin-top: 4px; text-align: center; }
.mm-lab { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mm-lab .pn-input { font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 400; min-height: 42px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mm-chip { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 2px solid transparent; }
.mm-chip.on { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, #f0b43c) 30%, #10160f); color: #fff; }
.mm-lab .mm-body { resize: vertical; min-height: 130px; font: inherit; font-size: 16px; line-height: 1.35; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #0b110d; color: var(--text); }
.mm-lab .mm-body:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.mm-count { display: block; text-align: right; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mm-quota { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: #0f1712; border: 1px solid var(--line); font-size: 14px; }
.mm-quota b { color: #ffd98a; } .mm-quota.out b { color: #ff9a8a; }
.mm-wait { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: rgba(224, 87, 76, .14); border: 1px solid rgba(224, 87, 76, .45); font-size: 13px; }

/* my base burns: banner under the top of the view */
#mm-fire { position: absolute; left: 8px; right: 8px; top: 150px; margin: 0 auto; width: fit-content; z-index: 6; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 150px); padding: 6px 12px 6px 8px; border-radius: 999px; text-align: left;
  border: 2px solid #ffb35a; background: linear-gradient(#7a1d0e, #4a1208); color: #fff; box-shadow: 0 0 0 2px #2a0a04, 0 0 18px rgba(255, 110, 30, .65), 0 4px 10px rgba(0, 0, 0, .5); animation: mmFire 1.6s ease-in-out infinite; }
#mm-fire.hidden { display: none; }
#mm-fire.on-map { top: 124px; margin-left: 0; max-width: calc(100% - 146px); } /* left of the minimap */
#mm-fire .mm-flame { font-size: 22px; line-height: 1; } #mm-fire .mm-hose { font-size: 18px; line-height: 1; }
#mm-fire .mm-ftxt { display: grid; min-width: 0; } #mm-fire .mm-ftxt b { font: 900 13px/1.2 system-ui; white-space: nowrap; } #mm-fire .mm-ftxt b b { color: #ffe08a; font-variant-numeric: tabular-nums; }
#mm-fire small { font-size: 11px; color: #ffd9c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mmFire { 50% { box-shadow: 0 0 0 2px #2a0a04, 0 0 28px rgba(255, 140, 40, .9), 0 4px 10px rgba(0, 0, 0, .5); } }
html.land #mm-fire, html.land #mm-fire.on-map { top: 98px; left: 236px; right: auto; margin: 0; max-width: 270px; } /* under the notices, between the left rail and the coordinates */
@media (prefers-reduced-motion: reduce) { #mm-fire { animation: none; } }

/* the fire sheet */
.mm-wall { margin: 4px 0 8px; }
.mm-wallbar { position: relative; height: 26px; border-radius: 8px; background: #1a120c; border: 1px solid #6b4a2a; overflow: hidden; }
.mm-wallbar i { display: block; height: 100%; background: linear-gradient(#c9a36a, #8a6a3c); } .mm-wallbar.low i { background: linear-gradient(#ff8a4a, #c2452f); }
.mm-wallbar span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px/1 system-ui; color: #fff; text-shadow: 0 1px 2px #000; }
.mm-rule { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 5px 0; }
.mm-rule small { font-size: 13px; line-height: 1.3; color: var(--muted); }

/* a burning base's card on the Map */
.bc-row.mm-burn { margin: 4px -4px 0; padding: 4px 8px; border-radius: 12px; align-items: center; flex-wrap: wrap; font-weight: 800; background: rgba(224, 87, 40, .2); color: #8a2a10; }
.bc-row.mm-burn > b { color: #8a2a10; font-variant-numeric: tabular-nums; } .bc-row.mm-burn b b { color: inherit; }
.mm-put { flex: 1 1 100%; min-height: 36px; margin-top: 2px; padding: 4px 10px; border-radius: 10px; border: 0; font: 800 13px/1 system-ui; color: #fff; background: linear-gradient(#e0703c, #b8401c); box-shadow: 0 2px 0 #7a2a10; }
