/* Path TD battle layer (core-surge-path fork) */
#rangeRing { display: none !important; }
#tdCanvas { position: absolute; inset: 0; z-index: 2; touch-action: none; }
#battlefield .tower { z-index: 3; }
#tdBar {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px;
  padding: 6px 6px 4px; background: var(--bg-2); border-top: 1px solid var(--accent-dim);
  touch-action: none; flex-shrink: 0; position: relative; z-index: 4;
}
.td-it {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 54px; background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 8px;
  cursor: grab; touch-action: none; min-width: 0; user-select: none; -webkit-user-select: none;
}
.td-it.off { opacity: .35; }
.td-it.act { outline: 2px solid #7bd88f; outline-offset: 1px; }
.td-ic { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #0d1517 inset, 0 0 8px var(--c); }
.td-nm { font-size: 10px; line-height: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.td-co { font-size: 10px; line-height: 1; color: var(--gold); }
#tdInfo {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6;
  background: rgba(10, 16, 18, .94); border: 1px solid var(--accent-dim); border-radius: 10px;
  padding: 8px 10px; font-size: 12px; color: var(--text); max-height: 45%; overflow: auto;
}
#tdInfo[hidden] { display: none; }
.td-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.td-h small { font-weight: 400; color: var(--text-dim, #8ea3a0); font-size: 11px; }
.td-x { margin-left: auto; background: transparent; border: 0; color: var(--text); font-size: 14px; min-width: 32px; min-height: 28px; }
.td-sw { width: 10px; height: 10px; border-radius: 2px; background: var(--c); display: inline-block; flex: none; }
.td-stats { display: flex; flex-wrap: wrap; gap: 3px 12px; font-variant-numeric: tabular-nums; opacity: .9; }
.td-desc { opacity: .8; margin-top: 4px; }
.td-row { display: flex; gap: 6px; margin-top: 6px; }
.td-row button { flex: 1; min-height: 38px; border-radius: 8px; border: 1px solid var(--accent-dim); background: var(--panel); color: var(--text); font: inherit; }
.td-row button:disabled { opacity: .4; }
.td-row .td-pri { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 700; }
.td-good { color: #7bd88f; } .td-bad { color: #ff5a4e; } .td-warn { color: var(--gold); }
#tdSide { position: absolute; bottom: 8px; right: 8px; z-index: 6; display: flex; flex-direction: column; gap: 5px; width: 104px; }
#tdSide button { border-radius: 8px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--accent-dim); padding: 5px 6px; line-height: 1.15; }
#tdSide .td-send { background: var(--gold); color: #1a1405; border-color: var(--gold); min-height: 42px; }
#tdSide .td-send:disabled { background: var(--panel); color: var(--text); border-color: var(--accent-dim); opacity: .85; }
#tdSide .td-send b { display: block; font-size: 12px; }
#tdSide .td-send small { display: block; font-size: 10px; opacity: .8; }
#tdSide .td-auto { font-size: 11px; min-height: 30px; }
