/* 三國天命 v12.41：領地戰地圖提示 + 精簡佔領公告 (client/js/terrmap_v1241.js) */
.tm-tag { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 900; line-height: 15px; padding: 0 4px; border-radius: 3px; letter-spacing: 0; white-space: nowrap; }
.tm-tag.t-atk { color: #052e16; background: #4ade80; }
.tm-tag.t-war { color: #faf9f5; background: #f5c133; }
.tm-tag.t-def { color: #faf9f5; background: #dc2626; box-shadow: 0 0 0 1px #fecaca; }
.wm-marker > .tm-tag { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); pointer-events: none; }
.wm-marker.tm-atk .wm-dot { box-shadow: 0 0 0 2px #4ade80, 0 0 10px #4ade80; animation: tmAtk 1.6s ease-in-out infinite; }
.wm-marker.tm-war .wm-dot, .wm-marker.tm-def .wm-dot { box-shadow: 0 0 0 2px #facc4b, 0 0 14px #ef4444; animation: tmWar .8s steps(2, jump-none) infinite; }
.wm-marker.tm-war > .tm-tag, .wm-marker.tm-def > .tm-tag { animation: tmBlink .8s steps(2, jump-none) infinite; }
.wm-marker.tm-dim { opacity: .38; }
@keyframes tmAtk { 50% { box-shadow: 0 0 0 4px rgba(74, 222, 128, .35), 0 0 16px #4ade80; } }
@keyframes tmWar { 50% { box-shadow: 0 0 0 4px #fdd053, 0 0 18px #facc4b; } }
@keyframes tmBlink { 50% { opacity: .45; } }
.wm-legend .lg-tm { display: inline-flex; align-items: center; gap: 3px; }
.wm-legend .lg-tm .tm-tag { margin-left: 4px; }
#wm-filters .tm-fbtn { color: #fecaca; }

.tm-side { padding: 7px 8px; background: rgba(18, 25, 43, .38); border: 1px solid #7f1d1d; display: flex; flex-direction: column; gap: 3px; }
.tm-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #dfd6bc; margin-bottom: 2px; }
.tm-head b { color: #e2dbc3; font-size: 13px; margin-right: auto; }
.tm-head .hot { color: #fca5a5; font-weight: 900; }
.tm-row { display: flex; align-items: center; gap: 6px; padding: 3px 5px; font-size: 12px; color: #f4f1e8; background: rgba(250, 249, 245, .03); cursor: pointer; border-left: 2px solid transparent; }
.tm-row:hover { background: rgba(250, 249, 245, .08); }
.tm-row.t-def { border-left-color: #dc2626; background: rgba(220, 38, 38, .14); }
.tm-row.t-war { border-left-color: #f5c133; }
.tm-row.t-atk { border-left-color: #22c55e; }
.tm-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row em { font-style: normal; font-size: 11px; color: #c7cedb; white-space: nowrap; }
.tm-none { font-size: 11.5px; color: #b0b9cc; padding: 2px 0; }
.tm-more { font-family: inherit; font-size: 11px; color: #ebe5d5; background: rgba(18, 25, 43, .4); border: 1px solid #314678; padding: 2px 6px; cursor: pointer; align-self: flex-start; }
.tm-qun { font-size: 11px; color: #c7cedb; margin-top: 2px; }
.tm-qun b { color: #fccf55; }
.wm-zone-row .tm-tag { margin-left: 4px; }
.tm-note { font-size: 12px; padding: 3px 6px; border-left: 3px solid; }
.tm-note.t-def { color: #fecaca; border-color: #dc2626; background: rgba(220, 38, 38, .16); font-weight: 700; }
.tm-note.t-war { color: #ede8da; border-color: #f5c133; }
.tm-note.t-atk { color: #bbf7d0; border-color: #22c55e; }
.tm-note.t-far { color: #c7cedb; border-color: #7182a4; }

/* 精簡佔領公告：畫面上方一行、最多 3 條、4 秒消失、不擋操作 */
#tm-feed { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 74px); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; max-width: 92vw; }
.tm-chip { display: block; max-width: 92vw; padding: 2px 10px 2px 3px; font-size: 12px; line-height: 18px; color: #f5f3eb; background: rgba(23, 34, 58, .78); border: 1px solid rgba(242, 193, 58, .45); border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #12192b; transition: opacity .4s, transform .4s; animation: tmIn .25s ease-out; }
.tm-chip i { margin-right: 5px; font-style: normal; font-size: 10.5px; font-weight: 900; color: #1d2946; background: #f5cc5c; border-radius: 8px; padding: 0 5px; }
.tm-chip small { margin-left: 5px; font-size: 10.5px; color: #c7cedb; }
.tm-chip.mine { border-color: #22c55e; }
.tm-chip.lost { border-color: #dc2626; background: rgba(60, 10, 10, .82); }
.tm-chip.lost i { background: #dc2626; color: #faf9f5; }
.tm-chip.here { box-shadow: 0 0 10px rgba(251, 204, 74, .45); }
.tm-chip.gold i { background: #fccf55; }
.tm-chip.gold { border-color: #fccf55; }
.tm-chip.out { opacity: 0; transform: translateY(-6px); }
@keyframes tmIn { from { opacity: 0; transform: translateY(-6px); } }
/* 手機：放在右上按鈕列下方、靠右對齊，不蓋住血條與任務追蹤 */
@media (max-width: 640px) { .tm-chip { font-size: 10.5px; line-height: 16px; max-width: 60vw; } #tm-feed { left: auto; right: 6px; transform: none; align-items: flex-end; max-width: 60vw; top: calc(env(safe-area-inset-top, 0px) + 192px); } }
.wm-marker.cur > .tm-tag { top: auto; bottom: -17px; }
